• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Creating new trainer] Adding pokemon crash?

11
Posts
11
Years
  • Seen Dec 3, 2014
Alright so everything was going well! I was able to create a trainer type with no problems at all and set the BGM and what ever.

Then moved onto making a new trainer. Seemed simple, I was able to pick a trainer type, put in his name, pick a pokemon for his line up, then pick his level.

How ever, after I pick the pokemon's level, I get this error :( Anyone know what the problem is?

I am using the editor to make the trainer! :3

---------------------------
Pokemon Essentials
---------------------------
Exception: NoMethodError

Message: undefined method `[]' for nil:NilClass

PokeBattle_Pokemon:729:in `initialize'

PokemonTrainers:102:in `new'

PokemonTrainers:102:in `pbNewTrainer'

PokemonTrainers:88:in `loop'

PokemonTrainers:111:in `pbNewTrainer'

PokemonTrainers:80:in `each'

PokemonTrainers:80:in `pbNewTrainer'

PokemonEditor:3696:in `pbTrainerBattleEditor'

PokemonEditor:3653:in `pbListScreenBlock'

PokemonEditor:1572:in `loop'



This exception was logged in

C:\Users\Joe\Saved Games/Pokemon United/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
 

Rayd12smitty

Shadow Maker
645
Posts
12
Years
  • Seen Feb 21, 2016
Try editing the PBS file instead of using the editor. The editor doesn't work right now
 
11
Posts
11
Years
  • Seen Dec 3, 2014
Solved! Took me quite some time frantically searching for a solution but I finally fixed it! Apparently just a simple error in the scripts in v11 :P

For others having the problem, here's how you solve it:

Copy this line: @obtainMode=4 if $game_switches && $game_switches[32]

Paste it on line 729 in the script PokeBattle_Pokemon and it should fix itself :3

Try editing the PBS file instead of using the editor. The editor doesn't work right now

Yep yep I was about to start doing that but I was determined to do a bit of bug fixing :P Not only helps other people and make it easier, but debugging for the creation kit in general for future releases :D
 
Last edited:

Lord Varion

Guess who's back?
2,642
Posts
15
Years
  • Age 29
  • Seen Jan 6, 2015
No New Trainers?

I'm trying to add a New trainer in Essentials v11.

I keep getting this message
o0yU9.jpg

whenever I finished deciding the level of the first Pokemon.

What do?

I've tried replacing all the files as well.
 
Back
Top