hi , i am new here and I have a big problem , so I hope someone could help me. I want to change the name of an addon but after changing everything the model has no more textures.
It works, but the model appears only in white.
This is the Original (works perfectly)
AK47CS.pbo
--------------------
a subdirectory
AK47CS/pic
m_ak47cs.paa
w_ak47cs.paa
--------------------
ak47_optika_muka.paa
ak47a.wav
ak47b.wav
ak47cs.p3d
ak47nb.p3d
dl.pa
nabojnicebck.pac
nabojnicetop.pac
optika_ak47cs.p3d
QS_AK1.pac
QS_AK2pac
QS_AK3pac
QS_AK4pac
QS_AK5pac
QS_AK6pac
config.cpp
-------------------------------------------------
// some basic defines
#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
// type scope
#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// binocular
#define WeaponHardMounted 65536
class CfgModels
{
class Default{};
class Weapon: Default{};
class ak47cs: Weapon{};
};
class CfgPatches
{
class ak47cs
{
units[] = {ak47cs};
weapons[] = {ak47cs};
requiredVersion = 1.75;
};
};
class CfgAmmo
{
class default {};
class BulletSingle : default{};
class AK47 : BulletSingle
{
hit=9;
indirectHit=1;
indirectHitRange=0.100000;
cartridge="AK47SM";
};
};
class CfgWeapons
{
class Default {};
class MGun: Default {};
class Riffle: MGun {};
class AK47CS: Riffle
{
scopeWeapon=2;
scopeMagazine=2;
valueWeapon=0;
valueMagazine=1;
model="\ak47cs\ak47cs.p3d";
modelOptics="\ak47cs\optika_ak47cs.p3d";
picture="\AK47CS\pic\w_ak47cs.paa";
optics=1;
opticsZoomMin=0.350000;
opticsZoomMax=0.350000;
displayName = AK47;
displayNameMagazine = AK47 Mag;
shortNameMagazine = AK47;
drySound[]={"weapons\AK47Dry",0.010000,1};
modes[]={"Single","Burst","FullAuto"};
magazines[]={"AK47CSMag"};
class Single
{
ammo="AK47";
multiplier=1;
burst=1;
displayName="AK47";
dispersion=0.000200;
sound[]={"\AK47CS\AK47b.wav",1.000000,1.00};
soundContinuous=0;
reloadTime=0.100000;
ffCount=1;
recoil="riffleSingle";
autoFire=0;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class Burst
{
ammo="AK47";
multiplier=1;
burst=3;
displayName="AK47 Burst";
dispersion=0.000400;
sound[]={"\AK47CS\AK47a.wav",1.000000,1.00};
soundContinuous=0;
reloadTime=0.100000;
ffCount=3;
recoil="riffleBurst3";
autoFire=0;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class FullAuto
{
ammo="AK47";
multiplier=1;
burst=1;
displayName="AK47 Auto";
dispersion=0.000800;
sound[]={"\AK47CS\AK47b.wav",1.000000,1.00};
soundContinuous=0;
reloadTime=0.100000;
ffCount=30;
recoil="riffleBurst3";
autoFire=1;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
};
class AK47CSMag: AK47CS
{
scopeWeapon=0;
scopeMagazine=2;
picture="\AK47CS\pic\m_ak47cs.paa";
};
};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierEB:Soldier{};
class AK47CS: SoldierEB
{
displayName="Soldier (AK47)";
weapons[]={"AK47CS","Binocular","NVGoggles","Throw","Put"};
magazines[]={AK47CSMag,AK47CSMag,AK47CSMag,AK47CSMag,AK47CSMag,AK47CSMag,HandGrenade,HandGrenade,HandGrenade,HandGrenade};
};
class Thing: All {};
class ThingEffect: Thing {};
class AK47SM: ThingEffect
{
displayName="AK47 Shell";
model="\ak47cs\ak47nb.p3d";
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyAK47CS: ProxyWeapon {};
};
----------------------------------------------
The following is what I have changed
AKM47.pbo
-------------------
subdirectory
AKM47/pic
m_akm47.paa
w_akm47.paa
-------------------
akm47_optika_muka.paa
akm47a.wav
akm47b.wav
akm47.p3d
akm47b.p3d
akm47dl.pac
akm47bck.pac
akm47top.pac
optika_akm47.p3d
akm47_AK1.pac
akm47_AK2.pac
akm47_AK3.pac
akm47_AK4.pac
akm47_AK5.pac
akm47_AK6.pac
config.cpp
----------------------------------------------
// some basic defines
#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
// type scope
#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// binocular
#define WeaponHardMounted 65536
class CfgModels
{
class Default{};
class Weapon: Default{};
class akm47: Weapon{};
};
class CfgPatches
{
class akm47
{
units[] = {akm47};
weapons[] = {akm47};
requiredVersion = 1.75;
};
};
class CfgAmmo
{
class default {};
class BulletSingle : default{};
class AK47 : BulletSingle
{
hit=9;
indirectHit=1;
indirectHitRange=0.100000;
cartridge="AK47SM";
};
};
class CfgWeapons
{
class Default {};
class MGun: Default {};
class Riffle: MGun {};
class AKM47: Riffle
{
scopeWeapon=2;
scopeMagazine=2;
valueWeapon=0;
valueMagazine=1;
model="\akm47\akm47.p3d";
modelOptics="\akm47\optika_akm47.p3d";
picture="\AKM47\pic\w_akm47.paa";
optics=1;
opticsZoomMin=0.350000;
opticsZoomMax=0.350000;
displayName = AKM47;
displayNameMagazine = AK47 Mag;
shortNameMagazine = AK47;
drySound[]={"weapons\AK47Dry",0.010000,1};
modes[]={"Single","Burst","FullAuto"};
magazines[]={"AKM47Mag"};
class Single
{
ammo="AK47";
multiplier=1;
burst=1;
displayName="AKM47";
dispersion=0.000200;
sound[]={"\AKM47\AKM47b.wav",1.000000,1.00};
soundContinuous=0;
reloadTime=0.100000;
ffCount=1;
recoil="riffleSingle";
autoFire=0;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class Burst
{
ammo="AK47";
multiplier=1;
burst=3;
displayName="AKM47 Burst";
dispersion=0.000400;
sound[]={"\AKM47\AKM47a.wav",1.000000,1.00};
soundContinuous=0;
reloadTime=0.100000;
ffCount=3;
recoil="riffleBurst3";
autoFire=0;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class FullAuto
{
ammo="AK47";
multiplier=1;
burst=1;
displayName="AKM47 Auto";
dispersion=0.000800;
sound[]={"\AKM47\AKM47b.wav",1.000000,1.00};
soundContinuous=0;
reloadTime=0.100000;
ffCount=30;
recoil="riffleBurst3";
autoFire=1;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
};
class AKM47Mag: AKM47
{
scopeWeapon=0;
scopeMagazine=2;
picture="\AKM47\pic\m_akm47.paa";
};
};
class CfgVehicles
{
class All{};
class AllVehicles:All{};
class Land:AllVehicles{};
class Man:Land{};
class Soldier:Man{};
class SoldierEB:Soldier{};
class AKM47: SoldierEB
{
displayName="Soldier (AKM47)";
weapons[]={"AKM47","Binocular","NVGoggles","Throw","Put"};
magazines[]={AKM47Mag,AKM47Mag,AKM47Mag,AKM47Mag,AKM47Mag,AKM47Mag,HandGrenade,HandGrenade,HandGrenade,HandGrenade};
};
class Thing: All {};
class ThingEffect: Thing {};
class AK47SM: ThingEffect
{
displayName="AK47 Shell";
model="\akm47\akm47b.p3d";
};
};
class CfgNonAIVehicles
{
class ProxyWeapon {};
class ProxyAKM47: ProxyWeapon {};
};
-----------------------------------------------
I don't understand the problem. In the original way the model works with textures and after my changes it doesn't but in no of the cpp's is anything written about the paa or pac files.
I hope someone will find the time and help me.
Thanks