new version was very buggy so i removed the new functions until its all working clean
Plugin Rollback to avoid the switch in error
Look for the lineHello, im getting an error message after deafeating a pokemon right when i should get exp.
lvl cap is set to 15 and works with exp candies.
the error says :
Exception: NameError
Message: undefined local variable or method `prefix' for #<Battle>
Backtrace:
[Level Caps EX] 001_Main.rb:126:in `pbGainExpOne'
Battle_ExpAndMoveLearning:39:in `block (2 levels) in pbGainExp'
Battle:411:in `block in eachInTeam'
Battle:411:in `each'
Battle:411:in `each_with_index'
Battle:411:in `eachInTeam'
Battle_ExpAndMoveLearning:35:in `block in pbGainExp'
Battle_ExpAndMoveLearning:13:in `each'
Battle_ExpAndMoveLearning:13:in `pbGainExp'
Battler_UseMove:514:in `pbUseMove'
any idea why this happen? Also the game doestn crash after that, i just dont get any exp.
if over_level_cap
in 001_Main.rbpbMessage
call. Just remove the prefix argument from therepbDisplayPaused(_INTL(message, pkmn.name, expGained))
. That was an error on my end.Worked like a charm :D Thank you very much!Look for the lineif over_level_cap
in 001_Main.rb
And below that there should be apbMessage
call. Just remove the prefix argument from there
Actually, change it topbDisplayPaused(_INTL(message, pkmn.name, expGained))
. That was an error on my end.
Forgot to remove it![]()
removed the lost prefix argument
This is still an issue btw with the latest version. Would be helpful if there is a fix for this and not just ignored.Hello! Your plugin seemed to work perfectly at the beginning, but after a while it started changing levels of the Pokémon in the "encounters" file in the PBS folder, and it shows me this error while compiling. Changing the levels manually solves the problem, but only for a moment, as it changes again.
![]()
You can catch more flies with honey than with vinegar. As a plugin maker myself, I wouldn't respond nicely to the negative tone your two replies had. Maybe it wasn't your intention, but just providing some feedback anyway.Had to remove this plugin, due to it messing with levels on wild encounters and trainer levels somehow. Game won't launch without an error unless the levels in the PBS somehow are below the level cap. Thats not workable. Hopefully you take the time to look into this.
Read the update history, i tried already to fix it but the plugin had more bugs after that patch so i did a rollback, i ignore nothing, i just patch bugs if im currently able to, i uploaded the plugin in the beginning with 0 coding experience (i bought it from Goli) from time to time i realized i need to learn ruby to provide updates.This is still an issue btw with the latest version. Would be helpful if there is a fix for this and not just ignored.
Just do the same with a higher number and put it in the gym leader scriptHey there, I apologize if this is a dumb question, I am very new to Essentials and scripting in general. How do I make it so the level cap increases after a gym leader defeat? I'm just a bit confused on how to adjust variables in general. I'm guessing I just have to put a line to change the variable in the gym leader event or something?
Any help would be appreciated, and again I apologize for how new I am.
Thy for the feedback, i did a big plugin rollback so i need to fix old upcoming bugsHi NoNoNever, thanks for the Plugin. It is something I was waiting for someone to create. :)
While installing and getting it to work, there are a few things I noticed. I thought they might be of interesst to you:
1. There are some comments in "level_caps_ex_compatibility.rb" that are in german. Eigentlich kein Problem, aber für die internationalen Nutzer ist Englisch bestimmt angenehmer. : D
2. I did not get the LevelCaps to work or the Debug-Messages about the Cap-changes to show up in the console, until I also changed "LEVEL_CAP_VARIABLE" in "level_caps_ex_compatibility.rb" to 51 (my Variable of choice for the Level-Cap). Would be nice, if you added the info to adjust this value here as well in the setup-guide.
3. After defeating a Pokémon, my team seems to get the correct amount of EXP, but it is always displayed that they got "{2}" Exp. Points. - Most likely some minor-error in the line 122-126 of "001_Main.rb"
Thanks again for your wokr and I am looking forward to using this Plugin. :)
[CAPCANDY]
Name = Cap Candy
NamePlural = Cap Candies
Pocket = 8
Price = 100000
BPPrice = 200
FieldUse = OnPokemon
Flags = KeyItem
Description = A special candy. It raises the level of a single Pokémon to the level cap.
#-------------------------------
# Cap-Candy-Effect
ItemHandlers::UseOnPokemonMaximum.add(:CAPCANDY, proc { |item, pkmn|
next $game_variables[51] - pkmn.level
})
ItemHandlers::UseOnPokemon.add(:CAPCANDY, proc { |item, qty, pkmn, scene|
if pkmn.shadowPokemon?
scene.pbDisplay(_INTL("It won't have any effect."))
next false
end
if pkmn.level >= GameData::GrowthRate.max_level
new_species = pkmn.check_evolution_on_level_up
if !Settings::RARE_CANDY_USABLE_AT_MAX_LEVEL || !new_species
scene.pbDisplay(_INTL("It won't have any effect."))
next false
end
# Check for evolution
pbFadeOutInWithMusic do
evo = PokemonEvolutionScene.new
evo.pbStartScreen(pkmn, new_species)
evo.pbEvolution
evo.pbEndScreen
scene.pbRefresh if scene.is_a?(PokemonPartyScreen)
end
next true
end
# Level up
pbSEPlay("Pkmn level up")
pbChangeLevel(pkmn, $game_variables[51], scene)
scene.pbHardRefresh
next true
})
if showMessages
message = _INTL("{1} got {2} Exp. Points!")
message = _INTL("{1} got a boosted {2} Exp. Points!") if isOutsider
message = _INTL("{1} got a reduced {2} Exp. Points!") if over_level_cap
pbDisplayPaused(_INTL(message, pkmn.name, expGained))