• For issues you find with the Switch and Console releases, please follow this link and give as much detail as possible. This is the speediest way to get info to Pipeworks and get a hotfix in the works.
  • For issues you find with the Mobile 1.3 update, please follow this link and give as much detail as possible. This is the speediest way to get info to DR Studios to look at your issue. Also, some troubleshooting hints here.

tAPI Endgame Gods coding help needed

In my current WIP Endgame Gods I have a projectile, created by the amazing Sin Costan, that inflicts a Frozen DeBuff.
This DeBuff is supposed to stop the enemy in place, or greatly decrease their speed if not possible, but when ever the DeBuff is inflicted on a flying mob's bodies or tail the game crashes with this error.

Code:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at SwordsofGods.IceDragonLegs.AI() in \Swords of Gods\NPCs\Bosses\IceDragon\IceDragonLegs.cs at line 23
  at Terraria.NPC.AI()
  at Terraria.NPC.UpdateNPC(System.Int32 i)
  at Terraria.Main.UpdateReal(Microsoft.Xna.Framework.GameTime gameTime)
If anyone knows how to fix this, or how to code such a DeBuff any help will be GREATLY appreciated and credited. :)

Your Modding Newcomer,
King Kirmit​
 
Last edited:
Top Bottom