judos / robotMiningSite

A factorio mod
GNU General Public License v3.0
5 stars 2 forks source link

Enemy structure cannot be mined after mass upgrading belts. #13

Closed totobest closed 7 years ago

totobest commented 7 years ago

I'm using the Upgrade Builder and Planner to upgrade the belts from a higher tier.

Some upgraded belts went to the "dark force" named "player-miningBots" (see attached screenshot).

I'm playing with a lot of mods (including some bobs) so I'm not sure which one is the culprit, I can tell I did not have this issue since I have added robotMiningSite.

image

Love the mod anyway :)

judos commented 7 years ago

Oh good question. Do you know exactly what steps I need to reproduce the issue? Can you maybe provide a small safegame and mod.zip such that it's easy to check the issue..

Maybe you can shoot that belt just as workaround for now :) The player-miningRobots is a friendly force to make sure mining robots stay separated from the usual construction robots...

totobest commented 7 years ago

Dropbox link: https://www.dropbox.com/sh/r8qxgrhvikpjupm/AABNoAcruQj9QDMDGEYgyyzha?dl=0

I reduced the number of mods to 4 including 2 for debugging purpose (CreativeMode and TimeTools).

1) Load the savegame. Notice there are already some belts that went to the dark side. 2) Use the blueprint to spray the area with Yellow Belts and wait for the Construction bots to upgrade them to Red and/or Blue (Use TimeTools to speed up). Notice some of them will switch to the Red force on the Map view. 3) Use Deconstruction planner to erase belts. Enemy belts will stay. 4) Rince and Repeat from 2) until all belts went to the dark side.

Factorio version 0.15.30

totobest commented 7 years ago

Any update?

judos commented 7 years ago

Hi @mrbaguette, Took some time until I found time again for modding. Now it seems the issue is present in the other mod "BeltUpgrader". I don't know how I didn't see this earlier. Of course it's BeltUpgrader which replaces the belt and sets the force. I read through its code and saw that the force of new belts is somehow random. Roboports from any force might activate a ghost from any other force to upgrade a belt. That means it not only happens if you use robotMiningSite but also for PvP matches or other mods which add separate forces.

To have a faster fix I described the issue again in the forum for the BeltUpgrade mod here: https://forums.factorio.com/viewtopic.php?f=95&t=38757&p=304334#p304334

It should be relatively easy to correct the setting of the force value for newly upgraded belts to the force of the older belt.

Until then you can use this command to remove any selected entity (hover with your mouse some enemy belt) /c game.player.selected.destroy()

Hope that helps.