Project: Economy and Balancing

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: Project: Economy and Balancing

Post by belugas »

Don't need a branch for that. Users can do that on their own.
It won't be the first time and it will not be the last one either.
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
yoyo1505
Engineer
Engineer
Posts: 32
Joined: 11 Aug 2007 16:21

Re: Project: Economy and Balancing

Post by yoyo1505 »

Agreed, this is not necessary as such.

But if anyone who understands the OpenTTD code fancies it, it would still be quite useful to create some sort of program that brings all the economical variables (including things like daylength) into a few menus that are easy to understand and use.

It would be a bit like various editing programs that I remember, such as the one for Civilisation 3, or the third party editors for Grand Prix 3.

With something like this the project could possibly follow in the footsteps of NoAI, which created a new easier way of writing and sharing AI's. Lots of people are now on board for that project.

Just putting the idea out there if anyone thinks it is worth their time.
ervin2
Engineer
Engineer
Posts: 52
Joined: 28 Jun 2006 17:49
Skype: Ervink2

Re: Project: Economy and Balancing

Post by ervin2 »

Airplanes definitely need their running costs highly increased. In real life the airline industry was in real trouble when the gas prices rose in 2006-07. It certainly is not a way to make easy millions like it is in TTD. They also should also be much more expensive to build, currently they are about as expensive as the train engines, which doesn't make sense.

Train stations should also be more expensive, a lot more. It's odd that a set of metal rails costs close to as much as a platform with a house. The size of the platform should also determine how much cargo can be held in it, maybe 100 per tile?
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Re: Project: Economy and Balancing

Post by Moriarty »

All interesting ideas ervin, unfortunately there's no real way to test them for actualy playability now without recompiling the code. Hence my suggestion (and yoyo1505 too), that someone create a build where these things are all easily accessable to the player.
Cannon
Engineer
Engineer
Posts: 10
Joined: 04 Jan 2009 05:42

Re: Project: Economy and Balancing

Post by Cannon »

Hi All,

I've been reading this thread for a while and recently found suggestion from yoyo1505 and Moriarty interesting. Instead of deciding what should be the ideal economy model ourselves, why don't we make the modeling logic easily accessible to all users and let them experiment, so that rest of the users can choose the features that really rock by experience in action?

My suggestion is to make 4 patches in sequence and finally achieve the first initial economy balancing goal.

1st patch
01.PNG
01.PNG (3.62 KiB) Viewed 5497 times
Instead of having a global "Transport Fee vs Transport Days" curve (for each type of cargo), why don't we have each curve for each demand unit (e.g. Factory which demanding cargo from elsewhere like farm). 01.png, 02.png.
02.PNG
02.PNG (3.91 KiB) Viewed 5506 times

2nd patch
03.PNG
03.PNG (4.35 KiB) Viewed 5501 times
Now add some simplied ratio variable (the "m" in 03.png) to control grow and sink of the Transport Fee. This simulate the "Demand level" of the demand unit.


(to be continue ...)
Last edited by Cannon on 04 Jan 2009 09:20, edited 1 time in total.
Cannon
Engineer
Engineer
Posts: 10
Joined: 04 Jan 2009 05:42

Re: Project: Economy and Balancing

Post by Cannon »

Continues my last post ..



3rd patch



The "m" can be adjusted by some logic (this is the main point of this patch, but not the ultimate goal of my suggestions). For example, if a city keeps receiving millions of passengers every weeks, then it is likely that this city's demand level on passengers is going to decrease (I guess so, but again, this behavior is not the main point of my suggestion. The main point is that it can change seperately for each city). So the economy model logic makes "m" to decrease as well. So finally, Airplane is not always money maker in the long run.
04.PNG
04.PNG (5.64 KiB) Viewed 5508 times
Another example of adjusting "m" is by the demand level of demand unit of that demand unit (... okok, pls read on the eample). In 04.png, the output of the upper factory has more demand level by Bigger city, so its "m" increases.

4th patch
05.PNG
05.PNG (6.89 KiB) Viewed 5547 times
Externalize the logic that drives the changes of "m" for each demand unit, in a form like the NoAI framework (see 05.png). In this way, idea of experimenting many good ideas in this thread can be easily brought into life. And users can pick the nice one by trying them out instead of discussing on paper/concept.

After some modelings have been kicked started, there will be force to drive more features in the OpenTTD core to expose more variables and extend variaty of variable calculation in the future.



This is my idea. Please comment.
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Re: Project: Economy and Balancing

Post by Moriarty »

Couldn't that all be done in one patch? I'm assuming the actual Calculate_Actual_Payment function is a small affair and could be easily changed with an If statement that would allow folks to chose which particular payment method they want to use using the current patch-selection screen. I should probably attempt to look at the code at some point.
Neuralize
Engineer
Engineer
Posts: 17
Joined: 20 Jan 2009 04:28

Re: Project: Economy and Balancing

Post by Neuralize »

Anyone ever edit the original command and conquer red alert, it had a really cool ini file that allowed you to change the balance of the game, maybe something like that could happen here?
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: Project: Economy and Balancing

Post by CommanderZ »

Neuralize wrote:Anyone ever edit the original command and conquer red alert, it had a really cool ini file that allowed you to change the balance of the game, maybe something like that could happen here?
Some values can be edited through GRF files. Including costs of stuff. It can even do some deeper modifications of how game economy works (see George's ECS Vectors).
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Re: Project: Economy and Balancing

Post by Moriarty »

CommanderZ wrote:Some values can be edited through GRF files. Including costs of stuff. It can even do some deeper modifications of how game economy works (see George's ECS Vectors).
The problem with GRF's is the obscene learning curves. The reasoning behind the easy-edit .ini files was that anyone could dabble with them.
User avatar
XeryusTC
Tycoon
Tycoon
Posts: 15415
Joined: 02 May 2005 11:05
Skype: XeryusTC
Location: localhost

Re: Project: Economy and Balancing

Post by XeryusTC »

Moriarty wrote:
CommanderZ wrote:Some values can be edited through GRF files. Including costs of stuff. It can even do some deeper modifications of how game economy works (see George's ECS Vectors).
The problem with GRF's is the obscene learning curves. The reasoning behind the easy-edit .ini files was that anyone could dabble with them.
You aren't able to create the same amount of complexity in ini files AFAIK.
Don't panic - My YouTube channel - Follow me on twitter (@XeryusTC) - Play Tribes: Ascend - Tired of Dropbox? Try SpiderOak (use this link and we both get 1GB extra space)
Image
OpenTTD: manual #openttdcoop: blog | wiki | public server | NewGRF pack | DevZone
Image Image Image Image Image Image Image
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Project: Economy and Balancing

Post by Eddi »

text files, ini files, xml files, whatever files...

the arguments have been brought up a million times... it is useless to discuss this all over again
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Project: Economy and Balancing

Post by DaleStan »

XeryusTC wrote:You aren't able to create the same amount of complexity in ini files AFAIK.
Here. Let me remove that "AFAIK" for you:
You aren't able to create the same amount of complexity in ini files.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Conditional Zenith
Chief Executive
Chief Executive
Posts: 697
Joined: 10 Jun 2003 00:19
Location: Australia

Re: Project: Economy and Balancing

Post by Conditional Zenith »

Moriarty wrote: The problem with GRF's is the obscene learning curves. The reasoning behind the easy-edit .ini files was that anyone could dabble with them.
And the reasoning behind things other than ini files is that you can't do much with ini files.
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Re: Project: Economy and Balancing

Post by Moriarty »

<Pedantic>Are the NoAI's not plaintext? Seem pretty complex to me.</pedantic>

But no, I wasn't asking nor suggesting dumping the entire economy into an ini file - that'd be silly. Just externalise some variables and some hackish "multipliers". I.e. you could end up with something like this:

Code: Select all

rail_cost_mulitplier = 0.5
...
train_running_cost_multiplier = 0.1
...
terraforming_cost_multiplier = 10
...
passenger_delivery_distance_multiplier = 1
...
valuables_delivery_income_multipler = 100
That's the entirety of my suggestion. No fancy "bits" (bad pun ;-) ) needed. It wouldn't be in the trunk, just a dev-build like cargo-dest for instance.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Project: Economy and Balancing

Post by Eddi »

such a file already exists. it is called "openttd.cfg"
Conditional Zenith
Chief Executive
Chief Executive
Posts: 697
Joined: 10 Jun 2003 00:19
Location: Australia

Re: Project: Economy and Balancing

Post by Conditional Zenith »

Moriarty wrote:<Pedantic>Are the NoAI's not plaintext? Seem pretty complex to me.</pedantic>
plaintext != ini

INI files are a very specific subset of plain text files. And yes, we know that plain text can be complicated and powerful, almost every programming language in existence uses plain text for its source code. So yes, the NoAIs are plain text. No the NoAIs are not INI files.
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Re: Project: Economy and Balancing

Post by Moriarty »

Eddi wrote:such a file already exists. it is called "openttd.cfg"
I know. But the variables aren't in there which is why they're being requested.
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: Project: Economy and Balancing

Post by belugas »

Some of those variables are been accessed, requested, manipulated, expected by newgrfs.
So if they are made "public", it will certainly change a lot. Some grf authors would yell an awful lot. And between you and me, they have a much stronger voice then a regular player, since they do supply a good amount of work in their art. Therefor, a much bigger veto. If you see what I mean.

Another factor to consider: some of these values, been changed locally on your system, but not on other systems, will make it so that the similarities we are expecting between each player's environment in multiplayer games will be broken. And that will lead to desyncs. Do you want that?

So all in all, the best way to go, the cleanest for everyone, is to go the newgrf way.
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Moriarty
Tycoon
Tycoon
Posts: 1395
Joined: 12 Jun 2004 00:37
Location: United Kingdom of Great Britain and Northern Ireland
Contact:

Re: Project: Economy and Balancing

Post by Moriarty »

belugas - All makes sense, except I was asking for this within a testing branch, not within the official trunk, that'd be silly (as you so eloquently said 8) ).
Then folks who had an interest in trying to figure out a balanced economy could use that testing branch. Heck, it wouldn't really need to be a branch, just a patched, pre-compiled release.
On the matter of desyncs, whilst not particularly relevent given I'm not suggesting it for a "proper" release, surely the game ensures the config settings are the same at present - i.e., pathfinding settings.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 4 guests