HixRa
Member-
Content Count
2 -
Joined
-
Last visited
-
Medals
Everything posted by HixRa
-
Newbie having Trouble With simple Config File edits
HixRa replied to dinoboy123's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
Hello everyone, I am a newbie to making config scripts, too. I hope you guys don't mind another question in here. I may have to make a new topic but I don't think it will be necessary. What I am trying to do is take an existing Arma 2 OA model, add new textures to it that I've modified from the originals, then put it all back in the game as a new unit. I am working with the UAZ UN model. I've used the latest BIS tools 2.5.1 and have been trying to get the config file to work. I may be biting off more than I can chew, or (far more likely!) putting a lot of unnecessary things in the config file. This is my first attempt at something like this and I'm just not sure what's all needed in the config file. In my pbo, I've put the UAZ model, textures I've modified, sounds, destruction models, animation, signs, and kitchen sink. Here's my code (I cringe that it's probably very ugly, I apologize in advance..) Code: //////////////////////////////////////////////////////////////////// //DeRap: Produced from mikero's Dos Tools Dll version 4.06 //Sat May 25 13:02:16 2013 //http://dev-heaven.net/projects/list_files/mikero-pbodll //////////////////////////////////////////////////////////////////// #define _ARMA_ //ndefs=4 enum { stabilizedinaxisx = 1, stabilizedinaxisy = 2, stabilizedinaxesboth = 3, stabilizedinaxesnone = 0 }; //Class C:/Users/HixRa/Blackline/config.bin{ class CfgPatches { class blackline_UAZ { units[] = {"blackline_UAZ}; weapons[] = {}; requiredVersion = 1.00; requiredAddons[] = {"CAWheeled_E","CAWheeled"}; }; }; class CfgVehicles { { htMin = 60; htMax = 1800; afMax = 200; mfMax = 100; mFact = 0; tBody = 0; }; class Sounds: Sounds { class Engine; class Movement; }; }; class blackline_uaz: UAZ { expansion = 1; scope = 2; side = 2; accuracy = 0.3; faction = "BIS_UN"; class TransportMagazines { class _xx_30Rnd_545x39_AK { magazine = "30Rnd_545x39_AK"; count = 15; }; class _xx_HandGrenade_West { magazine = "HandGrenade_West"; count = 2; }; }; class TransportWeapons{}; model = "\blackline_uaz\uaz"; picture = "\blackline_uaz\data\ico\uaz_CA.paa"; Icon = "\blackline_uaz\data\map_ico\icomap_Uaz_CA.paa"; mapSize = 4; displayName = "$Blackline_UAZ"; vehicleClass = "Blackline Car"; accuracy = 0.25; terrainCoef = 2.5; wheelCircumference = 2.51; turnCoef = 1.5; steerAheadPlan = 0.26; unitInfoType = "UnitInfoShip"; driverAction = "UAZ_Driver"; cargoAction[] = {"UAZ_Cargo01","UAZ_Cargo01","UAZ_Cargo01","UAZ_Cargo02","UAZ_Cargo01","UAZ_Cargo02"}; transportSoldier = 6; transportAmmo = 0; maxSpeed = 90; armor = 40; damageResistance = 0.00845; armorWheels = 0.12; transportMaxBackpacks = 7; outsideSoundFilter = 1; insideSoundCoef = 0.8; soundGear[] = {"",5.6234134e-005,1}; threat[] = {0,0,0}; brakeDistance = 7; class Turrets{}; class Damage { tex[] = {}; mat[] = {"blackline_uaz\data\detailmapy\uaz_main_metal.rvmat","blackline_uaz\data\detailmapy\uaz_main_metal_damage.rvmat","blackline_uaz\data\detailmapy\uaz_main_metal_destruct.rvmat","blackline_uaz\data\detailmapy\uaz_other_metal.rvmat","blackline_uaz\data\detailmapy\uaz_other_metal_damage.rvmat","blackline_uaz\data\detailmapy\uaz_other_metal_destruct.rvmat","blackline_uaz\data\detailmapy\uaz_skla.rvmat","blackline_uaz\data\detailmapy\uaz_skla_damage.rvmat","blackline_uaz\data\detailmapy\uaz_skla_destruct.rvmat","blackline_uaz\data\detailmapy\uaz_skla_in.rvmat","blackline_uaz\data\detailmapy\uaz_skla_in_damage.rvmat","blackline_uaz\data\detailmapy\uaz_skla_in_damage.rvmat"}; }; soundGetIn[] = {"ca\Sounds_E\Wheeled_E\SUV\SUV_ext_door",0.56234133,1}; soundGetOut[] = {"ca\Sounds_E\Wheeled_E\SUV\SUV_ext_door",0.56234133,1,20}; soundEngineOnInt[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_int_start1",0.17782794,1.0}; soundEngineOnExt[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_ext_start1",0.17782794,1.0,100}; soundEngineOffInt[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_int_stop1",0.17782794,1.0}; soundEngineOffExt[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_ext_stop1",0.17782794,1.0,100}; buildCrash0[] = {"Ca\sounds\Vehicles\Crash\crash_building_01",0.70794576,1,200}; buildCrash1[] = {"Ca\sounds\Vehicles\Crash\crash_building_02",0.70794576,1,200}; buildCrash2[] = {"Ca\sounds\Vehicles\Crash\crash_building_03",0.70794576,1,200}; buildCrash3[] = {"Ca\sounds\Vehicles\Crash\crash_building_04",0.70794576,1,200}; soundBuildingCrash[] = {"buildCrash0",0.25,"buildCrash1",0.25,"buildCrash2",0.25,"buildCrash3",0.25}; WoodCrash0[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_01",0.70794576,1,200}; WoodCrash1[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_02",0.70794576,1,200}; WoodCrash2[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_03",0.70794576,1,200}; WoodCrash3[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_04",0.70794576,1,200}; WoodCrash4[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_05",0.70794576,1,200}; WoodCrash5[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_06",0.70794576,1,200}; soundWoodCrash[] = {"woodCrash0",0.166,"woodCrash1",0.166,"woodCrash2",0.166,"woodCrash3",0.166,"woodCrash4",0.166,"woodCrash5",0.166}; ArmorCrash0[] = {"Ca\sounds\Vehicles\Crash\crash_vehicle_01",0.70794576,1,200}; ArmorCrash1[] = {"Ca\sounds\Vehicles\Crash\crash_vehicle_02",0.70794576,1,200}; ArmorCrash2[] = {"Ca\sounds\Vehicles\Crash\crash_vehicle_03",0.70794576,1,200}; ArmorCrash3[] = {"Ca\sounds\Vehicles\Crash\crash_vehicle_04",0.70794576,1,200}; soundArmorCrash[] = {"ArmorCrash0",0.25,"ArmorCrash1",0.25,"ArmorCrash2",0.25,"ArmorCrash3",0.25}; hiddenSelections[] = {"blackline"}; hiddenSelectionsTextures[] = {"\blackline_uaz\Data\Uaz_main_UN_CO.paa","\blackline_uaz\Data\uaz_other_co.paa"}; class SoundEvents { class AccelerationIn { sound[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_int_acceleration",0.56234133,1.0}; limit = "0.4"; expression = "(engineOn*(1-camPos))*gmeterZ"; }; class AccelerationOut { sound[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_ext_acceleration",0.56234133,1.0,200}; limit = "0.4"; expression = "(engineOn*camPos)*gmeterZ"; }; }; class Sounds: Sounds { class Engine: Engine { sound[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_ext_low1",0.17782794,0.9,100}; frequency = "(randomizer*0.05+0.95)*rpm"; volume = "camPos*engineOn*((rpm factor[0.3, 0.5]) min (rpm factor[0.7, 0.55]))"; }; class EngineHighOut { sound[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_ext_high1",1.0,0.8,300}; frequency = "(randomizer*0.05+0.95)*rpm"; volume = "camPos*engineOn*(rpm factor[0.6, 1.0])"; }; class IdleOut { sound[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_ext_idle",0.56234133,1.0,100}; frequency = "1"; volume = "engineOn*camPos*(rpm factor[0.5, 0])"; }; class TiresRockOut { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-rock2",0.31622776,1.0,30}; frequency = "1"; volume = "camPos*rock*(speed factor[2, 20])"; }; class TiresSandOut { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-sand2",0.31622776,1.0,30}; frequency = "1"; volume = "camPos*sand*(speed factor[2, 20])"; }; class TiresGrassOut { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-grass2",0.31622776,1.0,30}; frequency = "1"; volume = "camPos*grass*(speed factor[2, 20])"; }; class TiresMudOut { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-mud2",0.31622776,1.0,30}; frequency = "1"; volume = "camPos*mud*(speed factor[2, 20])"; }; class TiresGravelOut { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-gravel2",0.31622776,1.0,30}; frequency = "1"; volume = "camPos*gravel*(speed factor[2, 20])"; }; class TiresAsphaltOut { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-asphalt3",0.31622776,1.0,30}; frequency = "1"; volume = "camPos*asphalt*(speed factor[2, 20])"; }; class NoiseOut { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Noises\ext\noise2",0.31622776,1.0,30}; frequency = "1"; volume = "camPos*(damper0 max 0.03)*(speed factor[0, 8])"; }; class EngineLowIn { sound[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_int_low1",0.31622776,0.7}; frequency = "(randomizer*0.05+0.95)*rpm"; volume = "(1-camPos)*engineOn*((rpm factor[0.3, 0.5]) min (rpm factor[0.7, 0.55]))"; }; class EngineHighIn { sound[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_int_high1",1.0,0.8}; frequency = "(randomizer*0.05+0.95)*rpm"; volume = "(1-camPos)*engineOn*(rpm factor[0.6, 1.0])"; }; class IdleIn { sound[] = {"ca\Sounds_E\Wheeled_E\UAZ\uaz_int_idle",0.31622776,1.0}; frequency = "1"; volume = "engineOn*(rpm factor[0.5, 0])*(1-camPos)"; }; class TiresRockIn { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-rock2",0.31622776,1.0}; frequency = "1"; volume = "(1-camPos)*rock*(speed factor[2, 20])"; }; class TiresSandIn { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-sand2",0.31622776,1.0}; frequency = "1"; volume = "(1-camPos)*sand*(speed factor[2, 20])"; }; class TiresGrassIn { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-grass2",0.31622776,1.0}; frequency = "1"; volume = "(1-camPos)*grass*(speed factor[2, 20])"; }; class TiresMudIn { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-mud2",0.31622776,1.0}; frequency = "1"; volume = "(1-camPos)*mud*(speed factor[2, 20])"; }; class TiresGravelIn { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-gravel2",0.31622776,1.0}; frequency = "1"; volume = "(1-camPos)*gravel*(speed factor[2, 20])"; }; class TiresAsphaltIn { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-asphalt3",0.31622776,1.0}; frequency = "1"; volume = "(1-camPos)*asphalt*(speed factor[2, 20])"; }; class NoiseIn { sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Noises\int\noise2",0.56234133,1.0}; frequency = "1"; volume = "(damper0 max 0.03)*(speed factor[0, 8])*(1-camPos)"; }; class Movement: Movement { sound = "soundEnviron"; frequency = "1"; volume = "0"; }; }; }; }; Again, sorry for the potato.. -
New Unit Config Issue
HixRa replied to Richards.D's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
Hi RichardsD, I am quite new to the modding world and I am having a similar problem to you. Did you ever get your re-texture working? If so, let me know please. Thanks!