Assert error

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
MrMox
Transport Coordinator
Transport Coordinator
Posts: 260
Joined: 22 Mar 2007 07:51
Location: Denmark
Contact:

Assert error

Post by MrMox »

I've been getting an assert with OTTD nightly r11703 as shown in the attached screen shot. I think the problem might be related to the new North American Building Set (v0.1b) (the only change to my config apart from using the latest nightly). The assert occurred after I selected the Land Area Information tool and then clicked on a building. I was able to continue playing after clicking Ignore on the assert (and two subsequent asserts) but the assert kept reappearing when using the Info tool.
Attachments
Assert...
Assert...
Assert.png (101.28 KiB) Viewed 2679 times
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: Assert error

Post by LordAzamath »

confirmed. I just tested it. I think it has something to do with grf, not open. Yesterday, when I wanted to code some grf I made some mistakes and openttd crashed too...

EDIT: I was told that "Simple rule if it works in Patch as expected.. it's mostly Opens fault... sad but true"
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.
MrMox
Transport Coordinator
Transport Coordinator
Posts: 260
Joined: 22 Mar 2007 07:51
Location: Denmark
Contact:

Re: Assert error

Post by MrMox »

Here's a saved game that shows the problem. Click on the marked house with the Info tool to get the assertion. Only the new NACity 0.1b grf is loaded.
Attachments
Assert.sav
Savegame...
(24.8 KiB) Downloaded 153 times
vanOekelen
Engineer
Engineer
Posts: 28
Joined: 18 Jun 2007 19:06

Re: Assert error

Post by vanOekelen »

A few houses in TTRS 3.02a have the same problem.
See the house with the sign in the attached save game.
Attachments
ttrscrash.sav
Will crash openttd 0.6.0 beta 2 when house with sign gets clicked on with the question mark.
(36.94 KiB) Downloaded 169 times
User avatar
OzTrans
Tycoon
Tycoon
Posts: 1714
Joined: 04 Mar 2005 01:07

Re: Assert error

Post by OzTrans »

... assertion with NA City ...
This looks to be a bug in OpenTTD; it has problems to retrieve the house name, when querying the tile.

Now, that house uses 0x2037 as text ID (from the default list of text string definitions). If I change that into a custom text string (defined via action-4) the problem goes away. I have not found any other buildings that suffer the same fate, unless they have said text ID.

I can fix that in NA City by using a custom text instead of 2037, but the problem should be looked at by OpenTTD devs.
User avatar
Maedhros
OpenTTD Developer
OpenTTD Developer
Posts: 603
Joined: 30 Mar 2006 18:24
Location: Durham, UK

Re: Assert error

Post by Maedhros »

The problem is that OpenTTD's lang files have strings added all over the place, so we have to map the string ids that TTDPatch uses to the right string ids for OpenTTD. The ranges from 0x2037 to 0x2041 and 0x2059 to 0x205C were missed, so the buildings were using the wrong ids.

I've fixed this in trunk now (r11712), so both NACity and TTRS3 will be fine in the next release.
No-one's more important than the earthworm.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 42 guests