Jump to content
Sign in to follow this  
cobrosstuidos

Changing an addon unit's side (crashes on load)

Recommended Posts

SO I can't seem to find a straight answer anywhere, so hopefully I can get some help here. For personal reasons I've been tinkering with addons with PBOview and unRap (addons specifically the jet addons for ArmA 2, trying to get the fancy jets on the OPFOR side).

Here's what I've got so far (after unRap'n the config.bin file and all the .hpp's come up I enter them and the following I change.

FILE NAME: cfgVehicles.hpp

BEFORE I CHANGED IT

};

class f15c_mod_mesh : Plane {

scope = public;

vtol = 0;

faction = USAF;

vehicleClass = "Air";

driverAction = "AV8B_Pilot";

crew = "USMC_Soldier_Pilot";

model = "\rktf15c\f15c_mod_mesh";

displayName = "F-15C (CAP) Camo";

weapons[] = {"RKT_F15_AIM120_6Rail", "RKT_F15_AIM9_4Rail", RKT_F15_M61};

magazines[] = {"RKT_F15_AIM120_6Rail", "RKT_F15_AIM9_4Rail", RKT_F15_M61};

soundLandCrash[] = {"\rktf15c\Snd\Tire", 5, 1.1};

soundDammage[] = {"\rktf15c\Snd\Alarm", 1, 1};

SoundGetOut[] = {"\rktf15c\Snd\canopyclose", 3, 1};

soundEngine[] = {"\rktf15c\snd\F15engine", 8, 1};

soundEnviron[] = {"\rktf15c\snd\distantplane", 10, 0.9};

soundServo[] = {"\rktf15c\snd\flaps", 1, 1.1};

insideSoundCoef = 0.065;

wheelSteeringSensitivity = 2.0;

camouflage = 12; // how dificult to spot - bigger - better spotable

audible = 12; // audible - bigger - better heard

accuracy = 0.2; // accuracy needed to recognize type of this target

landingSpeed = 250;

maxSpeed = 1250; // max speed on level road, km/h

side = TWest;

So, as you can see the addon by default is going via the West side. I want it on OPFOR so I changed the following.

AFTER I CHANGED IT, I've bolded what I've changed.

};

class f15c_mod_mesh : Plane {

scope = public;

vtol = 0;

faction = USAF;

vehicleClass = "Air";

driverAction = "Su39_Pilot";

crew = "RU_Soldier_Pilot";

model = "\rktf15c\f15c_mod_mesh";

displayName = "F-15C (CAP) Camo";

weapons[] = {"RKT_F15_AIM120_6Rail", "RKT_F15_AIM9_4Rail", RKT_F15_M61};

magazines[] = {"RKT_F15_AIM120_6Rail", "RKT_F15_AIM9_4Rail", RKT_F15_M61};

soundLandCrash[] = {"\rktf15c\Snd\Tire", 5, 1.1};

soundDammage[] = {"\rktf15c\Snd\Alarm", 1, 1};

SoundGetOut[] = {"\rktf15c\Snd\canopyclose", 3, 1};

soundEngine[] = {"\rktf15c\snd\F15engine", 8, 1};

soundEnviron[] = {"\rktf15c\snd\distantplane", 10, 0.9};

soundServo[] = {"\rktf15c\snd\flaps", 1, 1.1};

insideSoundCoef = 0.065;

wheelSteeringSensitivity = 2.0;

camouflage = 12; // how dificult to spot - bigger - better spotable

audible = 12; // audible - bigger - better heard

accuracy = 0.2; // accuracy needed to recognize type of this target

landingSpeed = 250;

maxSpeed = 1250; // max speed on level road, km/h

side = TEast;

I also went through the rest of the addons .hpp's and script files and made sure it was all changed from West to East, US soldier to RU soldier. Now I thought that would work, as I know I didn't miss anything - I went through each file with a fine toothed comb. Well, I repack the config.bin with PersonalBPO and throw the addon in my addons folder and fire the game up.

Jet is now in OPFOR section (check)

Jet can be placed down as player (check)

I hit "preview" in the editor so I can fly around with Russian F15's attacking USMC F35's and on load it just crashes and kicks me to the desktop.

Is there something else I can do or are addons hard-coded to be on their intended side only?

Any help would be greatly appreciated.

NOTE: For the "AV8B_Pilot" and "Su39_Pilot" I've tried both, leaving it as AV8B and not - still crashes.

Share this post


Link to post
Share on other sites

Alright, I'm face palming a little hard right now. Apparently you can switch unit sides by grouping them with the opposite faction as their leader. It still would be neat to know how to do it from the above code without game crashing, so I'll keep tinkering with the code until someone smarter than my dumb butt can find a solution.

Share this post


Link to post
Share on other sites

Still haven't figured it out. Is it possible? I'm starting to think it's hardcoded from the creation of the addon.

Share this post


Link to post
Share on other sites

Shouldnt you change the Faction? i dont think East has USAF faction. Try Faction: RU instead

Edited by Mirek

Share this post


Link to post
Share on other sites
Shouldnt you change the Faction? i dont think East has USAF faction. Try Faction: RU instead

I'll try this tomorrow. I always thought faction was just for organization in the editor though.

Share this post


Link to post
Share on other sites

Well iam just guessing. :-)

Share this post


Link to post
Share on other sites

Either everyone moved to ArmA 3 editing or what I'm trying to do is an editing nightmare no one wants to touch with a 21 foot pole lol

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  

×