Redo


Adds a redo keybind and shortcut for when you undo too much.

Utilities
3 months ago
1.1
3.96K

b βœ… Crash with power switch

1 year, 3 months ago

The game crashed when I tried to redo the deleteion of a ghost:


1845.947 Error MainLoop.cpp:1288: Exception at tick 192634317: The mod Redo (0.2.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event redo::undo (ID 491)
Expected source_wire_id for entities with more than one wire connection.
stack traceback:
[C]: in function 'connect_neighbour'
redo/control.lua:516: in function 'create_entity_ghost'
redo/control.lua:540: in function '?'
redo/control.lua:626: in function 'input_action'
redo/control.lua:634: in function <redo/control.lua:634>


Thanks

1 year, 3 months ago

what kind of entity was it?

1 year, 3 months ago

If I'm not mistake, was a Power Switch! A ghost of a power switch with copper and circuit wires connected!

Thanks.

1 year, 3 months ago

After a lot of investigating, I'm pretty sure the API just doesn't give me the information I need to fix this in a reasonable way.
The issue is that there's no way for me to read the copper cable connections of a power switch, therefore that data isn't getting stored.
The error happens when it tries to connect the power switch to something with data that doesn't exist, so until that data becomes exposed to the API I don't think I can fix this. Sorry!

1 year, 3 months ago

After a lot of investigating, I'm pretty sure the API just doesn't give me the information I need to fix this in a reasonable way.
The issue is that there's no way for me to read the copper cable connections of a power switch, therefore that data isn't getting stored.
The error happens when it tries to connect the power switch to something with data that doesn't exist, so until that data becomes exposed to the API I don't think I can fix this. Sorry!

Ok, I understand! But at least the mod shouldn't crash...

1 year, 3 months ago

You're right, it shouldn't. It's 1AM for me right now, so I'm going to fix that in the morning.

1 year, 2 months ago

Just got a similar crash to this one, also involving a power switch.

Here is the crash message:

The mod Redo (0.2.7) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event redo::on_lua_shortcut (ID 36)
Expected target_wire_id for entities with more than one wire connection.
stack traceback:
[C]: in function 'connect_neighbour'
redo/control.lua:519: in function 'create_entity_ghost'
redo/control.lua:546: in function '?'
redo/control.lua:632: in function 'input_action'
redo/control.lua:644: in function <redo/control.lua:642>

New response