06-02-2009, Friday-17:58:27
Wer Windows mit .net-Framework benutzt kann das mit dem Startkapital auch testen.
Eine entsprechende Programmdatei ( Sim_startmoney_r2295_win.zip ) ist hier zu finden.
Da der Thread im int. Forum nur mit Anmeldung zugänglich ist, hier die Kopie davon.
Eine entsprechende Programmdatei ( Sim_startmoney_r2295_win.zip ) ist hier zu finden.
Da der Thread im int. Forum nur mit Anmeldung zugänglich ist, hier die Kopie davon.
Zitat:Original von Dwachs
This patch lets you (or the pakset-maintainers) customize the starting money depending on the starting year:
Putting something like this in (pak)/simuconf.tab
givesCode:# Starting money of the player. Given in Credit cents (1/100 Cr)
# default value
starting_money = 20000000
# up to ten triples (0..9) of: year, money, interpolation-flag are allowed
# starting_money[i] = year, money, iflag
# if year is between starting_money[i-1].year and starting_money[i].year then:
# then the resulting starting money is either
# (a) equal to starting_money[i-1].year if iflag==0 or
# (b) linearly interpolated between starting_money[i-1].year and starting_money[i].year
# if year is smaller than any given year, the default value in starting_money is used,
# if year is larger than any given year, the money value of the starting_money[] with the largest year is used
starting_money[0] = 1950, 30000000, 1
starting_money[1] = 1960, 40000000
starting_money[2] = 1960, 50000000
starting_money[3] = 1970, 60000000, 1
money = 20000000 before 1950 (here the 'old' variable is taken)
money = 30000000 in 1950
money = 35000000 in 1955
money = 40000000 in 1960
money = 50000000 in 1965 (no interpolation since no 3rd parameter specified for 1960)
money = 60000000 in 1970 and later.
Edit: The maximum amount of money is not touched, it is 2^31-1 ~ 20 millions. Until someone finds a method to convert strings to 64-integers that works across different platforms / compilers.