Actual Underground Pipes


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

Tweaks
a month ago
2.0
1.08K
Logistics Fluids

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

5 months ago
(updated 5 months 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

5 months ago

Thanks, I'll look into it

5 months ago

Fixed in latest release

5 months ago
(updated 5 months 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>

5 months 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.

5 months ago
(updated 5 months 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.

5 months 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)

5 months ago

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

5 months ago

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

5 months ago

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

5 months ago

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

5 months 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.

5 months ago

Hm, can you send your save over?

5 months ago

How do I do tht?

5 months ago

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

5 months ago

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

5 months ago

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

New response