Crash [Indev 0.56] Crash after winning Pokemon battle


Starting Trainer
Tyranitar, Heracross, Pidgey, and 3 Axew eggs were in my party. I beat the Hiker's Diglette and Dugtrio with my Tyranitar using Crunch to beat them both in one hit. The crash happened when the battle ended, but I'm not sure exactly when though unfortunately. I hopped a ledge and the Hiker saw me with the '!' right above his head. This is exact place where the battle and crash happened:


pop-up error message:


Crash report:

Kolben Games Crash Log V 2.4
Pokémon 3D has crashed!
// (╯°□°)╯︵ ┻━┻


Game information:

Pokémon 3D Indev version: 0.56 (97)
Content Packs: {}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (860274)
Playing on Servers: FALSE
Game Environment: OverworldScreen
Actionscript: Type: Script; Input: trainer\route45\006; Line: 1
File Validation: True
Sandboxmode: False


Screen state for the current screen (OverworldScreen)



System specifications:

Operating system: Microsoft Windows 10 Home [6.2.9200.0]
Core architecture: 64 Bit
System time: 11/2/2019 1:31:43 PM
System language: English (United States)(ENU) / Loaded game language: en
Decimal separator: .
Available physical memory: 3.88 Gigabyte
Available logical processors: 2


.Net installation information:

v2.0.50727 2.0.50727.4927 SP2
v3.0 3.0.30729.4926 SP2
v3.5 3.5.30729.4926 SP1
Client 4.8.03752
Full 4.8.03752


Graphics Card information:

[CardName(s): "Intel(R) HD Graphics"]
[CardRAM(s) : "2152345600"]


Error information:

Message: Object reference not set to an instance of an object.
InnerException: NOTHING
BaseException: Object reference not set to an instance of an object.
HelpLink: No helplink available.
Data: Items: 0
Source: Pokemon3D
Win32 Errorcode: -1


Error solution:
(The provided solution might not work for your problem)

Error ID: -1
Error Type: NaN
Error Description: The error is undocumented in the error handling system.
Error Solution: NaN



at P3D.Pokemon.Generate(Int32 newLevel, Boolean SetParameters)
at P3D.Trainer.LoadTrainer(String[] Data)
at P3D.ScriptVersion2.ScriptCommander.DoBattle(String subClass)
at P3D.ScriptV2.Update()
at P3D.ActionScript.Update()
at P3D.OverworldScreen.Update()
at P3D.Core.Update(GameTime gameTime)
at P3D.GameController.Update(GameTime gameTime)
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
at Microsoft.Xna.Framework.Game.Tick()
at MonoGame.Framework.WinFormsGameWindow.TickOnIdle(Object sender, EventArgs e)
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at MonoGame.Framework.WinFormsGameWindow.RunLoop()
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
at P3D.Program.Main(String[] args)


Enviornment dump:

Generated Fields:

Private _actionScript As ActionScript = P3D.ActionScript
Private _particlesTexture As Texture2D = {Name = "", Width = 64, Height = 64}
Private _trainerEncountered As Boolean = False
Private _titles As List(Of Title) = {}
Private ShowControlsDelay As Single = 8
Private _GlobalGameModeScriptStarted As Boolean = False
Private Shared _fadeValue As Int32 = 0
Private Shared _drawRodID As Int32 = -1
Public UpdateFadeOut As Boolean = False
Public UpdateFadeIn As Boolean = False

Generated Property:

Property Titles As List(Of Title) = {}
Property ActionScript As ActionScript = P3D.ActionScript
Property TrainerEncountered As Boolean = False
Property FadeValue As Int32 = 0
Property DrawRodID As Int32 = -1
Property GlobalGameModeScriptStarted As Boolean = False
Property PreScreen As Screen = Nothing
Property Identification As Identifications = OverworldScreen
Property MouseVisible As Boolean = False
Property CanBePaused As Boolean = True
Property CanMuteMusic As Boolean = True
Property CanChat As Boolean = True
Property CanTakeScreenshot As Boolean = True
Property CanDrawDebug As Boolean = True
Property CanGoFullscreen As Boolean = True
Property IsDrawingGradients As Boolean = False
Property IsOverlay As Boolean = False


You should report this error.

Go to "" to report this crash there.