[LUA] log file

If by "any" you mean "any old log file" then

Code:
print("my message")
will put "my message" into Lua.log

If however you want to be able to write to a specific log (eg database.log) then no.
 
Also, a print statement that sends a message to the Lua.log will also send it to FireTuner, as long as you set "EnableTuner = 1" in your config.ini file. So if you DO want to be reading those messages, you're better off just running the Tuner alongside your game instead of constantly opening the logfile.
 
I want to make some debug in MP mode. FireTuner is off in MP mode. I dont know if print is off also but I think so.
I think that only way to debug in MP mode is to send "message" to popup window.
 
you're better off just running the Tuner alongside your game instead of constantly opening the logfile.

Tuner places a load on the game, you can just use a "log following" app (like BareTail) to watch Lua.log. You can also use it to do line highlighting, which makes it a heck of a lot easier to find the mssages you want.
 
I want to make some debug in MP mode. FireTuner is off in MP mode. I dont know if print is off also but I think so.
I think that only way to debug in MP mode is to send "message" to popup window.

Firetuner is off, but the print command still output text to the Lua log, at least in hotseat, I haven't tried in LAN or internet MP...
 
Back
Top Bottom