Windows 7 Lua Debugging

Windows 7 Lua Debugging

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
Freezerburn
Posts: 20
Joined: 26 Jan 2011, 20:25

Windows 7 Lua Debugging

Post by Freezerburn »

Is there an easy way to capture the console output of Spring during start-up of the game/mod, similar to if you were to run Spring in a Unix environment? I usually have a terminal that I use to run Spring on a Mac, but I'm currently in a Windows 7 environment and am unable to see the error messages my Lua scripts are generating, making it impossible to debug my code.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Windows 7 Lua Debugging

Post by FLOZi »

Run in a window (as you probably are anyway) and just read infolog.txt?
Freezerburn
Posts: 20
Joined: 26 Jan 2011, 20:25

Re: Windows 7 Lua Debugging

Post by Freezerburn »

FLOZi wrote:Run in a window (as you probably are anyway) and just read infolog.txt?
I can't seem to find any infolog.txt anywhere in the Program Files/Spring directory. I checked pretty much every folder, as far as I can tell.

EDIT: Derp, found it in Documents. Thanks!
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Windows 7 Lua Debugging

Post by FLOZi »

Should be sat right next to your spring.exe.

edit: Damn, I was about to put 'or maybe it was moved to documents'

Really, that is a PITA for content devs. :x

Perhaps there is a way to force it to remain in its CORRECT location. :P
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Windows 7 Lua Debugging

Post by Forboding Angel »

No it's not hard. Just add libraries.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Windows 7 Lua Debugging

Post by CarRepairer »

Use Komodo or Notepad++ to run Spring.exe and it shows you the output.
Post Reply

Return to “Lua Scripts”