The International Simutrans Forum

PakSets and Customization => Pak128.Britain => Topic started by: jamespetts on May 02, 2010, 09:41:35 AM

Title: New features in Standard nightlies
Post by: jamespetts 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.
Title: Re: New features in Standard nightlies
Post by: Frank on May 02, 2010, 09:47:05 AM
Quote from: jamespetts on May 02, 2010, 09:41:35 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
Title: Re: New features in Standard nightlies
Post by: jamespetts on May 02, 2010, 09:56:33 AM
Frank,

any idea why it only works with -singleuser?
Title: Re: New features in Standard nightlies
Post by: Frank on May 02, 2010, 10:12:18 AM
no

bug report in german forum (http://www.simutrans-forum.de/forum/thread.php?threadid=5227) not feedback from other users
Title: Re: New features in Standard nightlies
Post by: Dwachs 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.
Title: Re: New features in Standard nightlies
Post by: jamespetts on May 02, 2010, 10:32:31 AM
I have tested, and this is a working configuration:


city_road[0]=city_road,1905,2050
city_road[1]=cobblestone_road,1781,1904
city_road[2]=dirt_road,1700,1780
Title: Re: New features in Standard nightlies
Post by: Frank on May 02, 2010, 01:14:03 PM
Quote from: Dwachs 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.

If exist a /user/simutrans/simuconf.tab then not work.
items

# 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
Title: Re: New features in Standard nightlies
Post by: The Hood 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? 

Title: Re: New features in Standard nightlies
Post by: jamespetts 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.
Title: Re: New features in Standard nightlies
Post by: Dwachs on May 03, 2010, 07:28:42 AM
Now included in standard, too :)
Title: Re: New features in Standard nightlies
Post by: The Hood on May 03, 2010, 08:02:47 AM
Excellent!  What is the correct syntax for the simuconf.tab now?
Title: Re: New features in Standard nightlies
Post by: Dwachs on May 03, 2010, 08:17:39 AM
Something like:

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

city_road[number]=name,intro-year,retire-year
intercity_road[number]=name,intro-year,retire-year

Numbers from 0 to 9 possible.
Title: Re: New features in Standard nightlies
Post by: jamespetts 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".
Title: Re: New features in Standard nightlies
Post by: Dwachs on May 03, 2010, 12:45:02 PM
Quote from: jamespetts on May 03, 2010, 12:41:13 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 ;)
Title: Re: New features in Standard nightlies
Post by: jamespetts on May 03, 2010, 12:46:11 PM
Rats. And I spent ages putting it in for Experimental! Work duplication...! Good addition, though.