EngineErrorCodes.wiki
changeset 1469 2bec529b425b
parent 1468 cb87eed7b3d9
child 1470 00be2c8b4d5d
equal deleted inserted replaced
1468:cb87eed7b3d9 1469:2bec529b425b
     1 #summary List of engine error codes
     1 #summary Description and list of engine error codes
     2 
     2 
     3 When the engine crashes or is closed, it returns an exit code (or error code) which can be used to further analyze the problem.
     3 = Engine error codes =
       
     4 When the Hedgewars engine (`hwengine`) crashes or is closed, it returns an exit code (or error code) which can be used to further analyze the problem.
     4 
     5 
     5 = List of engine error codes =
     6 == List of engine error codes ==
     6 This is the list of all possible error codes:
     7 This is the list of all possible error codes:
     7 
     8 
     8 || *Exit code* || *Meaning* || *Description* || *Solution* ||
     9 || *Exit code* || *Meaning* || *Description* || *Solution* ||
     9 || 0 || No error || Engine exited normally || N/A ||
    10 || 0 || No error || Engine exited normally || N/A ||
    10 || 51 || Usage error || The engine was launched with invalid command line arguments || Check your command-line arguments. Use `hwengine --help` for a list ||
    11 || 51 || Usage error || The engine was launched with invalid command line arguments || Check your command-line arguments. Use `hwengine --help` for a list ||
    11 || 52 || Fatal error || Generic error for critical errors. Commonly happens when a critical file like an image was not found || Check the error message or the end of `Logs/game0.log` in your [http://hedgewars.org/wiki/User_directory user directory] for clues ||
    12 || 52 || Fatal error || Generic error for critical errors. Commonly happens when a critical file like an image was not found || Check the error message or the end of `Logs/game0.log` in your [http://hedgewars.org/wiki/User_directory user directory] for clues ||
    12 || 53 || Startup error || Failure while initializing stuff on startup, like graphics, shader, OpenGL stuff, etc. || Check your [Dependencies] and if you have the latest drivers installed and update them as needed ||
    13 || 53 || Startup error || Failure while initializing stuff on startup, like graphics, shader, OpenGL stuff, etc. || Check your [Dependencies] and if you have the latest drivers installed and update them as needed ||
    13 || 54 || Fatal error, no IPC socket || Similar to error 52, but the IPC socket is not working for some reason || Check the end of `Logs/game0.log` in your [http://hedgewars.org/wiki/User_directory user directory] for clues ||
    14 || 54 || Fatal error, no IPC socket || Similar to error 52, but the IPC socket is not working for some reason || Check the end of `Logs/game0.log` in your [http://hedgewars.org/wiki/User_directory user directory] for clues ||
    14 || Other || Free Pascal run-time error. This is probably a bug || See [https://www.freepascal.org/docs-html/user/userap4.html Free Pascal run-time errors] || [http://www.hedgewars.org/bugs Report a bug], then someone should fix it ||
    15 || Other || Free Pascal run-time error. This is probably a bug || See [https://www.freepascal.org/docs-html/user/userap4.html Free Pascal run-time errors] || [http://www.hedgewars.org/bugs Report a bug], then someone should fix it ||
    15 
    16 
    16 = Error codes when performing engine test cases =
    17 == Error codes when performing engine test cases ==
    17 When the engine is used to perform [EngineTestCases test cases], the follwing additional codes are used:
    18 When the engine is used to perform [EngineTestCases test cases], the follwing additional codes are used:
    18 
    19 
    19 || *Exit code* || *Meaning* || *Solution* ||
    20 || *Exit code* || *Meaning* || *Solution* ||
    20 || 0 || Test succeeded || N/A ||
    21 || 0 || Test succeeded || N/A ||
    21 || 60 || Test failed || Fix the engine ||
    22 || 60 || Test failed || Fix the engine ||