[REQUEST] Make a "module" from Shuttle Trains

This is the place to request new mods or give ideas about what could be done.
Post Reply
downriver_bob
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun Mar 12, 2017 4:20 am
Contact:

[REQUEST] Make a "module" from Shuttle Trains

Post 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

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

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

Post 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.

downriver_bob
Burner Inserter
Burner Inserter
Posts: 9
Joined: Sun Mar 12, 2017 4:20 am
Contact:

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

Post 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

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

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

Post by Nexela »

Putting some finishing polishes on Shuttle Train V2, hope to have a release by this time tomorrow.

Post Reply

Return to “Ideas and Requests For Mods”