I wanted to see what would happen if I set a signal to string...
out["signal-red"] = "for science"
causes this:
Error while running event Moon_Logic::on_tick (ID 0) Moon_Logic/control.lua:380: attempt to compare number with string
stack traceback: Moon_Logic/control.lua:380: in function 'update_signals_in_guis' Moon_Logic/control.lua:410: in function <Moon_Logic/control.lua:408>
Yeah, totally. Just need to add game.remote = remote to sandbox env table, and lua code there will be able to use any such interfaces.
Goes a bit counter to the whole "sandboxing" thing though, and people can abuse this stuff and break other mods and their game completely, so guess I'll just leave it undocumented in the help window :)
Hm, actually, I seem to remember sandboxed luacombinator mod exposing that particular mod interface in a safer way - not just whole "remote", but only a subset for that one mod. But it'd be easier to just expose whole thing for any such mod, and let people who know what they're doing use it, I guess.
Added game.remote = remote in 0.0.19 as a "secret feature".
Should be perfectly fine to use with signalstrings, but as mentioned, probably a bad idea to mess with other mod configuration interfaces that are only intended for other mods through that.