blckeagls 12 Posted February 7, 2015 Hello I am trying to change a flag's class name, display name, and it's flags image. Every combinations i have tried just crashes my game. Here is my config.cpp class CfgPatches { class ClaimMarker { units[] = {"ClaimMarker"}; weapons[] = {}; requiredVersion = 1.0; }; }; class CfgVehicles { class FlagCarrierCore; class FlagCarrier: FlagCarrierCore { author = "$STR_A3_Bohemia_Interactive"; scope = 0; scopeCurator = 0; displayName = ""; model = "\a3\Structures_F\Mil\Flags\Mast_F.p3d"; icon = "iconObject_circle"; vehicleClass = "Flag"; cost = 1000; keepHorizontalPlacement = 1; accuracy = 1000; animated = 0; nameSound = "obj_flag"; supplyRadius = 2; hiddenSelections[] = {"Camo_1"}; hiddenSelectionsTextures[] = {"\A3\Structures_F\Mil\Flags\Data\Mast_civ_CO.paa"}; hiddenSelectionsMaterials[] = {"\A3\Structures_F\Mil\Flags\Data\Mast_civ.rvmat"}; }; class ClaimMarker: FlagCarrier { scope = 2; scopeCurator = 2; displayName = "Claim Marker"; class EventHandlers { init = "(_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_rcrystal_CO.paa'"; //init = "(_this select 0) setFlagTexture '\ClaimMarker\flag.paa'"; }; }; }; I've tried these also: class CfgPatches { class ClaimMarker { units[] = {"ClaimMarker"}; weapons[] = {}; requiredVersion = 1.0; }; }; class CfgVehicles { class FlagCarrierCore; class FlagCarrier: FlagCarrierCore {}; class ClaimMarker: FlagCarrier { scope = 2; scopeCurator = 2; displayName = "Claim Marker"; class EventHandlers { init = "(_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_rcrystal_CO.paa'"; //init = "(_this select 0) setFlagTexture '\ClaimMarker\flag.paa'"; }; }; }; class CfgPatches { class ClaimMarker { units[] = {"ClaimMarker"}; weapons[] = {}; requiredVersion = 1.0; }; }; class CfgVehicles { class FlagCarrierCore; class ClaimMarker: FlagCarrierCore { scope = 2; scopeCurator = 2; displayName = "Claim Marker"; class EventHandlers { init = "(_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_rcrystal_CO.paa'"; //init = "(_this select 0) setFlagTexture '\ClaimMarker\flag.paa'"; }; }; }; class CfgPatches { class ClaimMarker { units[] = {"ClaimMarker"}; weapons[] = {}; requiredVersion = 1.0; }; }; class CfgVehicles { class FlagCarrier; class ClaimMarker: FlagCarrier { scope = 2; scopeCurator = 2; displayName = "Claim Marker"; class EventHandlers { init = "(_this select 0) setFlagTexture '\A3\Data_F\Flags\Flag_rcrystal_CO.paa'"; //init = "(_this select 0) setFlagTexture '\ClaimMarker\flag.paa'"; }; }; }; Here is my Error Log: 23:48:21 Time was adjusted to keep it same as on server. 23:48:21 Object id Veh-1504959439 is not static ======================================================= ------------------------------------------------------- Exception code: C0000005 ACCESS_VIOLATION at 0133D3A6 graphics: D3D11 resolution: 1920x1080x32 Addons: A3_Map_Altis_Scenes in a3\map_altis_scenes_f\ A3_Weapons_F_DummyWeapons in a3\weapons_f\dummyweapons\ A3_Data_F_Curator_Intel in a3\data_f_curator\intel\ ...... A3_Weapons_F_Acc in a3\weapons_f\acc\, CustomItems in A3ResourceWarCl\ A3_Modules_F_UAV in a3\modules_f\uav\, A3_Plants_F_Bush in a3\plants_f\bush\ Mods: @A3ResourceWar Extensions: Distribution: 0 Version 1.38.128937 Fault time: 2015/02/06 23:48:21 Fault address: 0133D3A6 01:0020C3A6 E:\Games\SteamApps\common\Arma 3\arma3.exe file: __cur_mp (__CUR_MP) world: Altis Prev. code bytes: 74 24 0C 8B 08 8B 16 85 C9 74 09 B8 01 00 00 00 Fault code bytes: F0 0F C1 01 89 0E 85 D2 74 16 83 C8 FF F0 0F C1 Registers: EAX:00000001 EBX:59A84B80 ECX:0241088C EDX:00000000 ESI:0327B538 EDI:59EFEB0C CS:EIP:0023:0133D3A6 SS:ESP:002B:0327B50C EBP:59EFEFF4 DS:002B ES:002B FS:0053 GS:002B Flags:00010202 ======================================================= They all just crash the game right before I enter the server... Can anyone help? Share this post Link to post Share on other sites
badluckburt 78 Posted February 7, 2015 Have you tried extending an existing flag instead of the FlagCarrierCore class? I don't know how to fix your problem but I do know that placing a FlagCarrierCore crashed Arma when I was playing around withNeo's Map Builder addon so I'm guessing you have the same problem. Share this post Link to post Share on other sites
blckeagls 12 Posted February 7, 2015 (edited) Yep.. Anytime I extend any flag it crashes.... I was able to take the p3d and get it to show the pole... But no flag was attached... ---------- Post added at 16:28 ---------- Previous post was at 15:34 ---------- Ok figured out how to get it not to crash... But its indestructible.. Any idea of how to make it take damage? Code to make it spawn and change flag image: class Flag_ARMEX_F; class DestructionEffects; class ClaimMarker: Flag_ARMEX_F { scope = 2; scopeCurator = 2; displayName = "Claim Marker"; hiddenSelectionsMaterials[] = {"\A3\Structures_F\Mil\Flags\Data\Mast_civ.rvmat"}; armor=500; canBeShot = true; passThrough = true; damageResistance = 0.004; secondaryExplosion = 0; destrType = "DestructBuilding"; minTotalDamageTreshold = 0; class EventHandlers { init = "(_this select 0) setFlagTexture '\A3ResourceWarCl\images\flag.paa';(_this select 1) setFlagTexture '\A3ResourceWarCl\images\flag.paa';"; }; class DestructionEffects: DestructionEffects { class DamageAround1 { simulation = "damageAround"; type = "DamageAroundPole"; position = "map1"; intensity = 1; interval = 1; lifeTime = 1; }; }; }; Flag Image Edited February 7, 2015 by blckeagls Share this post Link to post Share on other sites