Stock Market Feature

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
ipancakeman
Engineer
Engineer
Posts: 29
Joined: 19 Sep 2021 15:09

Stock Market Feature

Post by ipancakeman »

Ive been looking for things to make my open ttd games more fun. A random thought came in my head about a ingame stock market. Is there anything like that i can add to my game?
User avatar
kamnet
Moderator
Moderator
Posts: 8599
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Stock Market Feature

Post by kamnet »

No, there's no such thing that exists. OpenTTD is mostly a logistics management game in an open sandbox environment, which can be ignored and also operate as a virtual miniature train hobby.
User avatar
jfs
Tycoon
Tycoon
Posts: 1766
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Stock Market Feature

Post by jfs »

The big challenge with a feature like this would be integrating it properly in the game, so it's meaningful to the larger game and not just a thing you can do that has no bearing on anything else.

To do that, you would need to do a major overhaul of the entire financial model of the game, possibly separating "players" from "companies", and make ownership of things explicit, including making sure everything has a value. Companies and players would need to have proper account books where all their assets, not just cash, are tracked and accumulate depreciation and so on. You would also need participants on the stock market that are not players, but a "general populace" that also trade the stocks, and somehow rate the performance of the companies.

It will be a massive change that will affect everything in the game, and balancing it to be playable and fun is another huge task in itself.


Honestly, if you want to play with stock markets, I'd suggest looking into the (very old) Railroad Tycoon 2, or the A-Train series.
User avatar
kamnet
Moderator
Moderator
Posts: 8599
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Stock Market Feature

Post by kamnet »

I wouldn't be opposed to separating the player from the company. If we ever get back to buying company shares, then a buyout could allow a player to start a new company with their assets rather than a loan, where a bankruptcy leaves them with nothing, or a hostile takeover leaves you with no company but a share of the company that ousted you.
User avatar
2TallTyler
Route Supervisor
Route Supervisor
Posts: 508
Joined: 11 Aug 2019 18:15
Contact:

Re: Stock Market Feature

Post by 2TallTyler »

I agree with Kamnet. This would be an interesting way to play multiplayer. The hurdle is that you will need a stable client identity that persists between logins, instead of simply knowing the company password. Something like https://github.com/OpenTTD/OpenTTD/discussions/8420 would do, I think.
LaChupacabra
Route Supervisor
Route Supervisor
Posts: 391
Joined: 08 Nov 2019 23:54

Re: Stock Market Feature

Post by LaChupacabra »

jfs wrote: 24 Apr 2024 06:15 To do that, you would need to do a major overhaul of the entire financial model of the game

...proper account books...
...accumulate depreciation...

It will be a massive change that will affect everything in the game
I don't think it needs to be that complicated. :)

To value the shares and therefore the company, information about profits in the last two years/periods and about shares held in other companies would be sufficient. OTTD is not a professional economic simulator and such a simplified valuation would be completely sufficient and easy to understand for players.

To determine the demand for shares among the "general population", information about profitability in the last two years/periods, i.e. the proportion of revenues to costs, would also be sufficient - the higher the ratio, the higher the interest and the fewer shares on the market. Yes, profitability could also influence the valuation of the stock and the company to some extent.

In order for a player to have the opportunity to repurchase shares, the "general population" would always leave a certain percentage of shares on the market.
jfs wrote: 24 Apr 2024 06:15 The big challenge with a feature like this would be integrating it properly in the game...
...and balancing it to be playable and fun is another huge task in itself.
A simple feature would be much easier to integrate into a game than a highly complex one. Simple things are also usually more fun. ;)
I am sorry for may English. I know is bed.
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Stock Market Feature

Post by Eddi »

LaChupacabra wrote: 24 Apr 2024 22:43 I don't think it needs to be that complicated. :)
you'd just be creating exploit heaven with that attitude.
LaChupacabra
Route Supervisor
Route Supervisor
Posts: 391
Joined: 08 Nov 2019 23:54

Re: Stock Market Feature

Post by LaChupacabra »

Eddi wrote: 25 Apr 2024 02:27
LaChupacabra wrote: 24 Apr 2024 22:43 I don't think it needs to be that complicated. :)
you'd just be creating exploit heaven with that attitude.
The heaven of exploits was the company's asset valuation method present in the removed share function. If someone is thinking about maintaining this method, it may indeed be very complicated, and in this game it is basically impossible, unless, as jfs wrote, the entire game economy would be changed.

In the assumption I presented, the valuation of the company would be based on the combined method: income and assets, without taking into account the money held, which was the source of the greatest absurdities in the previous share function (the purchase of shares resulted in a significant decrease in the company's value; 100% of the shares could be purchased almost for free, because by taking over the company was paid mainly for the money it had, but at the same time, having 100% of the shares, you took over this money).

If you think these assumptions are wrong, can you point out what exactly about them could be a source of exploits?
I am sorry for may English. I know is bed.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 3 guests