Jump to content
Sign in to follow this  
redstar90

Config.cpp gibberish

Recommended Posts

Hello.

Some of the addons I come across have the Config.cpp file written in complete gibberish :confused:. Like this config file of the MI-24 Desert addon (download here). Everything in the config file is messed up when I open it using notepad or wordpad.

Here's how it looks :

http://i41.tinypic.com/2njg9kn.jpg (432 kB)

Why does this happen ?

Share this post


Link to post
Share on other sites

I'm guessing the config file was written using some rare character encoding - Chinese or Indian maybe? Try to open in with editors like Notepad2 or Notepad++ and change text encoding to UTF8 or Unicode.

Share this post


Link to post
Share on other sites

Is this config from that 'MI-24 Desert' addon that you posted a link above? If not, please upload this file somewhere so I could take a look at it.

Share this post


Link to post
Share on other sites

Yes it is

---------- Post added at 21:34 ---------- Previous post was at 21:27 ----------

I've faced this problem with several other addons as well.

Share this post


Link to post
Share on other sites

It's perfectly fine on my system. Maybe you don't have some foreign character sets installed? Anyway, here it is (encoding - Cyrillic Windows 1251):

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot		0// dummy weapons
#define WeaponSlotPrimary	1// primary weapons
#define WeaponSlotSecondary	16// secondary weapons
#define WeaponSlotItem		256// items
#define WeaponSlotBinocular	4096// пaѕekohѕad
#define WeaponHardMounted	65536


class CfgPatches
{
class Desert_HIND
{units[] = {Desert_HIND}; weapons[] = {}; requiredVersion = 1.30;};

};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierEB:Soldier{};
class SoldierGB:Soldier{};

class Air: AllVehicles {};
class Helicopter: Air {};
class Plane: Air {};
class SU25: Plane {};
class Mi17: Helicopter {};
class Mi24: Helicopter {};

class Desert_HIND: Mi24
{
	displayName="Mi24 DesertCamo";
	side=TEast;
	model="\Mi24DesertCamo\HIND";
	picture=\Mi24DesertCamo\imi24.paa;
	crew="Des_EastPil";
};

};
};

Share this post


Link to post
Share on other sites

You can try opening such files with a web browser. It makes it easier to try different encodings to see if you can decipher it (typically found under View -> Encodings).

Share this post


Link to post
Share on other sites

I've tried everything without getting a good result. I've also noticed something strange, the addons that contain such a config.cpp, doesn't let me view the pac\paa files with texview ! This is really strange.

http://i44.tinypic.com/rcspaw.jpg (106 kB)

Edited by redstar90

Share this post


Link to post
Share on other sites
I've tried everything without getting a good result. I've also noticed something strange, the addons that contain such a config.cpp, doesn't let me view the pac\paa files with texview ! This is really strange.

http://i44.tinypic.com/rcspaw.jpg (106 kB)

It works for me, both in the pbo and de-pdo'ed.

Edited by Zulu1

Share this post


Link to post
Share on other sites

I don't know what's the problem. Could it be because of the config.cpp not working properly ?

Share this post


Link to post
Share on other sites

Obviously there's a problem with the file you downloaded. Did you try to DL it again, and to unzip/extract it with an up-to-date extractor ?

Share this post


Link to post
Share on other sites
Obviously there's a problem with the file you downloaded. Did you try to DL it again, and to unzip/extract it with an up-to-date extractor ?

I downloaded it more than 10 times with the same result. The other guys who tried to help on this thread downloaded it as well with no problems, so I believe that the problem is with my system. I tried to extract it with winrar, 7-zip and winzip with the same result. The config.cpp file is in gibberish and the pac\paa files are not working. The problem isn't just with this particular addon because I did come across the same issue with several other addons (like the North Korean Army pack and the PLA pack for example)

Share this post


Link to post
Share on other sites
I downloaded it more than 10 times with the same result. The other guys who tried to help on this thread downloaded it as well with no problems, so I believe that the problem is with my system. I tried to extract it with winrar, 7-zip and winzip with the same result. The config.cpp file is in gibberish and the pac\paa files are not working. The problem isn't just with this particular addon because I did come across the same issue with several other addons (like the North Korean Army pack and the PLA pack for example)

That's strange, i can read the config.cpp and textures files of this addon without any problem (i tried before making the previous post, just to be sure). Are you using some kind of file downloader ?

Share this post


Link to post
Share on other sites

Ok. I'm trying right now. I've also noticed something else. When I try to unpack it with Pbo patcher it doesn't unpack it 100%.

http://i42.tinypic.com/2rftx1u.jpg (199 kB)

I've also tried Pbo manager with the same result (regarding the config.cpp and the paa\pac files). What software are you using to unpack it ?

Share this post


Link to post
Share on other sites

YES !! FINALLY ! It worked using Pbox ! Thanks a lot and I also want to thank the other guys who tried to help on this thread. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×