Is it possible to change time untill what year you can buy a train?

Home Forums Modding Is it possible to change time untill what year you can buy a train?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #16737
    Florius
    Participant

    Hey, I have installed quite a few mods, mostly steam locomitives. However some steam locomotives you can still but in 2000. Is it possible to chang the end date in mods somehow?

    #16738
    olahaldor
    Participant

    Yes. You’ll need to go into the game installation folder/res/models/model/vehicle/train/ folder and find the .mdl file for the mod.

    In the .mdl file you’ll find something like this

    availability = {

    yearFrom = 1915,

    yearTo = 0

    },

     

    Change the “yearTo” to something more realistic or to your needs.

    #16740
    Florius
    Participant

    With what can I edit the .mdl file?

    And how about the running costs for a train? Some dutch train’s have a running cost of 70k..

    #16746
    Varana
    Participant

    A simple text editor like the one that comes with Windows, or Notepad++, is enough. Make sure that you don’t append a .txt extension when saving, but *.mdl files are basically just plain text.

    Purchase price, lifespan, and running costs can be changed in the same file. There is a section in the *.mdl file that looks like this (varies a bit between engines, wagons, road vehicles etc.), and you can simply edit the numbers:

    railVehicle = {
    topSpeed = 45.0,
    weight = 18.0,
    engines = {
    { type = “STEAM”, power = 90.0, tractiveEffort = 20.0 }
    },

    availability = {
    yearFrom = 1860,
    yearTo = 1892
    },
    cost = {
    price = 252000

    },
    maintenance = {
    runningCosts = 150000,
    lifespan = 30
    },

    #16757
    Norfolk_Chris
    Participant

    There is a new ‘TF Vehicle Edit’ tool now available on Train-Fever.net for modifying vehicles attributes such as availability dates, capacity, speed etc. for both mods and plain vanilla vehicles.

    Highly recommended, it’s much easier than editing the *mdl files.

    You can download it here: http://www.train-fever.net/filebase/index.php/Entry/756-TF-Vehicle-Edit/

    #16758
    n00b
    Participant

    The vehicle editor contains some very nasty bugs (at least in version 1.1.1571)  that can put an edited file into an unusable state (i.e. TrainFever won’t run anymore), so be careful and make backups. Or know how to manually fix the lua code in the .mdl files.

    #16763
    Florius
    Participant

    Okay, last question, is it possible to edit the name that shows in Train fever, either with the TF Vehicle edit and without?

    And is there a english version of TF Vehicle edit, since I’m dutch, and actually only speak dutch or english..

    EDIT: Found the menu to change the language (even to dutch! 🙂 )

    • This reply was modified 9 years, 1 month ago by Florius.
    • This reply was modified 9 years, 1 month ago by Florius.
    #16774
    Traian Trante
    Participant

    Yes, it is. in the same file you changed the year the vehicle is available from find the “description” field and change it.

     

    The desription field looks something liek this:

     

    description = {

    name = _(“Tank wagon Wasco”),

    description = _(“Double bogie, four axle tank wagon.”)

    },

     

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Modding’ is closed to new topics and replies.