Create a free account to remove all ad content.

Author Topic:  Bare Script Command in Console  (Read 252 times)

0 Members and 1 Guest are viewing this topic.

AlienizdPixel

  • Jr. Moderator
  • Supreme Member
  • *
  • Posts: 2699
  • Hello
    • View Profile
  • Xbox: A1ienizdPixe1
Bare Script Command in Console
« on: December 31, 2017, 03:12:34 PM »
Code: [Select]
Total Miner: Forge.  Please take a photo of this screen and post it on TotalMinerForums.net, so that we can fix it. Thank you.

System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
   at System.String.Substring(Int32 startIndex, Int32 length)
   at StudioForge.TotalMiner.GameConsole.CmdScript(String command, ITMGame game, ITMPlayer caller, ITMPlayer player, IOutputLog log)
   at StudioForge.TotalMiner.GameConsole.RunCommand(String command)
   at StudioForge.TotalMiner.Player.OnConsoleCommand(String cmd)
   at StudioForge.Engine.GUI.ConsoleWindow.HandleSpecialKey(Keys key, Boolean shift, Boolean ctrl)
   at StudioForge.Engine.GUI.TextInput.HandleInput(Keys key)
   at StudioForge.Engine.GUI.TextInput.HandleInput(PlayerIndex playerIndex)
   at StudioForge.Engine.GUI.WindowManager.HandleInput()
   at StudioForge.Engine.GameState.GameScreen.HandleInput(InputState input)
   at StudioForge.TotalMiner.Screens.GameplayScreen.HandleInput(InputState input)
   at StudioForge.Engine.GameState.ScreenManager.Update(Int32 index, Boolean otherScreenHasFocus)
   at StudioForge.Engine.GameState.ScreenManager.Update(GameTime donotuse)
   at Microsoft.Xna.Framework.Game.Update(GameTime gameTime)
   at StudioForge.Engine.Game.BaseGame.Update(GameTime gameTime)
   at StudioForge.TotalMiner.TotalMinerGame.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 StudioForge.Engine.Game.BaseGame.Run[T]()
Occured when typing only "script" within the Console.
-Alionz

Craig

  • TM Creator
  • Extreme Member
  • *
  • Posts: 6600
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Bare Script Command in Console
« Reply #1 on: January 03, 2018, 12:52:26 AM »
fixed in 2.631