Make a batch file that loads your script with luaplayer, then on the next line type "pause".
At the moment i use a command script to launch lua player and my script. the only way i can get errors though is to quickly switch back to the command prompt before the script crashes, and try and printscreen it. this is incrediably annoying.
is there some code , or setup that will log the erorrs to a text file for easy reading?
Make a batch file that loads your script with luaplayer, then on the next line type "pause".
luaplayer changethis.lua
pause
change "changethis.lua" to your script you are running eg script.lua then save it as script.cmd or whatever
PSN ID: splodger15
in luaplayer 2.0:
pcall (f, arg1, ...)
--------------------
Calls function f with the given arguments in protected
mode. This means that any error inside f is not
propagated; instead, pcall catches the error and returns
a status code. Its first result is the status code (a
boolean), which is true if the call succeeds without
errors. In such case, pcall also returns all results from
the call, after this first result. In case of any error,
pcall returns false plus the error message.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks