News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

New features in Standard nightlies

Started by jamespetts, May 02, 2010, 09:41:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Frank

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

jamespetts

Frank,

any idea why it only works with -singleuser?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.


Dwachs

Works for me both with and without -singleuser.

Even if startingmoney and startingmoney[0] are written in the user simuconf.tab.
Parsley, sage, rosemary, and maggikraut.

jamespetts

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
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Frank

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

The Hood

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? 


jamespetts

I have implemented an identical feature for the inter-city roads in Experimental. Not sure why this wasn't included in Standard.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Dwachs

Parsley, sage, rosemary, and maggikraut.

The Hood

Excellent!  What is the correct syntax for the simuconf.tab now?

Dwachs

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.
Parsley, sage, rosemary, and maggikraut.

jamespetts

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".
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Dwachs

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 ;)
Parsley, sage, rosemary, and maggikraut.

jamespetts

Rats. And I spent ages putting it in for Experimental! Work duplication...! Good addition, though.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.