I started writing a mod dealing with forces and I had a crash.
I can reproduce it :
Create a new map, just with my mod active.
Click on the main button to open the GUI.
Click 2 times on "+" to create 2 forces.
Then delete the first created force clickin "X" 2 times (to confirm)
Then add new forces again with "+", and you'll have a crash.
The problem seems to be inherent of the merge_forces.
Maybe my mod is not correct too, but I suppose it shouldn't crash anyway, so I send you the report, if you are interested...
PS : by the way, to delete a force, I supposed that the only solution is to merge it into another one, for example the neutral or player one
(eventually cleaning the tech tree before), so that entity will always has a force ?
Thx for the game.
[0.12.33] crash with forces (merge then create ?)
[0.12.33] crash with forces (merge then create ?)
- Attachments
-
- MayTheForceBeWithYou_0.0.1.zip
- (14.13 KiB) Downloaded 137 times
-
- factorio-crash add force 2.log
- (7.57 KiB) Downloaded 152 times
-
- factorio-crash add force 1.log
- (7.34 KiB) Downloaded 134 times
My mods on the Factorio Mod Portal 

- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: [0.12.33] crash with forces (merge then create ?)
That was my conclusion as well. from a logical point, there's only really 2 ways to deal with entities on a force that is going to be deleted. Either delete them too, or assign them to another force. Items not having a force is... well... an illogical game situation.binbinhfr wrote:PS : by the way, to delete a force, I supposed that the only solution is to merge it into another one, for example the neutral or player one
(eventually cleaning the tech tree before), so that entity will always has a force ?
Re: [0.12.33] crash with forces (merge then create ?)
Entities that have a force can't *not* have a forcebobingabout wrote:... Items not having a force is... well... an illogical game situation.

What would probably be useful is a "delete force" option to dispose of all entities on a force and the force its self. That would of course require no players existed on the force since you can't delete them unless they're offline.
If you want to get ahold of me I'm almost always on Discord.
Re: [0.12.33] crash with forces (merge then create ?)
a special delete force function is not so urgent.
merge force is ok for me.
but it seems to generate problem and crash everytime I use it.
Any news about this bug ?
merge force is ok for me.
but it seems to generate problem and crash everytime I use it.
Any news about this bug ?
My mods on the Factorio Mod Portal 

Re: [0.12.33] crash with forces (merge then create ?)
Thanks for the report. It's now fixed for the next version.
If you want to get ahold of me I'm almost always on Discord.