Actual Underground Pipes


What? Pipes that are actually... underground!?

Tweaks
14 days ago
2.0
771
Logistics Fluids

b [fixed] Crash when placing last pipe in inventory above ground

a month ago
(updated a month ago)

The mod Actual Underground Pipes (0.1.11) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event the-one-mod-with-underground-bits::on_player_cursor_stack_changed (ID 35)
Unknown item name:
stack traceback:
[C]: in function 'remove'
the-one-mod-with-underground-bits/control.lua:89: in function <the-one-mod-with-underground-bits/control.lua:62>

only happens when placing last pipe from inventory above ground, underground is fine.

Potential fix:
replace (control.lua, line 89)

local removed = player.get_main_inventory().remove{
name = old_item:sub(8,-1),
count = player.cursor_ghost.name.stack_size,
quality = old_quality
}

with:

if item:sub(1,7) == "tomwub-" then
old_item = old_item:sub(8,-1)
else
old_item = old_item:sub(1,-1)
end
local removed = player.get_main_inventory().remove{
name = old_item:sub(1,-1),
count = player.cursor_ghost.name.stack_size,
quality = old_quality
}

at least that worked on my computer :D

a month ago

Thanks, I'll look into it

a month ago

Fixed in latest release

a month ago
(updated a month ago)

It came back

Error while running event the-one-mod-with-underground-bits::on_player_cursor_stack_changed (ID 35)
Unknown item name:
stack traceback:
[C]: in function 'remove'
the-one-mod-with-underground-bits/control.lua:108: in function <the-one-mod-with-underground-bits/control.lua:81>

Plus It's spread to fluid tanks

Error while running event the-one-mod-with-underground-bits::on_player_cursor_stack_changed (ID 35)
Unknown item name: -tank
stack traceback:
[C]: in function 'remove'
the-one-mod-with-underground-bits/control.lua:108: in function <the-one-mod-with-underground-bits/control.lua:81>

And on top of it, It crashes when you press the layer swap key while holding a blueprint. I know this cause it set itself to "G" by default and i fat fingered the key.

Error while running event the-one-mod-with-underground-bits::tomwub-swap-layer (ID 261)
the-one-mod-with-underground-bits/control.lua:249: attempt to index local 'item' (a nil value)
stack traceback:
the-one-mod-with-underground-bits/control.lua:249: in function <the-one-mod-with-underground-bits/control.lua:237>

a month ago

I should probably ask if the update is out yet but I'm going off the fact that the thread names says it's been fixed.

a month ago
(updated a month ago)

Crash hadn't been fixed.

The mod Actual Underground Pipes (0.1.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event the-one-mod-with-underground-bits::on_player_cursor_stack_changed (ID 35)
Unknown item name:
stack traceback:
[C]: in function 'remove'
the-one-mod-with-underground-bits/control.lua:108: in function <the-one-mod-with-underground-bits/control.lua:81>

Same reason.

The name = old_item:sub(8,-1) cuts out the item name regardless if it starts with "tomwub-" or not, so it works fine when you place the last pipe underground as it is the "tomwub-pipe", but when you place it above ground what enters the function is just "pipe". Which get first 7 characters cut out so the game can't find item with name "".

My initial 'fix' still works on my machine :D.

a month ago

What seems to be happening involves mod's attempt at making a dynamic system that makes pipes underground (which is neat, as it makes compatibility much easier as it basically is 'out of the box' with most mods adding pipes, but it appears that the handling of the item/entity names might need some work)

a month ago

This is strange... I'm not seeing the bug anywhere... Exactly what steps are you using to produce this bug?

a month ago

Have only 1 pipe in inventory, select it, place it in normal mode(above ground) = crash.

a month ago

Hm... how do you recreate the crash using other items?

a month ago

I can't recreate the crash on my end, let me know if it still happens with v0.1.13

a month ago

I'm playing with Voidblock and a bunch of other mods, But Actual undergrounds is the only mod that I have that effects pipes themselves.

All I did was have one fluid tank in my inventory > placed it > crash log.

a month ago

Hm, can you send your save over?

a month ago

How do I do tht?

a month ago

On discord or here, with a google drive link or something

a month ago

I'll try and figure out how to do so.

a month ago

Either that, or some specific instructions on recreating the bug from a brand new save

New response