• ✨ 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 start index cannot be less than zero

Bogdan Gherghe

Starting Trainer
Code:
Kolben Games Crash Log V 1.0
Pokémon 3D has crashed!
---------------------------

System specifications:
Pokémon 3D version: 0.39
Operating system: Microsoft Windows 8 Pro [6.2.9200.0]
System time: 09.11.2013 10:38:33
System language: ROMLoaded language: en
Decimal seperator: ,
Content Packs: {}
Active GameMode: Pokemon 3D
Operating online: FALSE
Game environment: MainMenuScreen
Actionscript: No script running
---------------------------

Here is further information:
Message: StartIndex cannot be less than zero.
Parameter name: startIndex
InnerException: NOTHING
BaseException: StartIndex cannot be less than zero.
Parameter name: startIndex
HelpLink: No helplink available.
Data: System.Collections.ListDictionaryInternal
Source: mscorlib
TargetSite: Name: Remove [
   Attributes: PrivateScope, Public, HideBySig
   CallingConvention: Standard, HasThis
   ContainsGenericParameters: False
   DeclaringType: System.String
   IsAbstract: False
   IsAssembly: False
   IsConstructor: False
   IsFamily: False
   IsFamilyAndAssembly: False
   IsFamilyOrAssembly: False
   IsFinal: False
   IsGenericMethod: False
   IsGenericMethodDefinition: False
   IsHideBySig: True
   IsPrivate: False
   IsPublic: True
   IsSecurityCritical: False
   IsSecuritySafeCritical: False
   IsSecurityTransparent: True
   IsSpecialName: False
   IsStatic: False
   IsVirtual: False
   MemberType: Method
   MetadataToken: 100664175
   MethodHandle: System.RuntimeMethodHandle
   Module: CommonLanguageRuntimeLibrary
   ReflectedType: System.String
   ]

StackTrace:    at System.String.Remove(Int32 startIndex)
   at _2._5DHero.Player.LoadPlayer()
   at _2._5DHero.Player.LoadGame(String filePrefix)
   at _2._5DHero.MainMenuScreen.ContinueButton()
   at _2._5DHero.MainMenuScreen.UpdateMainMenu()
   at _2._5DHero.MainMenuScreen.Update()
   at _2._5DHero.Basic.Update(GameTime gameTime)
   at _2._5DHero.DGame.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 _2._5DHero.Program.Main(String[] args)
 
Last edited by a moderator:

Usandfriends

Trainer
Hi, if you edited the save-files and accidentally added newlines at the end of them, that is most likely causing this error. I had the same problem after I edited the save-files and I fixed it by going to %POKEMONFOLDER%/Save/%USERNAME%/ and deleting all newline characters at the end of all the save-files. I think the parser parses these blank newlines as weird variables and then throws an error.
 

Darkfire

Administrator
Administrator
P3D Developer
Hi, if you edited the save-files and accidentally added newlines at the end of them, that is most likely causing this error. I had the same problem after I edited the save-files and I fixed it by going to %POKEMONFOLDER%/Save/%USERNAME%/ and deleting all newline characters at the end of all the save-files. I think the parser parses these blank newlines as weird variables and then throws an error.
^^This is a thing^^
Please watch for that if you are editing your offline saves!
 
Top