[0.11.3] Running custom functions from MP
Posted: Mon Nov 24, 2014 7:26 pm
Hi Guys,
I'm running the latest version of factorio and i've come across a little niggly issue. My friend and I wanted to start, travel away from eachother, and each make factories ourselves, and work against eachother, then build up the possibility of using the rail system for other more railway'ey things like stations for us, and maybe setups for trading resources etc etc... ANYWAY enough about our gameplay plans. What I wanted to do... Is I have my code for this already (I think, still not been able to test) as follows:
function enableTravel()
for plr in game.players do
plr.insert{{name="car", count=1}}
plr.insert{{name="coal", count=50}}
end
end
And referenced this in the base data.lua as required. (I know, I know, dont modify base, bla bla bla, but This is just for me testing and i CBA to send my friend a mod for me to just run a script to automate me giving each of us some items).
My question is as follows:
How do i call "enableTravel" from in-game? I found out quickly that "/c enableTravel()" does not do what I would expect. Any help? ^_^
If the answer is "Multiplayer is buggy, wait until they've released their first stable iteration of Multiplayer" then fair enough. But I thought i'd ask the question anyway
I'm running the latest version of factorio and i've come across a little niggly issue. My friend and I wanted to start, travel away from eachother, and each make factories ourselves, and work against eachother, then build up the possibility of using the rail system for other more railway'ey things like stations for us, and maybe setups for trading resources etc etc... ANYWAY enough about our gameplay plans. What I wanted to do... Is I have my code for this already (I think, still not been able to test) as follows:
function enableTravel()
for plr in game.players do
plr.insert{{name="car", count=1}}
plr.insert{{name="coal", count=50}}
end
end
And referenced this in the base data.lua as required. (I know, I know, dont modify base, bla bla bla, but This is just for me testing and i CBA to send my friend a mod for me to just run a script to automate me giving each of us some items).
My question is as follows:
How do i call "enableTravel" from in-game? I found out quickly that "/c enableTravel()" does not do what I would expect. Any help? ^_^
If the answer is "Multiplayer is buggy, wait until they've released their first stable iteration of Multiplayer" then fair enough. But I thought i'd ask the question anyway