Autobuild

by therax

Autobuild allows your character to automatically build, deconstruct, and upgrade nearby ghosts. A more efficient alternative to mods like Bluebuild.

Utilities
4 months ago
0.17 - 1.1
18.0K

b (fixed) Fatal Error When Deconstructing Trees

10 months ago

Error While Running event autobuild::on_nth_tick(5)
Item Stack Count has to be positive Integer.
Stack Traceback:
[C]: in function 'can_insert'
--autobuild__/control.lua.407: in function
'can_insert_into_players_inventory'
autobuild/control.lua:439: in function
<autobuild/control.lua:434>
(...tail calls...)
autobuild/control.lua:545: in function 'do_autobuild'
autobuild/control.lua:643: in function 'handle_player_update'
autobuild/control.lua:649: in function
<autobuild/control.lua:647>

Error occurs when marking trees for deconstruction and enabling the mod VIA hotkey.

Additional Mods are in use but I tried to narrow down any that directly affect trees or generation.

10 months ago
(updated 10 months ago)

Thanks for the report.
Seems to be a case I have to fix, because somehow the count gets negative or maybe 0, which I thought couldn't happen.
I wasn't able to reproduce. Do you have a mod, which adds some custom trees?

Anyway, I just catch the case and hope to fix that way.

10 months ago

Current Mods incase you know of any compatibility issues :

"name":"base",,
"name":"AbandonedRuins",,
"name":"autobuild",,
"name":"AutoDeconstruct",,
"name":"basic-robots",,
"name":"BetterRoboport",,
"name":"bright-lamp",,
"name":"bullet-trails",,
"name":"clock",,
"name":"dark-nights",,
"name":"DiscoScience",,
"name":"discovery_tree",,
"name":"DoingThingsByHand",,
"name":"EnableResearchQueue",,
"name":"epic_mining_and_crafting_speed_research",,
"name":"Factorio_Roboport_mk2",,
"name":"fast_trans",,
"name":"Flammable_Oils_Updated",,
"name":"flib",,
"name":"Geothermal",,
"name":"growing-on-me",,
"name":"HelicopterRevival",,
"name":"Honk",,
"name":"informatron",,
"name":"jetpack",,
"name":"LabDansen",,
"name":"LB-Modular-Chests",,
"name":"lex-aircraft",,
"name":"LightedPolesPlus",,
"name":"lightorio",,
"name":"Milestones",,
"name":"MIRV",,
"name":"MushroomCloud-patched",,
"name":"playtime-plus",,
"name":"qol_research",,
"name":"RecipeBook",,
"name":"Repair_Turret",,
"name":"Robocharger",,
"name":"RoboportRechargeUpgrade",,
"name":"RoboportBigPole",,
"name":"Roboport_and_Radar_MK2",,
"name":"robot_attrition",
"name":"scattergun_turret",
"name":"Science_pack_glow",
"name":"signalstrings",
"name":"simhelper",
"name":"Somber-Death-Trains",
"name":"SqueakThrough"

9 months ago

I just catched the case and hope to fix that way.
Please let me know, if it still fails, or something different is weird.

New response