Moon Logic deprecated

by mk-fg

Adds Lua-programmable circuit network combinator. Based on Sandboxed LuaCombinator and LuaCombinator2 mods. Probably won't work in multiplayer games.

Content
2 years ago
1.0 - 1.1
4.97K
Circuit network

b [fixed] refresh error message for invalid signals

4 years ago

Hello, I see here is a bug, for a simple code but with typo, like
out.wook = 1
I get error message unknown signal. Once I fix it to out.wood = 1 and save the code, the error doesn't disappear. I need to clear all code and click save to remove error message. After that I can paste back the correct code. Please check it. Thank you.

4 years ago

Hi.
It's not exactly bug, as "out" table is supposed to be persistent like that, i.e. if you put "wook" in there, it'll stay until you clear it up.
But don't think it's useful to keep invalid signals there, as they are not displayed in the window either, so can be confusing like that.

4 years ago

Or hmm... actually, maybe it'd be better just to display these in the right panel, as lua code might be setting this signal only once, and if it gets silently cleared up, you'll never know there was an error, as it won't be there next tick or whatever, but keeping and showing it properly should make it perfectly clear.

4 years ago

Should be fixed in 0.0.41 - invalid signals stuck in output table will be displayed in the gui on the right, after all other signals, with special prefix and color.
They can be invalid for various reasons, e.g. invalid name, wrong value type, number out of range, etc, and can still be used in the code, despite causing the error if left in that table.
Thanks for reporting!

4 years ago

OK, thanks for response, looking forward next version.

New response