![]() |
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.
|
Jerret? "Scripted by: Comrade ( DarkL0tus )" ?
Did he just recode/re-release someone else's project? |
Nice :)
|
Quote:
|
Quote:
Quote:
|
Thats Jerrets account, I apologize for the name confusion.
|
:confused::confused:whats a gani?? how do i add it??:confused::confused:
|
Quote:
http://wiki.graal.net/index.php/Creation/Dev/Gani There are also several Gani tutorials on the forums here if you look hard enough ;) |
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. |
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. |
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? |
1 Attachment(s)
Here is one
|
Quote:
|
Quote:
|
Ahh nice.
Oh just in case people didn't know, Comrade/DarkL0tus is actually Jerret. |
I have added this to a server i work on and i can't figure out how to load it up.
|
Quote:
|
Oh now i see that xD wow i feel stupid
|
Hmm i get an complier error
unexpected symbol var at line 1846: function getSpriteInfo(sid, var) |
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. |
Hmm, just look through the script and change all 'var' into something else, for example 'var2' :)
|
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.
|
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).
|
Quote:
|
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.
|
Thanks a bunch, Jarret.
On hell of a script you have here! :D |
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.
|
What's the advantage of using the in-game editor? Can you save it directly into the server or something?
|
And use 24 bit pngs, edit the script, use it on Mac and Linux etc.
|
Quote:
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. |
Quote:
|
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. |
Quote:
|
Quote:
|
Quote:
|
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
|
Quote:
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. |
Hmmm could be interesting to allow a script filter for uploaded levels, before loading them into memory.
|
Quote:
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 11:07 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.