OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Games => Topic started by: Paul Smedley on March 13, 2022, 02:11:21 am

Title: Please test - OpenTTD v12.1
Post by: Paul Smedley on March 13, 2022, 02:11:21 am
Hi all,

Again thanks to Martin for the suggestion,  I spent a few  hours building OpenTTD v12.1 (https://www.openttd.org/)

https://smedley.id.au/tmp/openttd-12.1-os2-20220313.zip  - please  see the readme.os2 for installation instructions - including where to download  the required additional files.

Cheers,

Paul
Title: Re: Please test - OpenTTD v12.1
Post by: Martin Iturbide on March 13, 2022, 04:16:20 pm
Hi Paul

I'm trying again OpenTTD from scratch on real hardware.
- Got openttd-12.1-os2-20220313.zip
- Installed sdl2, sdl2_mixer, sdl2_ttf & sdl2_image (from RPM)
- Downloaded opengfx, opensfx, openmsx and located the files on ./baseset
  -- First I put the unzipped file directly on  ./baseset and later I just set the .tar files there.
If I run openttd I get an exception. Here it is the log file.

What else can you see I may be missing, because I got it working on my VM yesterday.

Regards
Title: Re: Please test - OpenTTD v12.1
Post by: Paul Smedley on March 13, 2022, 09:56:54 pm
Hey Martin,

That's a very different trap to what  we were getting yesterday -  appears to stem from SDL. I have no real idea on how to resolve.

Cheers,

Paul
Title: Re: Please test - OpenTTD v12.1
Post by: Jochen Schäfer on March 14, 2022, 02:34:15 pm
The crash is happening in LIBCN.
@Paul: did you explicitely link LIBCN to OpenTTD? My observation is, that it is often needed. I guess, some startup code is needed.

@Martin: Which SDL2 version you are running with?
Title: Re: Please test - OpenTTD v12.1
Post by: David McKenna on March 14, 2022, 03:21:32 pm
Hey Paul,

  I can get it to run, but the small window updates only once per second, so is very difficult to use. Tried changing refresh rate but it doesn't seem to make any difference. After a short while I get a trap in DIVE.DLL (attached).

Regards,
Title: Re: Please test - OpenTTD v12.1
Post by: Paul Smedley on April 18, 2022, 02:26:27 am
Updated to  v12.2

Full package - SDL2 based - https://smedley.id.au/tmp/openttd-12.2-os2-20220416.zip
openttd.exe only - SDL1.2 based - https://smedley.id.au/tmp/openttd-12.2-os2-20220418-sdl12.zip

I'm interested to  hear if the SDL1.2 build performs better than the SDL2 build.
Title: Re: Please test - OpenTTD v12.1
Post by: Martin Iturbide on April 18, 2022, 03:52:07 am
Hi Paul

Both gave me an exceptq trap on my Thinkpad L420. (not a VM)

Regards

Title: Re: Please test - OpenTTD v12.1
Post by: Dave Yeo on April 18, 2022, 06:35:44 am
Hi Martin, I had the same, fixed by downloading and installing the graphics etc from openttd.org as described in the readme.os2

Hi Paul, tried both, both really slow and I lost interest. This is a 3.1Ghz I5 with lots of memory.
Title: Re: Please test - OpenTTD v12.1
Post by: Paul Smedley on April 18, 2022, 08:56:21 am
Hey Dave,

Hi Paul, tried both, both really slow and I lost interest. This is a 3.1Ghz I5 with lots of memory.

Interesting - I remember older versions (I'm talking 5+ years ago) being playable - I wonder what has changed.

Cheers,

Paul
Title: Re: Please test - OpenTTD v12.1
Post by: Dave Yeo on April 18, 2022, 04:23:38 pm
Hey Dave,

Hi Paul, tried both, both really slow and I lost interest. This is a 3.1Ghz I5 with lots of memory.

Interesting - I remember older versions (I'm talking 5+ years ago) being playable - I wonder what has changed.

Cheers,

Paul

Maybe expects 3D acceleration?
Title: Re: Please test - OpenTTD v12.1
Post by: Dave Yeo on April 18, 2022, 06:17:52 pm
Revisiting, it seems to be the mouse pointer that's the problem. Freshly booted system to a Panorama install (last test was SNAP), CPU usage is about zero, as soon as the mouse pointer hovers over the OpenTTD window, the mouse pointer changes to orange and things become unusable in the OpenTTD window with one core at about 2% cpu.
I guess see if there's an option to disable the mouse pointer grab, it would fix things.
Title: Re: Please test - OpenTTD v12.1
Post by: Martin Iturbide on April 18, 2022, 11:47:34 pm
Hi Martin, I had the same, fixed by downloading and installing the graphics etc from openttd.org as described in the readme.os2

Thanks Dave, I forgot about the baseset files.

Both run, but pointer is very slow, just like everyone else is reporting. I don't notice any difference between SDL 1 or SDL2.

Regards
Title: Re: Please test - OpenTTD v12.1
Post by: Paul Smedley on April 19, 2022, 04:51:27 am
Hey guys,
Both run, but pointer is very slow, just like everyone else is reporting. I don't notice any difference between SDL 1 or SDL2.

Interesting - I'll have to see if I can disable the code that changes the mouse cursor and see if that improves things.

Cheers,

Paul.