• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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.

[Discussion] Bizarre game breaking bug

I distributed my game for bug testing, and one of my testers found a critical bug. I had a theory as to what caused it - Language related. It's looking likely that that is the cause, considering it's the only changes I've made to the script files since updating.

EDIT: Upon further testing on my own, I think I've managed to isolate the issue at changing languages. I've changed the "14.times" to "15.times" and activated the language array. If I don't change languages, everything is fine. However, the second I change languages, go in game, and attempt to access the PC, everything breaks.

I have three error reports to go along with this game breaking bug.
Code:
---------------------------
Touhoumon Faith & Prayer Version 1.8
---------------------------
Exception: NoMethodError

Message: undefined method `party' for nil:NilClass

PokemonStorage:3087:in `access'

PokemonStorage:3075:in `loop'

PokemonStorage:3107:in `access'

PokemonStorage:3023:in `callCommand'

PokemonStorage:3020:in `each'

PokemonStorage:3020:in `callCommand'

PokemonStorage:3119:in `pbPokeCenterPC'

PokemonStorage:3115:in `loop'

PokemonStorage:3122:in `pbPokeCenterPC'

PokemonDebug:433:in `pbDebugMenu'



This exception was logged in 

C:\Users\Andrew_2\Saved Games/Touhoumon Faith _ Prayer Version 1_8/errorlog.txt.

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

Code:
---------------------------
Touhoumon Faith & Prayer Version 1.8
---------------------------
Exception: NoMethodError

Message: undefined method `party' for nil:NilClass

PokemonStorage:3092:in `access'

PokemonStorage:3075:in `loop'

PokemonStorage:3107:in `access'

PokemonStorage:3023:in `callCommand'

PokemonStorage:3020:in `each'

PokemonStorage:3020:in `callCommand'

PokemonStorage:3119:in `pbPokeCenterPC'

PokemonStorage:3115:in `loop'

PokemonStorage:3122:in `pbPokeCenterPC'

PokemonDebug:433:in `pbDebugMenu'



This exception was logged in 

C:\Users\Andrew_2\Saved Games/Touhoumon Faith _ Prayer Version 1_8/errorlog.txt.

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

Code:
---------------------------
Touhoumon Faith & Prayer Version 1.8
---------------------------
Script 'Interpreter' line 276: RuntimeError occurred.
Script error within event 3, map 23 (PokéCenter):
Exception: NoMethodError
Message: Section111:3092:in `access'undefined method `party' for nil:NilClass
***Full script:
pbPokeCenterPC
 
Interpreter:243:in `pbExecuteScript'
PokemonStorage:3075:in `loop'
PokemonStorage:3107:in `access'
PokemonStorage:3023:in `callCommand' 
PokemonStorage:3020:in `each'
PokemonStorage:3020:in `callCommand'
PokemonStorage:3119:in `pbPokeCenterPC'
PokemonStorage:3115:in `loop'
PokemonStorage:3122:in `pbPokeCenterPC'
(eval):1:in `pbExecuteScript'
 
---------------------------
OK  
---------------------------

These errors came from attempting to access Bill's PC: Deposit, Withdraw, and Move were bugged.

There were also bugs where Pokeballs, for some reason, wouldn't capture anything. In fact, they weren't even being thrown. According to my friend, they could throw theirs, but nothing they captured was showing up in their party at all.

I have no idea how to fix this issue, and I feel like I've exhausted my ideas on where to look. I'd really appreciate if someone with more knowledge could lend a hand here.
 
Last edited:
When i try to translate my game, the text doesn´t change. This is what i made:
-Extract text with editor
-Translate the second line of some text in "intl.txt"
-Compile text
-Change "INTL.dat" to "spanish.dat"
-Put "spanish.dat and "english.dat" in "Data" folder. (english.dat is just the text extracted an compiled again)
-Modify the "settings" script
-Change the pokemon load script so i don´t get an error (change "14.times" to "15.times")
-I test the game, change the language and load my savegame and nothing changes
After doing the "15.times" thing, https://www.pokecommunity.com/posts/8022430/ and https://www.pokecommunity.com/posts/8028274/ changes, the translation system is working here.
-------------------------------------------------------------------
 
I did eventually fix it, I don't know how exactly it broke, but I do know one thing:
I initially did both things, so I wasn't sure what the issue was. It wasn't until later on I realized if a game catches the bug even once, the save file is irreparable. So I was testing out new save files and inserting/removing changes one at a time. I still don't know how it broke, but I do know for an absolute certainty that i have it working now, and the 15.times thing is in there. Your posts, FL, are what helped me figure out how to make it work though. So I do appreciate that.
 
Back
Top