• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • 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 Indigo Disk contents)

Resource Generation 9 Resource Pack [v21.1] (Updated with Indigo Disk contents) 3.3.2

#===============================================================================
# For 5 rounds, lowers power of physical attacks against the user's side.
# (Reflect)
#===============================================================================
class Battle::Move::StartWeakenPhysicalDamageAgainstUserSide < Battle::Move
def canSnatch?; return true; end

def pbMoveFailed?(user, targets)
if user.pbOwnSide.effects[PBEffects::Reflect] > 0
@battle.pbDisplay(_INTL("But it failed!"))
return true
end
return false
end

def pbEffectGeneral(user)
user..effects[PBEffects::Reflect] = 3
user.pbOwnSide.effects[PBEffects::Reflect] = 8 if user.hasActiveItem?(:LIGHTCLAY)
@battle.pbDisplay(_INTL("{1} raised {2}'s Defense!", @Name, user.pbTeam(true)))
end
end

#===============================================================================
# For 5 rounds, lowers power of physical attacks against the user's side.
# (Reflect)
#===============================================================================
class Battle::Move::StartWeakenPhysicalDamageAgainstUserSide < Battle::Move
def canSnatch?; return true; end

def pbMoveFailed?(user, targets)
if user.pbOwnSide.effects[PBEffects::Reflect] > 0
@battle.pbDisplay(_INTL("But it failed!"))
return true
end
return false
end

def pbEffectGeneral(user)
user..effects[PBEffects::Reflect] = 3
user.pbOwnSide.effects[PBEffects::Reflect] = 8 if user.hasActiveItem?(:LIGHTCLAY)
@battle.pbDisplay(_INTL("{1} raised {2}'s Defense!", @Name, user.pbTeam(true)))
end
end
yep, it looks like you've deleted/changed some things here. This is how it's supposed to look.
Ruby:
Expand Collapse Copy
#===============================================================================
# For 5 rounds, lowers power of physical attacks against the user's side.
# (Reflect)
#===============================================================================
class Battle::Move::StartWeakenPhysicalDamageAgainstUserSide < Battle::Move
  def canSnatch?; return true; end

  def pbMoveFailed?(user, targets)
    if user.pbOwnSide.effects[PBEffects::Reflect] > 0
      @battle.pbDisplay(_INTL("But it failed!"))
      return true
    end
    return false
  end

  def pbEffectGeneral(user)
    user.pbOwnSide.effects[PBEffects::Reflect] = 5 # This like is broken in your version
    user.pbOwnSide.effects[PBEffects::Reflect] = 8 if user.hasActiveItem?(:LIGHTCLAY)
    @battle.pbDisplay(_INTL("{1} raised {2}'s Defense!", @name, user.pbTeam(true)))
  end
end

user..effects[PBEffects::Reflect] = 3 is the broken line in your version. user.pbOwnSide.effects[PBEffects::Reflect] = 5 is what it should be
 
yep, it looks like you've deleted/changed some things here. This is how it's supposed to look.
Ruby:
Expand Collapse Copy
#===============================================================================
# For 5 rounds, lowers power of physical attacks against the user's side.
# (Reflect)
#===============================================================================
class Battle::Move::StartWeakenPhysicalDamageAgainstUserSide < Battle::Move
  def canSnatch?; return true; end

  def pbMoveFailed?(user, targets)
    if user.pbOwnSide.effects[PBEffects::Reflect] > 0
      @battle.pbDisplay(_INTL("But it failed!"))
      return true
    end
    return false
  end

  def pbEffectGeneral(user)
    user.pbOwnSide.effects[PBEffects::Reflect] = 5 # This like is broken in your version
    user.pbOwnSide.effects[PBEffects::Reflect] = 8 if user.hasActiveItem?(:LIGHTCLAY)
    @battle.pbDisplay(_INTL("{1} raised {2}'s Defense!", @name, user.pbTeam(true)))
  end
end

user..effects[PBEffects::Reflect] = 3 is the broken line in your version. user.pbOwnSide.effects[PBEffects::Reflect] = 5 is what it should be
still getting it
 
.... can you show what you put? Just saying "still getting it" doesn't really help anyone.
class Battle::Move::StartWeakenPhysicalDamageAgainstUserSide < Battle::Move
def canSnatch?; return true; end

def pbMoveFailed?(user, targets)
if user.pbOwnSide.effects[PBEffects::Reflect] > 0
@battle.pbDisplay(_INTL("But it failed!"))
return true
end
return false
end

def pbEffectGeneral(user)
user..effects[PBEffects::Reflect] = 5
user.pbOwnSide.effects[PBEffects::Reflect] = 8 if user.hasActiveItem?(:LIGHTCLAY)
@battle.pbDisplay(_INTL("{1} raised {2}'s Defense!", @Name, user.pbTeam(true)))
end
end

with the change added and it is still comming up with the previous aformentioned msg
 
class Battle::Move::StartWeakenPhysicalDamageAgainstUserSide < Battle::Move
def canSnatch?; return true; end

def pbMoveFailed?(user, targets)
if user.pbOwnSide.effects[PBEffects::Reflect] > 0
@battle.pbDisplay(_INTL("But it failed!"))
return true
end
return false
end

def pbEffectGeneral(user)
user..effects[PBEffects::Reflect] = 5
user.pbOwnSide.effects[PBEffects::Reflect] = 8 if user.hasActiveItem?(:LIGHTCLAY)
@battle.pbDisplay(_INTL("{1} raised {2}'s Defense!", @Name, user.pbTeam(true)))
end
end

with the change added and it is still comming up with the previous aformentioned msg
Look again. You didn't change the line correctly.

Also, if you're continuing to have issues, can you move this to a help post in the discord if you're on that, or a new post in Dev Discussion? Since this has nothing to do with Gen 9 pack.
 
I don't think supreme overlord is working for me, it's supposed to announce it upon switch in right? Some other gen 9 abilities seem to be working fine
 
I don't think supreme overlord is working for me, it's supposed to announce it upon switch in right? Some other gen 9 abilities seem to be working fine
Supreme Overlord doesnt start announcing itself until at least one of your Pokemon have been KO'd during the battle.
 
Alright, I wanted to post this small guide on getting the plugin to work just because I had trouble getting it to compile correctly and reading through the thread wasn't giving me the answer that I needed. So here's (hopefully) a more comprehensive guide that can help out! And to be clear, this is for the plugin part of the process, not the PBS or other things!

So, some of you may be getting this error:
Exception: RuntimeError
Message: Field '-1' is not a positive integer or 0.
This is because the plugins are working. Why? Well, first, make sure that it looks like the following.
af7344b386e3f448663e8de380b79c0d47d1dc8e.pnj

When doing this, make sure it's [GAME] > Plugins > Generation 9 Pack Scripts. Do not make the same mistake I did and just pull everything from the scripts and dump it into the Plugins folder.

Once that's done, the next thing to do is to make sure your project is open. Once done, go to your project folders and find PluginScripts.rxdata in the Data folder.
e80ac75d52f846fee255c04140e7e9ebd1bb9575.pnj


Delete PluginScripts. It will come back later.

Now, when going into your project, hold down the Control button and press the Playtest button.
c814a619f20613e6c4c8187f68341e2805287eaf.pnj


The plugin will now compile properly, and the PluginScripts will be back and functional!

This guide may just be a guide for any new plugin implemented, but it's one I still wanted to make for this thread just in case anyone is confused! Also, any could link to this guide if any future users have trouble with the plugin process. Furthermore, shoutout to Lucidious89 for answering so many people who had problems installing this pack! Saw you all over this thread when trying to figure out what was going on, so I thought I'd at least end this guide to the one who was answering so many questions. Appreciate ya, Ludicrious! And thanks again to Caruban for making this pack!
 
Hi im getting an error everytime i try to compile/load the game:
[Pokémon Essentials version 21.1]
[v21 Hotfixes 1.0.1]
[v21.1 Hotfixes 1.0.9]

[Pokémon Essentials version 21.1]
[v21 Hotfixes 1.0.1]
[v21.1 Hotfixes 1.0.9]

Exception: RuntimeError
Message: Undefined value LevelWithPartner in GameData::Evolution
File PBS/pokemon.txt, section FINIZEN, key Evolutions
PALAFIN,LevelWithPartner,38



Backtrace:
Compiler:454:in `checkEnumField'
[v21.1 Hotfixes] Compiler bug fixes.rb:53: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'









what am i doing wrong? I installed everything under plug ins the only other plugin im using is the unofficial ebs DX
 
Last edited:
Hi im getting an error everytime i try to compile/load the game:
[Pokémon Essentials version 21.1]
[v21 Hotfixes 1.0.1]
[v21.1 Hotfixes 1.0.9]

[Pokémon Essentials version 21.1]
[v21 Hotfixes 1.0.1]
[v21.1 Hotfixes 1.0.9]

Exception: RuntimeError
Message: Undefined value LevelWithPartner in GameData::Evolution
File PBS/pokemon.txt, section FINIZEN, key Evolutions
PALAFIN,LevelWithPartner,38



Backtrace:
Compiler:454:in `checkEnumField'
[v21.1 Hotfixes] Compiler bug fixes.rb:53: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'









what am i doing wrong? I installed everything under plug ins the only other plugin im using is the unofficial ebs DX
first, you don't need two hotfixes, delete the v1.0.1 one, delete the PluginScripts on Data folder, recompile and start a new save, see if it fixes the error
 
still get the same error
My second guess is that you didn't install it correctly since the Plugin doesn't appear in the error screenshot, it recognized the species but not the evolution methods. Is the Gen 9 folder called "Gen 9 Scripts" by any chance? Maybe you put the pack folder inside the plugins folder with other folders inside It, instead of the folder responsible for the Scripts
 
Alright, I wanted to post this small guide on getting the plugin to work just because I had trouble getting it to compile correctly and reading through the thread wasn't giving me the answer that I needed. So here's (hopefully) a more comprehensive guide that can help out! And to be clear, this is for the plugin part of the process, not the PBS or other things!

So, some of you may be getting this error:
Exception: RuntimeError
Message: Field '-1' is not a positive integer or 0.
This is because the plugins are working. Why? Well, first, make sure that it looks like the following.
af7344b386e3f448663e8de380b79c0d47d1dc8e.pnj

When doing this, make sure it's [GAME] > Plugins > Generation 9 Pack Scripts. Do not make the same mistake I did and just pull everything from the scripts and dump it into the Plugins folder.

Once that's done, the next thing to do is to make sure your project is open. Once done, go to your project folders and find PluginScripts.rxdata in the Data folder.
e80ac75d52f846fee255c04140e7e9ebd1bb9575.pnj


Delete PluginScripts. It will come back later.

Now, when going into your project, hold down the Control button and press the Playtest button.
c814a619f20613e6c4c8187f68341e2805287eaf.pnj


The plugin will now compile properly, and the PluginScripts will be back and functional!

This guide may just be a guide for any new plugin implemented, but it's one I still wanted to make for this thread just in case anyone is confused! Also, any could link to this guide if any future users have trouble with the plugin process. Furthermore, shoutout to Lucidious89 for answering so many people who had problems installing this pack! Saw you all over this thread when trying to figure out what was going on, so I thought I'd at least end this guide to the one who was answering so many questions. Appreciate ya, Ludicrious! And thanks again to Caruban for making this pack!
Thank. You. So. Much.
 
In class Battle::Move::HitTwoToFiveTimes < Battle::Move is using rand() instead of @battle.pbRandom , the same happens in class Battle::Move::HitTenTimes .
It's important to fix this so that battle synchronization works properly, especially when using the Cable Club Plugin. Thanks!
 
I just installed the plugin and I am getting a plugin error that says it is showing up as version 3.2.9 instead of 3.3.1. I know I installed the latest version, how do I get it to recognize the proper files?
 
I just installed the plugin and I am getting a plugin error that says it is showing up as version 3.2.9 instead of 3.3.1. I know I installed the latest version, how do I get it to recognize the proper files?
Check the meta.txt inside the plugin folder then recompile the game.
 
Caruban updated Generation 9 Resource Pack [v21.1] (Updated with Indigo Disk contents) with a new update entry:

Update v3.3.2

Change logs:
  • Added function to restore party's original held items after battle similar to SV
  • Added function to send player's stolen similar to SV
  • Edited Egg generator and form inharitance from getFormOnEggCreation handler
  • Edited HitTwoToFiveTimes and HitTenTimes move handlers to change rand() into @battle.pbRandom()
  • Fixed Commander Ability to hide tatsugiri's shadow while actived
  • Removed double space from Ability Shield's description text
  • Fixed several Pokémon...

Read the rest of this update entry...
 
Back
Top