arma:config:common_errors
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
arma:config:common_errors [2009/04/26 14:18] – created common_errors initial page. snakeman | 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:// |
- | For example on many many addons (even in BIS material) you'll see this [[arma: | + | **ArmA 1** aka Armed Assault (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 -> | ||
</ | </ | ||
- | You can avoid this error by not changing | + | This happens because an addon changes |
+ | bis themselves does this in the '' | ||
+ | having no parent class to having the class '' | ||
- | Other common errors: | + | The warning is printed like this: |
+ | |||
+ | '' | ||
+ | |||
+ | This means that '' | ||
+ | |||
+ | (In the '' | ||
+ | |||
+ | How do you avoid this warning? It's simple: **don' | ||
+ | |||
+ | |||
+ | ===== Altering Existing Classes ===== | ||
+ | Sometimes you see addons that not only alters the inheritance of existing bis classes, but then proceeds to make changes to the classes themselves. | ||
+ | An example of this can be seen below: | ||
+ | |||
+ | Bad config: | ||
+ | <code cpp> | ||
+ | class MGunCore; | ||
+ | class MGun: MGunCore | ||
+ | { | ||
+ | displayName = " | ||
+ | }; | ||
+ | </ | ||
+ | That's just bad form. What you should do instead is create your own machine gun class and let it inherit from the existing bis class. | ||
+ | |||
+ | Good config: | ||
+ | <code cpp> | ||
+ | class MGun; | ||
+ | class TAG_MGun: MGun | ||
+ | { | ||
+ | displayName = " | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | ===== Other Common Errors ===== | ||
< | < | ||
Updating base class -> | Updating base class -> | ||
Line 22: | Line 64: | ||
Updating base class HeavyReammoBox-> | Updating base class HeavyReammoBox-> | ||
</ | </ | ||
- | All can be avoided by not touching these base classes, just iheriting | + | All can be avoided by not touching these base classes, just inheriting |
arma/config/common_errors.1240755537.txt.gz · Last modified: 2009/04/26 14:18 (external edit)