• ✨ 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

Duplicate [v0.46] StartIndex cannot be less than zero.

Just a simple crash report. I was playing on a server hosted within my NAT, was close to entering victory road when it crashed with the message: StartIndex cannot be less than zero.
Error Log as follows:


Code:
Kolben Games Crash Log V 2.0
Pokémon 3D has crashed!

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

Game information:

Pokémon 3D Indev version: 0.46
Content Packs: {}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (113415)
Playing on Servers: TRUE (ROFLserver/192.168.0.102:25565)
Game Environment: OverworldScreen
Actionscript: No script running
File Validation: True

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

System specifications:

Operating system: Microsoft Windows 8.1 Pro [6.2.9200.0]
System time: 19/03/2014 10:52:38 PM
System language: English (Australia)(ENA) / Loaded game language: en
Decimal separator: .

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

Graphics Card information:

[CardName(s): "NVIDIA GeForce GTX 550 Ti"]
[CardRAM(s) : "1073741824"]

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

Error 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: Items: 0
Source: mscorlib

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

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 System.String.Remove(Int32 startIndex)
   at _2._5DHero.ScriptComparer.GetArgumentValue(Object inputString)
   at _2._5DHero.ScriptCommander.Parse(String input)
   at _2._5DHero.Trainer.LoadTrainerNew(String[] Data)
   at _2._5DHero.Trainer..ctor(String TrainerFile)
   at _2._5DHero.NPC.CheckInSight()
   at _2._5DHero.Level.CheckTrainerSights()
   at _2._5DHero.Player.TakeStep()
   at _2._5DHero.OverworldCamera.Movement()
   at _2._5DHero.OverworldCamera.Update()
   at _2._5DHero.OverworldScreen.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)

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

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.
 
Update: This crash also occurs when silver attempts to initiate battle when you reach the exit of victory road.

Code:
Kolben Games Crash Log V 2.0
Pokémon 3D has crashed!

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

Game information:

Pokémon 3D Indev version: 0.46
Content Packs: {}
Active GameMode: Pokemon 3D
GameJolt Account: TRUE (113415)
Playing on Servers: TRUE (ROFLserver/124.190.208.139:25565)
Game Environment: OverworldScreen
Actionscript: Type: Script; Input: rival\rival_victoryroad; Line: 19
File Validation: True

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

System specifications:

Operating system: Microsoft Windows 8.1 Pro [6.2.9200.0]
System time: 19/03/2014 11:38:43 PM
System language: English (Australia)(ENA) / Loaded game language: en
Decimal separator: .

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

Graphics Card information:

[CardName(s): "NVIDIA GeForce GTX 550 Ti"]
[CardRAM(s) : "1073741824"]

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

Error 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: Items: 0
Source: mscorlib

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

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 System.String.Remove(Int32 startIndex)
   at _2._5DHero.ScriptComparer.GetArgumentValue(Object inputString)
   at _2._5DHero.ScriptCommander.Parse(String input)
   at _2._5DHero.Trainer.LoadTrainerNew(String[] Data)
   at _2._5DHero.Trainer..ctor(String TrainerFile)
   at _2._5DHero.ScriptCommander.DoBattle(String subClass)
   at _2._5DHero.ScriptCommander.InizializeCommand(ScriptV2& ScriptV2, String inputString)
   at _2._5DHero.ScriptV2.DoCommand()
   at _2._5DHero.ScriptV2.Update()
   at _2._5DHero.Script.Update()
   at _2._5DHero.ActionScript.Update()
   at _2._5DHero.OverworldScreen.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)

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

You should report this error.

Go to "http://pokemon3d.net/forum/forums/6/create-thread" to report this crash there.
 

Tornado9797

Content Developer
P3D Developer
Global Moderator
This crash has been reported fourteen separate times, please make an effort to check the bugs forum for similar bugs next time.

Just avoid trainers for now until the bug fix update is released.
 
This crash has been reported fourteen separate times, please make an effort to check the bugs forum for similar bugs next time.

Just avoid trainers for now until the bug fix update is released.
Thanks for replying. Would you be able to link me to the correct forum view for bug reports as when I looked there were around 25 threads.
Cheers.
 

Tornado9797

Content Developer
P3D Developer
Global Moderator
Thanks for replying. Would you be able to link me to the correct forum view for bug reports as when I looked there were around 25 threads.
Cheers.
Okay, I apologize, I said that a little vaguely.

Only the original post of the crash (found here: http://pokemon3d.net/forum/threads/6852/) can be found in the (general) Bugs forum. The other, duplicate reports are found inside of the Bug Archive sub-forum.
 
Top