Error Messages – Arma 3
Jump to navigation
Jump to search
Matty Smith (talk | contribs) (Added categories) |
Matty Smith (talk | contribs) No edit summary |
||
Line 51: | Line 51: | ||
|getVariable called on null group | |getVariable called on null group | ||
|<code>grpNull getVariable "varname"</code> | |<code>grpNull getVariable "varname"</code> | ||
|- | |- | ||
|Serialization of Control variables is not implemented | |||
|Normal | |||
| | |||
|[[Control]] variables cannot be saved by the game when a mission is saved, as they are specific to the time it was loaded. This means that this error will occur if such an item is saved in [[missionNamespace]] or if any script using control variables didn't run the [[disableSerialization]] command first. <br/> To fix this you can store [[Control]] values in [[uiNamespace]] instead and make sure that any scripts handling these variables have [[disableSerialization]] set. | |||
|<code>cant_put_that_here = allControls (allDisplays # 0)</code> | |||
|} | |} | ||
Line 67: | Line 73: | ||
|Context | |Context | ||
|This happens if an entry was not found in the desired language e.g., English | |This happens if an entry was not found in the desired language e.g., English | ||
|} | |||
=== Config errors === | |||
{| class="wikitable" | |||
!Error | |||
!Type | |||
!Context | |||
!Description | |||
!Example | |||
|- | |||
|Cannot delete class xxxx, it is referenced somewhere (used as a base class probably) | |||
|Normal | |||
| | |||
|This happens if you try and delete a config entry that is inherited by another class. For more info see [[Class_Inheritance#delete|delete]] | |||
|- | |||
|Updating base class RscShortcutButton->RscButton... | |||
|Normal | |||
| | |||
|Caused by inheriting from wrong config while modifiying an existing base class. Currently Arma 3 has a lot of these issues out of the box. | |||
|} | |} |
Revision as of 17:37, 12 October 2021
Error types
Errors can be Normal, or DebugOnly. If it is DebugOnly, the error will only show when Arma 3 is in debug mode.
Errors can also occur with, or without context. This is additional information about where the error occurs to improve the experience of debugging. However, even if an error occurs, additional context for the error will only be shown if Arma 3 is in debug mode
Script errors
Error | Type | Context | Description | Example |
---|---|---|---|---|
Generic Error in Expression | Normal | Context | The type of an argument to a command is incorrect. | systemChat 10
|
A command that can only be run in a scheduled environment was instead run in an unscheduled environment (sleep, spawn) | sleep 10
| |||
Zero Divisor | Normal | Context | A number was divided by 0 | 10/0
|
An array index was accessed that doesn't exist | [1,2,3] select 20
| |||
Attempt to override final function | Normal | Context | A compileFinaled function was attempted to be overwritten | BIS_fnc_endMission = {systemChat "Trying to do bad things"}
|
getVariable called on null object | DebugOnly | Context | getVariable was called on a null namespace | objNull getVariable "varname"
|
getVariable called on null group | grpNull getVariable "varname"
| |||
Serialization of Control variables is not implemented | Normal | Control variables cannot be saved by the game when a mission is saved, as they are specific to the time it was loaded. This means that this error will occur if such an item is saved in missionNamespace or if any script using control variables didn't run the disableSerialization command first. To fix this you can store Control values in uiNamespace instead and make sure that any scripts handling these variables have disableSerialization set. |
cant_put_that_here = allControls (allDisplays # 0)
|
Stringtable errors
Error | Type | Context | Description | Example |
---|---|---|---|---|
Unsupported language English in stringtable | Normal | Context | This happens if an entry was not found in the desired language e.g., English |
Config errors
Error | Type | Context | Description | Example |
---|---|---|---|---|
Cannot delete class xxxx, it is referenced somewhere (used as a base class probably) | Normal | This happens if you try and delete a config entry that is inherited by another class. For more info see delete | ||
Updating base class RscShortcutButton->RscButton... | Normal | Caused by inheriting from wrong config while modifiying an existing base class. Currently Arma 3 has a lot of these issues out of the box. |