Page 1 of 1

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

Posted: Mon May 09, 2016 9:39 pm
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.

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

Posted: Tue May 10, 2016 9:43 am
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.

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

Posted: Tue May 10, 2016 5:32 pm
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.

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

Posted: Tue May 10, 2016 8:28 pm
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 ?

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

Posted: Wed May 11, 2016 12:40 am
by Rseding91
Thanks for the report. It's now fixed for the next version.