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

Fixed [v0.40] Battle Tower Trainer File Typo error crash my game!

J

jianmingyong

Guest
I am playing Battle Tower making more winning streak. The next trainer it has selected is.... Crash! ( I mean game crash. There isn't trainer name called crash :p )

It crash because there is a typo error in "Pokemon\Scripts\trainer\frontier\battletower\36.trainer" making the game not able to send out the next challenger.

Here is the crash log:
Code:
Kolben Games Crash Log V 1.0
Pokémon 3D has crashed!
---------------------------

System specifications:
Pokémon 3D version: 0.40
Operating system: Microsoft Windows 7 Home Premium  [6.1.7601.65536]
System time: 15/12/2013 7:01:36 PM
System language: ENE Loaded language: en
Decimal seperator: .
Content Packs: {HGSS Music Pack, Kira_Pro_Grafik_HD}
Active GameMode: Pokemon 3D
Operating online: TRUE (116016)
Game environment: OverworldScreen
Actionscript: Type: Script; Input: frontier\battletower\challenge\choosetrainer; Line: 4
---------------------------

Here is further information:
Message: Conversion from string "ersion=2[TRAINER FORMAT]" 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: System.Collections.ListDictionaryInternal
Source: Microsoft.VisualBasic
TargetSite: Name: ToInteger [
  Attributes: PrivateScope, Public, Static
  CallingConvention: Standard
  ContainsGenericParameters: False
  DeclaringType: Microsoft.VisualBasic.CompilerServices.Conversions
  IsAbstract: False
  IsAssembly: False
  IsConstructor: False
  IsFamily: False
  IsFamilyAndAssembly: False
  IsFamilyOrAssembly: False
  IsFinal: False
  IsGenericMethod: False
  IsGenericMethodDefinition: False
  IsHideBySig: False
  IsPrivate: False
  IsPublic: True
  IsSecurityCritical: False
  IsSecuritySafeCritical: False
  IsSecurityTransparent: True
  IsSpecialName: False
  IsStatic: True
  IsVirtual: False
  MemberType: Method
  MetadataToken: 100664087
  MethodHandle: System.RuntimeMethodHandle
  Module: Microsoft.VisualBasic.dll
  ReflectedType: Microsoft.VisualBasic.CompilerServices.Conversions
  ]

StackTrace:    at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
  at _2._5DHero.Trainer.LoadTrainerNew(String[] Data)
  at _2._5DHero.Trainer.LoadTrainerOld(String[] Data)
  at _2._5DHero.Trainer..ctor(String TrainerFile)
  at _2._5DHero.ScriptComparer.DoNPC(String subClass)
  at _2._5DHero.ScriptComparer.GetResultValue(String mainClass, String subClass)
  at _2._5DHero.ScriptComparer.GetArgumentValue(Object inputString)
  at _2._5DHero.ScriptComparer.GetCommandArgument(String inputString)
  at _2._5DHero.ScriptCommander.DoNPC(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/forums/6/create-thread/" to report this crash there.
As you can see there is ersion=2 at the first line. That is the typo error that is the same as the crash log say.

Code:
ersion=2[TRAINER FORMAT]
Name|Selena
TrainerClass|Idol
Money|0
IntroMessage|La, lala, lah.
OutroMessage|Bye-bye, lalah!
DefeatMessage|Bye-bye, lalah!
TextureID|battletower\11
Region|Johto
IniMusic|Johto_trainer_intro
DefeatMusic|trainer_defeat
BattleMusic|johto_trainer
Pokemon1|<system.random(0,251)>,<pokemon.maxpartylevel>
Pokemon2|<system.random(0,251)>,<pokemon.maxpartylevel>
Pokemon3|<system.random(0,251)>,<pokemon.maxpartylevel>
Pokemon4|
Pokemon5|
Pokemon6|
Items|
Gender|01
AI|0
IntroSequence|battlefrontier,lightblue
 
Last edited by a moderator:
J

jianmingyong

Guest
I thought there isn't version=2 for defining a trainer?

I want my win streak back! it is not easy to keep battling. *Kidding* I don't need that back.
 
Top