[0.12.33] crash with forces (merge then create ?)

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

[0.12.33] crash with forces (merge then create ?)

Post by binbinhfr »

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.
Attachments
MayTheForceBeWithYou_0.0.1.zip
(14.13 KiB) Downloaded 109 times
factorio-crash add force 2.log
(7.57 KiB) Downloaded 124 times
factorio-crash add force 1.log
(7.34 KiB) Downloaded 104 times
My mods on the Factorio Mod Portal :geek:

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [0.12.33] crash with forces (merge then create ?)

Post by bobingabout »

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 ?
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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.33] crash with forces (merge then create ?)

Post by Rseding91 »

bobingabout wrote:... Items not having a force is... well... an illogical game situation.
Entities that have a force can't *not* have a force :) So yes, either deleting them all or giving them to some other force are the only 2 options.

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.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [0.12.33] crash with forces (merge then create ?)

Post by binbinhfr »

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 ?
My mods on the Factorio Mod Portal :geek:

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.33] crash with forces (merge then create ?)

Post by Rseding91 »

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.

Post Reply

Return to “Resolved Problems and Bugs”