Jump to content
Sign in to follow this  
aidas2

Config Error

Recommended Posts

Look at 3rd post for hex editing problem!

Previous problem solved

Hello everyone, this is my first config and I'm doing everything by looking at other people mods and configs and I've encountered an error.

JQE39.jpg

My addon structure:

@LAF\Addons\Men_Desert\characters\dt\

In Men_Desert I have CfgPatches.hpp; CfgVehicleClasses.hpp; CfgVehicles.hpp; config.cpp and characters folder.

In characters there's my copied acr soldier models that I renamed to laf_... instead of acr_.... And the textures are in the data folder.

Atm I only want to get my modified pilot in the game so I could wrap my head around on how to get copied soldiers ingame at all.

I'm working on BIS default ACR soldiers.

Here's how my config.cpp looks

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

#define true	1
#define false	0

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

#include "CfgPatches.hpp"
//#include "CfgFactionClasses.hpp"
#include "CfgVehicles.hpp"
//#include "CfgGroups.hpp"

I haven't created CfgGroups or FactionClasses yet so I commented them out.

My CfgPatches.hpp

// Generated by unRap v1.06 by Kegetys
class CfgPatches {
class LAF_Characters {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"CACharacters", "CACharacters2","CACharacters_e"};
};
};

From looking at the acr_pilot model in notepad++ I think I need 3 required files from the main game, can someone confirm or correct me? Also do I need to add the weapons addons from A2 and/or OA if I'm using one of the A2/OA weapons?

MY CfgVehicles.hpp

class CfgFactionClasses {
   class LAF {
       displayName = "LAF";
       priority = 9;
       side = 1;
       primaryLanguage = "EN";
   }
} 
class CfgVehicles {
class CZ_Soldier_Pilot_EP1;	// External class reference

class LAF_Soldier_Pilot : Soldier_Pilot {
	model = "\Men_Desert\Characters\laf_pilot";
	faction = "LAF"
	vehicleClass = "Men (desert)";
	displayName = "Pilot";
	weapons[] = {G36K, "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"};
	magazines[] = {"30Rnd_556x45_G36", "30Rnd_556x45_G36", "30Rnd_556x45_G36", "30Rnd_556x45_G36", "30Rnd_556x45_G36", "30Rnd_556x45_G36", "30Rnd_556x45_G36", "HandGrenade_West", "SmokeShell"};
};
}

I understand that the problem is here:

	class CZ_Soldier_Pilot_EP1;	// External class reference

class LAF_Soldier_Pilot : Soldier_Pilot {

But I don't understand why or how to name these parts so it works. In other configs I've seen people name their units but I don't understand where do you get the proper code from or what the workflow is to get them working. Can anyone explain this?

And lastly is this config enough for the soldier ingame to speak english, have wounded textures, basicly be fully working?

Thank you for your time.

Edited by aidas2

Share this post


Link to post
Share on other sites

??!!

Soldier_Pilot is not pre-defined anywhere so thats why you get the error .........

Try

   class CZ_Soldier_Pilot_EP1;    // External class reference    
   class LAF_Soldier_Pilot : CZ_Soldier_Pilot_EP1 {  

I have no idea what soldier models you really mean, but if you are modifying other peoples work without permissions be warned you are breaking the rules.

Share this post


Link to post
Share on other sites

Thanks, it works fine now. I'm only retexturing BIS OA ACR soldiers, not other peoples work.

Now I have another problem. I've opened the acr_equip_co.paa texture with texview, saved it as png and modified it in photoshop and used texview to convert it back to .paa

Then I opened my copied acr_soldier.p3d and changed every a\characters_e\acr\data\acr_equip_co.paa line to Men_Desert\characters\dt\acr_equip_co.paa It's the same ammount of symbols for both.

My addon structure is @LAF\Addons\Men_Desert\characters\dt\

The .p3d files are in characters folder.

In the game the default textures show up instead of my custom ones. I'm thinking maybe it's something to do with the hidden states?

Can anyone help me figure out why it doesn't work?

Nvm, turns out I didn't overwrite the texture :icon_lol:

Edited by aidas2

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  

×