Exult crashes when saving after a chunk is duplicated in ES

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
SnappyBones
Posts: 12
Joined: Sun May 30, 2021 2:41 am

Exult crashes when saving after a chunk is duplicated in ES

Post by SnappyBones »

All right, I give in. I looked all over for something like this but couldn't find anything. If I duplicate any chunk in ES, place it on the map, and then save it in ES, Exult crashes. Happens across BG, SI and every mod I've tried.

Snapshots are 1.9.0git for both Exult and ES. PC is running Windows 7.

Here's the stderr:

Code: Select all

Could not open file '.\forgeofvirtue\static\mainshp.flx
Could not open file '.\silverseed\static\mainshp.flx
Could not open file '.\serpentbeta\static\mainshp.flx
Warning, trailing slash in path: "<BLACKGATE_STATIC>\"
Warning, trailing slash in path: "<SERPENTISLE_STATIC>\"
SDL Reports 640x400 16 bpp and 32 bpp windowed surfaces are not OK. Windowed scalers may not work properly.
(Exult) Dropping CHUNK at 640 186 for 22
============================
An exception occured: 
Error opening file C:\Ortlma\SI\mods\Temp\patch\u7chunks
errno: 17
============================
aaaand the stdout:

Code: Select all

Exult version 1.9.0git
Built at: May 18 2022 00:33:08
Compile-time options: USE_FMOPL_MIDI, USE_MT32EMU_MIDI, USE_EXULTSTUDIO, HAVE_ZIP_SUPPORT
Compiler: GCC 11.3.0

Platform: Windows 7 Service Pack 1 Version 6.1 Build 7601
Exult path settings:
Data          : C:\Ebult\data
Digital music : C:\Ebult\data\music

Game controller attached and open: "Controller (XBOX 360 For Windows)"
Looking for 'blackgate' at 'C:\Ortlma'... found game with identity 'FORGE'
Looking for 'forgeofvirtue' at './forgeofvirtue'... but it wasn't there.
Looking for 'serpentisle' at 'C:\Ortlma\SI'... found game with identity 'SILVER SEED'
Looking for 'silverseed' at './silverseed'... but it wasn't there.
Looking for 'serpentbeta' at './serpentbeta'... but it wasn't there.
Black Gate   : not found (<BLACKGATE_STATIC>\.)
Forge of Virtue   : found
exult_bg.flx : found
Serpent Isle   : not found (<SERPENTISLE_STATIC>\.)
Silver Seed   : found
exult_si.flx : found
Checking rendering support
 Windowed	
 640x480	 8 bpp ok 16 bpp ok 32 bpp ok
 720x480	 8 bpp ok 16 bpp ok 32 bpp ok
 720x576	 8 bpp ok 16 bpp ok 32 bpp ok
 800x480	 8 bpp ok 16 bpp ok 32 bpp ok
 800x600	 8 bpp ok 16 bpp ok 32 bpp ok
 1024x600	 8 bpp ok 16 bpp ok 32 bpp ok
 1024x768	 8 bpp ok 16 bpp ok 32 bpp ok
 1152x648	 8 bpp ok 16 bpp ok 32 bpp ok
 1280x720	 8 bpp ok 16 bpp ok 32 bpp ok
 1280x768	 8 bpp ok 16 bpp ok 32 bpp ok
 1280x800	 8 bpp ok 16 bpp ok 32 bpp ok
 1280x960	 8 bpp ok 16 bpp ok 32 bpp ok
 1280x1024	 8 bpp ok 16 bpp ok 32 bpp ok
 1360x768	 8 bpp ok 16 bpp ok 32 bpp ok
 1366x768	 8 bpp ok 16 bpp ok 32 bpp ok
 1400x1050	 8 bpp ok 16 bpp ok 32 bpp ok
 1440x900	 8 bpp ok 16 bpp ok 32 bpp ok
 1600x900	 8 bpp ok 16 bpp ok 32 bpp ok
 1680x1050	 8 bpp ok 16 bpp ok 32 bpp ok
 1776x1000	 8 bpp ok 16 bpp ok 32 bpp ok
 1920x1080	 8 bpp ok 16 bpp ok 32 bpp ok
Creating AudioMixer...
Audio opened using format: 44100 Hz 2 Channels
Timbers Precached: On play only
Starting a SERPENT ISLE game
Game path settings:
Static  : C:\Ortlma\SI\static
Gamedat : C:\Users\Dubbins\AppData\Local\Exult\serpentisle\gamedat
Savegame: C:\Users\Dubbins\AppData\Local\Exult\serpentisle
Patch   : C:\Ortlma\SI\patch

Opening digital SFX's file: "<DATA>/jmsisfx.flx"
Resetting AudioMixer...
Timbers Precached: On play only
played intro
Gamedat identity SILVER SEED
Reading usecode file.
Loading <DATA>/exult_si.flx...
Loading default keybindings
Loading default autonotes
Opened socket for Exult Server on port 61178
Cheats enabled.
***fighter is backing off
Teleporting to 1267,1850!
Executing: exult_studio -x C:\Ebult\data -g serpentisle &
Game paused
Connected to client
Last drag pos: (248, 69)
Set chunk (7)
Game resumed
Game paused
Any ideas? Hopefully I didn't miss something obvious here. Let me know if you need anything else from me.
Knight Captain
Posts: 1219
Joined: Thu May 14, 2020 1:34 pm

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by Knight Captain »

Couldst thou recreate this with the 1.8.0 release?
SnappyBones
Posts: 12
Joined: Sun May 30, 2021 2:41 am

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by SnappyBones »

Worked like a charm! Thanks KC, you're a peach.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by Dominus »

So it works with 1.8?
I‘ll try to track it down.
--
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!
SnappyBones
Posts: 12
Joined: Sun May 30, 2021 2:41 am

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by SnappyBones »

Lemme know if you need an official bug report.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by Dominus »

Sorry for taking so long, but I only now had time to test it. But it works for me on both macOS and Windows.
Can you try with the latest Windows snapshot and if that also fails, can you try with a new game *and* a fresh patch folder (rename your old one).
And if it still crashes for you can you give me a detailed step for step?

I did:
- opened Exult and started a FoV game
- started Exult Studio by ctrl-alt-m
- went to the u7chunks in ES, right clicked on first chunk -> new-> Duplicate
- drag'n'dropped the duplicate chunk and dropped it in the Exult window (and where I dropped it, it turned into the water chunk)
- in ES clicked on File -> Save All
--
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!
SnappyBones
Posts: 12
Joined: Sun May 30, 2021 2:41 am

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by SnappyBones »

Gotcha. The steps you listed are the same ones I've been doing as well. Works with 1.8, crashes 1.9.x

For 1.9.x, when a new patch folder is created (as in, I renamed the old patch folder and created a new one just named "patch")
it does NOT crash initially, however it does after exiting and reloading Exult. Seems it needs a fresh patch folder each time, but I don't get why. This was tested with FoV and my mod, same results either way.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by Dominus »

did you try the very last snapshot of Exult?
I'll try to see if I can get it to crash with more tries!
--
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!
SnappyBones
Posts: 12
Joined: Sun May 30, 2021 2:41 am

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by SnappyBones »

Oops yeah, I forgot to mention: Tried the latest snapshot (in its own directory), nothing happens. Doesn't run or do anything at all. Beats the heck outta me!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by Dominus »

hmm, that shouldn't happen and again, that works for me. Have you installed both Exult and Exult Studio in that new folder?
--
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!
SnappyBones
Posts: 12
Joined: Sun May 30, 2021 2:41 am

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by SnappyBones »

Yep, that is correct.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by Dominus »

damn, can you give me more details?
What system are you on?
Where did you install Exult and Exult Studio to and do both not work when run from there directly?
When you try to start them, does anything at all get written to the std files in C:\Users\Dubbins\AppData\Local\Exult\?

I'm pretty sure your chunks problem is already fixed in recent snapshots (I see that the one with problems was from May)
--
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!
SnappyBones
Posts: 12
Joined: Sun May 30, 2021 2:41 am

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by SnappyBones »

Ah yeah, didn't even think about it. It's pretty clear now: (System is Windows 7 Home Premium 6.1.7601 SP 1 Build 7601)

Code: Select all

exult.flx has a wrong checksum!
This usually means the file(s) mentioned above are from a different version
of Exult than this one. Please re-install Exult

(Note: if you modified the .flx files yourself, you can skip this check
by passing the --nocrc parameter.)
To be clear, the original install I did of the latest snapshot runs fine (aside from the chunk problem). This one was installed to a separate directory just to see if it would make a difference. If I uninstall and re-install everything will I lose all my work?
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by Dominus »

sorry, getting back to it.
As long as you keep your games and the patch/mods folders uninstall and reinstalling will not nuke your work. UNLESS you are working on the Exult mods (BG Keyring, SIfixes, SF Island), for these you might need to take precautions.
--
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!
SnappyBones
Posts: 12
Joined: Sun May 30, 2021 2:41 am

Re: Exult crashes when saving after a chunk is duplicated in ES

Post by SnappyBones »

No worries, after much fussing the issue turned out to be a dying power supply. Thank you my good men!
Locked