Need help with Command Line

Place to post guides, observations, things related to modding that are not mods themselves.
User avatar
Serchill
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Jun 03, 2016 6:19 pm
Contact:

Need help with Command Line

Post 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:
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Need help with Command Line

Post 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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Need help with Command Line

Post 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.
quick links: log file | graphical issues | wiki
Post Reply

Return to “Modding discussion”