Home   Help Search Login Register  

Author Topic: OFP 1.96 original config.cpp, where do I find it?  (Read 3822 times)

0 Members and 1 Guest are viewing this topic.

OFP 1.96 original config.cpp, where do I find it?
« 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"

ç_ç
 
« Last Edit: 25 Apr 2009, 15:00:45 by otreblA_SNAKE_[ITA] »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: OFP 1.96 original config.cpp, where do I find it?
« Reply #1 on: 25 Apr 2009, 18:20:16 »
Try using Eliteness, it will unpack and repack the config for you without too many problems.


Planck
I know a little about a lot, and a lot about a little.

Re: OFP 1.96 original config.cpp, where do I find it?
« Reply #2 on: 25 Apr 2009, 19:28:45 »
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?

Walter_E_Kurtz

  • Guest
Re: OFP 1.96 original config.cpp, where do I find it?
« Reply #3 on: 25 Apr 2009, 23:03:35 »
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

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. You need to add all the listed enum { ... }; to the config.cpp

5. Run your own Mod from its modfolder

Re: OFP 1.96 original config.cpp, where do I find it?
« Reply #4 on: 26 Apr 2009, 12:22:12 »
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...
« Last Edit: 26 Apr 2009, 12:34:10 by otreblA_SNAKE_[ITA] »

Walter_E_Kurtz

  • Guest
Re: OFP 1.96 original config.cpp, where do I find it?
« Reply #5 on: 26 Apr 2009, 23:44:28 »
Without the enums you'll have problems with handguns. It should look like this:
Quote
...
#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
   {
...

Re: OFP 1.96 original config.cpp, where do I find it?
« Reply #6 on: 27 Apr 2009, 10:26:44 »
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