dev-related questions

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Aerick
Posts: 22
Joined: Thu May 14, 2020 1:34 pm

dev-related questions

Post by Aerick »

I've re-written the options menus and added/enhanced some classes. All options menus are derived from "Menu_gump" class which handles pretty much everything for you. For menus where you wish to hide some buttons based on the state of one or more options, you can specify callbacks which are called when the button is pressed. Otherwise you really only have to add buttons in your constructor and the Menu_gump class handles everything else. I'll upload a massive number of DIFF files once I'm done cleaning up the code a little more. Hopefully some day I'll get SVN write access and avoid that hassle... ;)

Anyway, my questions are these:

1. What about renaming "gamemenu.shp", "gameplayoptions.shp" and "videooptions.shp" to something like "menu_WxH.shp" where W and H are replaced by width and height. The reason for this being that these shapes are re-used by other menus, so modifying them can have unintended effects on other menus.

2. Where can I find the source for the GIMP plug-in? I'd very much like to port that to linux so I don't have to run XP in vmware just to modify a shape.

3. What's the deal with the PNG files exported by Studio when you use "Export Frame"? For some reason, when I view them with GIMP they show up strangely as if the image itself is outside the "canvas" area. If I create an image within the "canvas" area, then import it with studio I get no actual image.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: dev-related questions

Post by Dominus »

Gimp Plugin: /mapedit/u7shp.c

As for more development questions you *might* get more answers on our developement mailing list at http://sourceforge.net/mailarchive/foru ... lt-general
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: dev-related questions

Post by marzo »

Re: 2: Trying to "port" the Gimp plug-in to Linux would be wasted effort, as it is cross-platform already: just pass "--enable-gimp-plugin" to ./configure (along with any other options you normally use). Then, running "make && make install" will build it and install the plugin where it should be.

Re: 3: This is because ES-generated PNGs have layer offsets given that the shapes themselves do (on a per-frame basis even); doing otherwise would cause loss of information, resulting in shapes appearing in the wrong location.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Aerick
Posts: 22
Joined: Thu May 14, 2020 1:34 pm

Re: dev-related questions

Post by Aerick »

thanks for the infos, guys. I struggled with the GIMP plugin for a bit. I didn't have gimptool installed and configure didn't choke like it does if you try to enable studio without libglade. But I've got it going now! One less reason to use windows. :D

FYI, I've uploaded a couple more patches. One bug is kinda serious, it makes it impossible to create new multi-shape files.
Locked