OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: christech on August 16, 2022, 05:59:38 pm

Title: SDL Help
Post by: christech on August 16, 2022, 05:59:38 pm
I am trying to get OpenTTD and SDLPoP to run but I get an error message about SDL not being able to run in a DOS window. I have SDL installed with YUM. Any suggestions? I tried installing the SDL DLL's from Hobbes but I get the same error.
Title: Re: SDL Help
Post by: Martin Iturbide on August 16, 2022, 07:09:00 pm
Hi ChisTech

I'm trying "SDLPoP_1-16.zip (https://hobbes.nmsu.edu/download/pub/os2/games/action/SDLPoP_1-16.zip)". I'm using ArcaOS 5.0.7 and when I run "prince.exe" I get:
Quote
[C:\HOME\DESKTOP\SDLPOP_1-16\SDLPOP_V1.16]prince
SYS1804: The system cannot find the file SDL2.

[C:\HOME\DESKTOP\SDLPOP_1-16\SDLPOP_V1.16]

I think that "prince.exe" are requesting different SDL libraries that are not on the RPM.

The ones on the RPM are:
SDL2200.dll
SDL2I200.dll
SDL2M200.dll

The ones that asks "prince.exe" are listed on the PMDLL image I'm attaching.
- SDL2.DLL
- SDL2IMG.DLL
- SDL2MIX.DLL

Those DLLs are listed on "SDL2_2-0-4_2020-09-07.zip (https://hobbes.nmsu.edu/download/pub/os2/dev/libraries/graphics/SDL2_2-0-4_2020-09-07.zip)"

This happens because (long story short) we have two different ports of SDL2.

Regards
Title: Re: SDL Help
Post by: Martin Iturbide on August 16, 2022, 07:28:44 pm
Hi

Checking OpenTTD 12.1 (https://hobbes.nmsu.edu/download/pub/os2/games/strategy/OpenTTD_12-1.zip), it uses the SDL2 libraries from the RPM.

But you will get an error when try to load, you need to also get these files to complete game package.

https://www.openttd.org/downloads/opengfx-releases/latest
https://www.openttd.org/downloads/opensfx-releases/latest
https://www.openttd.org/downloads/openmsx-releases/latest

If I don't recall wrong you need to put the .tar files inside the /baseset.

There was a discussion about OpenTTD here (https://www.os2world.com/forum/index.php/topic,3023.msg34409.html#msg34409).

Regards