Search the Community
Showing results for tags 'solved'.
Found 77 results
-
[SOLVED]Partial subclass inheritance issue
Grester posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Without going to much off topic I'll give a bit of background on why such question... I'm working on a clothes mod that creates new uniforms, helmets,etc. The scripts weren't much optimized and were pretty much copy+paste based. Worked but if I wanted to change a value of a type of vest then I had to change them all. So I started adapting the scripts to be based on inheritance so that all I had to change for the childs were textures. However I started to face some issues of many values not being inherited, particularly stats of uniforms which could be perhaps answered with the fact that some stats are present in subclasses which weren't declared in the children. However my vests children don't have subclasses declared and have the correct stats so I'm not sure. As I was doing some research looking for answers I've stumbled upon Macros which seems to be a replacement for my inheritance based system since it just copycats the parent and all I have to do is input the values into the parameters. Thus my question, which should have I used in the first place? May have I miswritten the inheritances? Or perhaps a mix of both? I haven't fixed the problem yet as I was looking for an answer on the best aproach towards the problem. It seems that backpacks, vests and helmets are working correctly but I'm not entirely sure since uniforms stats and some subclasses variables are missing/generating errors. This also brings me doubts wether or not Units are correcly setup despite at first glance they seem to have inherited correctly. Below I'll leave an example of my classes. (For the sake of simplicity for now I'll just take a segment from my vests. If it's due necessary later on I could post segments from the Units/Uniforms files.) //Also authors don't seem to inherit properly. (...) class cfgWeapons { class VestItem; class Vest_Camo_Base: ItemCore { class ItemInfo; }; #include "cfgVest.hpp" }; (...) class VEST_TAC_Desert: Vest_Camo_Base { author = "Example"; //vehicleClass = myVest; side = TWest; scope = 2; displayName = "TacticalVest Desert"; picture = "\A3\characters_f\Data\UI\icon_v_tacvest_blk_ca.paa"; model = "A3\Characters_F\Common\equip_tacticalvest.p3d"; hiddenSelections[] = {"Camo"}; hiddenSelectionsMaterials[] = {"A3\Characters_F\Common\Data\tacticalvest.rvmat"}; hiddenSelectionsTextures[] = {"forces\tex\vest\deserttactical.paa"}; class ItemInfo: VestItem { class HitpointsProtectionInfo { class Chest { HitpointName = "HitChest"; armor = 8; PassThrough = 0.3; }; class Diaphragm { HitpointName = "HitDiaphragm"; armor = 8; PassThrough = 0.3; }; class Abdomen { hitpointName = "HitAbdomen"; armor = 8; passThrough = 0.3; }; class Body { hitpointName = "HitBody"; passThrough = 0.3; }; }; uniformModel = "A3\Characters_F\Common\equip_tacticalvest.p3d"; containerClass = "Supply120"; mass = 80; hiddenSelections[] = {"camo"}; }; }; class VEST_TAC_WoodlandA: VEST_TAC_Desert { author = "Example"; displayName = "TacticalVest Woodland-A"; hiddenSelectionsTextures[] = {"forces\tex\vest\woodlandtactical.paa"}; };- 4 replies
-
- Macros
- Inheritance
-
(and 3 more)
Tagged with:
-
Installing Arma 2 Steam Full Complete Set Properly
yxpoh posted a topic in ARMA 2 & OA - TROUBLESHOOTING
NOTE: This is for the STEAM EDITION. After playing Arma 3 for a while (quite long), i wanted to go back to Arma 2 and also I44 for a while, but I was having problems getting the DLCs to show properly, and a few error messages to go away. After trial and error, I manage to find the problems. Problem that I got and was solved(Can't remembered the exact message but the gist of it): Application Load error 5:00000065434 (If I remembered the error properly) MISSING STRING!!! Application/Game cannot be found. You installed the DLC, but it shows the LITE version of the DLC in your expansions menu. (This is actually due to though you installed the game in Steam, the content itself has not been integrated in Arma 2 directory which is why you need to run the DLC itself from Steam) Here Goes: 01. Install Arma 2 02. Run Game 03. Install Arma 2 Operation Arrowhead 04. Run Arma 2 Operation Arrowhead 05. Army of Czech Republic should start installing to A2OA. 06. Install Arma 2 British Armed Forces 07. Run Arma 2 British Armed Forces 08. British Armed Forces should start installing to A2OA. 09. Run Arma 2 Private Military Company 10. Private Military Company should start installing to A2OA. 11. Game should run with all DLCs properly. (Sequence of DLCs no longer matters after OA installation; Just make sure that you run the DLC from Steam first before running with other lanuchers or even OA itself. That means running the game British Armed Forces on Steam and not the Arma 2 or Arma 2 OA from Steam, for e.g.) For me, I use withSix to run my mods after that. Running the game first is just a way to initialize the running of some of the required installations. Hope this is useful to anyone having any problems on Arma 2 Steam. PS: If you manage to solve your problem from my instructions, do drop a reply so I can see that this topic is being useful. Thanks! :D