Coding Help -1 reply

Please wait...

Darth_Windu

RotC Creator

50 XP

3rd September 2007

0 Uploads

1,194 Posts

0 Threads

#1 10 years ago

Alrighties I'm having a bit of a problem. Now the idea here is that you build a ground company consisting of two Jedi Knights (one blue sabre, one green sabre), and when they go into space they EACH fly a Jedi Starfighter.

That works fine, but here's the problem. The fighters fly in, the FOW is revealed around the fighter - but then a second later the FOW comes back and covers the fighters, then they disappear. I can still select and move them IF I can find them, but I can't use a select box to get them. Never had this problem, so I thought someone here might pick up something I'm missing. The relevant code I'm using is

Jedi Knight 1 (Knight 2 is the same except a different model)

TEXT_UNIT_JEDI_KNIGHT TEXT_TOOLTIP_JEDI_KNIGHT TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY TEXT_ENCYCLOPEDIA_CLASS_JEDI_KNIGHT CI_JEDI1.ALOEI_Palpatine.ALOi_button_jedi_knight.tgaYes SELECTABLE SELECTABLE, SURFACE_FX, WALK_LOCOMOTOR, IDLE, REVEAL, HIDE_WHEN_FOGGED, TARGETING, WEAPON, DAMAGE_TRACKING, UNIT_AI, ABILITY_COUNTDOWN, HOLSTER_WEAPON, GARRISON_UNIT Infantry Jedi_Starfighter Unit_Light_Saber_On Unit_Light_Saber_Off b_saber 0.0, 0.0, 0.0 0.0, -5.835, 0.0 0.17 15.0 Yes Unit_Obiwan_Lightsaber_Idle_Loop Unit_Obiwan_Lightsaber_Moving_Loop Unit_Obiwan_Lightsaber_Cinematic_Loop Generic_Footprint, Infantry_Terrain_ModifierYesNoYesyes 0.8 120.0 6.5 2.0 2.0 Land Infantry .5 10 .1 .1 .25 10.0 1253.0f1.01.50WalkRebel75 Armor_Hero 80700300YesProj_Lightsaber200.01.020.07.0 8 0.7Unit_Select_Jedi_KnightUnit_Move_Jedi_KnightUnit_Fleet_Move_Jedi_KnightUnit_Attack_Jedi_KnightUnit_Guard_Jedi_KnightUnit_Group_Move_Jedi_KnightUnit_Group_Attack_Jedi_Knight Unit_Defeat_Jedi_Knight RHD_Reinforcements_En_Route RHD_Reinforcements_Available RHD_Reinforcements_Cancelled Noyes Infantry Infantry1x135.0, 5.0Generic_ShadowB_Chest Yes NoNoTrue500100.0200.0300.05.0AntiInfantry200.01000.0YesYes 5000 0.250.0Damage_Disruptor_Hand, Infantry_Disruptor_Death_Clone_00Damage_Disruptor_Hand, Infantry_Disruptor_Death_Clone_01Damage_Infection, Infantry_Melt_Death_Clone_00YesSPRINT 8.0 45.0 SPEED_MULTIPLIER, 2.0fTAKE_DAMAGE_MULTIPLIER, 0.75fTake_Damage0.250.50180.0 135.0 NoSilri, Luke_Skywalker_Jedi, Urai_Fen, Obi_Wan_Kenobi, Mandalorian_Indigenous, Mustafarian_Indigenous, Noghri_Indigenous, Sullustan_Civilian, Hutt_Civilian, Twilek_Female, Sand_Person_Sniper_A, Bothan_Civilian, Wookie_Warrior, Mon_Calamari_Civilian, Desert_Civilian_A, Swamp_Civilian_A, Urban_Civilian_A, Snow_Civilian_A, Pirate_Soldier, Rebel_Trooper, Rebel_Pilot, Rebel_Infiltrator, Scout_Trooper_No_Bike, Stormtrooper, Underworld_Disruptor_Merc, Boba_Fett, Mara_Jade, Kyle_Katarn, Han_Solo, Chewbacca, Underworld_Saboteur, IG-88, Dark_Trooper_PhaseII, Dark_Trooper_PhaseIIIUnit_Lightsaber_Projectile_BlockTake_Damage0.60.21Cuddles_The_Rancor, Luke_Skywalker_Jedi, Yoda, TIE_Crawler, Destroyer_Droid, Mandalorian_Indigenous, Mustafarian_Indigenous, Noghri_Indigenous, Sullustan_Civilian, Hutt_Civilian, Twilek_Female, Sand_Person_Sniper_A, Bothan_Civilian, Wookie_Warrior, Mon_Calamari_Civilian, Desert_Civilian_A, Swamp_Civilian_A, Urban_Civilian_A, Snow_Civilian_A, Pirate_Soldier, Rebel_Trooper, Rebel_Pilot, Rebel_Infiltrator, Scout_Trooper_No_Bike, Stormtrooper, Underworld_Disruptor_Merc, Boba_Fett, Mara_Jade, Kyle_Katarn, Han_Solo, Chewbacca, Underworld_Saboteur, IG-88, Dark_Trooper_PhaseII, Dark_Trooper_PhaseIIIUnit_Force_AbsorbColor_Flash2.0, 0.4, 0.40.5Special_AttackYes0.0150.01.00.00.010.1StructureEarthquake_Dust_Particles

Jedi Knight Squad

5TEXT_REPUBLIC_JEDI_KNIGHT_SQUAD Stormtrooper Battledroid Super_Battledroid AT-PT Scout_Trooper Destroyer_Droid TEXT_TOOLTIP_JEDI_KNIGHT TEXT_TOOLTIP_UNIT_CAPTURE_ABILITYTEXT_ENCYCLOPEDIA_CLASS_JEDI_KNIGHT900120095 Yes Yes3010Republic_Jedi_TempleJedi_Knight_1, Jedi_Knight_2 1 i_button_jedi_knight.tgaAlliance_ShuttleYesDUMMY_GROUND_COMPANYNoYesYes11 5000 RJD_Build_TroopsRHD_Recruitment_CanceledUnit_Complete_Jedi_KnightUnit_Fleet_Move_Jedi_KnightSPRINT 8.0 45.0 SPEED_MULTIPLIER, 2.0fTAKE_DAMAGE_MULTIPLIER, 0.75f62515RC_Level_Three_Tech_UpgradeTactical_Units-1-1

Jedi Starfighter

X-Wing 100TEXT_UNIT_JEDI_STARFIGHTER TEXT_ENCYCLOPEDIA_CLASS_FIGHTER TIE_Fighter TIE_Bomber Droid_Trifighter Lancer_Frigate Broadside_Class_Cruiser Hardcell REP_DELTA7.ALO0.28701.0f 238,71,54,255 Alliance_Shuttle 50.0 YesDamage_Fighter00.20.984.42.23.01.05.545800.0no20404Yes1.50.1Rebel20803500300fighter Armor_Fighter Shield_Fighter1yesno001no8TRANSPORT HUNT, FIGHTER_LOCOMOTOR, SELECTABLE, TARGETING, WEAPON, POWERED, SHIELDED, HIDE_WHEN_FOGGED, AMBIENT_SFX, DAMAGE_TRACKING, NEBULA Yes80Proj_Ship_Small_Laser_Cannon_Blue40.11.5 Fighter, 1.0 Bomber, 1.0 Transport, 1.0 Corvette, 30.0 Frigate, 30.0 Capital, 30.0 Super, 30.0 145.0550.0500.0Small_Explosion_SpaceUnit_X_Wing_Death_SFXSmall_Damage_SpaceUnit_X_Wing_FireUnit_Select_X_WingUnit_Move_X_WingUnit_Fleet_Move_X_WingUnit_Attack_X_WingUnit_Guard_X_Wing Unit_Assist_Move_X_Wing Unit_Assist_Attack_X_Wing Unit_Asteroids_X_Wing Unit_Nebula_X_Wing HARD_POINT_WEAPON_LASER, Unit_HP_LASER_X_Wing HARD_POINT_WEAPON_MISSILE, Unit_HP_MISSILE_X_Wing HARD_POINT_WEAPON_TORPEDO, Unit_HP_TORP_X_Wing HARD_POINT_WEAPON_ION_CANNON, Unit_HP_ION_X_Wing HARD_POINT_SHIELD_GENERATOR, Unit_HP_SHIELDS_X_Wing HARD_POINT_ENGINE, Unit_HP_ENGINES_X_Wing HARD_POINT_GRAVITY_WELL, Unit_HP_GRAV_X_Wing Unit_Health_Low_X_Wing Unit_Health_Critical_X_Wing Unit_Enemy_Health_Low_X_Wing Unit_Enemy_Health_Critical_X_Wing Unit_X_Wing_Fly_By 5 10 Unit_X_Wing_Cinematic_Engine_Loop Fighter | AntiBomber SmallShip i_button_jedi_starfighter.tgayesYes 7.0 Space 2-1.025.0602.0Fighter5.0TEXT_TOOLTIP_JEDI_STARFIGHTERHUNT125Yes0.22.0fSmall_Explosion_SpaceUnit_X_Wing_Spinning_Bytrue500.00



Guest

I didn't make it!

0 XP

 
#2 10 years ago

Well for one.. you have this..

X-Wing

Then you have the whole ship code after. Variant code is only needed if you want a ship with the the same basic attributes but you wanted a small difference added in. Like health is different, or team colors, etc. That is probably not your problem but I would start there. Also, you should use a container for your jedi fighter duo.




Darth_Windu

RotC Creator

50 XP

3rd September 2007

0 Uploads

1,194 Posts

0 Threads

#3 10 years ago

I fixed it! I fixed it! I fixed it!!!!!!!!!!! :D

The only reason I added the 'variant of' code was because I thought I might have missed something - the problem was occuring before I added that so it definately wasn't that.

Regardless it's all fixed now, so it's all good :)