raiguard / EditorExtensions

Extends the Factorio map editor with new features, testing tools, and other utilities to aid with sandbox play and scenario creation.
https://mods.factorio.com/mod/EditorExtensions
Other
28 stars 11 forks source link

Leaving the editor while in remote view causes all entities in your factory to turn into enemy entities #176

Open TheGarbanzo opened 1 month ago

TheGarbanzo commented 1 month ago

Description

Leaving the editor while in remote view (while in the editor) causes entire factory to become hostile structures

Reproduction

  1. Enter editor surface
  2. Open remote view
  3. Leave editor via hotkey
blackheart3d commented 1 month ago

+1

blackheart3d commented 1 month ago

To re-emphasise on what @TheGarbanzo said, if you don't close the remote view before exiting the editor it does this. The only way to fix is to roll back your save as far as I can tell

TheGarbanzo commented 1 month ago

To re-emphasise on what @TheGarbanzo said, if you don't close the remote view before exiting the editor it does this. The only way to fix is to roll back your save as far as I can tell

There actually was another way to fix. Youd have to bring up the editor while in your factory and use it to make all your entities neutral. It's for sure not ideal but could save you if you spent a lot of time in the editor and didn't noticed that you've triggered the bug

Krealle commented 3 weeks ago

Just encountered this bug myself, it also seems to reset all your infinite research.

Krealle commented 3 weeks ago

Found a way to fix it very easily! You just need to go into the map editor, then go to your factory and set the current force to Player, then go back to the editor world and exit map editor. Then all should be back to normal, even got my research back :sweat_smile:

raiguard commented 3 weeks ago

Thanks for the report. Fixing this properly will require a mod API addition, so it will be a little bit.

scponder504 commented 3 weeks ago

Use command /c game.player.print(game.players["YourUsername"].force.name) to show that your character is on EE_TESTFORCE_1 So I found that using the command /c game.players["YourUsername"].force = "player" fixes it. As the factory stays the same, and the player is the one who changed forces.

Of course, replace only YourUsername (leaving the quote marks) with your, actual, username.