Skip to content
Exho1 edited this page Feb 25, 2015 · 1 revision

Introduction

Currently there is a hook that is called when a Lua error occurs, 'OnLuaError', but it only exists in the menu realm so its basically useless for the gPhone. Instead the gPhone has a manual system of logging events that happen within the phone to help give a little more understanding as to what was going on when the error occured, obviously the Lua error is more helpful but everything helps.

What to do when a Lua error occurs

Copy the Lua error(s) that have occurred in their entirety and copy those to a text document and then type the command 'gphone_dump' into your console and make note of the file name it gives you in colored text. Then you should paste the lua errors into the dump file and pastebin the contents and finally send the link to me.

You don't have to include the dump file and I won't ignore you if you fail to include one, but it helps. The full Lua error is what I need and the dump file helps me figure out the context because some times people fail to explain what they did to cause the error

Functions

This adds an entry to the log table, make sure to be specific as to what this means and try not to call it too often as to not clutter the dump file.

gPhone.log( string )

This takes the contents of the logging table and writes them to a text file then wipes the log

gPhone.dumpLog()

This wipes the log, duh. {}

gPhone.wipeLog()

Clone this wiki locally