Kodor Posted February 28, 2007 Posted February 28, 2007 Ok, with my coding problems out of the way. Btw, it wasn't Dreamweaver, it was my own debugging skills. Didn't someone once say: "Programming is 10% inspiration and 90% debugging"? Anyway, I have a quick question, why are my new units acting so funky? Ok I know that sucked hows this: My units will not form up properly. I have looked at several other mods to see how they have done it (thanks guys) but I don't seem to be doing it right. I am definately missing something with the formations thing. Any info is appreciated, thanks.
1upD Posted February 28, 2007 Posted February 28, 2007 That depends on your code. Could you be more specific as to what the problem is? Or give the code.(though butts like Clonetrooper17 may steal it) I think it's with the speed, you need to edit the container speed AND infantry speed. BTW, I think it's '30% inspiration, 40% patience, and 30% debugging. ;D "I feel fantastic and I'mStill Aliveand when you're dying I will beStill Aliveand when you're dead I will beStill AliveSTILL ALIVE"~GLaDOSAnybody who thinks Palpatine is a sepratist knows NOTHING about star WarsWhen in doubt- rocket it.Dowload The Underworld's Might beta from Filefront!
Kodor Posted February 28, 2007 Author Posted February 28, 2007 The primary problem is that the units are not formed up(as in line formation). They will 'try' to get into formation once they are moved to a location but even then there is usually one or two out of formation and the don't seem to be "sticking" to it. I tried including squad_ before the infantry name in the company_units tag, like the stormtrooper squad. This worked like a charm, for a bit. It turns out this is the bit of code that was causing me so much trouble earlier. It does seem that they are moving a bit too fast for their animation. However beyond that their selection highlighter is not staying with them. The unit moves around the map but the selected highlighter either just stays in one spot or is not aligned with the unit's position. To explain the code, I have simply copied the stormtrooper code for infantryunits and groundcompanies. I have only changed the model to EC_Trooper.alo and the text id, icon and encyclopedia text.
Kodor Posted February 28, 2007 Author Posted February 28, 2007 BTW, a thought, would the groundcompanies container have any effect on it's ability to form up? I have the clonetrooper unit's create team type set to stormtrooper. Perhaps the stormtrooper team doesn't like the new skin(same model just a modded skin)?
1upD Posted March 1, 2007 Posted March 1, 2007 Did you change the speed?If you changed the speed, you need a new container. Change the speed for the new container also. It will work, I think. The skin has NOTHING to do with it. Why would skins affect containers, formations, and speed? "I feel fantastic and I'mStill Aliveand when you're dying I will beStill Aliveand when you're dead I will beStill AliveSTILL ALIVE"~GLaDOSAnybody who thinks Palpatine is a sepratist knows NOTHING about star WarsWhen in doubt- rocket it.Dowload The Underworld's Might beta from Filefront!
Kodor Posted March 1, 2007 Author Posted March 1, 2007 Speed adjustments are not helping but I never changed the speed before, so why would they? Now that I have a new container for the company the formation is working somewhat. The problem is that the selector circle under the company is doing a terrible job following the unit. It's like it just cant figure out where it's supposed to be in relation to the company.
jedi_consulor Posted March 1, 2007 Posted March 1, 2007 Kodor - can you provide a screen shot ? - might help illustrate the problem you are seeing, rather than trying to guess what could be the problem. http://i37.photobucket.com/albums/e99/drone_pilot/JC_Sig.jpg Sote Mod Website @ http://sote-mod.com/forum/index.php?act=home
Kodor Posted March 1, 2007 Author Posted March 1, 2007 Hows this. The formation is fine once they get moving. As you can see in the first image when they first start out on the ground their just a gagle. My biggest annoyance however, is the selector blob wondering all around. I see alot of tags that may control this but I'm really not in the mood for "change a number and test". Especially if one of you guys has solved this before. Thanks
Droid803 Posted March 1, 2007 Posted March 1, 2007 Make sure your infantry all use SQUAD_INFANTRY_LOCOMOTOR for the infantry. http://img.photobucket.com/albums/v423/kc1991/droid803sig.jpg"That was fun"
Kodor Posted March 1, 2007 Author Posted March 1, 2007 Does that replace the walk locomotor? Once between tags do I have to insert Squad_ before each of the company units in the ground company?
1upD Posted March 1, 2007 Posted March 1, 2007 It's definetly something to do with the container. MAKE SURE THE SPEED IS RIGHT! MAKE A NEW CONTAINER-My friend just actually screwed up the laptop-ARG! "I feel fantastic and I'mStill Aliveand when you're dying I will beStill Aliveand when you're dead I will beStill AliveSTILL ALIVE"~GLaDOSAnybody who thinks Palpatine is a sepratist knows NOTHING about star WarsWhen in doubt- rocket it.Dowload The Underworld's Might beta from Filefront!
Kodor Posted March 2, 2007 Author Posted March 2, 2007 Screwed up the laptop? I've burnt up a processor before but that was a hardware issue. Any way if the speed should be the same all around then yes I have got at least that right. If it isn't suppose to be the same all around then I can't figure out how they should be different(experimented with it). This has been the thorn in my side with this mod. I can get all these nifty special abilities working and some very efficient and sharp skinning and balancing going on but damn it I just can't get the little buggers to march properly. The oddest thing about it is when the ground company is landed onto the map they are just a big gaggle. As well I noticed, with squads of nine, the unit marches with two rows of four and one following in back rather than three rows of three like they should. I don't understand why this is. The coding (except, text, icon and terrain model mapping) is the same as the stormtroopers. Unless however it has to do with not using the Squad_ attachment to the GroundCompany units listing, like Squad_Nova_Trooper rather than Nova_Trooper. I've tried it and EAW don't like it. I would love to just post the code for....Hang on I'll get it. This sucks...
Kodor Posted March 2, 2007 Author Posted March 2, 2007 Ok here is the code, GROUNDINFANTRYNote: EI_TROOPER_sand.ALO has a modified skin. TEXT_UNIT_CLONETROOPER Rebel_Trooper Plex_Soldier MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret EI_TROOPER.ALO Temperate, EI_TROOPER_sand.ALO, Urban, EI_TROOPER_sand.ALO, Arctic, EI_TROOPER_sand.ALO, Volcanic, EI_TROOPER_sand.ALO, Desert, EI_TROOPER_sand.ALO, Forest, EI_TROOPER_sand.ALO, Swamp, EI_TROOPER_sand.ALO EI_TROOPER.ALo SELECTABLE SURFACE_FX,WALK_LOCOMOTOR,IDLE,TARGETING,WEAPON, STUNNABLE, REVEAL,HIDE_WHEN_FOGGED,DAMAGE_TRACKING Yes No Yes yes 1.0 i_button_clone_trooper.tga Generic_Footprint, Good_Ground 0.8 20.0 .366 .537 0.8 20.0 3.5 2.0 2.0 Land Infantry .3 10 0.05 0.05 2 1.5 Walk No Empire 0 10 1 20 0 40 0 0 0 No Armor_Infantry 3 10.0, 10.0 B_Chest 1 yes Proj_Hand_Blaster_Red 130.0 7.0 10.0 1.0 Infantry, 3.0 Vehicle, 5.0 Air, 70.0 Structure, 10.0 Unit_Select_Storm_Trooper Unit_Move_Storm_Trooper Unit_Fleet_Move_Storm_Trooper Unit_Attack_Storm_Trooper Unit_Guard_Storm_Trooper Unit_Storm_Trooper_Fire Unit_Stormtrooper_Death Unit_Assist_Move_Storm_Trooper Unit_Assist_Attack_Storm_Trooper EHD_Reinforcements_En_Route EHD_Reinforcements_Available EHD_Reinforcements_Cancelled Infantry Infantry Fodder 1x1 3 5.0, 5.0 Generic_Shadow B_Chest 99 99 Yes Yes Yes 7 5.0 AvoidAntiInfantryTurrets 140.0 50.0 200.0 150.0 3.0f .5 Infantry TEXT_TOOLTIP_CLONETROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY TEXT_ENCYCLOPEDIA_CLASS_INFANTRY Damage_Force_Whirlwind, Stormtrooper_Force_Whirlwind_Death_Clone Damage_Crush, Stormtrooper_Crush_Death_Clone 0.25 0.0 Attention, Emperor_Palpatine, Darth_Vader, SPREAD_OUT SPEED_MULTIPLIER, 0.5f TAKE_DAMAGE_MULTIPLIER, 0.5f Unit_Take_Cover_Storm_Trooper GROUNDCOMPANIESEMPIRE: TEXT_UNIT_CLONEUNIT Rebel_Trooper Plex_Soldier MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret TEXT_TOOLTIP_CLONETROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY TEXT_ENCYCLOPEDIA_CLASS_INFANTRY 1 Yes 18 100 Empire 60 15 Yes Yes 1 0 1 0 E_Ground_Barracks DUMMY_GROUND_COMPANY 1 yes infantry Imperial_Landing_Craft Clonetrooper_Team Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper, Clone1trooper 24 i_button_clone_trooper.tga EI_TROOPER.ALO EI_TROOPER.ALO 5 0 0 5 45 EHD_Build_Troops EHD_Recruitment_Canceled Unit_Complete_Storm_Trooper Unit_Fleet_Move_Storm_Trooper 300 5 Tactical_Units SPREAD_OUT SPEED_MULTIPLIER, 0.5f TAKE_DAMAGE_MULTIPLIER, 0.5f 0.05 1 54 CONTAINERS: 65 TEXT_UNIT_CLONETROOPER Rebel_Trooper Plex_Soldier MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret TEXT_TOOLTIP_CLONETROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY TEXT_ENCYCLOPEDIA_CLASS_INFANTRY No TEAM,SELECTABLE,UNIT_AI REVEAL, LAND_TEAM_CONTAINER_LOCOMOTOR, TEAM_TARGETING REVEAL 200.0 800.0 Infantry .8 12.0 Land Infantry 1 Infantry 1x1 true 4.0 Rows 2 .1 .1 Yes 80 200 i_button_clone_trooper.tga 140.0 50.0 200.0 130.0 200.0 SPREAD_OUT SPEED_MULTIPLIER, 0.5f TAKE_DAMAGE_MULTIPLIER, 0.5f Infantry All of these are modified from the Stormtrooper counterparts. I wish I had the definitions of all of these commands. Their are several tags that I have no idea what they do but most are simple to figure out. I say simple and then I can't even get the formations or selection blob right. If you see anything out of place let me know, but all I really need is to get these guys marching and selection highlighted properly. Thanks.
Droid803 Posted March 2, 2007 Posted March 2, 2007 Add this to the end of GROUNDINFANTRY <GroundInfantry Name="Squad_Clone1trooper"> <Variant_Of_Existing_Type>Clone1trooper</Variant_Of_Existing_Type> <LandBehavior>LANDING, SURFACE_FX, LAND_TEAM_INFANTRY_LOCOMOTOR,IDLE,WEAPON, STUNNABLE, REVEAL,HIDE_WHEN_FOGGED,DAMAGE_TRACKING</LandBehavior> <Is_Squashable> Yes </Is_Squashable> <Space_Layer> None </Space_Layer> </GroundInfantry> And replace Clone1trooper with Squad_Clone1trooper in the company. Hopefully this will work. http://img.photobucket.com/albums/v423/kc1991/droid803sig.jpg"That was fun"
Kodor Posted March 2, 2007 Author Posted March 2, 2007 Didn't work, thanks for the clever idea though. Still experimenting.
Kodor Posted March 2, 2007 Author Posted March 2, 2007 Heh, nevermind I got it. I may be slow but I ain't stupid. :
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now