DOS r2264 fails to run under DOSBox

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Post Reply
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

DOS r2264 fails to run under DOSBox

Post by WWTBAM »

I just downloaded DOS r2264 and it fails to run under DOSBox with the error: TTDPatch: Failed to find string #0000 at 0024E454, found 02/01 at 00173E80 for oldfinishclosewindow in patchwindow2
Result: [Error!]
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by DaleStan »

Does it say "Result: [OK]" (I think) if you start it as "ttdpatch -!T+v+"? (without the quotes, of course)
It won't actually start this way, though.

Also, please post your ttdpatch.cfg and, if possible, figure out the most recent version that did work.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by WWTBAM »

No it does not say Result: [OK]. It gives me Result: [Error!] plus the same message plus FAILED to collect version information.
Attachments
TTDPATCH.CFG
(37.07 KiB) Downloaded 188 times
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
SmatZ
OpenTTD Developer
OpenTTD Developer
Posts: 351
Joined: 03 Oct 2006 18:26
Location: Prague, Czech Republic
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by SmatZ »

I have the same problem-
last working revision r2154
first broken r2160
"ttdpatch -!T+v+" doesn't help

I deleted ttdpatch.cfg and ttdload.ovl before starting ttdpatch, with no effect.
Attachments
ttdpatch.png
ttdpatch.png (23.6 KiB) Viewed 6213 times
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by DaleStan »

OK, now I'm just more confused.
If 2154 works and 2160 does not, that means that either 2159 or 2160 broke it, but neither looks even vaguely suspicious.
Furthermore, that memory address makes no sense whatsoever; it's not in a location that I would consider patching, and the code there (in the IDA DB) does not match the codefragment that Patch says it finds.

One more thing to check while I'm trying to wrap my brain around this: Does it still happen with no newgrfs?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by WWTBAM »

I got DOS TTDP r2160 to fail in DOSBox with no GRFs except for ttdpbase.grf
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
User avatar
JGR
Tycoon
Tycoon
Posts: 2559
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: DOS r2264 fails to run under DOSBox

Post by JGR »

http://svn.ttdpatch.net/trac/changeset/2159#file8
Might that have something to do with it?

@Robotboy, SmatZ
For testing purposes, perhaps try running it with enhancegui turned off...
Ex TTDPatch Coder
Patch Pack, Github
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by WWTBAM »

I tried turning it off and it still didn't work. I had to manually add the line at the bottom.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by Lakie »

Remember that various patches can enable other patches (internally), such is the case of enhance gui.
I imagine quite a few other patches enable it as a dependency...

[Edit] Only newstations will turn on enhancegui in this way.

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by WWTBAM »

Turning newstations off fixed the issue.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
SmatZ
OpenTTD Developer
OpenTTD Developer
Posts: 351
Joined: 03 Oct 2006 18:26
Location: Prague, Czech Republic
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by SmatZ »

I managed to run TTDP r2305 with "allnoconfig", eg. "ttdpatch -W ttdpatch.cfg", that created config with all settings "off". It crashed with page fault "randomly" (not every time, sometimes I managed to start new game, sometimes it even crashed dosbox).

Attached config causes the game to crash as shown in the attached screenshot, enabling cargodest causes the original problem - TTDP doesn't even start. I will try to run TTDP on a real hardware, as this can be caused by imperfect DOSBox emulation.
Attachments
TTDPATCH.CFG
config that allows me to run TTDP, but often crashed with page fault
enabling cargodest makes it fail to even start
(32.2 KiB) Downloaded 185 times
crash with attached config
crash with attached config
r2305.png (383.83 KiB) Viewed 6099 times
dosbox.cfg
dosbox config - it doesn't let me attach dosbox.conf
(9.69 KiB) Downloaded 189 times
Image
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by WWTBAM »

I tried starting TTDPatch using r2306 using my old CFG that worked with the first broken version but now it doesnt, it is TTDPATCH.cfg attatched below. I then ran TTDPATCH using "TTDPATCH -W test.cfg -C test.cfg" this worked and I did not get a page fault for multiple minutes.
Attachments
TEST.CFG
(32.2 KiB) Downloaded 186 times
TTDPATCH.CFG
(37.09 KiB) Downloaded 161 times
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by WWTBAM »

DOS TTDP r2306 fails to run on MS-DOS5 on real hardware. I get the same nessage before TTD loads.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Re: DOS r2264 fails to run under DOSBox

Post by WWTBAM »

Is there any more information I can provide to help get this fixed?
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
ConiKost
Engineer
Engineer
Posts: 69
Joined: 02 Jun 2002 15:21

Re: DOS r2264 fails to run under DOSBox

Post by ConiKost »

Any news on this? I've the same problem with "pure dos" on my k6.
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 28 guests