The International Simutrans Forum

 

Author Topic: cityrules.tab  (Read 313 times)

0 Members and 1 Guest are viewing this topic.

Online ampersand

  • *
  • Posts: 94
  • Languages: EN, FR, PL
cityrules.tab
« on: February 14, 2020, 03:01:41 PM »
In the current version there are a couple of different files in the config folder. In one of the recent topics there are some guidelines how does it work. Could anyone please explain anything more on what kind of rules you have decided to include and how to use them all?

In my personal case, I don't ever change anything in the default settings and finish with cities sprawling out with allotments. I wonder if this is the direct reason to never see the elaborated high level buildings contained in the last versions of the pakset.

Offline makie de

  • *
  • Posts: 124
    • Homepage PAK128-German
  • Languages: DE
Re: cityrules.tab
« Reply #1 on: February 14, 2020, 04:38:43 PM »
Quote
In one of the recent topics there are some guidelines how does it work.
This is Simutrans Extended and a other Pak.
I don't know if Extended work like Standard.
Quote
In the current version there are a couple of different files in the config folder
Normally is is no need to change something here.
Normally cityrules.tab is used. But you can rename the other cityrules_??? ??.tab to cityrules.tab.
VS??? means Version of the Pak
cityrules_VS1.1.tab = old file from pak128.german version 1.1
the other files corresponding

For Version 1.2 i had written the file new from scratch.
there are a version with Highways (mit_Autobahn) and one without (ohne_Autobahn)

about the parameter of the cityrule.tab file
look here
https://simutrans-germany.com/wiki/wiki/de_cityrules_tab?highlight=cityrules

Quote
In my personal case, I don't ever change anything in the default settings and finish with cities sprawling out with allotments. I wonder if this is the direct reason to never see the elaborated high level buildings contained in the last versions of the pakset.
Sorry this is a bug in the official Version in 1.2 at sourceforge, your guess is correct.
If you download from https://pak128-german.de/ the bug should be solved.
Sadly i have no writing access to the file section of sourceforge to fix this.
This is the reason of no announcement for Version 1.2.
But we work on Version 1.3, i think it comes soon.
« Last Edit: February 16, 2020, 04:59:20 PM by makie »

Offline Freahk

  • *
  • Posts: 581
  • Languages: DE, EN
Re: cityrules.tab
« Reply #2 on: February 14, 2020, 07:42:50 PM »
I don't know if Extended work like Standard.
No! Whilst cityrules itself work the same afaik, city growth is entirely different.
That means the road patterns are still determined by cityrules but the decision if we want to upgrade a building or build a new one and in which area of the town works entirely different.

Offline makie de

  • *
  • Posts: 124
    • Homepage PAK128-German
  • Languages: DE
Re: cityrules.tab
« Reply #3 on: February 14, 2020, 08:38:44 PM »
No! Whilst cityrules itself work the same afaik, city growth is entirely different.
That means the road patterns are still determined by cityrules but the decision if we want to upgrade a building or build a new one and in which area of the town works entirely different.
The road patterns are just the syntax.
If the coding for decision upgrade or build a new one and in which area is different,
then the result is also completely different.
I have analyzed the coding, and write the cityrules, so i get what i want.
I get around a bug and use it.
No, that's sensitive and tricky, the bug with the allotment garden epidemic shows it.
The bug is only a missing clusters parameter in some allotment garden.
And cities growing along diagonal streets is another example.
« Last Edit: February 14, 2020, 09:01:19 PM by makie »

Online ampersand

  • *
  • Posts: 94
  • Languages: EN, FR, PL
Re: cityrules.tab
« Reply #4 on: February 16, 2020, 02:23:34 PM »
 Thank you all for the explanations.

Normally cityrules.tab is used. But you can rename the other cityrules_??? ??.tab to cityrules.tab.
VS??? means Version of the Pak
cityrules_VS1.1.tab = old file from pak128.german version 1.1
the other files corresponding

For Version 1.2 i had written the file new from scratch.
there are a version with Highways (mit_Autobahn) and one without (ohne_Autobahn)
This is what I asked for. After changing to v1.2 highways work inside the cities created at the start of the game.
v1.2 also contain renovation_percentage = 4, I'll try to observe how this works in a longer game.

Offline makie de

  • *
  • Posts: 124
    • Homepage PAK128-German
  • Languages: DE
Re: cityrules.tab
« Reply #5 on: February 16, 2020, 04:56:26 PM »
  renovation_percentage = 4, I'll try to observe how this works in a longer game.

renovation_percentage is a simple and problem-free parameter with great effect. You can change the value between 1 and 10 to adjust the city growth to your liking. I would change this parameter rather than switch the file.

1 = city like a pancake
10 = level of the houses go fast up to maximum
« Last Edit: February 16, 2020, 05:12:25 PM by makie »

Offline Isaac.Eiland-Hall us

  • Benevolent Dictator
  • Administrator
  • *
  • Posts: 3680
  • PanamaCityPC.com/support/
    • Facebook Profile
  • Languages: EN
Re: cityrules.tab
« Reply #6 on: February 16, 2020, 07:17:43 PM »
1 = city like a pancake

I dunno, have you *seen* Japanese pancakes? :)

Offline makie de

  • *
  • Posts: 124
    • Homepage PAK128-German
  • Languages: DE
Re: cityrules.tab
« Reply #7 on: February 16, 2020, 07:46:43 PM »
ok :) like Crepes, have you seen french Crepes :P

Offline Matthew gb

  • *
  • Posts: 318
    • Japan Railway Journal
  • Languages: EN, some ZH, DE & SQ
Re: cityrules.tab
« Reply #8 on: February 17, 2020, 12:52:22 AM »
I dunno, have you *seen* Japanese pancakes? :)

Well, thanks to your post, my concept of pancake has been extended. Those are very different!

Back on topic: for a long time all cities in Simutrans-Extended have been exactly square. So I am curious: in pak128.German, when a city extends, does it build a road first or a haus first? Or is it a chicken-and-egg situation?

Offline makie de

  • *
  • Posts: 124
    • Homepage PAK128-German
  • Languages: DE
Re: cityrules.tab
« Reply #9 on: February 17, 2020, 06:59:57 AM »
Street first.
extend roads from city to city to highways
no street without other street
no house without street and without other house
the city grows from Downtown outside
leaving a old town behind
tries to build trabant urban respectively satellite town with blocks of flats

the thread of this work
https://www.simutrans-forum.de/mybb/showthread.php?tid=9095