Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] [Creating new trainer] Adding pokemon crash?

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Reply
 
Thread Tools
  #1    
Old March 10th, 2013 (04:36 PM).
joey645 joey645 is offline
 
Join Date: Mar 2013
Posts: 11
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
---------------------------
Reply With Quote
  #2    
Old March 10th, 2013 (05:05 PM).
Rayd12smitty's Avatar
Rayd12smitty Rayd12smitty is offline
Shadow Maker
 
Join Date: Dec 2011
Gender: Male
Posts: 647
Try editing the PBS file instead of using the editor. The editor doesn't work right now
__________________
Reply With Quote
  #3    
Old March 10th, 2013 (05:07 PM). Edited March 10th, 2013 by joey645.
joey645 joey645 is offline
 
Join Date: Mar 2013
Posts: 11
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

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

Quote originally posted by Rayd12smitty:
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 Not only helps other people and make it easier, but debugging for the creation kit in general for future releases :D
Reply With Quote
  #4    
Old March 24th, 2013 (04:06 PM).
Lord Varion's Avatar
Lord Varion Lord Varion is offline
Guess who's back?
 
Join Date: Feb 2009
Age: 21
Gender: Other
Nature: Naughty
Posts: 2,648
I'm trying to add a New trainer in Essentials v11.

I keep getting this message

whenever I finished deciding the level of the first Pokemon.

What do?

I've tried replacing all the files as well.
__________________
gone.
Reply With Quote
  #5    
Old March 24th, 2013 (05:01 PM).
Whitney's Shaymin's Avatar
Whitney's Shaymin Whitney's Shaymin is offline
Creator Of Pokemon Grace
Silver Tier
 
Join Date: Apr 2012
Location: Goldenrod, Johto
Gender: Male
Nature: Timid
Posts: 600
Edit the pbs file itself then compile data. It should work that way.
__________________


"The Incredibly Pretty Girl"

Gym Leader Whitney
link | link | link

FC: 4699-7156-4669 IGN: Gavin
Reply With Quote
Reply
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 05:03 AM.