Page 1 of 1

[0.17.14] Creating more teams during a PvP scenario doesn't fully work

Posted: Mon Mar 18, 2019 7:04 pm
by Llama
What did you do?
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
It has happened every time I have attempted it

Re: [0.17.14] Creating more teams during a PvP scenario doesn't fully work

Posted: Mon Mar 18, 2019 9:24 pm
by Klonan
Creating a team runtime in the middle of a round isn't supported, all teams must be set up during the round setup config.

Re: [0.17.14] Creating more teams during a PvP scenario doesn't fully work

Posted: Sat Mar 12, 2022 10:09 am
by moullcz
Hello, is this still unrealizationable? anyone knows how to add new team during match?