Nmenth 289 Posted September 7, 2006 I created a very simple unit in a simple map (one I actually made quite a while ago, but needed to update a little), but this unit, a 'Tesla Ball Lightning Tank' always creashes the game for some reason I can't figure out. It seems to happen randomly when the tank shoots, but it may happen on the first shot or the hundreth. This is all its programing (leaving nothing out): [Tesla Ball Lightning Tank] (I doubt the problem is in this section...) UIName=Name:BLTNK Name=Tesla Ball Lightning Tank ROT=5 Cost=1500 Size=3 Armor=heavy Image=PHAL Owner=Russians Sight=8 Speed=6 Points=30 Turret=no Nominal=yes Primary=LightningBall Soylent=1000 Category=AFV Strength=300 Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60 MoveSound=TeslaTankMoveStart TechLevel=1 Trainable=yes VoiceMove=TeslaTankMove VoiceAttack=TeslaTankAttackCommand VoiceSelect=TeslaTankSelect Prerequisite=FACTORY,NAPSYA Insignificant=no EliteAbilities=SELF_HEAL,STRONGER RequiredHouses=Russians VeteranAbilities=STRONGER,SIGHT,FASTER AllowedToStartInMultiplayer=no [LightningBall] ROF=70 Range=8 Speed=70 Bright=yes Damage=125 Report=WeatherStrike Warhead=ShockCore Projectile=ShockOrb UseSparkParticles=yes AttachedParticleSystem=FirestormSparkSys [shockCore] Wall=yes Wood=yes Rocker=yes Spary=yes Versus=100%,100%,100%,80%,60%,40%,85%,75%,50%,100%,100% AnimList=KTSTLEXP InfDeath=5 Tiberium=yes CellSpread=2 Conventional=yes PercentAtMax=.05 [shockOrb] AG=yes Image=TORPEDO Arcing=yes Bouncy=yes Shadow=no SubjectToWalls=no SubjectToCliffs=no SubjectToElevation=no Share this post Link to post
Doctor Destiny 40 Posted September 8, 2006 The problem is Image=PHAL. That does not exist in the stock art file. Since the game cannot find any information pertaining to display, blamo, crash. Share this post Link to post
Nmenth 289 Posted September 8, 2006 Nope, problem persists. I didn't fully believe the image could do it anyway as my experiences with crashes would say an art fault would cause a crash while game loaded, when unit finished building, or would not crash-but make the unit invisible. As I mentioned before, this only crashes while shooting the lightning ball. I tested the tank further, and it seems that it will only crash if shot at a building, which neither makes sense to me nor really narrows my search at all for where my bug is located... However, the tank can attack infantry, other tanks, force fire the ground, or shoot walls with no trouble. Share this post Link to post
Doctor Destiny 40 Posted September 8, 2006 Looks like it's Sparky=yes causing the problem. People have reported errors with the Sparky tag. Remove it and see what happens. Oh, and graphics do cause IEs cause I've made it happen before. Share this post Link to post
Nmenth 289 Posted September 8, 2006 Yes, so far that has solved the problem. And of course graphics can cause errors, but in this situation? Crashing while the faulty unit is shooting? I'd think the only possible why an art file (or lack thereof) could do that would be if it was the projectile's image. A side note for the fun of it: this particular map was the first one I tried making the AI actually use the new units I created in a mod map, I must say I enjoyed watching the computer players crush each other The purpose of this map was one additional special for each country. The AI was able to take advantage of Libya's 'Dirty Bomb Launcher' the best, totally wiping out my primary base defenses (something no ordinary computer opponent could have ever done). Here are what I gave each side: America-2nd air drop with 8 guardian GIs (AI didn't use very well) France-Mobile Grand Cannon (AI used fairly well) British-Rail gun infantry (Were cool, but AI didn't seem to agree) Germany-Laser destroyer tanks (My favorite new units, AI bug-don't build yet, never felt like fixing) Korea-Tactical nuclear bombers (AI is dangerous when it decides to make them) Russia-Ball lightning tank (AI use them like a dumb computer would) Cuba-Hijacker terrorists (AI stockpiles them, and then forgets to use, probably due to their lack of anti-tank weaponry) Libya-Dirty bomb launchers (AI really knows how to use these!) Iraq-Advanced demo truck (AI can hurt another AI or a very stupid person) Yuri-I never actually decided on a new unit for him, he is already a unique side, he currently has gattling infantry which I didn't like, so never programed the AI to use Of course, as I mentioned previously, this is an old map, so not my best work, but my friends enjoy playing it, that is why I felt an update was required for it. *Edit* Yuri side now has Telekinetic Blaster tanks, which I am rather pleased with (AI likes its classic strike forces better, but reluctantly builds these too) Share this post Link to post