storm-devs / coas

compatible COAS scripts
2 stars 2 forks source link

Crash when switching locations #1

Open Hammie opened 3 years ago

Hammie commented 3 years ago

It's possible to get a black screen and crash the game when switching between scenes.

System logs makes mentions of carriers:

[2021-07-16 23:21:35.915] [system] [info] Warning: NPCharacter <Carrier_349>-> trace node not found
[2021-07-16 23:21:35.916] [system] [info] Warning: NPCharacter <Carrier_350>-> trace node not found
[2021-07-16 23:21:35.917] [system] [info] Warning: NPCharacter <Carrier_351>-> trace node not found

So it might be related to pathfinding

Savegame

arbasgit commented 2 years ago

Tested several times. Following instructions I added files to a GOG installation copy, I did run the python file and added the engine files. The game runs with default 1280x960 window. The config.exe doesn't show my resolution so instead I modified the engine.ini to play with 1920x1080 (my screen) but it doesn't switch to correct resolution. I changed engine.ini to full_screen and it crashed. I switched back to not full_screen and now it works in my resolution but when going from one scene to another, i.e. from land to sea or viceversa, the back images loaded while doing the transition are loaded in another resolution, I think it's 1024x768 or similar. So there is a colored flickering in the areas not covered by the image.

However I can play 1920x1080 with both AOP GOG games (tales and COAS) with a renderer file from this mod: aop-historical-immersion-mod-v50-standalone

Quote from the description: "Engine Enhancements: Updated game engine to STORM ENGINE 2.8. This fixed a lot of issues with the older storm engine and allows for interface scaling and support for higher resolutions."

I just have to add this lines to engine.ini "[RenderingDevice] Render path = modules\renderer\ Device = dx9"

And then I have to copy \modules\dx9.dll from that mod to my not modded games. It works flawless. I can play with wide screen 1920x1080, full_screen, HyperThreading and PostProcess. The transition back images are loaded with the correct resolution. And the INI option [RenderingDevice] is included in the original game because I don't need to change anything in the vanilla installation, so it seems to me like the natural way to do it.

But the new engine doesn't use that option and the back images aren't loaded with the correct resolution. Maybe I didn't install dx9 runtimes correctly because I don't know where and how. It just installs a lot of cabinet files. Or maybe my folders or my way of copy pasting files from GOG installation to another folder isn't the correct way. All I know is that the mod was made by a Pirates Ahoy member and apparently these problems were already solved. It's as easy as copying a single file and adding 2 lines to engine.ini. If the dll file is a standard directx file I think it should be used to run these games.

Now, I'm compiling the engine and I can modify the COAS dll files which is wonderful for me so I'm not complaining. Apparently the game works well but I'm just starting a new game every time I modify something. I just want to warn you developers about this issue in case you didn't know. Let me know if this isn't important and I will delete this comment. Thank you.