• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Generation 9 Resource Pack [v21.1] (Updated with Mega Dimension contents)

Resource Generation 9 Resource Pack [v21.1] (Updated with Mega Dimension contents) 3.3.3

Hey, I noticed Mega Metagross's stats in the PBS are incorrect, they're Mega Salamence's instead
Same, I manually fixed mine.
 
Just a heads up, a lot of the BST of new megas are completely wrong - the Speed was not put before the SpAtk and SpDef. So far, aside from Mega Salemence's stats being used for Mega Metagross, there's also wrong stats for: Mega Metagross, Clefable, Raichu Y, Starmie, Dragonite, Meganium, Feraligatr, Skarmory, Froslass, Emboar, Excadrill, Scolipede, Scrafty, Eelektross, Chandelure, Chesnaught, Delphox, Greninja, Pyroar, Floette, Barbaracle, Dragalge, Hawlucha, Zygarde, Drampa, and Falinks. Manually fixed them myself for my own game already. To fix them yourselves, just move the last stat to after the first three and it's all set, aside from swapping Metagross's stats for the proper one.
 
in [000] Pokemon.rb, Zygarde's MultipleForms entry is a bit incorrect, which causes it to behave weirdly when resetting itself after battle.

this edit was my attempt at correcting it still having Nihil Light if fainted while mega evolved, and not calculating which form to reset to after battle/fainting correctly. (permanent complete forme)


Ruby:
Expand Collapse Copy
# Zygarde - Mega Zygarde form.
#-------------------------------------------------------------------------------
MultipleForms.register(:ZYGARDE, {
  "changePokemonOnMegaEvolve" => proc { |battler, battle|
    if GameData::Move.exists?(:NIHILLIGHT)
      if [4, 5].include?(battler.form)
        battler.eachMoveWithIndex do |m, i|
          next if m.id != :COREENFORCER
          pokemon_move = battler.pokemon.moves[i]
          pokemon_move.id = :NIHILLIGHT
          battler_move = Battle::Move.from_pokemon_move(battle, pokemon_move)
          battler.moves[i] = battler_move
          if battle.choices[battler.index][1] == i
            battle.choices[battler.index][2] = battler_move
            battle.pbDisplay(_INTL("{1}'s {2} transformed into {3}!", battler.pbThis,
                              GameData::Move.get(:COREENFORCER).name,
                              GameData::Move.get(:NIHILLIGHT).name
                            ))
            break
          end
        end
      end
    end
  },
  "getMegaMoves" => proc { |pkmn|
    next { :COREENFORCER => :NIHILLIGHT }
  },
  "changePokemonOnLeavingBattle" => proc { |pkmn, battle, usedInBattle, endBattle|
    if GameData::Move.exists?(:COREENFORCER) && (pkmn.fainted? || endBattle)
      pkmn.moves.each { |move| move.id = :COREENFORCER if move.id == :NIHILLIGHT }
    end
  },
  "getFormOnLeavingBattle" => proc { |pkmn, battle, usedInBattle, endBattle|
    if pkmn.form >= 4 && (pkmn.fainted? || endBattle)
      pkmn.form = pkmn.form - 4
    elsif pkmn.form >= 2 && (pkmn.fainted? || endBattle)
      pkmn.form = pkmn.form - 2
    end
    next pkmn.form
  }
})


Additionally, if you have Deluxe Battle Kit installed, it's pbMegaEvolve method (in [005] Mega Evolution.rb) seems to conflict with the one here.

For my own sanity, I just added this line to DBK's pbMegaEvolve method since it seems that's all this pack adds to the method, but a more proper guardrail for this should most def be implemented. This is just a bit of a band-aid fix I did for testing so it would work at all


Ruby:
Expand Collapse Copy
    if !defined?(battler.display_mega_moves)
      MultipleForms.call("changePokemonOnMegaEvolve", battler, self)
    end
 
Also noticed Canari Gold Plush effect is leading to the money value becoming a float during calc, it must be .floor or validated as an Int or it crashes the game post-trainer battle.
 
I do realize that this is still incomplete but I have noticed that the following megas don't have their sprites yet. Any idea on when they might be implemented?

Golurk, Eelektross, Garchomp Z, Golisopod, Dragalge, Raichu X & Y, Lucario Z, Barbarcle, Darkrai, Drampa, Baxcaliber, Meowstic, Chandelure, Heatran, Scolipede, Pyroar, Scovillain, Tatsugiri
 
I do realize that this is still incomplete but I have noticed that the following megas don't have their sprites yet. Any idea on when they might be implemented?

Golurk, Eelektross, Garchomp Z, Golisopod, Dragalge, Raichu X & Y, Lucario Z, Barbarcle, Darkrai, Drampa, Baxcaliber, Meowstic, Chandelure, Heatran, Scolipede, Pyroar, Scovillain, Tatsugiri
If you find the Open Source EBDX Renovation Project, they have animated sprites for all of those. You can just implement the sprites and ignore the rest if you want.
 
Just got an error code for this after installing the latest versions of the DBK Kit 1.3 and associated plugins. Indicates something with the gen 9 pack but not sure, trying to diagnose this but drawing blanks so I'm posting here and on DBKs page if anyone can help.


[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]Script error in event 12 (coords 9,4), map 79 (Lila City Gym)
Exception: ArgumentErrorMessage: Invalid argument passed to method.
Expected 11640.0 to be a Integer, but got Float.***

Full script:TrainerBattle.start(:LEADER_Dominic, "Dominic")
Backtrace:Validation:29:in validate'
Player:79:in money='
[Generation 9 Pack] [006] Z-A Battle Function.rb:204:in pbGainMoney'
Battle_StartAndEnd:435:in pbEndOfBattle'Battle_StartAndEnd:346:in pbBattleLoop'
[Generation 9 Pack] [003] Weather and Status.rb:98:in pbStartBattleCore'
Battle_StartAndEnd:271:in pbStartBattle'
Overworld_BattleStarting:521:in block (2 levels) in start_core'Overworld_BattleIntroAnim:55:in pbSceneStandby'Overworld_BattleStarting:521:in block in start_core'
 
Just got an error code for this after installing the latest versions of the DBK Kit 1.3 and associated plugins. Indicates something with the gen 9 pack but not sure, trying to diagnose this but drawing blanks so I'm posting here and on DBKs page if anyone can help.


[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]Script error in event 12 (coords 9,4), map 79 (Lila City Gym)
Exception: ArgumentErrorMessage: Invalid argument passed to method.
Expected 11640.0 to be a Integer, but got Float.***

Full script:TrainerBattle.start(:LEADER_Dominic, "Dominic")
Backtrace:Validation:29:in validate'
Player:79:in money='
[Generation 9 Pack] [006] Z-A Battle Function.rb:204:in pbGainMoney'
Battle_StartAndEnd:435:in pbEndOfBattle'Battle_StartAndEnd:346:in pbBattleLoop'
[Generation 9 Pack] [003] Weather and Status.rb:98:in pbStartBattleCore'
Battle_StartAndEnd:271:in pbStartBattle'
Overworld_BattleStarting:521:in block (2 levels) in start_core'Overworld_BattleIntroAnim:55:in pbSceneStandby'Overworld_BattleStarting:521:in block in start_core'
this is the Canari Gold plushes calc issue I posted above. You can either fix it's code there if you're savvy or remove the gold plushes from inv while waiting for a patch from the author :D
 
Thank you for the pack and I felt something was missing from this and it's the cries of the ZA Megas.


Here ya go.
 
I Keep Getting These Error:

[Pokemon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: RuntimeError
Message: Field '-1' is not a positive integer or 0.
File PBS/pokemon_base_Gen_9_Pack.txt, section MEOWSCARADA, key Moves
-1,DOUBLETEAM,-1,TRICK,0,FLOWERTRICK,1,LEAFAGE,1,TAILWHIP,1,SCRATCH,7,BITE,10,HONECLAWS,13,MAGICALLEAF,15,QUICKATTACK,20,SEEDBOMB,24,UTURN,29,WORRYSEED,33,SLASH,38,NIGHTSLASH,42,ENERGYBALL,47,PLAYROUG ...

Backtrace:
[v21.1 Hotfixes] Compiler bug fixes.rb:16:in `cast_csv_value'
Compiler:724:in 'block (2 levels) in get_csv_record'
Compiler:710:in 'each'
Compiler:710:in 'block in get_csv_record'
Compiler:708:in 'loop'
Compiler:708:in `get_csv_record'
Compiler_CompilePBS:49:in `block (4 levels) in compile_PBS_file_generic'
Compiler_CompilePBS:31:in `each_key
Compiler_CompilePBS:31:in 'block (3 levels) in compile_PBS_file_generic'
Compiler:143:in 'block in pbEachFileSection'
This exception was logged in
C:\Users\USERNAME\AppData\Roaming\Pokemon Essentials v21.1\errorlog.txt.
Hold Ctrl when closing this message to copy it to the clipboard.

And

Backtrace:
Compiler:1104:in `rescue in main'
Compiler:1031:in `main'
Main:29:in `mainFunctionDebug'
Main:18:in `block in mainFunction'
Errors:80:in `pbCriticalCode'
Main:18:in `mainFunction'
Main:45:in `block in <main>'
Main:44:in `loop'
Main:44:in`<main>'
-e:in `eval'

Pokemon Essentials v21.1

[Pokemon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: RuntimeError
Message: Unknown exception when compiling.

This exception was logged in
C:\Users\USERNAME\AppData\Roaming\Pokemon Essentials v21.1\errorlog.txt.
Hold Ctrl when closing this message to copy it to the clipboard.


is there Anyway to Fix This...?
 
I Keep Getting These Error:

[Pokemon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Exception: RuntimeError
Message: Field '-1' is not a positive integer or 0.
File PBS/pokemon_base_Gen_9_Pack.txt, section MEOWSCARADA, key Moves
-1,DOUBLETEAM,-1,TRICK,0,FLOWERTRICK,1,LEAFAGE,1,TAILWHIP,1,SCRATCH,7,BITE,10,HONECLAWS,13,MAGICALLEAF,15,QUICKATTACK,20,SEEDBOMB,24,UTURN,29,WORRYSEED,33,SLASH,38,NIGHTSLASH,42,ENERGYBALL,47,PLAYROUG ...

Backtrace:
[v21.1 Hotfixes] Compiler bug fixes.rb:16:in `cast_csv_value'
Compiler:724:in 'block (2 levels) in get_csv_record'
Compiler:710:in 'each'
Compiler:710:in 'block in get_csv_record'
Compiler:708:in 'loop'
Compiler:708:in `get_csv_record'
Compiler_CompilePBS:49:in `block (4 levels) in compile_PBS_file_generic'
Compiler_CompilePBS:31:in `each_key
Compiler_CompilePBS:31:in 'block (3 levels) in compile_PBS_file_generic'
Compiler:143:in 'block in pbEachFileSection'
This exception was logged in
C:\Users\USERNAME\AppData\Roaming\Pokemon Essentials v21.1\errorlog.txt.
Hold Ctrl when closing this message to copy it to the clipboard.

And

Backtrace:
Compiler:1104:in `rescue in main'
Compiler:1031:in `main'
Main:29:in `mainFunctionDebug'
Main:18:in `block in mainFunction'
Errors:80:in `pbCriticalCode'
Main:18:in `mainFunction'
Main:45:in `block in <main>'
Main:44:in `loop'
Main:44:in`<main>'
-e:in `eval'

Pokemon Essentials v21.1

[Pokemon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]

Exception: RuntimeError
Message: Unknown exception when compiling.

This exception was logged in
C:\Users\USERNAME\AppData\Roaming\Pokemon Essentials v21.1\errorlog.txt.
Hold Ctrl when closing this message to copy it to the clipboard.


is there Anyway to Fix This...?
https://eeveeexpo.com/threads/5817/post-84361
 
Hey so your code for Greninja's Water Shuriken also is broken, giving an error in the console of:
Exception `NameError' at [Generation 9 Pack] [003] Z-A Moves.rb:25 - undefined local variable or method `user' for #<Battle::Move::HitTwoToFiveTimesOrThreeForAshGreninja>


Just thought you should be aware.

Edit: Deleting the section below seems to make the game function perfectly fine.

def multiHitMove?
return false if user && user.isSpecies?(:GRENINJA) && user.form == 3 # Mega Greninja
return super
end
 
Last edited:
Back
Top