arma:config:common_errors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
arma:config:common_errors [2009/04/26 15:40] – Header levels now H1->H2 killswitch | arma:config:common_errors [2024/08/01 07:37] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Common Errors ====== | + | ====== |
- | ArmA common errors in configs which you should and need to avoid at all cost. | + | [[https:// |
- | ===== Changing the inheritance of existing classes ===== | + | **ArmA 1** aka Armed Assault (ArmA) |
- | For example on many many addons (even in BIS material) you'll see this [[arma: | + | ArmA 1 common errors in configs which you should and need to avoid at all cost. |
+ | |||
+ | ===== Changing The Inheritance Of Existing Classes ===== | ||
+ | |||
+ | For example on many many addons (even in bis material) you'll see this [[arma: | ||
< | < | ||
Updating base class -> | Updating base class -> | ||
</ | </ | ||
This happens because an addon changes the inheritance of a class that has already been defined. In the example above, | This happens because an addon changes the inheritance of a class that has already been defined. In the example above, | ||
- | BIS themselves does this in the '' | + | bis themselves does this in the '' |
having no parent class to having the class '' | having no parent class to having the class '' | ||
Line 24: | Line 28: | ||
- | ===== Altering | + | ===== Altering |
- | Sometimes you see addons that not only alters the inheritance of existing | + | Sometimes you see addons that not only alters the inheritance of existing |
An example of this can be seen below: | An example of this can be seen below: | ||
Line 36: | Line 40: | ||
}; | }; | ||
</ | </ | ||
- | That's just bad form. What you should do instead is create your own machine gun class and let it inherit from the existing | + | That's just bad form. What you should do instead is create your own machine gun class and let it inherit from the existing |
Good config: | Good config: | ||
Line 47: | Line 51: | ||
</ | </ | ||
- | ===== Other common errors | + | ===== Other Common Errors |
< | < | ||
Updating base class -> | Updating base class -> | ||
Line 61: | Line 65: | ||
</ | </ | ||
All can be avoided by not touching these base classes, just inheriting from them into your own new classes. | All can be avoided by not touching these base classes, just inheriting from them into your own new classes. | ||
+ |
arma/config/common_errors.1240760413.txt.gz · Last modified: 2009/04/26 15:40 (external edit)