The International Simutrans Forum

 

Author Topic: New features in Standard nightlies  (Read 3667 times)

0 Members and 1 Guest are viewing this topic.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18696
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
New features in Standard nightlies
« on: May 02, 2010, 09:41:35 AM »
In recent versions of Simutrans-Standard (and therefore also Experimental), there have been a couple of new features which merit consideration for implementation in Pak128.Britain. The first is the ability to vary the starting money with the starting year; the second, introduced in the last day, is a timeline of city roads. Both of these would be relatively easy to put in, I think, and would be worthwhile for the pakset.

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: New features in Standard nightlies
« Reply #1 on: May 02, 2010, 09:47:05 AM »
.... The first is the ability to vary the starting money with the starting year; ....

this is included in version 0.102.2.2

but seems only to work for -singleuser

pak.german 0.102.2.2 included this

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18696
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New features in Standard nightlies
« Reply #2 on: May 02, 2010, 09:56:33 AM »
Frank,

any idea why it only works with -singleuser?

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: New features in Standard nightlies
« Reply #3 on: May 02, 2010, 10:12:18 AM »
no

bug report in german forum not feedback from other users

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4587
  • Languages: EN, DE, AT
Re: New features in Standard nightlies
« Reply #4 on: May 02, 2010, 10:29:54 AM »
Works for me both with and without -singleuser.

Even if startingmoney and startingmoney[0] are written in the user simuconf.tab.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18696
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New features in Standard nightlies
« Reply #5 on: May 02, 2010, 10:32:31 AM »
I have tested, and this is a working configuration:

Code: [Select]
city_road[0]=city_road,1905,2050
city_road[1]=cobblestone_road,1781,1904
city_road[2]=dirt_road,1700,1780

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: New features in Standard nightlies
« Reply #6 on: May 02, 2010, 01:14:03 PM »
Works for me both with and without -singleuser.

Even if startingmoney and startingmoney[0] are written in the user simuconf.tab.

If exist a /user/simutrans/simuconf.tab then not work.
items
Code: [Select]
# display (screen/window) width
# also see readme.txt, -screensize option
display_width  = 900

# display (screen/window) height
# also see readme.txt, -screensize option
display_height = 560


Remove this simuconf.tab then works.

Is it in the user simuconf.tab no entry for an option that should be the last entry. In this case pakset/config/simuconf.tab.

@jamespetts

startingmoney not city_road

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: New features in Standard nightlies
« Reply #7 on: May 02, 2010, 10:13:57 PM »
I like the city road feature!  Is there a similar feature implemented/planned for intercity road type too?

Also, Does anyone have any suggestions for how to vary starting money by year though? 


Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18696
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New features in Standard nightlies
« Reply #8 on: May 02, 2010, 11:32:35 PM »
I have implemented an identical feature for the inter-city roads in Experimental. Not sure why this wasn't included in Standard.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4587
  • Languages: EN, DE, AT
Re: New features in Standard nightlies
« Reply #9 on: May 03, 2010, 07:28:42 AM »
Now included in standard, too :)

Offline The Hood

  • Moderator
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: New features in Standard nightlies
« Reply #10 on: May 03, 2010, 08:02:47 AM »
Excellent!  What is the correct syntax for the simuconf.tab now?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4587
  • Languages: EN, DE, AT
Re: New features in Standard nightlies
« Reply #11 on: May 03, 2010, 08:17:39 AM »
Something like:
Code: [Select]
city_road[0]=dirt_road,0,1920
city_road[1]=gavel_road,1921,1980
replace city_road with intercity_road if you like. The syntax is
Code: [Select]
city_road[number]=name,intro-year,retire-year
intercity_road[number]=name,intro-year,retire-year
Numbers from 0 to 9 possible.

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18696
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New features in Standard nightlies
« Reply #12 on: May 03, 2010, 12:41:13 PM »
Dwachs,

in the current Standard code (at least, when I last checked yesterday), only "city_road" worked: there was no code to handle "intercity_road".

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4587
  • Languages: EN, DE, AT
Re: New features in Standard nightlies
« Reply #13 on: May 03, 2010, 12:45:02 PM »
in the current Standard code (at least, when I last checked yesterday), only "city_road" worked: there was no code to handle "intercity_road".
then its time to check again ;)

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18696
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: New features in Standard nightlies
« Reply #14 on: May 03, 2010, 12:46:11 PM »
Rats. And I spent ages putting it in for Experimental! Work duplication...! Good addition, though.