Discussion:
OpenTTD not running (was: Morphing a PM app into a VIO app?)
(too old to reply)
Peter Weilbacher
2004-12-27 18:54:10 UTC
Permalink
OK, I have released an update to OpenTTD 0.3.5 at
http://sf.net/projects/openttd/ for anyone interested, featuring working
networking, proper keyboard input support, a working file selector, and
other updates. Hopefully, the OS/2 port should now be equal (if not better
;)) than the other ports... let me know how you get on! Remember to read
both readme.txt and readme_os2.txt before trying to use this, and ensure you
have a copy of the original data files - see www.tt-forums.net for more
information.
Got curious, downloaded and tried, but I just get a beep and openttd
quits. Running
openttd -d3 > stdout.txt 2> stderr.txt
I get this in stderr.txt:
dbg: #Elements 22; #Terminals 2 in 1 group(s); #Helipads 0 in 0 group(s)
dbg: #Elements 25; #Terminals 3 in 1 group(s); #Helipads 0 in 0 group(s)
dbg: #Elements 27; #Terminals 3 in 1 group(s); #Helipads 0 in 0 group(s)
dbg: #Elements 51; #Terminals 6 in 2 group(s); #Helipads 2 in 1 group(s)
dbg: #Elements 9; #Terminals 0 in 0 group(s); #Helipads 1 in 1 group(s)
dbg: Loading sound effects...
ABNORMAL TERMINATION
MMOS2 is installed and works fine otherwise...

Hmm, readme.txt talks about required files from the original game (which
of course I do not have). Should I understand this in that that I need
the original game to play the clone? What then is the open source clone
good for?! It seems I am missing the point... This should be more
prominently stated somewhere before having to download.

(Fup2 .games where this really belongs)
--
Greetings, Please reply in newsgroup, I rarely
Peter. read emails to ***@gwdg.de...
Peter Weilbacher
2004-12-27 19:04:00 UTC
Permalink
Post by Peter Weilbacher
OK, I have released an update to OpenTTD 0.3.5 at
http://sf.net/projects/openttd/ for anyone interested, featuring working
networking, proper keyboard input support, a working file selector, and
other updates. Hopefully, the OS/2 port should now be equal (if not better
;)) than the other ports... let me know how you get on! Remember to read
both readme.txt and readme_os2.txt before trying to use this, and ensure you
have a copy of the original data files - see www.tt-forums.net for more
information.
Got curious, downloaded and tried, but I just get a beep and openttd
quits. Running
openttd -d3 > stdout.txt 2> stderr.txt
dbg: #Elements 22; #Terminals 2 in 1 group(s); #Helipads 0 in 0 group(s)
dbg: #Elements 25; #Terminals 3 in 1 group(s); #Helipads 0 in 0 group(s)
dbg: #Elements 27; #Terminals 3 in 1 group(s); #Helipads 0 in 0 group(s)
dbg: #Elements 51; #Terminals 6 in 2 group(s); #Helipads 2 in 1 group(s)
dbg: #Elements 9; #Terminals 0 in 0 group(s); #Helipads 1 in 1 group(s)
dbg: Loading sound effects...
ABNORMAL TERMINATION
MMOS2 is installed and works fine otherwise...
Hmm, readme.txt talks about required files from the original game (which
of course I do not have). Should I understand this in that that I need
the original game to play the clone? What then is the open source clone
good for?! It seems I am missing the point... This should be more
prominently stated somewhere before having to download.
--
Greetings, Please reply in newsgroup, I rarely
Peter. read emails to ***@gwdg.de...
Peter Weilbacher
2004-12-27 19:05:04 UTC
Permalink
Post by Peter Weilbacher
Hmm, readme.txt talks about required files from the original game (which
of course I do not have). Should I understand this in that that I need
the original game to play the clone? What then is the open source clone
good for?! It seems I am missing the point... This should be more
prominently stated somewhere before having to download.
OK, sorry. It _is_ clearly stated on the main OpenTTD download page,
just not on the sourceforge page from where I got it.
--
Greetings, Please reply in newsgroup, I rarely
Peter. read emails to ***@gwdg.de...
Owen Rudge
2004-12-27 23:41:49 UTC
Permalink
Hi,

(crossposting due to programming issue in reply)
Post by Peter Weilbacher
Hmm, readme.txt talks about required files from the original game (which
of course I do not have). Should I understand this in that that I need
the original game to play the clone? What then is the open source clone
good for?! It seems I am missing the point... This should be more
prominently stated somewhere before having to download.
Well, at the moment, you do need the original data files. (It should pop up
a message box, but for some reason, it doesn't want to - anyone any ideas
why?:

void ShowInfo(const char *str)
{
WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, str, "OpenTTD", 0, MB_OK |
MB_SYSTEMMODAL | MB_MOVEABLE | MB_INFORMATION);
}

). New, free replacement files are being worked on, but as you might
imagine, it can be a long process. OpenTTD was originally created to enable
people on other operating systems - other than the original Windows and
DOS - to play the game, and then new features could be added onto it. I
understand though that some people obviously won't have the original data
files, but feel free to check the forums at www.tt-forums.net to see if
there's any progress, or to see if you can find them elsewhere.

Hope this helps clarify things!
--
Owen Rudge
http://www.owenrudge.net/

MSN Messenger: ***@owenrudge.net
ICQ: 125455765
Peter Weilbacher
2004-12-28 03:01:43 UTC
Permalink
Post by Owen Rudge
void ShowInfo(const char *str)
{
WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, str, "OpenTTD", 0, MB_OK |
MB_SYSTEMMODAL | MB_MOVEABLE | MB_INFORMATION);
}
Perhaps you need to use &str? But it's too late for me to really
understand the Toolkit Docs...
Post by Owen Rudge
New, free replacement files are being worked on, but as you might
imagine, it can be a long process. OpenTTD was originally created to enable
people on other operating systems - other than the original Windows and
DOS - to play the game, and then new features could be added onto it. I
understand though that some people obviously won't have the original data
files, but feel free to check the forums at www.tt-forums.net to see if
there's any progress, or to see if you can find them elsewhere.
Hope this helps clarify things!
Yes, perfectly, thanks! It was mostly just my initial disappointment
speaking... I will definitely try to keep up with the progress, but
unfortunately I personally feel lost very quickly in this kind of forum.
(That's why I hang out here. :-) )
--
Greetings, Please reply in newsgroup, I rarely
Peter. read emails to ***@gwdg.de...
unknown
2004-12-28 07:55:28 UTC
Permalink
Post by Owen Rudge
Well, at the moment, you do need the original data files. (It should pop up
a message box, but for some reason, it doesn't want to - anyone any ideas
void ShowInfo(const char *str)
{
WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, str, "OpenTTD", 0, MB_OK |
MB_SYSTEMMODAL | MB_MOVEABLE | MB_INFORMATION);
}
the PM environment must be initialized before calling WinMessageBox :

// init PM env.
hmq = WinCreateMsgQueue((hab = WinInitialize(0)), 0);

// display the box
rc = WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, pszText, pszTitle, 0, style);

// terminate PM env.
WinDestroyMsgQueue(hmq);
WinTerminate(hab);

of course if PM had already been initialized the problem is elsewhere...

besides that:

!!!!! YOU MUST NEVER USE MB_SYSTEMMODAL FOR APPLICATION MESSAGE BOXES !!!!!

OS/2 is not Windows 3.x ! Your application must not stop all the system
to display a stupid error message !

just remove that flag and the message box will be application modal
i.e. will stop only your application.

--
bye
Alessandro Cantatore
email reply to: acantatore_at_tin_dot_it
Owen Rudge
2004-12-28 11:59:33 UTC
Permalink
Post by unknown
!!!!! YOU MUST NEVER USE MB_SYSTEMMODAL FOR APPLICATION MESSAGE BOXES !!!!!
I originally had an application modal dialog, that was just for testing to
see if it helped make it appear, don't worry, I'll remove it before
releasing anything. ;-)

Thanks for your help, it's working perfectly now!
--
Owen Rudge
http://www.owenrudge.net/

MSN Messenger: ***@owenrudge.net
ICQ: 125455765
Loading...