Page 1 of 1

[REQUEST] Make a "module" from Shuttle Trains

Posted: Fri Apr 14, 2017 10:04 pm
by downriver_bob
Would someone be able to make an edit/take ownership of the mod Shuttle Train (https://mods.factorio.com/mods/simwir/ShuttleTrain) and include a module (like the FARL module) that gives functionality of a shuttle train to any locomotive?

Usage case would be bobs mods games where you get upgraded locomotives, but your personal shuttle train is still mk1 speed

Re: [REQUEST] Make a "module" from Shuttle Trains

Posted: Fri Apr 14, 2017 11:25 pm
by Nexela
I might take a stab at this.

Quick glance

Code: Select all

function isShuttle(locomotive)
    if locomotive.name == "shuttleTrain" then
        return true
    else
        return false
    end
end
Need to look in it deeper but might possible to just add the module check there.

Re: [REQUEST] Make a "module" from Shuttle Trains

Posted: Fri Apr 14, 2017 11:39 pm
by downriver_bob
Thanks for that, I thought it shouldnt be too difficult, I even had a look around in the FARL files myself to try and duplicate the functionality. But I'm no coder by any stretch of the imagination, and have zero experience with LUA.

I've tried to contact the author via the mod portal and tgeir website with no response, so hopefully you can help me out without too much trouble.

Thanks again, I really appreciate it

Re: [REQUEST] Make a "module" from Shuttle Trains

Posted: Sat Apr 29, 2017 10:35 am
by Nexela
Putting some finishing polishes on Shuttle Train V2, hope to have a release by this time tomorrow.