Stunts Forum

Stunts - the Game => Stunts Related Programs => Topic started by: Duplode on March 09, 2021, 03:07:48 AM

Title: stressed - Stunts Resource Editor
Post by: Duplode on March 09, 2021, 03:07:48 AM
(We surprisingly didn't have a non-locked thread solely dedicated to Stressed, so I'm creating one.)

An updated Stressed executable for Windows is now available through Southern Cross (http://scr.stunts.hu/mods.html) and the sticky post at the custom cars subforum (http://forum.stunts.hu/index.php?topic=2224.0). It fixes the GAME.PRE issue (http://forum.stunts.hu/index.php?topic=3692.0) reported the other day by GTAMan, and incorporates a number of other improvements which had only been available by building Stressed from the source code. Quoting the changelog in the aforementioned sticky, here is a list of them:
Title: Re: stressed - Stunts resource editor
Post by: Cas on March 09, 2021, 03:24:00 AM
Great!  It's true!  How come we didn't have a thread for it before all this time?  I'm still using the Windows binary with Wine because I wasn't able to compile it under Linux Mint.
Title: Re: stressed - Stunts resource editor
Post by: GTAManRCR on March 09, 2021, 05:19:52 AM
Either I couldn't compile it under Windows 10
Title: Re: stressed - Stunts Resource Editor
Post by: Daniel3D on January 08, 2023, 04:50:46 PM
@Duplode, your update of caredit made me think of a little issue i have with stressed.
Resources have at the beginning of the file a value for the file size. This is not always correct and stressed refuses to load the file.
"File length is x, expected length y. I will not open it"
I work around it sometimes by editing the size byte or by trimming the file if possible.
But it would be better if stressed would crash on it.
Either, trim the file if the excess is empty or correct the size byte.
Title: Re: stressed - Stunts Resource Editor
Post by: Duplode on January 08, 2023, 06:16:30 PM
Quote from: Daniel3D on January 08, 2023, 04:50:46 PMEither, trim the file if the excess is empty or correct the size byte.

Possibly, though we might want to tread carefully when silently adjusting files -- even the innocuous reordering I came up with for the CarEdit bugfix made me a bit uneasy. Something I can see working out okay would be, when detecting the mismatch upon loading the file, Stressed offering to either trim the file unconditionally or cancel the loading. I'll look into it when I get to look at the code again. (That should happen in a not so distant future -- Stunpack currently seems to need a patch (https://github.com/dstien/gameformats/issues/5) to be built with recent gcc.)
Title: Re: stressed - Stunts Resource Editor
Post by: Daniel3D on January 08, 2023, 08:30:41 PM
Well, since the file ain't broken stressed could als just ignore the size byte and read the file as it is.
(Maybe with a warning and a menu option to fix if the file gives problems)