The International Simutrans Forum

 

Author Topic: Ping pong show. Revenue alternative.  (Read 5706 times)

0 Members and 1 Guest are viewing this topic.

Offline isidoro

  • Devotee
  • *
  • Posts: 1128
Ping pong show. Revenue alternative.
« on: October 23, 2008, 12:27:52 AM »
Thinking about the way Simutrans gives money to transport companies, I came to the savegame I have attached (it is small).  There, you can see a small town with only two passenger stations.  In order to make more money, two additional stations are added: PING and PONG.  When going from one passenger station to the other, passenger busses do several PING-PONG bounces before reaching their destination.  It is fun to see it in Fast Forward mode.  You can see how profit is made after some time in the second savegame.

I thought about an easy to program workaround for this.  Instead of paying every time a vehicle reaches a station,  Simutrans could pay every time a passenger or piece of goods rides the vehicle and proportional to the distance from that station to the destination station.  That way, in the savegame, the buses will only get revenue in A and B and proportional to the distance from A to B.  That way, a company can be rewarded if it builds a direct route in place of a snake-like old road with lots of stations.

However, the problem with such workaround is that circular lines wouldn't be so profitable.  What do you think?
« Last Edit: October 23, 2008, 12:50:02 AM by isidoro »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
Re: Ping pong show. Revenue alternative.
« Reply #1 on: October 23, 2008, 10:07:42 AM »
There is a patch which smoehow does this (although the patch was more elaborate). Using the difference in tiles between last station and  current one to next via/destination seems a very easy, performance friendly suggestion, worth thinking of implementing.

EDIT: This will not work anymore in nightly 2071
« Last Edit: October 23, 2008, 10:06:19 PM by prissi »

Offline isidoro

  • Devotee
  • *
  • Posts: 1128
Re: Ping pong show. Revenue alternative.
« Reply #2 on: October 24, 2008, 11:33:05 PM »
How nice!  It works!

Let's hope there aren't any unforeseen side-effects.


Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
Re: Ping pong show. Revenue alternative.
« Reply #3 on: October 25, 2008, 08:56:54 AM »
Since it only affects the next transfer stop and not the finaly destination, it will not affect normal gameply much in my tests.

Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
Re: Ping pong show. Revenue alternative.
« Reply #4 on: November 05, 2008, 07:33:56 PM »
Sorry for response for old topic, but I have a question.

What is the merit to calculate negative income ?  :question:
I mean ...
If there is no people getting off at PING and PONG, they don't need to calculate, isn't it ?
Why does it need to calculate all people who don't get off ?

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
Re: Ping pong show. Revenue alternative.
« Reply #5 on: November 05, 2008, 09:14:37 PM »
The income is calculated before the vehicle unloads, i.e. for all stuff on the vehicle. Then only it is checked for loading and unloading and the new origin is set.

Offline isidoro

  • Devotee
  • *
  • Posts: 1128
Re: Ping pong show. Revenue alternative.
« Reply #6 on: November 06, 2008, 01:34:18 AM »
[...]
If there is no people getting off at PING and PONG, they don't need to calculate, isn't it ?
Why does it need to calculate all people who don't get off ?

Besides, I think that the info for a certain piece of unloading goods or passenger
doesn't include the station where it/he got in.  That makes impossible to calculate
the revenue when they get off.  The calculation is done between station stops for
all load (unloading or not).

Not storing the origin of every piece of goods seems pretty reasonable.  That way,
a lot of possible combinations of origin-destination can be grouped together and
a lot of memory is saved.


Offline z9999

  • Devotees (Inactive)
  • *
  • Posts: 848
Re: Ping pong show. Revenue alternative.
« Reply #7 on: November 06, 2008, 06:25:07 AM »
Thank you for explanation. Maybe I understand now. :)

But I think new system is difficult to comprehend by player, even if total income is the same.
Many player think they did someting wrong or it is a bug when they get negative income. It is not fun as a player.
« Last Edit: November 06, 2008, 06:29:16 AM by z9999 »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
Re: Ping pong show. Revenue alternative.
« Reply #8 on: November 06, 2008, 09:40:04 AM »
But when you run an empty bus, your income is negative too. Negative income is not really new.