Rapify version 1.xx by Mikero.
see readme general
see fixes
Rapify will binarise files into either flashpoint or elite/arma format.
The default is ARMA rapification and can be overridden on the command line to
produce ofp format.
ANY file irrespective of it's extension, can be binarised. Thus *.rvmat, *.bikb
*.ext *.fsm, *.cpp, *.sqm
Useage:
Rapify [options...] whatever [wherever]
===Output rules===
Rapify provides protection against overwriting the source file (since both plain
text and bin file can have same extension)
UNCONDITIONAL: *.cpp to *.bin OR
whatever. * to whatever.*.bin OR
whatever .* to wherever\whatever.*
Options are case insensitive
-S silent (default)
-W warnings are errors
-N Noisy. show processing
-L Lint check only (no save file)
-E
-LE Lint check with external file checking
-A (default) Arma compile.
-O OFP compile
-X Xbox compile
-P do not pause on error
===External File checking ===
Requires that the external file is in the 'correct' location on the <root>: drive. This because all internal references are HARD WIRED to the <root> drive.
The <root> drive is ordinarily P: and it means you would
normally extract arma pbo's to achieve this miracle. (Use
Arma2P )
Missions can also use relative addressing. There are other subtle nuances
to missions and campaigns such as location of the ext folder, mission.sqm should
normally be tested inside it's own package folder
OFP vs ARMA vs XBOX
There is NO difference in plain text between the them. It is impossible for the dll to determine which way to compile the binary unless it's told how to.
The default compile is for Arma. The -O option specifies OFP
However. it is very, very good practice on your part to be specific, since
future engines may use the extract same text (but their binary *might* be
different again).
#define _ARMA_ // current default or
#define _OFP_ // or
#define_ XBOX_
should be placed at the top of your config.cpp.
(Note that the dll automatically does this for you on any tool using Derapify
)
Similarly the options
-a // current default arma
-o // ofp
-x // xbox
should be specified on the command line.
You have been warned.
XBOX ELITE
For xbox files that require authentication keys use
#define_ XBOX_
The 20 key sig will be autogenerated by this application.
===========================================
Warnings are errors
access=
this is a reserved keyword from bis which is only ever encountered in the bin\config.bin
it is 'there' to prevent inadvertent, or malicious, alteration of base characteristics for the engine,
A common mistake is to copy pasta this token when re-creating some class found in bin\config.bin
A mod author has no reason to ever 'protect' his generated class, let alone alter what's there already.
superflous ;
more than one ; has been encountered. This is acceptable in c syntax: and is treated as white space (ignored). Unfortunately bis binarise will crash if it encounters it when creating maps.
triailing , in an array
a trainling comma is in an array. This is acceptable in c syntax: and is treated as white space (ignored). Unfortunately bis binarise will crash if it encounters it when creating maps. Fsm files have this.