PMC websites shut down September 13th 2025 unless yearly web hosting fees are paid. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond september 13th 2025 when yearly web hosting fees are due.

User Tools

Site Tools


arma2:tools:fixaddon

ArmA 2 FixAddon

ArmA 2 Forum, ArmA 2 Home, ArmA 2 Config, ArmA 2 File Formats, ArmA 2 Missions, ArmA 2 3D Modeling, ArmA 2 Scripting, ArmA 2 Terrain, ArmA 2 Texturing, ArmA 2 Tools

FixAddon builds a cfgPatches class from a config.cpp

specifically, it REBUILDS units[]= and weapons[]= to tell the truth

Usage

FixAddon [-options] config.cpp/bin [>some.txt]

The >some.txt writes the cfgPatches output to file.

options

  Q force use quotes
    quotes are not required for strings unless they are numeric or contain spaced words
  R Use CRLF. a single newline is default
  T Tab indent. otherwise spaced indent
  M Multiline array output instead of all in one line
  N no overview
  P No protected classes listed
  Y assume externs are protected and inherited classes as such
  Z assume externs are public and inherited classes as such

note that i am not that impressed nor interested in options ZY and they wont always work as advertised (for embedded externs). the thinking here is wrong. we need to come up with a database of declared addons so that we can even, set the nature of RequiredAddons[]={…..};

Methodology

FixAddon builds class entries based SOLELY on whether they are public (scope=2) or not. Where not declared explicitly, it derives the information from inherited classes

External definitions

Class anything;

Are automatically deemed to be protected or private classes. (there is no way of telling)

Output

After creating a 'new' cfgvehicles class, fixaddon reports which classnames differ from the original (if any)

Requires DePbo.dll - Check Mikero tools homepage in Dev-Heaven.

arma2/tools/fixaddon.txt · Last modified: 2024/08/02 11:22 by snakeman