Bilka2 / NewGamePlus

Factorio mod that allows the player to start a new game+
https://mods.factorio.com/mod/NewGamePlus
MIT License
5 stars 2 forks source link

Factorissimo 2 notnotmelon fork compatibility #5

Open Zaflis opened 1 year ago

Zaflis commented 1 year ago

I'm using the Factorissimo 2 - notnotmelon fork which uses 1 shared surface for all of them. https://mods.factorio.com/mod/factorissimo-2-notnotmelon

While the error comes from Factorissimo's scripts, i assume it results from all surfaces being deleted. Would it be possible to deal with those factories some way? Either skip deleting those surfaces or throughly erase even Factorissimo's data about them and carried buildings from inventory?

I'd prefer the easier option (maybe a mod setting option) that skips Factorissimo's surfaces from deletion. Since i carry things in my inventory it is kind of up to me what i want to bring over.

How to reproduce: 1) Start new game. 2) Research Factorissimo tech, craft one (and visit inside ?). 3) Use the /ngp-gui and start new game. At this point game crashes back to main menu.

Bilka2 commented 1 year ago

The surfaces used by Factorissimo 2 are excluded from deletion, so the same should go for the surfaces of the notnotmelon fork. For that the surface name pattern needs to be added to the no_delete_surface_patterns. Looks like it should be "factory-floor-".

Zaflis commented 1 year ago

At least Warptorio2 didn't have an update specifically for notnotmelon fork and it works fine with it. In /editor mode i can see that the surface is called "factory-floor-1" where all the different building contents show in same map view.