1) Install QuickPrints mod v0.1.3 https://github.com/erisco/quickprints/releases.
2) Start a new game.
3) Place a ghost object on a bush (you can use QuickPrints to unlock the necessary tech for this).
4) Click on the "QuickPrints" button at the top and in the expanded GUI click "On".
5) Walk near the ghost object (the intent here is to have QuickPrints place the object, so you need one in your inventory).
This is the exception you'll get: Relevant line is 232 https://github.com/erisco/quickprints/b ... l.lua#L232
Code: Select all
local nearbyEntities = game.get_surface(1)
.find_entities{minCorner, maxCorner}
for _, entity in pairs(nearbyEntities) do
if entity and entity.name == "entity-ghost" then -- line 232
-- snip
end
end
This is looping over all nearby entities, and somehow it is picking up something the game engine is not happy with, and for some reason bushes are relevant.
Starting on line 110 I create the entity to replace the ghost entity. https://github.com/erisco/quickprints/b ... l.lua#L110
Code: Select all
local surface = game.get_surface(1)
if surface.can_place_entity(properties) then
surface.create_entity(properties)
return true
else
return false
end