Page 1 of 2
New stations crashing a40
Posted: 05 Dec 2004 10:18
by cornelius
I've just created a 'clean' copy of TTD with alpha 40 to catch up on all the new stuff that's been released recently, but if I load some of the new stations (either MB's waypoints or the US set stations) the game crashes instantly when I click on the new 'station type' drop down selector.
I'm using the config generated by default by the patch, and it happens when either of these are the only new graphics files loaded. I've got v0.2 of newstatsw.grf and v0.83 of usstatsw.grf. Here's a crash log:
Posted: 05 Dec 2004 17:22
by Patchman
Is that with a new game or an existing game? Are the station graphics active in your grf status window?
Posted: 05 Dec 2004 21:14
by cornelius
Patchman wrote:Is that with a new game or an existing game? Are the station graphics active in your grf status window?
Totally fresh game and the graphics are listed in the status window before it crashes.
Posted: 05 Dec 2004 21:23
by Patchman
Listed with what flag colour? Red or green?
Posted: 06 Dec 2004 21:53
by cornelius
Patchman wrote:Listed with what flag colour? Red or green?
Sorry, green - should have thought to put that down in the last post.
Posted: 18 Dec 2004 11:16
by cornelius
This is still happening with a41. I'm beginning to think it might be something more fundamental to do with the version of TTD I've got.
Posted: 18 Dec 2004 17:44
by Patchman
I'm afraid it's very hard to try and help... if I can't make it crash on my computer too.
I wonder if there's possibly some other .grf file that's interfering? For a test, you could take out everything but one station .grf file and see if that helps.
Posted: 18 Dec 2004 17:53
by cornelius
Patchman wrote:I'm afraid it's very hard to try and help... if I can't make it crash on my computer too.
I wonder if there's possibly some other .grf file that's interfering? For a test, you could take out everything but one station .grf file and see if that helps.
Yeah, I appreciate that it's nigh on impossible to sort out if you can't replicate it. Turning off everything except for the offending grf(s) was one of the first things I tried.
Ah well, I'll just have to stick to a37 if I want to play with new stations I guess.
Posted: 18 Dec 2004 19:39
by Patchman
I meant not just turning them off, but taking them out of the newgrfw.cfg entirely...
Posted: 19 Dec 2004 19:54
by cornelius
Patchman wrote:I meant not just turning them off, but taking them out of the newgrfw.cfg entirely...
The same thing happens. Interestingly the preview version of the Shinkansen stations (sksstats.grf) seems to work fine - it's MB's waypoints and the US set stations that break it :?:
Posted: 24 Dec 2004 18:04
by cornelius
Quick update here: I think this one was actually mostly my fault. I installed the game on Mrs. Cornelius' PC with the latest patch and grf versions and all works fine. I reinstalled on my (virtual) PC and it was still crashing, but when I turned off the new sprite sorter it was all right. The station type text doesn't display though - it's either blank or random sprite garbage.
Posted: 17 Mar 2005 22:10
by cornelius
I still get this problem. Most times I can play with new stations - the game seems to stabilise after a few crashes, but with MB's new stations 0.3 and alpha 46 it's just not having it. Perhaps I need to get hold of an old PC to play on instead of persisting with the Virtual one on my Mac

Posted: 17 Mar 2005 23:40
by krtaylor
Have you tried most-current-Patch? 40 is a little old now you know.
Posted: 17 Mar 2005 23:43
by Patchman
The crashlog was made by a46. This one is a bit more enlightening, it shows that this happens when trying to display the name of some station. I'm still not sure how it can crash, since the name appears to have been set properly (or else ESI would be zero).
What operating system do you have? I'm asking since it seems to assign memory that later become unassigned again, or the crash would've happened when the name was set instead of read.
Posted: 18 Mar 2005 22:14
by cornelius
Patchman wrote:What operating system do you have? I'm asking since it seems to assign memory that later become unassigned again, or the crash would've happened when the name was set instead of read.
Windows 2000 running on Virtual PC on Mac OS X
When stations occasionally work their names are corrupted (random garbage strings or nothing at all get displayed in the drop-downs) so yeah that seems to be the crux of the problem.
Posted: 18 Mar 2005 22:45
by Patchman
Well, I'm afraid I can't help you unless you use some debugger and debug the name assignment and subsequent access to see what's going wrong.
Posted: 18 Mar 2005 22:56
by cornelius
Patchman wrote:Well, I'm afraid I can't help you unless you use some debugger and debug the name assignment and subsequent access to see what's going wrong.
If you can explain how I do that I'll try it. Otherwise Mrs. Cornelius says I can use her PC to play the game... which is probably a decision she'll come to regret

Posted: 18 Mar 2005 23:33
by Patchman
Well, I'd say if I have to explain it, you probably can't do it. You'd need to know i386 assembly language for one thing.
Posted: 18 Mar 2005 23:58
by krtaylor
But it used to work, right? What changed?
Posted: 19 Mar 2005 00:27
by cornelius
krtaylor wrote:But it used to work, right? What changed?
The way you selected station types (the original method with the little left/right arrows was fine). Anyway, it works fine on a real PC, so it doesn't really matter.