Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   In game Gani Editor (https://forums.graalonline.com/forums/showthread.php?t=79041)

Bell 03-16-2008 06:47 AM

In game Gani Editor
 
1 Attachment(s)
Many of you have asked for an in game gani editor but until now there really wasn't anything available but graalshop. Jerret has taken the time to develop one that seems to be quite nice. He's agreed to let anyone use it but it would be good to give him the credit for his hard work. If you would like to read about it and see some screenshots, there are some on the zodiac forums but I'm attaching the script itself here for all of you to use.

Twinny 03-16-2008 06:52 AM

Jerret? "Scripted by: Comrade ( DarkL0tus )" ?

Did he just recode/re-release someone else's project?

Tigairius 03-16-2008 07:00 AM

Nice :)

coreys 03-16-2008 07:06 AM

Quote:

Originally Posted by Twinny (Post 1379912)
Jerret? "Scripted by: Comrade ( DarkL0tus )" ?

Did he just recode/re-release someone else's project?

looks like it

Tigairius 03-16-2008 07:11 AM

Quote:

Originally Posted by Twinny (Post 1379912)
Jerret? "Scripted by: Comrade ( DarkL0tus )" ?

Did he just recode/re-release someone else's project?

Quote:

Originally Posted by coreys (Post 1379914)
looks like it

Even if that's the case, at least proper credit is given at the top of the script.

Bell 03-16-2008 07:29 AM

Thats Jerrets account, I apologize for the name confusion.

[email protected] 03-16-2008 11:18 AM

:confused::confused:whats a gani?? how do i add it??:confused::confused:

Tigairius 03-16-2008 07:56 PM

Quote:

Originally Posted by [email protected] (Post 1379927)
:confused::confused:whats a gani?? how do i add it??:confused::confused:

Gani is short for Graal Animation. As I stated in a previous thread you should try checking Graal's wiki articles because it'll be able to answer a lot of your questions faster than waiting for a forum reply.
http://wiki.graal.net/index.php/Creation/Dev/Gani

There are also several Gani tutorials on the forums here if you look hard enough ;)

Admins 03-17-2008 03:32 AM

It looks quite good, may be we could improve it together to make it a nice online- gani editor ?

Things that could be added without a lot of work I think:
- edit attributes (defaulthead etc.) like in the normal graalshop window, by reusing the gui editor stuff
- move the frame actions (copy etc.) and frame buttons to the bottom and use graphical buttons, to make it look closer to the standalone graalshop
- the sprite list needs a scrollbar

If you want to use the script then don't forget to add gani rights to the npcserver:
r levels/ganis/*.gani
Otherwise you cannot open any gani. May be we could add support for loading and saving of clientside ganis, it should normally work.
There seem to be also some small bugs when working with singledirection ganis or so, but should be possible to fix. For adding a working zoom mode we could use a GuiStretchCtrl.

Bell 03-17-2008 03:43 AM

I'm sure he would be willing to work with you on it. Skyld and shown interest in adding it as a type of plugin as well to the client rc but somehow they never quite got together on it. Jerret doesn't have gold at this time to be able to contact you directly and because I felt this was something that shouldn't be left to get lost forever, I agreed to make sure it at least got to here so others would have it available to them.

I'll let him know what you've suggested here as soon as I see him.

cbk1994 03-17-2008 05:58 AM

I can't look at it now, but I will check it out as soon as I can.

Can anyone link to the Zodiac forum post where the screenshots are at?

Admins 03-17-2008 11:39 AM

1 Attachment(s)
Here is one

Switch 03-20-2008 04:22 PM

Quote:

Originally Posted by Twinny (Post 1379912)
Jerret? "Scripted by: Comrade ( DarkL0tus )" ?

Did he just recode/re-release someone else's project?

Jerret is Comrade/DarkL0tus

Chompy 03-20-2008 05:10 PM

Quote:

Originally Posted by Switch (Post 1381045)
Jerret is Comrade/DarkL0tus

Hmm, I think Bell already said that though :p

zokemon 03-20-2008 07:24 PM

Ahh nice.
Oh just in case people didn't know, Comrade/DarkL0tus is actually Jerret.

PrinceOfKenshin 03-26-2008 09:03 PM

I have added this to a server i work on and i can't figure out how to load it up.

cbk1994 03-26-2008 10:25 PM

Quote:

Originally Posted by PrinceOfKenshin (Post 1382492)
I have added this to a server i work on and i can't figure out how to load it up.

After quickly glancing at the code, say /graalshop

PrinceOfKenshin 03-26-2008 11:24 PM

Oh now i see that xD wow i feel stupid

PrinceOfKenshin 03-26-2008 11:29 PM

Hmm i get an complier error
unexpected symbol var at line 1846: function getSpriteInfo(sid, var)

cbk1994 03-26-2008 11:55 PM

That's because of the new version of the NPC-Server, you'll have to fix it or have someone fix it, sorry.

Stefan did a bad thing and made a commonly-used variable no longer available.

Chompy 03-27-2008 12:21 AM

Hmm, just look through the script and change all 'var' into something else, for example 'var2' :)

Admins 03-30-2008 02:05 AM

Ok was working a little bit on it to make it easier to use: started to replace the showimg-stuff with GuiShowImgCtrl so that it can all be in a normal window (or even external window with the new graal version). I can eventually upload an update when it has made some more progress.

Admins 04-07-2008 01:24 AM

1 Attachment(s)
A screenshot showing some progress. I've converted stuff to use GuiShowImgCtrl only, still need to add support for ATTACH (kingdoms, zone ganis).

cbk1994 04-07-2008 02:35 AM

Quote:

Originally Posted by Stefan (Post 1384594)
A screenshot showing some progress. I've converted stuff to use GuiShowImgCtrl only, still need to add support for ATTACH (kingdoms, zone ganis).

Post the new script! ^^

Desear 04-07-2008 04:43 AM

Very nice looking, once it has GK, and Zone Capabilities (this will also work for custom body servers then correct?) it will be very nice. Would love to see this in the next Graal Version.

mYg0tHaMpStEr 04-10-2008 12:22 AM

Thanks a bunch, Jarret.

On hell of a script you have here! :D

Admins 04-11-2008 02:11 AM

1 Attachment(s)
More progress: zoom is working fine, also dragndrop is working again, still a lot of stuff on my todo list, but it might be possible to post an updated version soon.

Spikedude 04-11-2008 02:40 AM

What's the advantage of using the in-game editor? Can you save it directly into the server or something?

Admins 04-11-2008 11:40 AM

And use 24 bit pngs, edit the script, use it on Mac and Linux etc.

cbk1994 04-11-2008 10:20 PM

Quote:

Originally Posted by Stefan (Post 1385342)
use it on Mac

:)

That's the great thing about these internal external windows. You can make for the main portion of Graal (Windows) while still supporting the small portion (Mac/Linux) with little extra work.

Desear 04-12-2008 06:38 AM

Quote:

Originally Posted by Stefan (Post 1385288)
More progress: zoom is working fine, also dragndrop is working again, still a lot of stuff on my todo list, but it might be possible to post an updated version soon.

Cool, hope to see more of this. :)

Admins 04-13-2008 01:58 AM

2 Attachment(s)
Ok here it is. There might still be some bugs, but it gives at least some feeling about what can be possible: you can zoom, and also move the background like in the old gani editor. Dragging of sprites is also working fine. The ATTACH thing still needs to be added.

Beside uploading the script you also need to upload the images from graalshopgfx.zip, and give "rw levels/ganis/*.gani" rights to the npcserver.

cbk1994 04-13-2008 02:45 AM

Quote:

Originally Posted by Stefan (Post 1385695)
Ok here it is. There might still be some bugs, but it gives at least some feeling about what can be possible: you can zoom, and also move the background like in the old gani editor. Dragging of sprites is also working fine. The ATTACH thing still needs to be added.

Beside uploading the script you also need to upload the images from graalshopgfx.zip, and give "rw levels/ganis/*.gani" rights to the npcserver.

rw levels/ganis/*.gani is a huge security risk.

Spikedude 04-13-2008 02:54 AM

Quote:

Originally Posted by cbkbud (Post 1385707)
rw levels/ganis/*.gani is a huge security risk.

yeah, that npc server is quite a shady character

cbk1994 04-13-2008 03:01 AM

Quote:

Originally Posted by Spikedude (Post 1385709)
yeah, that npc server is quite a shady character

I mean that any random NAT or even LAT could delete all the GANIs

PrinceOfKenshin 04-13-2008 05:45 AM

when i load ganis the properties of the gani like the head, body, attributes and all that stuff doesn't load. I am using a custom body for the ganis i am making, just so you know

zokemon 04-13-2008 10:45 AM

Quote:

Originally Posted by cbkbud (Post 1385711)
I mean that any random NAT or even LAT could delete all the GANIs

That's why I'm finishing my in-game level editor so that script control for levels can be limited or even removed with ease (and not to mention tilelayer support, more painting features and easier server uploading/downloading/updating). This would remove the security risk with level designers or 'LATs' as you all like to call them.

Would be nice to then implement my limiting feature into the scripting portion of the client-rc later to maybe remove that risk for scripters too (blocking the scripting of savelines and variable function calls to avoid files from being edited). Of course this would have to be an option with a list of accounts or so for the head coders.

Admins 04-13-2008 12:39 PM

Hmmm could be interesting to allow a script filter for uploaded levels, before loading them into memory.

cbk1994 04-13-2008 03:36 PM

Quote:

Originally Posted by zokemon (Post 1385747)
'LATs' as you all like to call them.

I apologize, I've been on Utopia too long. I actually used to call them Level Designers, higher management rejected it.
Quote:

Originally Posted by Stefan (Post 1385754)
Hmmm could be interesting to allow a script filter for uploaded levels, before loading them into memory.

If it could be customizable.

Spikedude 04-13-2008 04:48 PM

Quote:

Originally Posted by PrinceOfKenshin (Post 1385732)
when i load ganis the properties of the gani like the head, body, attributes and all that stuff doesn't load. I am using a custom body for the ganis i am making, just so you know

talk to me on AIM: PawltothePawl, I'll see if I can figure out what your problem is.


All times are GMT +2. The time now is 08:16 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.