I tried to create a 3rd team in a PvP scenario in-game with commands* which did work according to a team-counting command**, but it did not register on the Teams or Admin menu in the top left. Using commands to make a player join the team did also not work.***
Creating team*
/c game.create_force("Team Dom")
Checking name of forces:**
/c for name, force in pairs (game.forces) do
game.print(name)
end
Forcing player to join team***
/c game.players["Dom"].force = game.forces["Team Dom"]
as per:
https://wiki.factorio.com/Multiplayer#Forces
What happened?
Commands were executed without error, and the team-counting command confirmed the forces had been created but players could not join new forces.
What did you expect to happen instead?
I expected the newly-created teams to show up in the Teams or Admin menu in the top left, and I expected to be able to make a player join new teams via commands.
Steps to reproduce:
- Host PvP scenario (having added yourself to the admin list for good luck)
- Press ` key to open chat
- Press Ctrl-V to paste pre-prepared command:
/c game.create_force("Team Dom")
- Press Enter
- Press ` key to open chat
- Press Ctrl-V to paste pre-prepared command:
/c for name, force in pairs (game.forces) do game.print(name)end
- Press Enter
- LMB click Teams menu in the top left to look for new team
- LMB click Admin menu in the top left to look for new team
- Press ` key to open chat
- Press Ctrl-V to paste pre-prepared command: (change player name "Dom" as necessary for testing)
/c game.players["Dom"].force = game.forces["Team Dom"]
- Press Enter
- Sadly accept that it's not happening