When implementing Dupre's Armour, I want it to have the same Warmth tab settings as Plate Armour. When I try to enter this via ES, I cannot go below zero via arrow button. If I type it in, it will not apply.
I can work around this by editing shape_info.txt in the warmth_data section.
Ticket moved from /p/exult/bugs/2017/
I haven't edited the 'exult_studio.glade' file in several years. And now
'glade' complains:
Couldnt recognize GtkBuilder xml ...
But exult_studio reads it okay. Do I need a newer version of glade? I
see references to 'gtk-builder', and I tried 'gtk-builder-convert', with
no luck.
On 5/9/20 6:11 AM, Marzo Sette Torres Junior wrote:
Unfortunately, the only way to work with ES has been to use a very old build of glade3; I have been using 3.6.1, but it likes to delete all signals from the glade file and I have to manually add them back in. Unfortunately, other versions I tried around this version will break the glade file in worse ways.
I have been meaning to convert ES to use gtkbuilder instead, so we can also move to gtk3 at some point. It is, unfortunately, a huge task, one which I started and gave up partway at least 5 times now.
I tried using gtk-builder-convert. It had a lot of complaints, but the
result seems to work in exult_studio. Bringing it up with glade also
appears to work, but with various warnings and errors. Looks like it
could take a lot of time to sort it all out. Is this what you attempted?
With all that, when I look at the 'warmth' spin button, I don't see a
way to allow it to go negative.
On 5/12/20 10:48 AM, Marzo Sette Torres Junior wrote:
The main issue with using gtk-builder-convert or Glade to convert to a newer version is that a few things are outright deleted if they are no longer supported; for example, any GtkOptionMenus and GtkFileSelections, both of which are used everywhere on ES. And even when you use a version of gtk-builder-convert or Glade that do not delete the GtkOptionMenus, it will not convert their menu and you will have to recreate it by hand.
I started working on updating it again. With the experience I gathered with previous attempts, I seem to be going a bit faster than before, and I finally figured out how to populate a GtkComboBox from the Glade interface. And man they made it unintuitive...
Edit: and the major advantage of upgrading is the ability to use a version of Glade writen this decade, with a much better interface, as well as being able to swap to Gtk3... and eventual highdpi support.
Last edit: Marzo Sette Torres Junior 2020-05-12
Anyway, things went a lot more smoothly this time around. We now use GtkBuilder instead of libglade, and are updated up until the latest Gtk2 (2.24.x). So any version of Glade which is not specific to Gtk3 should work.
Next up will be to update to Gtk3.
Regarding that spin button, its limits are adjusted by the associated GtkAdjustment widget. Though to be safe, the data type in the code (in shapes/shapeinf/warminf.{cc,h}) may need to be changed as well: it is currently a
char
, and it would need to be asigned char
instead to allow negative values in a portable manner.Thanks, Marzo! Yes, I don't think there's any reason to store it as
char anyway, as it's read in from an 'int' (I think).
On 5/13/2020 2:16 PM, Marzo Sette Torres Junior wrote:
I finally got around to updating, and got this:
checking for SDL - version >= 2.0.6... no, version < 2.0.6 found
Seems my version of Ubuntu only has SDL 2.0.4. Would that work okay, or
do I really need 2.0.6?
On 5/13/20 2:16 PM, Marzo Sette Torres Junior wrote:
The latest gamecontroller code needs SDL 2.0.6, so I guess removing that limitation will only end up with build failures around that code.
2.0.4 is really old by now, the latest is 2.0.12
K, thanks. I'll have to get it manually, then.
On 6/14/20 11:10 AM, Dominik Reichardt wrote:
Seems like the version of glade (glade 3.18.3) I have isn't the right
one. Which should I get (assuming I am supposed to use glade to edit
exult_studio.glade).
Exult_studio has problems too:
jeff@jeff-HP-Pavilion-dm4-Notebook-PC:~/proj/exult.master/mapedit$
./exult_studio --si
Unrecognized system path '<home>' in path '<home>'.</home></home>
(exult_studio:9885): WARNING : Couldn't load builder file: Invalid
root element: 'glade-interface'
On 5/13/20 2:16 PM, Marzo Sette Torres Junior wrote:
It seems that Glade 3.8.5 is the last one with GTK+ 2.x support. I guess I can't postpone updating to GTK+ 3 for uch longer; I will have to see how that impacts the Gnome SHP thumbnailer (which is probably not working anymore anyway) and the Gimp plugin (which should probably be unaffected).
This actually works now with GTK+3 (and might have worked back then).
You can't change it but you can remove the line and add a new one (with frames and warmth)