Mashinky

Mashinky

View Stats:
» eNj Apr 22, 2022 @ 6:34am
Option to buy obsolete trains
This is question mainly to devs.
Can you add start game option that would allow buying obsolete trains in newer eras?
I'm aware of duplication functionality.
But you know, for fun reason, to have "old school" tracks with steam engines, they are lovely :)
< >
Showing 1-3 of 3 comments
Zapp Apr 22, 2022 @ 9:58am 
I understand your desire, but I don't think this is a mainstream need that is going to get implemented anytime soon. Instead I suggest you learn to edit the game's XML files, since in this case the solution is relatively straightforward.

Inside the Mashinky directory, in the /media/config subdirectory you will find a file called "wagon_types.xml".

Make a backup copy of this file just in case (though Steam can restore any corrupted files for you). Then edit it with, say, Notepad.

Each locomotive (and cargo car) is available during specific eras. What you want is for a train to be available in, say, all seven Eras instead of just the first three.

So you would want to change an entry like

epoch="1-3"

into

epoch="1-7"

Then save, then restart the game.

By searching the file you should hopefully see which xml belongs to which engines. For instance, to make the Porter loco always available you would change (showing just the first three lines of the loco's entry here)

<WagonType id="004849B5"
name="2-6-0 Porter" vehicle_type="0" epoch="1-3" track="0"
cost="-40" sell="20" fuel_cost="-1"
...

to

<WagonType id="004849B5"
name="2-6-0 Porter" vehicle_type="0" epoch="1-7" track="0"
cost="-40" sell="20" fuel_cost="-1"
...

In other words, just by changing the "3" into a "7" you'd get what you asked for :)
Last edited by Zapp; Apr 22, 2022 @ 10:00am
» eNj Apr 22, 2022 @ 10:19am 
Thanks. Yep, I know what is xml and how to edit it, Im software developer with 15+ years in business.
But thanks, thanks for the idea you gave me 🙂 I’ve never modded any gamefiles in any game. I’d like to relax in my free time, but I may do exception and create a mod.
jtrucker.jt Apr 23, 2022 @ 11:17pm 
Originally posted by » eNj:
Thanks. Yep, I know what is xml and how to edit it, Im software developer with 15+ years in business.
But thanks, thanks for the idea you gave me 🙂 I’ve never modded any gamefiles in any game. I’d like to relax in my free time, but I may do exception and create a mod.

Yes, please, DO NOT edit the game files as Zapp suggests. That is bad, BAD idea. (plus each and every game update will negate all your work).
Create MOD for it instead.

Basically, there is folder \mods\ on Mashinky directory. Create a subfolder with a name of your mod, then create another subfolder \config\ in it. There you place your copy of wagon_types.XML and you can edit whatever you want here.
The game actually combines the original XML with the mod XML, ignores any duplicate identical parameters and when two different parameters exists, the modded one PRECEDES the vanilla one.

Using the above example of porter, all you need to do is the ID and the parameter you want to change:

<WagonType id="004849B5"
epoch="1-7">
</WagonType>

Repeat this for all desired engines.

And, please, NEVER edit ANY of the vanilla XML files directly....

P.S. There is actually such mod available in steam workshop:
https://steamcommunity.com/sharedfiles/filedetails/?id=1890918392&searchtext=
Last edited by jtrucker.jt; Apr 23, 2022 @ 11:30pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Apr 22, 2022 @ 6:34am
Posts: 3