Author Topic: Please test - OpenTTD v12.1  (Read 24342 times)

David McKenna

  • Hero Member
  • *****
  • Posts: 905
  • Karma: +35/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #30 on: July 13, 2025, 03:07:52 pm »
 Glad it works for you too. Besides the music, the only other thing I found that doesn't work is on the 'Help and Manuals' dialog, on the 'Websites' column everything there will lock the process - I presume because there needs to be a way to open a browser that is not implemented for OS/2.

 I'm using KSoftSeq for MIDI, but maybe SDL doesn't recognize MIDI on OS/2?

Regards,
« Last Edit: July 13, 2025, 03:11:09 pm by David McKenna »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2548
  • Karma: +200/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #31 on: July 14, 2025, 05:03:27 am »
It's probably easy enough to backport the changes to allow the browser to work, same with the music code. Seems the music doesn't use SDL - I didn't look at the old code closely, but seems it calls the OS/2 api directly:
https://github.com/OpenTTD/OpenTTD/blob/release/13/src/music/os2_m.cpp

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2548
  • Karma: +200/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #32 on: July 14, 2025, 10:44:44 am »
Seems OS/2 never supported the browser.... https://github.com/OpenTTD/OpenTTD/blob/release/13/src/os/os2/os2.cpp#L208

https://smedley.id.au/tmp/openttd-14.1-exe-os2-20250714.zip is a new openttd.exe that should fix music (if the sound hardware supports midi)

David McKenna

  • Hero Member
  • *****
  • Posts: 905
  • Karma: +35/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #33 on: July 14, 2025, 12:27:42 pm »
Hey Paul,

  Thanks for this! It seems OK, but I still can't get music to play. I do have a MIDI object for WPS playing and I can play the MIDI files for the game from the WPS. Do I need to specify a 'music driver' in openttd.cfg for OS/2?

Regards,

EDIT: I had the idea to try the SoundBlaster 16 emulation and driver because it had MIDI support natively. The SB16 PNP driver from the 5.1.1 install CD installed OK, but on boot it says the SB16D2.SYS driver was not initialized. Anybody ever get the SoundBlaster driver working with VirtualBox?
« Last Edit: July 14, 2025, 08:45:48 pm by David McKenna »

Jan-Erik Lärka

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 345
  • Karma: +7/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #34 on: July 14, 2025, 08:48:00 pm »
Hello David,

how do one run it?
what do one need to use it? (yum /y install SDL2)
any need to manually download the 3 game packages from the site?

David McKenna

  • Hero Member
  • *****
  • Posts: 905
  • Karma: +35/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #35 on: July 14, 2025, 09:03:21 pm »
Jan-Erik,

  I have SDL2 installed, but version 2.0.18 (which is not the most recent - that one I had trouble with). I think you need SDL2_Mixer as well, but I have all the SDL2 items installed so not sure.

  The 3 packages can be downloaded from within OpenTTD. The graphics will be downloaded the first time you run OpenTTD. The 2 sound files have to be selected from the 'Check Online Content' dialog to download them. Then you need to go into 'Game Options -> 'Sound' and choose the sound effects and music to use from their drop-down menus.

 Just double-click on openttd.exe to run...

Regards,

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5370
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Please test - OpenTTD v12.1
« Reply #36 on: July 14, 2025, 10:31:21 pm »
Hello David,

how do one run it?
what do one need to use it? (yum /y install SDL2)
any need to manually download the 3 game packages from the site?

Hello

Quote
You can use RPM/YUM
- yum install SDL2

The graphic resource files will be automatically download at the first run of the program with user confirmation

Go to "Check Online Content" and select to download:
- Base Music OpenMSX
- Base Sounds OpenSFX

Go to "Game Options" and in the "Sound" tab select "Base Sound set = OpenSFX".

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5370
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Please test - OpenTTD v12.1
« Reply #37 on: July 14, 2025, 10:38:50 pm »
Hello Paul

I tried the 2025-07-14 version and works fine. Still not MIDI sound, but it is working good.

Let me know if you like this packaging for it, with the updated readme and icons.

Regards
« Last Edit: July 14, 2025, 10:45:54 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2548
  • Karma: +200/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #38 on: July 15, 2025, 12:19:05 pm »
Can anyone confirm that mido sound worked in older versions?

Roderick Klein

  • Hero Member
  • *****
  • Posts: 742
  • Karma: +15/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #39 on: July 15, 2025, 07:14:44 pm »
No never tested that with MIDI.

Sorry

Roderick

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5370
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Please test - OpenTTD v12.1
« Reply #40 on: July 15, 2025, 08:57:34 pm »
Hello Paul

I tried OpenTTD 12.1 and MIDI and sound does not work. I can not run older version of OpenTTD because there are some SDL1 incompatibilities.
My personal opinion is that MIDI never worked.

What you may want to check is that PRBoom+ (Doom Port) can run MIDI but uses the fluidsynth library.

Regards
« Last Edit: July 15, 2025, 09:37:37 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2548
  • Karma: +200/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #41 on: July 16, 2025, 01:45:14 am »
You might be overestimating my interest levels in getting midi working ;)

Jan-Erik Lärka

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 345
  • Karma: +7/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #42 on: July 16, 2025, 07:19:06 am »
For new user trying it output:
[D:\OpenTTD]openttd
Error: No available language packs (invalid versions?)

the important thing to look for is to check what version you're trying of OpenTTD and download the Windows-32-bit .zip (for OpenTTD 14.1: "openttd-14.1-windows-win32.zip") package that contain all the files needed, unpack them (except openttd.exe) next to openttd.exe by Paul.
« Last Edit: July 16, 2025, 07:21:31 am by Jan-Erik Lärka »

Roderick Klein

  • Hero Member
  • *****
  • Posts: 742
  • Karma: +15/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #43 on: July 16, 2025, 04:02:13 pm »
You might be overestimating my interest levels in getting midi working ;)

For most OS/2 installations (except if you are in a VM). Midi with Tmidity will not work anyway as uniaud only supports one audio channel.
So you can not have wave audio and MIDI active at the same time.

Thank you Paul for getting this work!

Roderick

Roderick Klein

  • Hero Member
  • *****
  • Posts: 742
  • Karma: +15/-0
    • View Profile
Re: Please test - OpenTTD v12.1
« Reply #44 on: July 16, 2025, 04:02:51 pm »
For new user trying it output:
[D:\OpenTTD]openttd
Error: No available language packs (invalid versions?)

the important thing to look for is to check what version you're trying of OpenTTD and download the Windows-32-bit .zip (for OpenTTD 14.1: "openttd-14.1-windows-win32.zip") package that contain all the files needed, unpack them (except openttd.exe) next to openttd.exe by Paul.


Hmmm trying setting the set lang to en_us....

It might fix it :-)

Roderick