Surviving Mars

Surviving Mars

Lua Console
Showing 1-10 of 10 entries
Update: 8 Apr, 2018 @ 5:03am

Fixes the history (arrow up/down) that broke with the Spirit update.

Update: 27 Mar, 2018 @ 9:49am

Adds stack traces.

Adds helper function lcDebug(...) that'll write its arguments to the console like lcPrint() does but also lists local variables and their values from the calling function.

Update: 27 Mar, 2018 @ 5:30am

Another fix after testing the previous one on Mac.

Update: 27 Mar, 2018 @ 5:23am

Minor adjustments after Mac testing.

Update: 27 Mar, 2018 @ 5:10am

This update introduces support for Waywocket's Mod Config mod. A number of additional options become available through it if Mod Config is installed.

Also now includes a copy of Inconsolata Regular, an open source monospace font. If Mod Config is available, ticking the custom font checkbox (handbox?) causes the console to install this bundled font into the game's install location. It will then be available after a restart.

Update: 25 Mar, 2018 @ 5:37am

This update introduces the "trace" command. Type "trace myFunction()" or something like that to evaluate an expression while tracing its execution. It's really slow though.

"Reload Mods" will now refuse to re-load if it finds a syntax error in any of the mods that are currently loaded. There's also a "Verify Mod Syntax" menu option now so you can check at any time.

Multiple return values are now handled correctly in that all of them are displayed instead of only the first one.

Update: 24 Mar, 2018 @ 3:19am

I put the mod on github and this update is mostly to sync the workshop with github.
https://github.com/thatfool/SMars-Lua-Console

I think there were some minor fixes as well, but I wouldn't know since that would have been before the import into git :P

Update: 22 Mar, 2018 @ 6:22am

This update introduced watch expressions and the scratch pad.

Update: 21 Mar, 2018 @ 7:21am

This update moved Lua Console into its own window.

Update: 19 Mar, 2018 @ 6:35am

The initial version was just a cheap 20 line hack that turned on the built-in console with all its flaws and drawbacks.