ArmA2Base.de

ArmA2Base.de - News, Mods, Addons und Missionen für ArmA2 - Operation Arrowhead - Combined Operations - British Armed Forces - Private Military Company

Logo ArmA2Base.de
Sonntag, 22. Januar 2017
Start Einloggen Einloggen Die Mitglieder Das Foren-Team Suchfunktion
19865 Beiträge & 2920 Themen in 35 Foren
Keine neuen Beiträge, seit Ihrem letzten Besuch am 22.01.2017 - 14:07.
  Login speichern
Forenübersicht » ArmA3.de Foren » Editing & Scripting » Waffenaufsätze in der Config.cpp

vorheriges Thema   nächstes Thema  
1 Beitrag in diesem Thema (offen) Seiten (1): (1)
Autor
Beitrag
Armaholicer ist offline Armaholicer  
Waffenaufsätze in der Config.cpp
216 Beiträge -

Warrant Officer
Armaholicer`s alternatives Ego
Hallo Community,
ich möchte in einer config.cpp eine Waffe mit diversen Aufsätzen ausrüsten. Das das in der config.cpp nicht so einfach ist, habe ich bereits gesehen und auch die Vorgaben befolgt, jedoch funktioniert das nicht so wie es soll. Ich habe bereits seit Stunden nach einer Lösung bzw. dem Fehler gesucht, aber keinen gefunden. Vielleicht könnt ihr mir sagen, was falsch ist oder gar fehlt.

Geladene Mods:
@ACE 3.7.0
@ARES
@TFAR 0.9.8
@sthud
@RQ-11 Raven
@MCC Sandbox
@Flashbang
@CUP ACE Compatibility 1.7.0
@CUP Weapons 1.7.1
@CUP Vehicle Compatibility 1.7.0
@CUP Vehicles 1.7.1
@CUP Units 1.7.0
@CUP Terrains 1.2.0
@CBA 3.0.0
@CUA
@CHVD
@BWA3
@TestMod.

Ausschnitt aus der config.cpp des @Testmod. Ich habe die Namen der zu bearbeitenden Waffen nicht unter Weapons[] angegeben? Muss ich das machen? Hier seht ihr auch die benötigten Addons? Fehlt eines, dass es mir die Aufsätze nicht drauf macht?


class CfgPatches
{
class trg_units
{
units[]=
{
"TRG_USMC_uniform_Box",
"TRG_USMC_vest_Box",
"TRG_USMC_full_Box",
"TRG_MARSOC_uniform_Box",
"TRG_MARSOC_vest_Box",
"TRG_MARSOC_full_Box",
"TRG_Marine_Unarmed_F",
"TRG_Marine_F",
"TRG_Marine_Light_F",
"TRG_Marine_Guard_F",
"TRG_Marine_Gren_F",
"TRG_Marine_SL_F",
"TRG_Marine_TL_F",
"TRG_Marine_AT_F",
"TRG_Marine_AT_Javelin_F",
"TRG_Marine_AA_F",
"TRG_Marine_Medic_F",
"TRG_Marine_Auto_F",
"TRG_Marine_MG_F",
"TRG_Marine_Spotter_F",
"TRG_Marine_Sniper_F",
"TRG_Marine_Sniper_heavy_F",
"TRG_Marine_Marksman_F",
"TRG_Marine_Engineer_F",
"TRG_Marine_Pilot_F",
"TRG_Marine_Crew_F",
"TRG_Marine_UAV_F",
"TRG_Marine_Unarmed_RS_F",
"TRG_Marine_RS_F",
"TRG_Marine_Light_RS_F",
"TRG_Marine_Guard_RS_F",
"TRG_Marine_Gren_RS_F",
"TRG_Marine_SL_RS_F",
"TRG_Marine_TL_RS_F",
"TRG_Marine_AT_RS_F",
"TRG_Marine_AT_Javelin_RS_F",
"TRG_Marine_AA_RS_F",
"TRG_Marine_Medic_RS_F",
"TRG_Marine_Auto_RS_F",
"TRG_Marine_MG_RS_F",
"TRG_Marine_Spotter_RS_F",
"TRG_Marine_Sniper_RS_F",
"TRG_Marine_Sniper_heavy_RS_F",
"TRG_Marine_Marksman_RS_F",
"TRG_Marine_Engineer_RS_F",
"TRG_Marine_Pilot_RS_F",
"TRG_Marine_Crew_RS_F",
"TRG_Marine_UAV_RS_F",
"TRG_Marsoc_SL_F",
"TRG_Marsoc_TL_F",
"TRG_Marsoc_Saboteur_F",
"TRG_Marsoc_Marksman_F",
"TRG_Marsoc_Light_F",
"TRG_Marsoc_Auto_F",
"TRG_Marsoc_GL_F",
"TRG_Marsoc_Exp_F",
"TRG_Marsoc_Operator_F",
"TRG_Marsoc_Medic_F",
"TRG_Marsoc_UAV_F"
};
weapons[]=
{
"TRG_MARSOC_Desert_Green_Uniform",
"TRG_MARSOC_Desert_Green_Uniform_RS",
"TRG_MARSOC_Desert_Marpat_Uniform",
"TRG_MARSOC_Desert_Marpat_Uniform_RS",
"TRG_MARSOC_Desert_Woodland_Uniform",
"TRG_MARSOC_Desert_Uniform_Woodland_RS",
"TRG_MARSOC_Green_Desert_Uniform",
"TRG_MARSOC_Green_Desert_Uniform_RS",
"TRG_MARSOC_Khaki_Desert_Uniform",
"TRG_MARSOC_Khaki_Desert_Uniform_RS",
"TRG_MARSOC_Marpat_Desert_Uniform",
"TRG_MARSOC_Marpat_Desert_Uniform_RS",
"TRG_MARSOC_Woodland_Desert_Uniform",
"TRG_MARSOC_Wodland_Desert_Uniform_RS",
"TRG_MARSOC_Desert_Uniform",
"TRG_MARSOC_Desert_Uniform_RS",
"TRG_USMC_Desert_Uniform",
"TRG_USMC_Desert_Uniform_RS",
"TRG_USMC_Desert_Boonie_Hat",
"TRG_USMC_Desert_MICH",
"TRG_USMC_Desert_Helmet_Light",
"TRG_USMC_Assault_Pack_Desert",
"TRG_USMC_Kitbag_Desert",
"TRG_USMC_Vest_Light_des",
"TRG_USMC_Vest_Heavy_des",
"TRG_USMC_Vest_Light_int_grn",
"TRG_USMC_Vest_Heavy_int_grn",
"TRG_USMC_Vest_Light_tan",
"TRG_USMC_Vest_Heavy_tan",
"TRG_USMC_Vest_Light_tan_grn",
"TRG_USMC_Vest_Heavy_tan_grn",
};
author[] =
{
"[TRG] Armaholicer"
};
icon="\TRG_GEAR\data\logo.paa";
version=1.4.5;
requiredVersion= 1.62;
requiredAddons[]=
{
"A3_Characters_F",
"A3_Characters_F_epa",
"A3_Editorpreviews_F",
"A3_Weapons_F",
"A3_Weapons_F_Acc",
"A3_Weapons_F_Beta_Acc",
"A3_Weapons_F_EPA_Acc",
"A3_Weapons_F_EPB_Acc",
"A3_Weapons_F_Bootcamp",
"A3_Data_F",
"A3_UI_F",
"A3_Anims_F",
"CUP_Weapons_WeaponsCore",
"asdg_jointrails",
"CUP_Weapons_West_Attachments",
"CBA_Main",
"task_force_radio_items",
"task_force_radio"
};
};
};


Hier ist die CfgWeapons in der ich die Waffen bearbeitet habe.


class CfgWeapons
{
class CUP_arifle_M16A4_Base;
class CUP_arifle_M16A4_GL;
class CUP_arifle_M4A1_camo;
class CUP_arifle_M4A1_BUIS_camo_GL;
class CUP_sgun_M1014;
class CUP_srifle_M24_wdl;
class CUP_srifle_M107_Base;
class CUP_lmg_m249_pip2;
class CUP_lmg_M240;
class CUP_lmg_Mk48_wdl;
class CUP_hgun_Colt1911;
class CUP_launch_Mk153Mod0;
class TRG_USMC_M16A4: CUP_arifle_M16A4_Base
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_RCO";
};

class LinkedItemsAcc
{
slot = "PointerSlot";
item = "acc_pointer_IR";
};
};
};
class TRG_USMC_M16A4_M203: CUP_arifle_M16A4_GL
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_RCO";
};
class LinkedItemsAcc
{
slot = "PointerSlot";
item = "acc_pointer_IR";
};
};
};
class TRG_USMC_M1014: CUP_sgun_M1014
{
scope = 1;
class LinkedItems
{

class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_HoloBlack";
};
};
};
class TRG_USMC_M249_PIP2: CUP_lmg_m249_pip2
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_RCO";
};
class LinkedItemsAcc
{
slot = "PointerSlot";
item = "acc_pointer_IR";
};
};
};
class TRG_USMC_M14_DMR: CUP_srifle_M14_DMR
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_LeupoldMk4";
};
class LinkedItemsAcc
{
slot = "PointerSlot";
item = "acc_pointer_IR";
};
class LinkedItemsUnder
{
slot = "UnderBarrelSlot";
item = "bipod_01_F_blk";
};
};
};
class TRG_USMC_M14_DMR_SD: CUP_srifle_M14_DMR
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_LeupoldMk4";
};
class LinkedItemsAcc
{
slot = "PointerSlot";
item = "acc_pointer_IR";
};
class LinkedItemsMuzzle
{
slot = "MuzzleSlot";
item = "muzzle_snds_B";
};
class LinkedItemsUnder
{
slot = "UnderBarrelSlot";
item = "bipod_01_F_blk";
};
};
};
class TRG_USMC_M240: CUP_lmg_M240
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_RCO";
};
};
};
class TRG_USMC_M1911_SD: CUP_hgun_Colt1911
{
scope = 1;
class LinkedItems
{
class LinkedItemsMuzzle
{
slot = "MuzzleSlot";
item = "muzzle_snds_acp";
};
};
};
class TRG_USMC_M107: CUP_srifle_M107_Base
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "optic_LRPS";
};
};
};
class TRG_USMC_M24_WDL: CUP_srifle_M24_wdl
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_LeupoldMk4_10x40_LRT_Woodland";
};
class LinkedItemsUnder
{
slot = "UnderBarrelSlot";
item = "bipod_01_F_blk";
};
};
};
class TRG_MARSOC_M4A1: CUP_arifle_M4A1_camo
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_ACOG";
};
class LinkedItemsAcc
{
slot = "PointerSlot";
item = "CUP_acc_ANPEQ_2_camo";
};
class LinkedItemsMuzzle
{
slot = "MuzzleSlot";
item = "CUP_muzzle_snds_M16_camo";
};
};
};
class TRG_MARSOC_M4A1_M203: CUP_arifle_M4A1_BUIS_camo_GL
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_ACOG";
};
class LinkedItemsAcc
{
slot = "PointerSlot";
item = "CUP_acc_ANPEQ_2_camo";
};
class LinkedItemsMuzzle
{
slot = "MuzzleSlot";
item = "CUP_muzzle_snds_M16_camo";
};
};
};
class TRG_MARSOC_M14_DMR_SD: CUP_srifle_M14_DMR
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_LeupoldMk4";
};
class LinkedItemsAcc
{
slot = "PointerSlot";
item = "acc_pointer_IR";
};
class LinkedItemsMuzzle
{
slot = "MuzzleSlot";
item = "muzzle_snds_B";
};
class LinkedItemsUnder
{
slot = "UnderBarrelSlot";
item = "CUP_bipod_Harris_1A2_L";
};
};
};
class TRG_MARSOC_MK48: CUP_lmg_Mk48_wdl
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_ACOG";
};
class LinkedItemsAcc
{
slot = "PointerSlot";
item = "CUP_acc_ANPEQ_2_camo";
};
};
};
class TRG_USMC_SMAW: CUP_launch_Mk153Mod0
{
scope = 1;
class LinkedItems
{
class LinkedItemsOptic
{
slot = "CowsSlot";
item = "CUP_optic_SMAW_Scope";
};
};
};
};


Zur Erklärung so habe ich es verstanden. Ich "erstelle" eine neue Waffe und gebe ihr den Namen "TRG_USMC_*" und übernehme die vorhandenen Werte einer bereits vorhanden Waffe, in diesem Fall aus dem CUP Weapons Mod.
Darauf hin weise ich der Waffe die gewünschten Aufsätze zu und fertig. Danach weise ich einem Soldaten in der config.cpp die Waffe in


weapons[] =
{
"TRG_USMC_*",
};


zu.
Ich weiß leider wirklich nicht, wo ich noch suchen soll, bzw. habe überhaupt keine Vorstellung wo der Fehler liegen soll.... unglücklich Könnt ihr mir helfen? wenn ihr nähere Infos braucht, einfach schreiben.







Beitrag vom 21.09.2016 - 21:37
Diesen Beitrag melden   nach weiteren Posts von Armaholicer suchen Armaholicer`s Profil ansehen Armaholicer eine E-Mail senden Armaholicer eine private Nachricht senden Armaholicer zu Ihren Freunden hinzufügen zum Anfang der Seite
Baumstruktur - Signaturen verstecken
Seiten (1): (1) vorheriges Thema   nächstes Thema

Gehe zu:  
Es ist / sind gerade 1 registrierte(r) Benutzer und 78 Gäste online. Neuester Benutzer: BObGULL
Mit 6412 Besuchern waren am 19.05.2013 - 16:33 die meisten Besucher gleichzeitig online.
Registrierte Benutzer online: Honx
Alles gute zum Geburtstag    Wir gratulieren ganz herzlich zum Geburtstag:
hg2012willi (41)
Aktive Themen der letzten 24 Stunden | Foren-Topuser
 
Aktuelle News, Mods, Addons und Missionen für ArmA2.
Seite in 0.04590 Sekunden generiert


Diese Website wurde mit PHPKIT WCMS erstellt
PHPKIT ist eine eingetragene Marke der mxbyte GbR © 2002-2012