How to setup a non-coop server?
Posted: Tue Dec 22, 2015 2:45 am
I am setting up a server for me and my friends to play together on, but I have a few challenges and could need some tips.
I found a console command that makes it so we are no longer sharing research, by setting up different "teams":
game.create_force('force 1')
game.get_player('friend 1').force = game.forces['force 1']
This also makes us enemies (turrets shoots other players etc), but I found a console command to disable this.
This works great, however, we all start in the same area and re-spawn in the same place. This is a bit hassle as we have to walk back to our base after re-spawning.
1. Is it a way to make players spawn away from each others?
2. Is it a way to set re-spawn point per player (or per "team")?
3. What is the console command to disable turrets from attacking players? (I lost the page where I found it).
4. I found a map for an older version of Factorio that stated that players get a popup to choose a team when they log in. But I cannot find anything like that in the map editor. Is it still possible?
5. Is the whole map loaded and running if only one player is online? Will the other bases continuously get attacked until everyone logs off?
Edit:
I found the answer for #4, which also makes #1 and #2 possible, but with some challenges.
The map is here: https://forums.factorio.com/forum/vie ... 36&t=15052
It is not really a map, it is a lua script that adds the functionality. It was pretty simple to edit it to my liking. When you log in you can choose between two teams, and when you choose one of them you are assigned the team and is teleported to coords x/y. It also sets the spawn point for the team members. The main problem is that you might get teleported into the ocean, or into a large enemy base. The ocean problem is easy to check before you save the map for multiplayer use. He has solved the enemy problem by giving players weapons and armor each time they respawn. However, this can easily be abused.
Checking for oceans is a bit trickier if you want 10 teams instead of 2.
I found a console command that makes it so we are no longer sharing research, by setting up different "teams":
game.create_force('force 1')
game.get_player('friend 1').force = game.forces['force 1']
This also makes us enemies (turrets shoots other players etc), but I found a console command to disable this.
This works great, however, we all start in the same area and re-spawn in the same place. This is a bit hassle as we have to walk back to our base after re-spawning.
1. Is it a way to make players spawn away from each others?
2. Is it a way to set re-spawn point per player (or per "team")?
3. What is the console command to disable turrets from attacking players? (I lost the page where I found it).
4. I found a map for an older version of Factorio that stated that players get a popup to choose a team when they log in. But I cannot find anything like that in the map editor. Is it still possible?
5. Is the whole map loaded and running if only one player is online? Will the other bases continuously get attacked until everyone logs off?
Edit:
I found the answer for #4, which also makes #1 and #2 possible, but with some challenges.
The map is here: https://forums.factorio.com/forum/vie ... 36&t=15052
It is not really a map, it is a lua script that adds the functionality. It was pretty simple to edit it to my liking. When you log in you can choose between two teams, and when you choose one of them you are assigned the team and is teleported to coords x/y. It also sets the spawn point for the team members. The main problem is that you might get teleported into the ocean, or into a large enemy base. The ocean problem is easy to check before you save the map for multiplayer use. He has solved the enemy problem by giving players weapons and armor each time they respawn. However, this can easily be abused.
Checking for oceans is a bit trickier if you want 10 teams instead of 2.