Windows 7 Lua Debugging
Moderator: Moderators
-
- Posts: 20
- Joined: 26 Jan 2011, 20:25
Windows 7 Lua Debugging
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.
Re: Windows 7 Lua Debugging
Run in a window (as you probably are anyway) and just read infolog.txt?
-
- Posts: 20
- Joined: 26 Jan 2011, 20:25
Re: Windows 7 Lua Debugging
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.FLOZi wrote:Run in a window (as you probably are anyway) and just read infolog.txt?
EDIT: Derp, found it in Documents. Thanks!
Re: Windows 7 Lua Debugging
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.
Perhaps there is a way to force it to remain in its CORRECT location.
edit: Damn, I was about to put 'or maybe it was moved to documents'
Really, that is a PITA for content devs.

Perhaps there is a way to force it to remain in its CORRECT location.

- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Windows 7 Lua Debugging
No it's not hard. Just add libraries.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Windows 7 Lua Debugging
Use Komodo or Notepad++ to run Spring.exe and it shows you the output.