Page 1 of 1

Need help with Command Line

Posted: Fri Jun 03, 2016 6:33 pm
by Serchill
I have been looking into making a server where me and my Friends can play in two separate teams, whit no locked chest or machines only separate reasearch. But I simply can`t get it to work, any help appriciated. ;)


I found this on another forum: viewtopic.php?f=33&t=14466 -All creds to him. (I`m sorry I can`t post Url`s in my first post :(
This will make it so you have your own research, map, radars, etc. Also makes it so Turrets don't shoot each other!

/c local pforces = {}; for _, player in ipairs(game.players) do local fname = "player_" .. player.name; local force = game.forces[fname] or game.create_force(fname); player.force = force; for _, pforce in ipairs(pforces) do pforce.set_cease_fire(force.name, true); force.set_cease_fire(pforce.name, true) end; pforces[#pforces+1] = force end

The perfect scenario would be this only with two on each team. Can anyone fix this?


Thank in advance! :D
And.. sorry for my English :oops:

Re: Need help with Command Line

Posted: Tue Jun 07, 2016 9:38 am
by bobingabout
I think if you want to do something a bit more complex than that, there's a mod that would help. Unfortunately, I am limited to my usefulness, as I don't remember the name of the mod, and can't easily get links on this system... But the name "Diplomacy" seems to ring a bell.

Re: Need help with Command Line

Posted: Tue Jun 07, 2016 9:56 am
by daniel34
bobingabout wrote:I think if you want to do something a bit more complex than that, there's a mod that would help. Unfortunately, I am limited to my usefulness, as I don't remember the name of the mod, and can't easily get links on this system... But the name "Diplomacy" seems to ring a bell.
[MOD 0.12.x] Diplomacy (0.12.2)
Serchill wrote:I have been looking into making a server where me and my Friends can play in two separate teams, whit no locked chest or machines only separate reasearch.
You can't only have separate research. If the players are on different forces then chests and machines are only accessible by their force, you can't change this behavior. The only way to maybe do that would be a mod that automatically assigns chests and machines to the neutral force, then all the other forces can open them. This has the consequence that biters also won't attack them.