The International Simutrans Forum

Development => Bug Reports => Known bugs and features => Topic started by: koa_jp on September 10, 2021, 11:49:07 AM

Title: [r9274] crashed with 4x4 multi tile city building
Post by: koa_jp on September 10, 2021, 11:49:07 AM
Hi.

I made 4x4 city building addon (makeobj version 60.5).
But simutrans.exe (r9274) is crashed when addons loaded.
2x2 and 3x3 are worked.
What's the cause?
Title: Re: [r9274] crashed with 4x4 multi tile city building
Post by: Dwachs on September 10, 2021, 03:22:03 PM
I would guess that only sizes up to 3x3 are supported. But this can change. Can you please upload this pak file?
Title: Re: [r9274] crashed with 4x4 multi tile city building
Post by: prissi on September 11, 2021, 12:24:15 PM
A 4x4 city building is not recommended, since th\is will screw up all further citygrowth. Max size in the code allowed is 3x3
Title: Re: [r9274] crashed with 4x4 multi tile city building
Post by: koa_jp on September 11, 2021, 12:46:13 PM
I see.
I make 4x4 building as cur.
Title: Re: [r9274] crashed with 4x4 multi tile city building
Post by: Dwachs on September 11, 2021, 02:16:14 PM
But still, 4x4 should not crash the program.
Title: Re: [r9274] crashed with 4x4 multi tile city building
Post by: prissi on September 11, 2021, 03:05:57 PM
Such large buildings are not tested, maybe there is a problem next to the map borders. However, most easy would be if you upload your pak file for testing.
Title: Re: [r9274] crashed with 4x4 multi tile city building
Post by: koa_jp on September 12, 2021, 12:09:45 AM
Attached file is 4x4 city building pak file.
Title: Re: [r9274] crashed with 4x4 multi tile city building
Post by: prissi on September 12, 2021, 12:48:47 AM
Actually, SImutrans crashes when displaying the error message on loading: "Maximum city building size 3x3", because of an error in the format string. It could load larger buildings, but they will be never ever built, because the city rules usually only check 3x3 places. So better make it a cur indeed.