The International Simutrans Forum

 

Author Topic: changing ticket price  (Read 1640 times)

0 Members and 1 Guest are viewing this topic.

Offline asaphxiix

  • *
  • Posts: 723
changing ticket price
« on: February 08, 2013, 04:47:01 AM »
Hello,

How does one change the ticket price in the pak?

I tried changing the 'value=x' value in goods.dat (which in experimental seems to be three hundred times the price), but nothing happened. I can change speed bonus value there, but not the ticket price?

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5565
  • Languages: EN, NO
Re: changing ticket price
« Reply #1 on: February 08, 2013, 05:46:13 AM »
I assume you actually ran makeobj on everything and copied the result to the Simutrans installation?

Offline asaphxiix

  • *
  • Posts: 723
Re: changing ticket price
« Reply #2 on: February 08, 2013, 05:53:22 AM »
aha yes!

so I was at the right place?

I was trying in experimental, maybe this is a specific problem.
« Last Edit: February 08, 2013, 06:07:18 AM by asaphxiix »

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1394
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: changing ticket price
« Reply #3 on: February 08, 2013, 09:49:22 AM »
You were at the right place! (don't know about the right time...).

Simutrans Experimental should work in the same way as far as I know.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9595
  • Languages: De,EN,JP
Re: changing ticket price
« Reply #4 on: February 08, 2013, 10:05:10 AM »
Better put the new goods into the addon folder. Because files there are always loaded after the file in the pak. Since files can be combined into larger files, putting changed stuff into the simutrans pak directory may not always overlay the entries as desired.

Offline asaphxiix

  • *
  • Posts: 723
Re: changing ticket price
« Reply #5 on: February 08, 2013, 10:13:52 AM »
thanks, I'll try that!

Offline asaphxiix

  • *
  • Posts: 723
Re: changing ticket price
« Reply #6 on: February 08, 2013, 10:31:47 AM »
i'm very sorry - this seems to be a problem with experimental only - perhaps the topic can be moved to exp. development forum?

thanks

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18763
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: changing ticket price
« Reply #7 on: February 08, 2013, 03:18:44 PM »
Ahh, I have just realised that I had not updated the .dat reference addendum for Experimental to describe fare stages (an omission which I have now rectified). Where fare stages are specified, these override the original "value=" specifications. See goods128.dat in Pak128.Britain-Ex 0.8.4 and onwards for an example.

Offline asaphxiix

  • *
  • Posts: 723
Re: changing ticket price
« Reply #8 on: February 08, 2013, 07:00:42 PM »
ah, thanks james!

and when these values are not present, the game behaves as before?

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 18763
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: changing ticket price
« Reply #9 on: February 09, 2013, 01:59:09 AM »
Yes.