Multiple unit trains

Home Forums Modding Multiple unit trains

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #11066
    RoyalHants
    Participant

    Hi I’m having a problem with multiple unit trains, which files are needed I edited the multiple unit train lua’s in config folder but it just crashes when trying to load

    #11095
    mikael
    Member

    We’ve got some dumps regarding to those emu mods. We can’t tell exactly what’s wrong, but most likely a path is wrong or the referred waggons or locomotive has got an error in the metadata. Try to set them up as a single train and load them one by one.

    #11143
    olahaldor
    Participant

    RoyalHants, could you flesh out the problem?

    Load the game? Load a saved game? Start a new game? Open the “purchase” menu? Clicking the train in the list to purchase? Crash when you hit purchase? Crash when you set the train to run on a line?

    Without specifics, I can only say: it could be anything.

    #11149
    RoyalHants
    Participant

    Hi Olahaldor the game crashes when clicking on the train depot (possibly UI failure?), loading game, save and loading the train(class 156) as a separate entity all work normally I can post the lua file when i get back.

    #12208
    Svelbeard
    Participant

    I am having a very similar issue, I’m working on a class 158 currently. My game crashes when I click on the Depot. Train works fine without the lua script

    #12210
    Anonymous
    Inactive

    I had the same problem. First time it was because i used wrong model as a template. Try to create your model based on the multiple unit train.

    Second time it was because i broke file structure. Try to use  existing file as template. Edit only exactly  field.

     

    #12248
    Svelbeard
    Participant

    Here is my lua file saved in the multiple_unit folder as class_158.lua

    Any ideas would be greatly appreciated 🙂

     

    function data()

    return {

    vehicles = {

    { name = “vehicle/train/class_158.mdl”, forward = true },

    { name = “vehicle/train/class_158_centre.mdl”, forward = true },

    { name = “vehicle/train/class_158_trailer.mdl”, forward = true },

    },

    name = _(“BR Class 158”),

    desc = _(

    “British Rail Class 158 used for Cross Country Services \n “..

    “Mod made by Svelbeard.”)

    }

    end

    #12286
    Anonymous
    Inactive

    this field looks different in my models:

    name = _(“BR Class 158″),

     

    I would have written in this way:

    name = “BR Class 158”,

    Problem can be not with class_158.lua. You shall check all train configuration files.

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