OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: otreblA_SNAKE_[ITA] on 25 Apr 2009, 14:08:33
-
Hi all,
I'm playing this awesome game without any mod (I played a lot it modded but I prefer to play this game "clean" ^^) but I don't like the fact that some weapons like Ak47, Ak74 and Ak74SU have the Burst fire mode.
So, I know I need to change the "config" file but it's a .bin file. I searched the original "config.cpp" file (for OFP 1.96) on google but I didn't find anything useful to me: I want to play OFP without any mod and without this small problem...So, where do I find an original config.cpp for OFP (GOTY) 1.96 or how do I "extract" the config.bin file to modify it?
Thank you,
otreblA
EDIT:
I've downloaded "CFGcheck" you can find here
http://home.arcor.de/vektorboson/
and, all the infos are here (to extract it)
http://home.arcor.de/vektorboson/bin2cpp.html
unluckily when I try to trasform it in .bin again, I've an error (I'm using cpp2bin):
"Error on property speed - Deadstate: Default - states CFGmovesMC"
ç_ç
-
Try using Eliteness (http://www.ofpec.com/ed_depot/index.php?action=details&id=383&game=ArmA), it will unpack and repack the config for you without too many problems.
Planck
-
I've modified "CONFIG.bin" in "\bin" folder but I had the same problem. If I modify the config.bin file in "res\bin" folder, I've a lot of errors in OFP about that file. Why?
-
I hope you are doing these experiments in your own modfolder: <OFP>\<Modfolder>\Bin\
You do not need to convert it back to bin after editing it as a cpp.
1. Install BinView by the Chain of Command: download here (http://www.downloads.thechainofcommand.net/utilities.htm)
2. Find your way to <OFP>\Res\Bin\ and double-click on config.bin - it should open automatically with BinView
3. From the taskbar, choose File ---> Save. It will be saved as a cpp. Move this to your <Modfolder>\Bin\
4. Edit that cpp as described by Sanctuary in this thread (http://forums.bistudio.com/showthread.php?t=44398). You need to add all the listed enum { ... }; to the config.cpp
5. Run your own Mod from its modfolder
-
Thank you very much, looks like it works, thank you, thank you XD!
But if I add the enum { ... }; I've an error message before launching OFP:
'Config.cpp. ': '{' encountered instead of '='
without the "enum" it works...
-
Without the enums you'll have problems with handguns. It should look like this:
...
#define manactladderonup 59
#define destructbuilding 1
enum
{
DestructNo,
DestructBuilding,
DestructEngine,
DestructTree,
DestructTent,
DestructMan,
DestructDefault
};
enum
{
ManPosDead,
ManPosWeapon,
ManPosBinocLying,
ManPosLyingNoWeapon,
ManPosLying,
ManPosHandGunLying,
ManPosCrouch,
ManPosHandGunCrouch,
ManPosCombat,
ManPosHandGunStand,
ManPosStand,
ManPosNoWeapon,
ManPosBinoc,
ManPosBinocStand
};
enum
{
CPDriver,
CPGunner,
CPCommander,
CPCargo
};
enum
{
UnitInfoSoldier,
UnitInfoTank,
UnitInfoCar,
UnitInfoShip,
UnitInfoAirplane,
UnitInfoHelicopter
};
enum
{
ManActStop,
ManActStopRelaxed,
ManActTurnL,
ManActTurnR,
ManActTurnLRelaxed,
ManActTurnRRelaxed,
ManActReloadMagazine,
ManActReloadMGun,
ManActReloadAT,
ManActReloadMortar,
ManActThrowGrenade,
ManActWalkF,
ManActWalkLF,
ManActWalkRF,
ManActWalkL,
ManActWalkR,
ManActWalkLB,
ManActWalkRB,
ManActWalkB,
ManActSlowF,
ManActSlowLF,
ManActSlowRF,
ManActSlowL,
ManActSlowR,
ManActSlowLB,
ManActSlowRB,
ManActSlowB,
ManActFastF,
ManActFastLF,
ManActFastRF,
ManActFastL,
ManActFastR,
ManActFastLB,
ManActFastRB,
ManActFastB,
ManActDown,
ManActUp,
ManActLying,
ManActStand,
ManActCombat,
ManActCrouch,
ManActCivil,
ManActCivilLying,
ManActFireNotPossible,
ManActDie,
ManActWeaponOn,
ManActWeaponOff,
ManActDefault,
ManActJumpOff,
ManActStrokeFist,
ManActStrokeGun,
ManActSitDown,
ManActSalute,
ManActBinocOn,
ManActBinocOff,
ManActPutDown,
ManActMedic,
ManActTreated,
ManActLadderOnDown,
ManActLadderOnUp,
ManActLadderOff,
ManActLadderOffTop,
ManActLadderOffBottom,
ManActGetInCar,
ManActGetOutCar,
ManActGetInTank,
ManActGetOutTank,
ManActTakeFlag,
ManActHandGunOn,
ManActN
};
// Class definitions
class CfgExperience
{
...
-
In fact I had problems with pistols, however, now it works, lol: I forgot to write "enum" before the first line of the code XD
THank you very much