I have taken intrest in TPF2 again and I want to recreate my TPF1 mod - extended gameplay -> Extended Gameplay and Immersion
Just, of course, more better. The central premise of the thing is going to be procedurally generate/modify generate train cars and locomotives from stock assets ( with some repaits added to the mix, because why not ). Giving literally hundreads of vehicles to choose from. Anyhow.
I have some ideas which I'd like to try. I've been reading into the api documentation, but it is really terse on the subject. Some things are mentioned, but I haven't found examples.
Is it possible to modify industry production cap dynamically? - I want to make industries in 1850 to have lower production cap then in 1950 and I want this cap to raise steadily over the years. So - for example - coal mine starts at a 100 production in 1850, but raises to 1000 in 2000.
Likewise - is it possible to alter vehicle data dynamically? - To better simulate steam engines, I want to tie their power output to speed at which they travel at a given moment. API mentions that simulations is pinged forward 5 times per second. This should give me enough resolution. There are some callbacks available, supposedly, but no examples.
In the same vein - I'd like to tie running costs to actual energy usage of a vehicle.
How about payment rates. Can I change the money paid for a service using scripts?
Lastly - has anyone tried to generate *.mdl files procedurally during game load?
The api reference suggests that these things are possible-ish but it also is very terse on the subject.