The International Simutrans Forum

 

Author Topic: [r9274] crashed with 4x4 multi tile city building  (Read 571 times)

0 Members and 1 Guest are viewing this topic.

Offline koa_jp

  • *
  • Posts: 5
  • Japanese Wiki moderator
  • Languages: JP,EN
[r9274] crashed with 4x4 multi tile city building
« 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?

Online Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4930
  • Languages: EN, DE, AT
Re: [r9274] crashed with 4x4 multi tile city building
« Reply #1 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?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10976
  • Languages: De,EN,JP
Re: [r9274] crashed with 4x4 multi tile city building
« Reply #2 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

Offline koa_jp

  • *
  • Posts: 5
  • Japanese Wiki moderator
  • Languages: JP,EN
Re: [r9274] crashed with 4x4 multi tile city building
« Reply #3 on: September 11, 2021, 12:46:13 PM »
I see.
I make 4x4 building as cur.

Online Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4930
  • Languages: EN, DE, AT
Re: [r9274] crashed with 4x4 multi tile city building
« Reply #4 on: September 11, 2021, 02:16:14 PM »
But still, 4x4 should not crash the program.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10976
  • Languages: De,EN,JP
Re: [r9274] crashed with 4x4 multi tile city building
« Reply #5 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.

Offline koa_jp

  • *
  • Posts: 5
  • Japanese Wiki moderator
  • Languages: JP,EN
Re: [r9274] crashed with 4x4 multi tile city building
« Reply #6 on: September 12, 2021, 12:09:45 AM »
Attached file is 4x4 city building pak file.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10976
  • Languages: De,EN,JP
Re: [r9274] crashed with 4x4 multi tile city building
« Reply #7 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.