konyo 14 Posted February 26, 2011 Ive got some trouble using Hidden Selection. Im trying to make different colour kite design show up on my Ultralight before its released but when i select the different colours its not UV Mapped correctly? For an example here's what i mean. Red Colour Design: This red colour is textured onto the model in Oxygen 2, so its UV Mapped etc. But when i select the blue colour which is done via hidden selection in my config, as you can see its not UV Mapped. So i dont know why its doing it, ive followed the same procedure as i did on the Microlight, and that didnt need UV Mapping. I may have missed something small but i dont know. So heres my config file: class CfgPatches { class kyo_microlight { units[] = {}; weapons[] = {}; requiredAddons[] = {}; }; }; class CfgMagazines { class 6Rnd_Grenade_Camel; class 3Rnd_Grenade_Camel: 6Rnd_Grenade_Camel { count = 3; }; }; class cfgWeapons { class CamelGrenades; class CamelGrenades2: CamelGrenades { magazines[] = {"6Rnd_Grenade_Camel","3Rnd_Grenade_Camel"}; }; }; class cfgVehicles { class Plane {class ViewPilot;}; //Inherit base class & Inherit ViewPilot. class kyo_microlight : Plane { scope = public; model = "\kyo_microlight\kyo_microlight.p3d"; displayName = "Microlight (Red) (350cc)"; vehicleClass = "Air"; Icon = "\kyo_microlight\Textures\ico\kyo_microlight.paa"; picture = "\kyo_microlight\Textures\ico\kyo_microlight_red_pic.paa"; side = 3; faction = CIV; crew = "RU_Pilot"; DriverAction = "UH60_Pilot"; getInAction = "GetInLow"; maxSpeed = 110; // max speed on level road, km/h nameSound = "plane"; soundEngineOnInt[] = {"\kyo_microlight\Sound\Start.ogg", 0.562341, 1.0}; soundEngineOnExt[] = {"\kyo_microlight\Sound\Start.ogg", 0.794328, 1.0, 800}; soundEngine[] = {"\kyo_microlight\Sound\camel1.wss", 1, 1}; armor = 10; camouflage = 3; audible = 2; fuelCapacity=520; aileronSensitivity = 0.06; elevatorSensitivity = 0.12; wheelSteeringSensitivity = .25; transportSoldier = 0; flaps = 0; gearRetracting = 0; cost = 500; destrType = "DestructNo"; ejectDeadDriver = 1; brakeDistance = 8; envelope[] ={0.0,2.5,3.1,3.3,3.5,3.5,3.5,3.4,2.9,2.7,2.1,1.5}; insideSoundCoef = 0.95; castDriverShadow = 1; ejectSpeed[] ={0,0,0}; viewDriverShadow = 1; viewDriverShadowDiff = 1; viewDriverShadowAmb = 1; noseDownCoef = 0.5; hiddenSelections[] = { "parachute", }; hiddenSelectionsTextures[] = { "\kyo_microlight\textures\parachute_co.paa", }; class ViewPilot : ViewPilot { initAngleX = 0; minAngleX = -40; maxAngleX = 17; initAngleY = 0; minAngleY = -100; maxAngleY = 100; initFov = 0.5; minFov = 0.3; maxFov = 1.2; }; class Library { libTextDesc = "A 350cc Microlight Aircraft. (Aka - Powered Paragliding) It's just a parachute where the pilot wears a Paramotor on his or her's back, these usually range from 80cc to 350cc. Powered paragliders usually fly between speeds of 15 and 45 mph (25 and 70 km/h) and at altitudes of 'foot-dragging in the grass' or up to 18,000 ft (5400 m)"; }; }; class kyo_ultralight : Plane { scope = public; model = "\kyo_microlight\kyo_ultralight.p3d"; displayName = "Ultralight (Red) (350cc)"; vehicleClass = "Air"; Icon = "\kyo_microlight\Textures\ico\kyo_ultralight.paa"; picture = "\kyo_microlight\Textures\ico\kyo_ultralight_green_pic.paa"; side = 3; faction = CIV; crew = "RU_Pilot"; DriverAction = "BMP3_Driver"; getInAction = "GetInLow"; maxSpeed = 135; // max speed on level road, km/h nameSound = "plane"; soundEngineOnInt[] = {"\kyo_microlight\Sound\Start.ogg", 0.562341, 1.0}; soundEngineOnExt[] = {"\kyo_microlight\Sound\Start.ogg", 0.794328, 1.0, 800}; soundEngine[] = {"\kyo_microlight\Sound\camel1.wss", 1, 1}; armor = 20; camouflage = 4; audible = 2; fuelCapacity=520; aileronSensitivity = 0.06; elevatorSensitivity = 0.12; wheelSteeringSensitivity = .25; transportSoldier = 1; cargoAction[] = {"UH60_Cargo02"}; typicalCargo[] = {"RU_Pilot"}; flaps = 0; gearRetracting = false; cost = 500; destrType = "DestructNo"; ejectDeadDriver = 1; brakeDistance = 8; envelope[] ={0.0,2.5,3.1,3.3,3.5,3.5,3.5,3.4,2.9,2.7,2.1,1.5}; insideSoundCoef = 0.95; castDriverShadow = 1; ejectSpeed[] ={0,0,0}; viewDriverShadow = 1; viewDriverShadowDiff = 1; viewDriverShadowAmb = 1; noseDownCoef = 0.5; hiddenSelections[] = { "kite", }; hiddenSelectionsTextures[] = { "\kyo_microlight\textures\kite_red.paa", }; class ViewPilot : ViewPilot { initAngleX = 0; minAngleX = -40; maxAngleX = 17; initAngleY = 0; minAngleY = -100; maxAngleY = 100; initFov = 0.5; minFov = 0.3; maxFov = 1.2; }; }; class kyo_microlight_military : kyo_microlight { displayName = "Microlight (Military) (350cc)"; crew = "USMC_Soldier_Pilot"; faction = USMC; side = 1; vehicleClass = "Air"; picture = "\kyo_microlight\Textures\ico\kyo_microlight_military_pic.paa"; weapons[]={"CamelGrenades2"}; magazines[]={"6Rnd_Grenade_Camel"}; hiddenSelections[] = { "parachute", }; hiddenSelectionsTextures[] = { "\ca\air\Data\parachute_co.paa", }; class Library { libTextDesc = "A 350cc Microlight Aircraft. (Aka - Powered Paragliding) In some armies, powered paragliding is used to insert special forces soldiers into specific areas. The Lebanese Airborne regiment adopted this technique in 2008."; }; }; class kyo_microlight_blue : kyo_microlight { displayName = "Microlight (Blue) (350cc)"; picture = "\kyo_microlight\Textures\ico\kyo_microlight_blue_pic.paa"; hiddenSelections[] = { "parachute", }; hiddenSelectionsTextures[] = { "\kyo_microlight\textures\parachute_co_blue.paa", }; }; class kyo_microlight_yellow : kyo_microlight { displayName = "Microlight (Yellow) (350cc)"; picture = "\kyo_microlight\Textures\ico\kyo_microlight_yellow_pic.paa"; hiddenSelections[] = { "parachute", }; hiddenSelectionsTextures[] = { "\kyo_microlight\textures\parachute_co_yellow.paa", }; }; class kyo_ultralight_blue : kyo_ultralight { displayName = "Ultralight (Blue) (350cc)"; hiddenSelections[] = { "kite", }; hiddenSelectionsTextures[] = { "\kyo_microlight\textures\kite_blue.paa", }; }; class kyo_ultralight_green : kyo_ultralight { displayName = "Ultralight (Green) (350cc)"; hiddenSelections[] = { "kite", }; hiddenSelectionsTextures[] = { "\kyo_microlight\textures\kite_green.paa", }; }; }; So can anyone help me on this situation please? Thanks konyo Share this post Link to post Share on other sites
konyo 14 Posted February 28, 2011 Dose anyone know the solution to this yet? :confused: Share this post Link to post Share on other sites
[frl]myke 14 Posted February 28, 2011 Pressing "E" and assigning a texture doesn't UV map a selection. Open the UV editor, make a proper UV maping and a approriate texture for it, then it should work. Share this post Link to post Share on other sites
konyo 14 Posted February 28, 2011 Myke;1865044']Pressing "E" and assigning a texture doesn't UV map a selection. Open the UV editor' date=' make a proper UV maping and a approriate texture for it, then it should work.[/quote']Yeah I've UV Mapped it exactly as I did on the red parachute. So it's UV Mapped but will it still keep it's UV map as it's only assigned by hidden selection. And isant atchly textured on a model? Share this post Link to post Share on other sites
[frl]myke 14 Posted February 28, 2011 if you want i can take a look at it, not 100% sure if i can help but i can try. Can you upload it somewhere and send me link per PM? Share this post Link to post Share on other sites
-martin- 10 Posted February 28, 2011 Did you add the hiden selection to the model.cfg? Share this post Link to post Share on other sites
konyo 14 Posted February 28, 2011 (edited) Myke;1865077']if you want i can take a look at it' date=' not 100% sure if i can help but i can try. Can you upload it somewhere and send me link per PM?[/quote']Ok cheers Myke, its comming your way :) EDIT : Sent. Did you add the hiden selection to the model.cfg? Yup i added it to the model.cfg & config. So it must be a model problem :/ Edited February 28, 2011 by konyo Share this post Link to post Share on other sites
[frl]myke 14 Posted February 28, 2011 Ah yes, a stupid error (i mean the error is one of the sort which is easily overlooked, not calling you "stupid"): You had: hiddenSelections[] = {"kite"[color="Red"],[/color]}; hiddenSelectionsTextures[] = {"\kyo_microlight\textures\kite_red.paa"[color="Red"],[/color]}; correct is: hiddenSelections[] = {"kite"}; hiddenSelectionsTextures[] = {"\kyo_microlight\textures\kite_red.paa"}; Fix this in all vehicle classes, then it works. Share this post Link to post Share on other sites
konyo 14 Posted February 28, 2011 (edited) Myke;1865214']Ah yes' date=' a stupid error (i mean the error is one of the sort which is easily overlooked, not calling you "stupid"):You had: hiddenSelections[] = {"kite"[color="Red"],[/color]}; hiddenSelectionsTextures[] = {"\kyo_microlight\textures\kite_red.paa"[color="Red"],[/color]}; correct is: hiddenSelections[] = {"kite"}; hiddenSelectionsTextures[] = {"\kyo_microlight\textures\kite_red.paa"}; Fix this in all vehicle classes, then it works.[/quote'] lol Yeh i know what you mean, one of those little errors that can cause so much trouble :/ Ill go correct that now, Thanks for your help Myke EDIT : Not sure its something im doing wrong, but that still didn't solve the problem? :confused: Also the Microlight parachute designs are also written with those errors you told me i need to remove, and it works fine on that one..? Edited February 28, 2011 by konyo Share this post Link to post Share on other sites
[frl]myke 14 Posted February 28, 2011 Well, i changed nothing but these commata (yes, also in the microlight) and i binarized the pbo, nothing else i did. Share this post Link to post Share on other sites
konyo 14 Posted February 28, 2011 Myke;1865328']Well' date=' i changed nothing but these commata (yes, also in the microlight) and i binarized the pbo, nothing else i did.[/quote']Hmm ok ill have to try it binarized too, will try in morning and post back here tomorrow with the answer :) Share this post Link to post Share on other sites
konyo 14 Posted March 1, 2011 (edited) Morning :D Well i just binarized it and now its not even letting me get into game now, its giving me error after error :mad: First it was Undefined class viewpilot: Solved that now (I think) But now im getting class kyo_ultralight_green : kyo_ultralight { Undefined :( Any idea's? :j: Edited March 1, 2011 by konyo Share this post Link to post Share on other sites
[frl]myke 14 Posted March 1, 2011 Morning :D Well i just binarized it and now its not even letting me get into game now, its giving me error after error :mad: First it was Undefined class viewpilot: Solved that now (I think) But now im getting class kyo_ultralight_green : kyo_ultralight { Undefined :( Any idea's? :j: Check the .log file of the binarization process. Also load the config to www.pastebin.com so we can have a look at it. Having ideas is hard without the facts. ;) Share this post Link to post Share on other sites
konyo 14 Posted March 1, 2011 Myke;1865693']Check the .log file of the binarization process. Also load the config to www.pastebin.com so we can have a look at it. Having ideas is hard without the facts. ;) Ok' date=' heres the pastebin link : kyo_ultralight pastebin config And the bin log file only has the error for St points in view pilot & view cargo etc, so nothing much in there :confused: Share this post Link to post Share on other sites
konyo 14 Posted March 3, 2011 Sorry for double post, but any Idea's? Share this post Link to post Share on other sites
[frl]myke 14 Posted March 3, 2011 Sorry for double post, but any Idea's? Sorry mate, no ideas so far. I've tried the version you sent me with only the changes i've described and at my side it worked. So i don't have a clue qhy it doesn't at your side. Very sorry. Share this post Link to post Share on other sites
konyo 14 Posted March 3, 2011 (edited) Myke;1867138']Sorry mate' date=' no ideas so far. I've tried the version you sent me with only the changes i've described and at my side it worked. So i don't have a clue qhy it doesn't at your side. Very sorry.[/quote']Hmmm very odd.. :/ Do you think you could send me the files via private message, see if the changes you made works my end then please? Edited March 4, 2011 by konyo Share this post Link to post Share on other sites
adogmc 0 Posted March 23, 2011 # hiddenSelectionsTextures[] = { # "\kyo_microlight\textures\parachute_co.paa", # }; there are still lots of commas in hiddenSelectionsTextures Share this post Link to post Share on other sites
konyo 14 Posted March 23, 2011 there are still lots of commas in hiddenSelectionsTextures Yeah unfortunately it still don't solve the problem when I write it without the commas, just don't know why it dose it.. Very strange :/ Share this post Link to post Share on other sites