Skip to main content
Topic: Extension Request – Interpolate Speed Bonus (Read 5692 times) previous topic - next topic

Extension Request – Interpolate Speed Bonus

Hi,

I’ve been playing a game in ST-Experimental now for a while, spanning about 30 ST years. First of all let me say it is great, I particularly like the fact p****engers chose their rout based on time of travel, not the amount of changes. It makes my network look far more realistic with plenty of interchanges.

However I do have one (easily solvable) concern to do with the speed bonus. The way I understand it is, it's currently set so that it updates every 10years, is that correct? I know this is the same in Simutrans Standard. However because of the combined effects of a reduced income (because people suddenly want to go faster) and less p****engers (because more take their car) it is really quite noticeable in Experimental. To the point where you can have a ridiculously profitable network one second, then the next you’re suddenly loosing money.

I believe the way around this is to mathematically interpolate between two values for the current year, or even month. This will make the progression of the demand for faster transport smoother and more realistic without having to have a bigger and more complex text file. I don’t know much about coding, but I would think it shouldn’t be too resource hungry. Let me know if you need me to explain in more detail.

Cheers,

Re: Extension Request – Interpolate Speed Bonus

Reply #1
I use the same system for calculating the speed bonus speed in Simutrans-Experimental as in Simutrans-Standard, and I thought that it was interpolated - it certainly should be. I remember posting about this a while ago and being told by the developers that it was...
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.

Re: Extension Request – Interpolate Speed Bonus

Reply #2
Maybe it's fixed in some nightly, but at least in latest ST release your p****enger/mail profit takes a considerable dent at the start of decade.

With pak128, Jan 1940 I went down from 290k profit per month to 240k (and then down to 210k since I decided to celebrate 10th year in business by building new HQ). Not game breaking but very clearly noticable, as no such drops had occurred in the past since I was fully connected & balanced since around 1932 and income since then was very steadily growing with towns.

Re: Extension Request – Interpolate Speed Bonus

Reply #3
That really dependes on the pak setting. If the pak setting defines a dent, there will be one. Or if no pre-defined speedbonus is given (not sure about pak128) then it will just change as vehicles fade out/are introduced. If this is the case, than a new speedbonus should be conincidence wil lots of new vehicles.

Re: Extension Request – Interpolate Speed Bonus

Reply #4
Prissi,

can you confirm whether, if the speedbonus.tab file says, for example, road=1930,30,1950,90 the speed bonus in 1940 will be 30 or 60?
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.

Re: Extension Request – Interpolate Speed Bonus

Reply #5
With debugm****ages, the game will even tell the player the current speedbonus at the start of check year.

Anyway, look at: vehikelbauer_t::get_speedbonus() Comment say interpolate linear, and the code should do this too ...

Re: Extension Request – Interpolate Speed Bonus

Reply #6
Prissi,

thank you for the answer. Banksie and Borgoth - are you finding that this is not the behaviour demonstrated, that there is no interpolation?
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.

Re: Extension Request – Interpolate Speed Bonus

Reply #7
Well, hard to say without knowing how exactly it works. If it does come in steps at certain times, it may simply be that Jan 1940 has a step in pak128 that creates a significant change in income. So the only thing I can say for certainty is that it's not adjusted bit by bit monthly/yearly since that'd create steady reduction of income rather than sudden drop at once. As Prissi said, if it coincides with new vehicles, it's very logical way to do it anyway. New vehicles would make people demand this new technology that allows them faster travel.

Overall though, in ST the drop isn't high enough to cause trouble, so you'll probably want to see Banksie's numbers. The speed bonus change seems to have much higher impact to ST-Exp.

Re: Extension Request – Interpolate Speed Bonus

Reply #8
With debugm****ages, the game will even tell the player the current speedbonus at the start of check year.

well, speedbonus could then be shown ingame, to help players in their strategies. but where?

Re: Extension Request – Interpolate Speed Bonus

Reply #9
There is the goods-list window available, which shows the current reference speeds and bonuses.
Parsley, sage, rosemary, and maggikraut.

Re: Extension Request – Interpolate Speed Bonus

Reply #10
Incidnetally, I have confirmed that the speed bonus is already fully interpolated in Simutrans-Experimental.
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.