Page 1 of 1

"Railroad Tycoon"-style stock market and shares

Posted: 10 Sep 2018 06:01
by tristeng
Been playing this game since 1996 (in its non-open original form) and come back to it now and again in its OpenTTD form. One thing I always thought was missing was a stock market simulator similar to Railroad Tycoon, so I've started working on one, if anyone is interested:
https://github.com/tristeng/OpenTTD/tree/stock-exchange

So far, you start with 50K loan and 50K of investor money (5000 shares at 10 per share) and you can issue or buy back shares. If the shares go over 100 per share, they will split and if they go under 2, they will merge. This event can get triggered every quarter, depending on if the price goes above/below those values.

The share price calculation takes into consideration the company value (less cash) and the earnings from the last 4 quarters, but this is still a work in progress.

Things I intend to work on and would love to see:
  • player owned shares - instead of the player and company being one entity, the player could be separate and manage their own shares (to raise net worth as a goal), and same for the company
  • player starts out with 20% stake in their company (1000 shares)
  • instead of buying a company 25% at a time, you would need to purchase the shares, 1000 at a time and get a 51% stake to take over - you would need to do this to keep controlling interest in your own company as well
  • player would get paid a salary from the company - better earnings means bonuses to the player, which would allow the player to invest more money in the stock market, poor earnings means no bonus, less salary and maybe termination
  • dividends
  • perhaps you could change companies and preside over one of the AI companies, if a position was open
  • buying industries and industry profits - industry would be more valuable the more you ship to/from it
  • and more...
I've attached some screenshots of the work so far:
stock-split.png
stock splits 2 for 1
stock-split.png (32.19 KiB) Viewed 2471 times
company.png
stock information on the company window
company.png (41.81 KiB) Viewed 2471 times
finances.png
issue and buyback shares - see bottom of the window
finances.png (28 KiB) Viewed 2471 times

Re: "Railroad Tycoon"-style stock market and shares

Posted: 12 Sep 2018 13:25
by openbu.org
I like "Capitalism 2" -Style stock market and shares,"Capitalism Lab" -style stock market and shares.

Re: "Railroad Tycoon"-style stock market and shares

Posted: 12 Sep 2018 13:37
by openbu.org
Candlestick chart

Re: "Railroad Tycoon"-style stock market and shares

Posted: 17 Oct 2018 11:15
by xmart2k
I think is a great idea. Keep up the good work!

Re: "Railroad Tycoon"-style stock market and shares

Posted: 15 Nov 2018 01:31
by Lucardes
openbu.org wrote:Candlestick chart
Hey how did you get those cop cars and beautiful buildings? I also use 32bit/extra zoom and I would die to get those grfs you have.. die for!

If you can reference URL's or better if you can upload them somewhere for me to get them I would be in your debt.

Thank you so much man and I hope you see my msg :)

Re: "Railroad Tycoon"-style stock market and shares

Posted: 20 Nov 2018 19:09
by Baldy's Boss
This would be great (as would access to the company's full financial history).The stock price can be added to the available charts.
(Maybe this would be the added feature that moves the version from 1.x to 2.x?)

I regard the company manager face/name as my employee,not myself (my first TT game I had a manager named "Baldy Specs",which described him,and I have had other "Baldy" managers though am not bald myself...hence my username here).
How will you be treating that?