The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: ӔO on August 04, 2010, 10:19:26 pm

Title: [bug 8.2] construction cost calculation error
Post by: ӔO on August 04, 2010, 10:19:26 pm
When laying down tracks or roads, instead of costing the actual value displayed when hovering over the icon, the construction cost only costs what it does when it is destroyed/removed.

For instance, a road that costs 10.00 will only cost 2.50 to build and remove.

This does not affect signals, stations or station extensions.
Title: Re: [bug 8.2] construction cost calculation error
Post by: jamespetts on August 04, 2010, 10:26:14 pm
Ahh, this isn't a bug: the costs shown are per kilometre, which, at default settings, is four tiles. You would expect the cost per tile, therefore, to be 1/4 the cost per kilometre.
Title: Re: [bug 8.2] construction cost calculation error
Post by: ӔO on August 04, 2010, 10:53:01 pm
aha, then shouldn't the hover over display the cost per tile?
Title: Re: [bug 8.2] construction cost calculation error
Post by: jamespetts on August 04, 2010, 11:02:10 pm
No - it states per km in the tooltip :-)
Title: Re: [bug 8.2] construction cost calculation error
Post by: ӔO on August 04, 2010, 11:11:35 pm
hmm, okay, makes sense.

presumably it wouldn't be a bad idea where you can switch between per tile and per km as a base unit for cost calculations.
Title: Re: [bug 8.2] construction cost calculation error
Post by: jamespetts on August 04, 2010, 11:43:53 pm
Hmm, that would require quite a bit of coding, and coder time is presently very limited! However, a good idea in principle, yes.
Title: Re: [bug 8.2] construction cost calculation error
Post by: ӔO on August 20, 2010, 12:37:27 pm
I think I've found something odd relating to cost calculation.

Bridges will cost the full amount displayed, but elevated ways and normal ways will cost what the tile length is.
c400 rail will cost c400 for 4 tiles, but c400 bridge will cost c1600 for 4 tiles.
Title: Re: [bug 8.2] construction cost calculation error
Post by: jamespetts on August 20, 2010, 11:26:47 pm
This is intentional, as bridges are almost never many kilometres long. If you look in the tooltip, you will see that it states that bridge costs are per tile.
Title: Re: [bug 8.2] construction cost calculation error
Post by: ӔO on August 21, 2010, 05:09:16 am
If you say so.

It just seems like bridges are disproportionately more expensive than tunnels or elevated ways since they do cost roughly 4 to 6 times more, then it's another 4 times the cost.

720 to lay down 4 tiles of 200km/h cssr hvy track.
3820 to lay down 4 tiles of 200km/h elevated way
17400 to lay down 4 tiles of 200km/h brick viaduct.
Title: Re: [bug 8.2] construction cost calculation error
Post by: jamespetts on August 21, 2010, 11:45:24 am
That's not so much a bug as a balance issue. Which pakset are you using?
Title: Re: [bug 8.2] construction cost calculation error
Post by: ӔO on August 21, 2010, 11:52:23 am
pak128. britain 0.6ex.

it's for all bridges, since they all have a price that would make them cost more over a ground way if it was 1tile=1km.
Title: Re: [bug 8.2] construction cost calculation error
Post by: jamespetts on August 21, 2010, 11:54:54 am
Do you find that the disparity in prices causes balance problems - i.e., do you find that you are more dissuaded from building bridges than a real life transport company would be?
Title: Re: [bug 8.2] construction cost calculation error
Post by: ӔO on August 21, 2010, 12:21:30 pm
Short hops over rivers and gullies are not so bad, but I find myself using the elevated viaduct over rivers since it's cheaper over the long run and can be built on diagonals. Even factoring in the artificial slope costs, elevated way is cheaper than a bridge.

bridges only become necessary when trying to span water or span a deep valley. For a choice of building a bridge or tunnel over a body of water, a tunnel is far cheaper.

Either the elevated way and tunnel needs to cost more, or short bridges need to cost less. I would also say that all the brick viaducts are disproportionately cheaper than other bridges.
Title: Re: [bug 8.2] construction cost calculation error
Post by: jamespetts on August 21, 2010, 12:29:26 pm
Ahh, the brick viaduct thing is a different issue. It appears that the sensible thing would be to use the same scale factor for bridges as used for other things (but retain the display of the cost as being per tile, as it makes no sense to measure bridge length in kilometres).