The International Simutrans Forum

 

Author Topic: (r2366) Odd build cost behaviour  (Read 2598 times)

0 Members and 1 Guest are viewing this topic.

Offline merry

  • *
  • Posts: 62
(r2366) Odd build cost behaviour
« on: September 24, 2009, 01:24:42 PM »
Hi again,

(r2366 with Pak64-102.0 on WinXP Pro, latest patches & SP)

I note that when building a way on a forested tile, the cost varies depending on how I clear the tile.
e.g. wooden Rail = Cr80
Delete trees = Cr100
Rail built directly onto forested tile = Cr380

Hmm. That does not add up. So I clear the tiles manually and then build, saving Cr200 per tile.
Is this intended behaviour (whole-service contractor charges more than individual separate contracts, for the convenience/speed?), or is it a bug?

Thanks
Tom.
PS again, I could not find a report of this behaviour so far. Please accept apologies if it was previously reported.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4594
  • Languages: EN, DE, AT
Re: (r2366) Odd build cost behaviour
« Reply #1 on: September 24, 2009, 02:14:28 PM »
Each tree counts! Thus the cost for removing must be paid for each tree separate. On one tile there can be up to 3 trees.

Offline merry

  • *
  • Posts: 62
Re: (r2366) Odd build cost behaviour
« Reply #2 on: September 24, 2009, 02:43:31 PM »
Hmm. But that still doesn't add up.
I think the per-tree cost is Cr50, so up to Cr150 per tile. But building rail gives Cr300 for each and every forested tile (plus Cr80 for the wooden rails).
So far, doesn't make sense. Maybe someone can advise the actual costs?
I'll investigate further & see what's happening.

Tom.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9518
  • Languages: De,EN,JP
Re: (r2366) Odd build cost behaviour
« Reply #3 on: September 24, 2009, 08:15:23 PM »
Removing trees cost 300, but those are three 100cr signs just each after each other ... watch at the lower line how much money actually disappears.

SInce other function have also this problem, I put them all together in the add_message function: All stuff at the last place will be added together ... Might be also useful for other situations.
« Last Edit: September 24, 2009, 09:15:28 PM by prissi »

Offline merry

  • *
  • Posts: 62
Re: (r2366) Odd build cost behaviour
« Reply #4 on: September 25, 2009, 08:58:04 AM »
Thanks for the clarification Prissi,

One point though: the trees sometimes report Cr100 and sometimes a couple of Cr50. Where do the Cr50 come from (e.g. is it some other obstruction type, like rocky ground?)

Cheers,
Tom.