Blueprint Shotgun


Adds a gun that shoots items to build ghosts, upgrade entities, and more! Also features a vacuum mode to mine entities, tiles, and ground items.

Utilities
6 months ago
1.1
1.11K

b ✅ Crash while dismantling belts

9 months ago

Crash During Game

Hi _CodeGreen!

First off, this is an absolutely great mod. It fits in with the progression curve of the game so well, the physics and sound effects are delightful, and it's made starting a new factory so much more fun. You really nailed it with this one, and I hope it gets a lot of love.

Unfortunately, I had a crash today that booted me out of my game while I was hoovering up a segment of my main bus. Text from the crash report below:

Error while running event blueprint-shotgun::on_script_trigger_effect (ID 155)
LuaItemStack API call when LuaItemStack was invalid for read.
stack traceback:
[C]: in function 'drain_ammo'
blueprint-shotgun/scripts/mine/item-entities.lua:42: in function 'process'
blueprint-shotgun/control.lua:169: in function <blueprint-shotgun/control.lua:90>

Hopefully that's of some help! Let me know if there's any other info that'd make your life easier.

Thanks again :)

9 months ago

Just a quick follow-up after mucking around a bit:

I was able to recreate the error - it looked like I was running low on ammo and the crash may've been triggered by me using up my last bit. When I added more the crashes stopped.

9 months ago

Different Instance this time:

Error while running event blueprint-shotgun::on_script_trigger_effect (ID 155)
LuaItemStack API call when LuaItemStack was invalid for read.
stack traceback:
[C]: in function 'index'
__blueprint-shotgun
/scripts/mine/entities.lua:96: in function 'process'
blueprint-shotgun/control.lua:169: in function <blueprint-shotgun/control.lua:90>

9 months ago

Thanks for the report, apparently ammo item objects don't become invalid objects if they run out of ammo, only invalid for read.
Fixed in 0.0.6

9 months ago

Thank You! - great mod and a lot of fun.

9 months ago

I'm glad you like it! It's a fun project to work on.

New response