Linux headless server: 2 player, 2 forces, separate research

Find multiplayer games.
Tools/scripts to run a dedicated server.
Post Reply
Exxter
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Apr 11, 2016 10:10 am
Contact:

Linux headless server: 2 player, 2 forces, separate research

Post by Exxter »

Hello,

i have a "Factorio 0.12.29 (Build 17931, linux64, headless)" Server on Linux Debian 8.4 and i search the way, how i can configure 2 players with different researches. I have found:

viewtopic.php?f=3&t=13512&start=80#p92087

but how can i use this:

Code: Select all

game.create_force('force 1')
game.create_force('force 2')
game.get_player('friend 1').force = game.forces['force 1']
game.get_player('friend 2').force = game.forces['force 2']


I cant write this in my config/config.ini

Any tips?

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Linux headless server: 2 player, 2 forces, separate research

Post by prg »

You write that in the console in game. Open with ~, prefix commands with /c or it will result in a chat message. Make sure commands are allowed when you start the multiplayer game. You can save and reload without commands enabled once you have stuff set up properly.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Exxter
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Apr 11, 2016 10:10 am
Contact:

Re: Linux headless server: 2 player, 2 forces, separate research

Post by Exxter »

Seems to work, thanx very much! :)

Post Reply

Return to “Multiplayer / Dedicated Server”