ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:error

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
new:error [2018/02/17 21:47]
korshun created
new:error [2018/02/19 12:31] (current)
korshun
Line 3: Line 3:
 If you call some ACSUtils function incorrectly,​ it will trigger an **ACSUtils error**. If you call some ACSUtils function incorrectly,​ it will trigger an **ACSUtils error**.
  
-ACSUtils errors instantly display an error message. All error messages begin with "​ACSUtils error:"​. The error message is displayed differently based on whether the error occured in singleplayer,​ clientside or serverside:+ACSUtils errors instantly display an error message. All error messages begin with current game time in tics ([[zdoom>​Timer]]) and "​ACSUtils error:"​. The error message is displayed differently based on whether the error occured in singleplayer,​ clientside or serverside:
  
   * In singleplayer,​ the error is printed using [[zdoom>​PrintBold]].   * In singleplayer,​ the error is printed using [[zdoom>​PrintBold]].
Line 9: Line 9:
   * Serverside, the error is logged to server console using [[zdoom>​Log]]. A "​[serverside]"​ tag is prepended to the message.   * Serverside, the error is logged to server console using [[zdoom>​Log]]. A "​[serverside]"​ tag is prepended to the message.
  
-Error reports ​can be fully disabled by setting the ''​acsutils_noerror''​ cvar to ''​true''​.+The [[zdoom>​PrintBold]] part can be disabled by setting the ''​acsutils_noerror''​ cvar to ''​true''​, leaving only logging to server console.
  
 ===== What can cause ACSUtils errors ===== ===== What can cause ACSUtils errors =====
Line 16: Line 16:
   * Calling a clientside-only function serverside (for example, ''​IsOpenGL()''​)   * Calling a clientside-only function serverside (for example, ''​IsOpenGL()''​)
   * Calling a serverside-only function clientside   * Calling a serverside-only function clientside
 +  * Storing too many entries in fixed-size ACSUtils arrays (for example, ''​HudPushState()''​). These static limits can be increased by editing ''​acsutils.acs''​.
new/error.1518896843.txt.gz ยท Last modified: 2018/02/17 21:47 by korshun