The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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.


Advertise here

Reply
 
Thread Tools
  #1    
Old April 5th, 2013, 06:04 PM
Wannabe God's Avatar
Wannabe God
Witty title
 
Join Date: Mar 2011
Location: Mars
Gender: Male
Nature: Adamant

Advertise here
Okay, I've tried many, many times to put a trainer battle in the game I'm working on by putting the trainer in both the trainertypes and trainers file, but whenever I run the script, it always acts like I hadn't put the trainer in the trainers file at all. I've tried multiple solutions, but when I run it in debug mode it acts like the trainer isn't there at all, and when I run it out of debug mode, I get a similar error, which I guess I'll have to type out because the site won't let me post an external image:

Script 'interpreter' line 276: RuntimeError occured

Script error within event 16, map 8, (Team Galacitc HQ F3):
Exception: RuntimeError
Message: Section09:194:in'pbMissingTrainer'Can't find trainer
(RivalMGalacticGrunt;5,ID 1)
***full script
pbtrainerBattle(PBTrainers::RIVALM,"Galactic Grunt;5._I("You actually beat me?"),false,1,true)
Interpreter:243:in'pbExecuteScript"
PokemonTrainers:318:in 'pbTrainerBattle'
(eval)in 'pbExecuteScript'
Interpreter:788:in 'eval'
Interpreter:243:in'pbexecutesScript'
Interpreter:788:in'command_111'
Interpreter:320:in:'execute_command'
Interpreter:193:in'update'
Interpreter:106:in 'loop'
Interpreter:198:in'update'

This is really annoying me since I know that there must be a simple explanation, but I've spend hours trying to work it out without seeing it.

P.S. Here's the trainer in the trainers file (I tried the script as 5,5 instead of 5, but no luck):
RIVALM
Galactic Grunt;5,5
1,POTION
GLAMEOW,10,,FAKEOUT,SCRATCH,GROWL,,,,0,false,,10,70,,false

P.S.S
If the answer is super obvious and I'm an idiot for not figuring it out, please don't be mean about it, I've spent around an hour searching for the answer in posts already, and I'm really, really new to coding.

EDIT: I changed the rival's name to something less complicated, but it still acts like the rival isn't scripted in. Curses.

Last edited by Wannabe God; April 5th, 2013 at 06:28 PM.
Reply With Quote
  #2    
Old April 5th, 2013, 06:34 PM
Yusshin's Avatar
Yusshin
♪ Yggdrasil ♪
 
Join Date: Jul 2009
Location: Quebec, Canada
Age: 21
Nature: Brave
pbTrainerBattle(PBTrainers::AROMALADY,"Jasmine",_I("J'étais préoccupée avec les fleurs."),false,0)

You're missing a " after:

Galactic Grunt

It should be "Galactic Grunt"

Rebattles just require Galactic Grunt,# in trainers.txt (from my experience). There's no semi-colon or two separate numbers i.e. ;5,5 is actually ,5

Also, there's no periods either. Look at this one:

pbTrainerBattle(PBTrainers::AROMALADY,"Jasmine",_I("J'étais préoccupée avec les fleurs."),false,0)

Maybe yours should be:

pbTrainerBattle(PBTrainers::RIVALM,"Galactic Grunt",_I("You actually beat me?"),false,5,true)

5 is your rebattle number.

Try that, I guess.
__________________


Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
"My scar makes me sassy, child!"
The Big Bang Theory Fan Club - Click To Join!
The French Club
Reply With Quote
  #3    
Old April 5th, 2013, 06:44 PM
Wannabe God's Avatar
Wannabe God
Witty title
 
Join Date: Mar 2011
Location: Mars
Gender: Male
Nature: Adamant
Thanks for the help! I don't think that's what's glitching up now, though, since I changed it all around with the battle now reading:

pbTrainerBattle(PBTrainers::RIVALM,"MBattle1Stunky",_I("You actually beat me?"),false,1,true)

And the trainers.txt file reading

RIVALM
MBattle1Stunky
1,POTION
GLAMEOW,10,,FAKEOUT,SCRATCH,GROWL,,,,0,false,,10,70,,false

Same error as usual.

Oh, and one more thing that may or may not be related: I tried the fix for the trainers not working in editor bug, and it didn't work at all. No idea what I'm doing wrong.

Last edited by Wannabe God; April 5th, 2013 at 07:01 PM.
Reply With Quote
  #4    
Old April 5th, 2013, 07:03 PM
Yusshin's Avatar
Yusshin
♪ Yggdrasil ♪
 
Join Date: Jul 2009
Location: Quebec, Canada
Age: 21
Nature: Brave
I think I see the issue.

It should look like this:

pbTrainerBattle(PBTrainers::RIVALM,"MBattle1Stunky",_I("You actually beat me?"),false,1,true)

RIVALM
MBattle1Stunky,1
1,POTION
GLAMEOW,10,,FAKEOUT,SCRATCH,GROWL,,,,0,false,,10,70,,false

Because in the first line you specify rebattle #1 (see bold), but your trainer.txt trainer isn't written for a rebattle.

Try that.
__________________


Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
"My scar makes me sassy, child!"
The Big Bang Theory Fan Club - Click To Join!
The French Club
Reply With Quote
  #5    
Old April 5th, 2013, 07:10 PM
Wannabe God's Avatar
Wannabe God
Witty title
 
Join Date: Mar 2011
Location: Mars
Gender: Male
Nature: Adamant
Thanks for helping. I took out the rebattle "1", and I got the same error.
Reply With Quote
  #6    
Old April 5th, 2013, 07:13 PM
Yusshin's Avatar
Yusshin
♪ Yggdrasil ♪
 
Join Date: Jul 2009
Location: Quebec, Canada
Age: 21
Nature: Brave
Dumb Question: Did you remember to save the changes in the files?

Is it the EXACT same error? It should've changed a little bit, given the modifications made to the text files.

-Out of ideas- :v
__________________


Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
"My scar makes me sassy, child!"
The Big Bang Theory Fan Club - Click To Join!
The French Club
Reply With Quote
  #7    
Old April 5th, 2013, 07:22 PM
Wannabe God's Avatar
Wannabe God
Witty title
 
Join Date: Mar 2011
Location: Mars
Gender: Male
Nature: Adamant
Yeah, I saved the changes. I haven't checked the actual error yet since I was testing in debug mode which only tells me that the trainer mentioned doesn't exist, but I'll see what happens if I test in in game mode now.

Edit: here's the error:

Script 'Interpreter' line 276: RuntimeError occurred.

Script error within event 16, map 8 (Team Galactic HQ F3):

Exception: RuntimeError

Message: Section109:194:in `pbMissingTrainer'Can't find trainer (RIVALM, MBattle1Stunky, ID true)

***Full script:

pbTrainerBattle(PBTrainers::RIVALM,"MBattle1Stunky",_I("You actually beat me?"),false,true)

Interpreter:243:in `pbExecuteScript'

PokemonTrainers:318:in `pbTrainerBattle'

(eval)in `pbExecuteScript'

Interpreter:788:in `eval'

Interpreter:243:in `pbExecuteScript'

Interpreter:788:in `command_111'

Interpreter:320:in `execute_command'

Interpreter:193:in `update'

Interpreter:106:in `loop'

Interpreter:198:in `update'

Last edited by Wannabe God; April 5th, 2013 at 07:40 PM. Reason: error added
Reply With Quote
  #8    
Old April 5th, 2013, 07:57 PM
Yusshin's Avatar
Yusshin
♪ Yggdrasil ♪
 
Join Date: Jul 2009
Location: Quebec, Canada
Age: 21
Nature: Brave
Oh, but now that you've taken out the 1, you should write it like this:

pbTrainerBattle(PBTrainers::RIVALM,"MBattle1Stunky",_I("You actually beat me?"),false,0,true)

Since zero is the default value.
__________________


Polaret | Fourette | Ecuret | Axew | Zorua | Nanette [Shiny]
"My scar makes me sassy, child!"
The Big Bang Theory Fan Club - Click To Join!
The French Club
Reply With Quote
  #9    
Old April 6th, 2013, 12:32 PM
Wannabe God's Avatar
Wannabe God
Witty title
 
Join Date: Mar 2011
Location: Mars
Gender: Male
Nature: Adamant
Yes, it worked! Thank you so much!
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 08:10 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.