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

Report bugs and errors in unmodified Essentials version 21

Here is another bugfix for the ability slowstart:
Code:
BattleHandlers::SpeedCalcAbility.add(:SLOWSTART,
  proc { |ability,battler,mult|
    next mult/2 [COLOR="Red"]if battler.effects[PBEffects::SlowStart]>0[/COLOR]
  }
)
Code:
BattleHandlers::DamageCalcUserAbility.add(:SLOWSTART,
  proc { |ability,user,target,move,mults,baseDmg,type|
   [COLOR="Red"] if user.effects[PBEffects::SlowStart]>0[/COLOR] && move.physicalMove?
      mults[ATK_MULT] *= 0.5
    end
  }
)
 
The command "\n" isn't working in trainers.txt within the PBS. The trainer's Lose Text isn't correctly loading as a result. Putting in a single slash sometimes causes the slash to be deleted, and putting in a double slash causes only one slash to be loaded.
 
Two quick ones:
Even though the AI registers switches it will never actually perform them. To fix this change this chunk in "AI_Switch":
Code:
if @battle.pbRegisterSwitch(idxBattler,list[0])
          PBDebug.log("[AI] #{battler.pbThis} (#{idxBattler}) will switch with " +
                      "#{@battle.pbParty(idxBattler)[list[0]].name}")
          return [COLOR="Red"]true[/COLOR]
        end
I also found a typo in "Battle_Action_Switching":
Code:
owner = pbGetOwnerName(b[COLOR="Red"]attler[/COLOR].index)
 
Last edited:
On the new 18.1 version I have a problem that when I add a translation the game crashes without error when I start a New Game. I tried to translate by changing scripts phrases but I cannot find the text for obtaining items or important changes like that. So I cannot translate and I wanna know if this has a solution.
 
I found a bug, when both the player's pokemon and the oppent pokemon fainted at the same time, it asked me if I want to switch to another pokemon after I send out the next pokemon to battle, while the oppent is still not sending out its pokemon.
 
When having a battle indoors at night (or in a cave) with a trainer, it should play an animation similar to HGSS, where the screen flashes a couple times, displays a pokeball that goes downwards, which is then followed by a black curve, which should pull the screen into darkness until it fades into the battle. However, in both a fresh copy of v18.1 and my own project, the fade is more of a hard cut, and it only happens when the black curve is completely offscreen. This includes my original idea of a fix, where I extended the top part of the curve upwards thousands of pixels. The bar just quickened to get offscreen before the fade. I can supply a screenshot of my issue as well, if necessary.
 
When having a battle indoors at night (or in a cave) with a trainer, it should play an animation similar to HGSS, where the screen flashes a couple times, displays a pokeball that goes downwards, which is then followed by a black curve, which should pull the screen into darkness until it fades into the battle. However, in both a fresh copy of v18.1 and my own project, the fade is more of a hard cut, and it only happens when the black curve is completely offscreen. This includes my original idea of a fix, where I extended the top part of the curve upwards thousands of pixels. The bar just quickened to get offscreen before the fade. I can supply a screenshot of my issue as well, if necessary.
The graphic black_half.png in the Graphics/Transitions folder was accidentally made transparent. Just fill it in with black instead.
 
Really really really love the flexible new battle system. Had a blast playing around with all the different combinations (eg, 1v3, 3v1, 2v3, etc).

Just reporting a few issues I've noticed while playing around with the new system...

Crashes
  • Crash when challenging Rival/Blue after teaming up with Brendan (example map Route 3). Behaviour in 17.2 was to create 1v1 trainer battle without ally.
  • Exception is thrown when trying to use a battle item (eg, X Attack) on a pokemon that is not currently in battle. In 17.2, battle items did not allow selecting a pokemon from the party screen. (Note: Ideally, it would be really nice if we could use Potions + Battle Items on ally pokemon - eg, to heal/boost an ally pokemon like in Pokemon Masters - but this could be tricky. Reverting to 17.2 behaviour could be a quicker fix in the meantime.)

Other
  • Brendan's sprite disappears and doesn't follow the player after teaming up. Was working in 17.2. [Fixed on GitHub]
  • Unlike 2v1 trainer battles, 2v1 wild battles don't seem possible with an ally (using the debug menu). Instead, the player sends out 2 pokemon. [Fixed on GitHub]

Also, I noticed the changelog says 2v2 trainer battles is a "necessary restriction" (ie, no 2v3 or 3v3 trainer battles). But 2v3 wild battles (with ally) seem to work quite well, so is there an actual technical limitation preventing 2v3 or 3v3 trainer battles with an ally? I'm guessing enabling a second ally will require a bit of work, but it would be really useful and open up some interesting gameplay scenarios (eg, possibility to have 3v3 trainer battles, or 3 trainers teaming up to take on a boss/legendary, etc).

Either way, thanks so much for your continued work on this really amazing project!


[PS: Just discovered the GitHub version. Thanks heaps for that - it will make it much easier to develop alongside Essentials updates, and also to version control custom scripts. Thank you!]
 
Last edited:
Getting this error when I encounter a wild roaming pokémon:
Code:
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass

Backtrace:
PField_RoamingPokemon:186
PField_RoamingPokemon:165:in `each'
PField_RoamingPokemon:165
PField_RoamingPokemon:154:in `call'
PField_Field:20:in `trigger'
PField_Field:19:in `each'
PField_Field:19:in `trigger'
PField_Field:386:in `pbBattleOnStepTaken'
PField_Field:376
PField_Field:374:in `call'
I have no idea what it means and if I did something wrong.

Tried to have Galarian Moltres Roaming. Used the switch and it gives me that error when encountering in the wild. I can encounter normal pokemon without any problem but I assume this error shows up when it tries to generate the roamer.
This is currently my settings for roamers:
Spoiler:
 
Getting this error when I encounter a wild roaming pokémon:
Code:
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass

Backtrace:
PField_RoamingPokemon:186
PField_RoamingPokemon:165:in `each'
PField_RoamingPokemon:165
PField_RoamingPokemon:154:in `call'
PField_Field:20:in `trigger'
PField_Field:19:in `each'
PField_Field:19:in `trigger'
PField_Field:386:in `pbBattleOnStepTaken'
PField_Field:376
PField_Field:374:in `call'
I have no idea what it means and if I did something wrong.
Moltres_1 isn't a valid Species name. Try with just :MOLTRES and use an encounter modifier to make it's form 1
 
I tried with normal moltres as well to see if that's the problem. But I keep getting that error.
Code:
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass

Backtrace:
PField_RoamingPokemon:186
PField_RoamingPokemon:165:in `each'
PField_RoamingPokemon:165
PField_RoamingPokemon:154:in `call'
PField_Field:20:in `trigger'
PField_Field:19:in `each'
PField_Field:19:in `trigger'
PField_Field:386:in `pbBattleOnStepTaken'
PField_Field:370:in `pbOnStepTaken'
Game_Player:440:in `update_event_triggering'
Or rather this happens when I try to encounter normal moltres during roaming. I dunno if roamers are broken or not. Cause I can easily just change the form to be created in those locations if I just get it to work.
 
Last edited:
Getting this error when I encounter a wild roaming pokémon:
Code:
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass

Backtrace:
PField_RoamingPokemon:186
PField_RoamingPokemon:165:in `each'
PField_RoamingPokemon:165
PField_RoamingPokemon:154:in `call'
PField_Field:20:in `trigger'
PField_Field:19:in `each'
PField_Field:19:in `trigger'
PField_Field:386:in `pbBattleOnStepTaken'
PField_Field:376
PField_Field:374:in `call'
I have no idea what it means and if I did something wrong.
One (or more) of the maps that your Pokémon can roam to doesn't have MapPosition metadata defined for it.
 
Hello Everyone,

i think there is a problem with the purify chamber.
You cannot access your party pokemon if you try to fill the chamber and the icon of the deposited pokemon are always black...
i tried it with an unmodified version of v18.1 and there is the same behaviour.
I even compared the Code with my old project on v17.2, but there is nothing changed regarding the pokemon icons.
Has anyone else the same problem and maybe a clue how to fix this?
Thanks in Advance :)

EDIT:
I was able to fix the Part with the black Pokemon Icons inside the Purify chamber.
just add self.color=Color.new(0,0,0,0) in Pokemon_Sprites below
def update
return if !@animBitmap
super
@animBitmap.update

It was Codeline 187 for me ;)


Greetings,
Nik
 
Last edited:
Hello. I found a bug with PP recovery object(s?) when used in battle (tried with Ether, wild Pokemon 1vs1, V18.1). The object is used, but opens the "errorlog" window. The round does not end after use.

Spoiler:
 
I can't open Pokemon when I replaced original pbs files by gen 7 pds files (in pokemon essentials 18.1)
Someone help me please :( I tried changing the script according to the internet instructions I found, but it didn't work.

[Pokémon Essentials version 18.1]

Exception: NoMethodError

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



Backtrace:

PScreen_PokedexMain:328:in `pbGetDexList'

PScreen_PokedexMain:325:in `each'

PScreen_PokedexMain:325:in `pbGetDexList'

PScreen_PokedexMain:345:in `pbRefreshDexList'

PScreen_PokedexMain:260:in `pbStartScene'

PScreen_PokedexMain:1186:in `pbStartScreen'

PScreen_PauseMenu:161:in `pbStartPokemonMenu'

PScreen_PauseMenu:158:in `pbFadeOutIn'

PScreen_PauseMenu:163:in `pbStartPokemonMenu'

PScreen_PauseMenu:144:in `loop'
 
I can't open Pokemon when I replaced original pbs files by gen 7 pds files (in pokemon essentials 18.1)
Someone help me please :( I tried changing the script according to the internet instructions I found, but it didn't work.

[Pokémon Essentials version 18.1]

Exception: NoMethodError

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



Backtrace:

PScreen_PokedexMain:328:in `pbGetDexList'

PScreen_PokedexMain:325:in `each'

PScreen_PokedexMain:325:in `pbGetDexList'

PScreen_PokedexMain:345:in `pbRefreshDexList'

PScreen_PokedexMain:260:in `pbStartScene'

PScreen_PokedexMain:1186:in `pbStartScreen'

PScreen_PauseMenu:161:in `pbStartPokemonMenu'

PScreen_PauseMenu:158:in `pbFadeOutIn'

PScreen_PauseMenu:163:in `pbStartPokemonMenu'

PScreen_PauseMenu:144:in `loop'

Start a new save
 
When I tried to enter the Battle Tower challenge, I get this error
Code:
[Mon Nov 30 23:08:21 Eastern Standard Time 2020]
[Pokémon Essentials version 18.1]
Exception: RuntimeError
Message: Script error within event 4 (coords 16,3), map 55 (Battle Tower):
Exception: NameError
Message: PBattle_OrgBattle:489:in `start'undefined local variable or method `t' for #<BattleChallenge:0xd6886d0>

***Full script:
pbBattleChallenge.start(0,7)


Backtrace:
Interpreter:197:in `pbExecuteScript'
(eval):1:in `pbExecuteScript'
Interpreter:1458:in `eval'
Interpreter:197:in `pbExecuteScript'
Interpreter:1458:in `command_355'
Interpreter:359:in `execute_command'
Interpreter:155:in `update'
Interpreter:102:in `loop'
Interpreter:158:in `update'
Scene_Map:162:in `update'


Backtrace:
Interpreter:246:in `pbExecuteScript'
Interpreter:1458:in `command_355'
Interpreter:359:in `execute_command'
Interpreter:155:in `update'
Interpreter:102:in `loop'
Interpreter:158:in `update'
Scene_Map:162:in `update'
Scene_Map:160:in `loop'
Scene_Map:169:in `update'
Scene_Map:229:in `main'
 
I have a problem when interacting with certains Pokémon in battle.
The problem arises during battles against specific Pokémon, them being either wild or belonging to any trainer.
When facing a Pokémon, specifically any Pokémon from generation VI to VIII (the game data of gen VI and VII were already in the PBS files, I manually added those of gen VIII), an error screen appears when the Pokémon is defeated.
It reads like this:
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 18.1]

Exception: TypeError

Message: nil can't be coerced into Fixnum



Backtrace:

Audio_Utilities:1167:in `*'

Audio_Utilities:1167:in `getPlayTime2'

Audio_Utilities:1111:in `open'

Audio_Utilities:1111:in `getPlayTime2'

Audio_Utilities:1090:in `getPlayTime'

PSystem_FileUtilities:445:in `pbCryFrameLength'

PokeBattle_SceneAnimations:674:in `createProcesses'

PokeBattle_Animation:9:in `initialize'

PokeBattle_SceneAnimations:652:in `initialize'

Scene_Animations:291:in `new'



This exception was logged in

C:\Users\USERNAME\Saved Games\Pokemon Essentials\errorlog.txt.

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


When it happens, the battle ends in case the Pokémon is a wild one. Experience points are not given and the game continues treating it as a win.
When the same thing happens during a trainer battle, then the active ally Pokémon is forced to repeat the same move it used to K.O. the enemy, but with no target whatsoever. The enemy, with 0 HP, does not leave the battlefield until the enemy trainer replaces it.
If it was the last Pokémon, then the battle ends and it is treated ad a win, the trainer appears and says their line, but the enemy Pokémon is still there.
Experience points are not given, either.

I didn't modify anything that should cause this. Am I doing something wrong or is there a problem in the script itself?
 
Back
Top