• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Crash [Indev 0.53] Encounter Crash

Korremarr

Starting Trainer
Essentially, I can't enter a battle on any route without the game crashing. I have tried all possible combinations of my party (a Sentret, Jigglypuff, and Cyndaquil) on all routes that I currently have available to me. The main error appears to be the failure to convert the string "" to type Integer. However, since this appears to be an empty string, it is difficult to pinpoint which move, item, or character could be causing this error.

What I expected to happen:
I expected a battle to start.

What actually happened:
The game crashes upon entering a wild encounter.

Steps to reproduce:
1. Entering a wild encounter on any route with any Pokemon as the leading Pokemon.

Code:
---------------------------------------------------------------------------------

Game information:

Pokémon 3D Indev version: 0.53 (87)
Content Packs: {}
Active GameMode: Pokemon 3D
GameJolt Account: FALSE
Playing on Servers: FALSE
Game Environment: BattleScreen
Actionscript: No script running
File Validation: True
Sandboxmode: False

---------------------------------------------------------------------------------

Screen state for the current screen (BattleScreen)

BattleMode=Standard
IsTrainerBattle=False
IsPVPBattle=False
LoadedBattleMap=battle\route29.dat
OwnPokemon={"Pokemon"[39]}{"Experience"[61]}{"Gender"[1]}{"EggSteps"[0]}{"Item"[2006]}{"ItemData"[]}{"NickName"[Sonya]}{"Level"[4]}{"OT"[11200]}{"Ability"[56]}{"Status"[]}{"Nature"[8]}{"CatchLocation"[Route 46]}{"CatchTrainer"[Canion]}{"CatchBall"[5]}{"CatchMethod"[caught at]}{"Friendship"[70]}{"isShiny"[0]}{"Attack1"[47,15,11]}{"Attack2"[]}{"Attack3"[]}{"Attack4"[]}{"HP"[18]}{"EVs"[0,0,1,0,0,0]}{"IVs"[28,21,12,7,31,30]}{"AdditionalData"[]}{"IDValue"[717KbGi6Wv8]}
OppPokemon={"Pokemon"[187]}{"Experience"[57]}{"Gender"[0]}{"EggSteps"[0]}{"Item"[0]}{"ItemData"[]}{"NickName"[]}{"Level"[3]}{"OT"[00000]}{"Ability"[34]}{"Status"[]}{"Nature"[5]}{"CatchLocation"[at unknown place]}{"CatchTrainer"[???]}{"CatchBall"[5]}{"CatchMethod"[somehow obtained]}{"Friendship"[70]}{"isShiny"[0]}{"Attack1"[150,40,40]}{"Attack2"[]}{"Attack3"[]}{"Attack4"[]}{"HP"[15]}{"EVs"[0,0,0,0,0,0]}{"IVs"[3,29,21,12,0,2]}{"AdditionalData"[]}{"IDValue"[PLfjRu4Yisp]}
Values=; CanCatch=True; CanRun=True; CanBlackout=True; CanReceiveEXP=True; RoamingBattle=False; CanUseItems=True; DiveBattle=False; TempPokeFile=route29.poke; IsInverseBattle=False
IsRemoteBattle=False
IsHost=False
MenuVisible=False

---------------------------------------------------------------------------------

System specifications:

Operating system: Microsoft Windows 8.1 [6.2.9200.0]
Core architecture: 64 Bit
System time: 4/7/2015 3:42:00 PM
System language: English (United States)(ENU) / Loaded game language: en
Decimal separator: .
Available physical memory: 7.89 Gigabyte
Available logical processors: 4

---------------------------------------------------------------------------------

.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
v4  
  Client  4.5.51641
  Full  4.5.51641
v4.0  
  Client  4.0.0.0

---------------------------------------------------------------------------------

Graphics Card information:

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

---------------------------------------------------------------------------------

Error information:

Message: Conversion from string "                                " to type 'Integer' is not valid.
InnerException: Input string was not in a correct format.
BaseException: Input string was not in a correct format.
HelpLink: No helplink available.
Data: Items: 0
Source: Microsoft.VisualBasic
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

---------------------------------------------------------------------------------

CallStack: 

   at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   at net.Pokemon3D.Game.NPC.ApplyNPCData()
   at net.Pokemon3D.Game.NPC.Initialize(String TextureID, Int32 Rotation, String Name, Int32 ID, Boolean AnimateIdle, String Movement, List`1 MoveRectangles)
   at net.Pokemon3D.Game.Entity.GetNewEntity(String EntityID, Vector3 Position, Texture2D[] Textures, Int32[] TextureIndex, Boolean Collision, Vector3 Rotation, Vector3 Scale, BaseModel Model, Int32 ActionValue, String AdditionalValue, Boolean Visible, Vector3 Shader, Int32 ID, String MapOrigin, String SeasonColorTexture, Vector3 Offset, Object[] Params, Single Opacity)
   at net.Pokemon3D.Game.BattleSystem.BattleScreen.InitializeWild(Pokemon WildPokemon, Screen OverworldScreen, Int32 defaultMapType)
   at net.Pokemon3D.Game.BattleIntroScreen.Update()
   at net.Pokemon3D.Game.Core.Update(GameTime gameTime)
   at net.Pokemon3D.Game.GameController.Update(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameHost.OnIdle()
   at Microsoft.Xna.Framework.WindowsGameHost.RunOneFrame()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(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 System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
   at Microsoft.Xna.Framework.Game.Run()
   at net.Pokemon3D.Game.Program.Main(String[] args)

---------------------------------------------------------------------------------

Enviornment dump: 

   Public Battle As Battle = net.Pokemon3D.Game.BattleSystem.Battle
   Public FieldEffects As FieldEffects = net.Pokemon3D.Game.BattleSystem.FieldEffects
   Public SavedOverworld As OverworldStorage = net.Pokemon3D.Game.OverworldStorage
   Public BattleMenu As BattleMenu = net.Pokemon3D.Game.BattleSystem.BattleMenu
   Public BattleQuery As List<QueryObject>[] = {}
   Public OwnPokemon As Pokemon = {"Pokemon"[39]}{"Experience"[61]}{"Gender"[1]}{"EggSteps"[0]}{"Item"[2006]}{"ItemData"[]}{"NickName"[Sonya]}{"Level"[4]}{"OT"[11200]}{"Ability"[56]}{"Status"[]}{"Nature"[8]}{"CatchLocation"[Route 46]}{"CatchTrainer"[Canion]}{"CatchBall"[5]}{"CatchMethod"[caught at]}{"Friendship"[70]}{"isShiny"[0]}{"Attack1"[47,15,11]}{"Attack2"[]}{"Attack3"[]}{"Attack4"[]}{"HP"[18]}{"EVs"[0,0,1,0,0,0]}{"IVs"[28,21,12,7,31,30]}{"AdditionalData"[]}{"IDValue"[717KbGi6Wv8]}
   Public OppPokemon As Pokemon = {"Pokemon"[187]}{"Experience"[57]}{"Gender"[0]}{"EggSteps"[0]}{"Item"[0]}{"ItemData"[]}{"NickName"[]}{"Level"[3]}{"OT"[00000]}{"Ability"[34]}{"Status"[]}{"Nature"[5]}{"CatchLocation"[at unknown place]}{"CatchTrainer"[???]}{"CatchBall"[5]}{"CatchMethod"[somehow obtained]}{"Friendship"[70]}{"isShiny"[0]}{"Attack1"[150,40,40]}{"Attack2"[]}{"Attack3"[]}{"Attack4"[]}{"HP"[15]}{"EVs"[0,0,0,0,0,0]}{"IVs"[3,29,21,12,0,2]}{"AdditionalData"[]}{"IDValue"[PLfjRu4Yisp]}
   Public OppPokemonNPC As NPC = Nothing
   Public OwnPokemonNPC As NPC = Nothing
   Public OwnTrainerNPC As NPC = Nothing
   Public OppTrainerNPC As NPC = Nothing
   Public OwnPokemonModel As ModelEntity = Nothing
   Public OppPokemonModel As ModelEntity = Nothing
   Public OwnPokemonIndex As Int32 = 0
   Public OppPokemonIndex As Int32 = 0
   Public ParticipatedPokemon As List<Int32>[] = {0}
   Public PokemonOnSide As Int32 = 1
   Public Profiles As List<PokemonProfile>[] = {}
   Public IsTrainerBattle As Boolean = False
   Public BattleMode As BattleModes = Standard
   Public PokemonSafariStatus As Int32 = 0
   Public WildPokemon As Pokemon = {"Pokemon"[187]}{"Experience"[57]}{"Gender"[0]}{"EggSteps"[0]}{"Item"[0]}{"ItemData"[]}{"NickName"[]}{"Level"[3]}{"OT"[00000]}{"Ability"[34]}{"Status"[]}{"Nature"[5]}{"CatchLocation"[at unknown place]}{"CatchTrainer"[???]}{"CatchBall"[5]}{"CatchMethod"[somehow obtained]}{"Friendship"[70]}{"isShiny"[0]}{"Attack1"[150,40,40]}{"Attack2"[]}{"Attack3"[]}{"Attack4"[]}{"HP"[15]}{"EVs"[0,0,0,0,0,0]}{"IVs"[3,29,21,12,0,2]}{"AdditionalData"[]}{"IDValue"[PLfjRu4Yisp]}
   Public OverworldScreen As Screen = net.Pokemon3D.Game.OverworldScreen
   Public defaultMapType As Int32 = 0
   Public Trainer As Trainer = Nothing
   Public DrawColoredScreen As Boolean = True
   Public ColorOverlay As Color = {R:0 G:0 B:0 A:255}
   Public BattleMapOffset As Vector3 = {X:0 Y:0 Z:0}
   Private lastCameraSettings As List<Int32>[] = {}
   Private lastCamera As Int32 = 2
   Private cameraSettingCount As Int32 = 4
   Public IsPVPBattle As Boolean = False
   Public IsRemoteBattle As Boolean = False
   Public IsHost As Boolean = False
   Public PartnerNetworkID As Int32 = 0
   Public OwnStatistics As NetworkPlayerStatistics = {0|0|0|0|0|0|0}
   Public OppStatistics As NetworkPlayerStatistics = {0|0|0|0|0|0|0}
   Public PVPGameJoltID As String = 
   Public SentInput As Boolean = False
   Public ClientWaitForData As Boolean = False
   Public ReceivedPokemonData As Boolean = False
   Public TempPVPBattleQuery As Dictionary`2 = System.Collections.Generic.Dictionary`2[System.Int32,net.Pokemon3D.Game.BattleSystem.QueryObject]
   Public LockData As String = {}
   Public ClientWonBattle As Boolean = True
   Public SentHostData As Boolean = False
   Public Shared CanCatch As Boolean = True
   Public Shared CanRun As Boolean = True
   Public Shared CanBlackout As Boolean = True
   Public Shared CanReceiveEXP As Boolean = True
   Public Shared RoamingBattle As Boolean = False
   Public Shared RoamingPokemonStorage As RoamingPokemon = Nothing
   Public Shared CanUseItems As Boolean = True
   Public Shared DiveBattle As Boolean = False
   Public Shared TempPokeFile As String = route29.poke
   Public Shared IsInverseBattle As Boolean = False
   Public Shared CustomBattleMusic As String = 
   Public Shared ReceivedQuery As String = 
   Public Shared ReceivedInput As String = 
   Public UpdateFadeOut As Boolean = False
   Public UpdateFadeIn As Boolean = True

---------------------------------------------------------------------------------
 

Korremarr

Starting Trainer
I believe I actually found the error. The save file's Register.dat somehow got corrupted and is full of null values, so when I try to enter a battle it has trouble reading flags, because there are none. I don't know how the file could have gotten corrupted but I think I at least identified the source of the crash.
 
J

jianmingyong

Guest
You might want to see if you can restore back its register by right clicking the file and click on restore previous version.
 

Fanta

Content Developer
P3D Developer
Global Moderator
I believe I actually found the error. The save file's Register.dat somehow got corrupted and is full of null values, so when I try to enter a battle it has trouble reading flags, because there are none. I don't know how the file could have gotten corrupted but I think I at least identified the source of the crash.
I take it that this happened on an offline save?
 
Top