• The Eevee Expo Game Jam #10 has concluded, congratulations to all participants! Now it's time for the judges to play through the games, and you can play along to vote who deserves the community choice spotlight.
    You can check out the submitted games here!
    Play through the games and provide some feedback to the devs while you're at it!
  • Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
ZUD Plugin [v20.1]

Resource ZUD Plugin [v20.1] v1.2.5

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
I put this in the moves pbs file:
#-------------------------------
[MAXSNOR]
Name = Max Snor
Type = SNORLAX
Catergory = Physical
Power = 1
Accuracy = 0
TotalPP = 1
Target = NearFoe
Flags = MaxMove, CannotMetronome
Description = A Snorlax-type attack Dynamax Pokémon use.
And have you tried removing this and testing if the error resolves when this move isn't present...?
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
216
I have done that now, and the error was fixed. The game now has an error from the move being missing though, so should I try to put it back in?
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
I have done that now, and the error was fixed. The game now has an error from the move being missing though, so should I try to put it back in?
I would start from square one. You have errors being triggered by other errors because the original concept itself is bugged. Whatever this "Snorlax type" is you have implemented is probably the root of what's causing this chain reaction of errors.

My guess is that you added this Snorlax Max Move to move.txt, and added the compatibility for this Max Move into power_moves.txt.
So now the power_moves.txt file is throwing an error because the Snorlax Max Move no longer exists in moves.txt. But it throws a separate error when you DO add the move to move.txt, because probably something with the "Snorlax type" itself is bugged or improperly implemented. So there isn't an issue with ZUD or your move, the issue is probably with the type itself.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
216
Is the fact that it is good against and immune to all types the problem? If not I could just change the type of the only Snorlax type move.

Edit: I actually just noticed I misspelled category with the move, so that could also be the problem
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
216
That seems to have been the problem so the error with the move is fixed and I can restart the game again.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
216
I get this error when interacting with certain raid dens, but the item and habitat are different because of the den:
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 7 (coords 18,15), map 297 (Dynamax Field)
Exception: SyntaxError
Message: (eval):3: syntax error, unexpected ']', expecting '}'
:SILKSCARF]}, {:gmaxfactor => true,
^
(eval):4: syntax error, unexpected ')', expecting end-of-input
...btaintext => "a Max Raid Den"})
... ^


***Full script:
pbMaxRaidDen([nil, :Grassland],
{:loot =>
:SILKSCARF]}, {:gmaxfactor => true,
:obtaintext => "a Max Raid Den"})

Here are the ones it happens with:
grasslands, silkscarf
mountain, softsand
roughterrain, blackbelt
forest, miracleseed
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
I get this error when interacting with certain raid dens, but the item and habitat are different because of the den:
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 7 (coords 18,15), map 297 (Dynamax Field)
Exception: SyntaxError
Message: (eval):3: syntax error, unexpected ']', expecting '}'
:SILKSCARF]}, {:gmaxfactor => true,
^
(eval):4: syntax error, unexpected ')', expecting end-of-input
...btaintext => "a Max Raid Den"})
... ^


***Full script:
pbMaxRaidDen([nil, :Grassland],
{:loot =>
:SILKSCARF]}, {:gmaxfactor => true,
:obtaintext => "a Max Raid Den"})

Here are the ones it happens with:
grasslands, silkscarf
mountain, softsand
roughterrain, blackbelt
forest, miracleseed
Has nothing to do with the item or anything. As the error states, it's simply a syntax error. Aka, you wrote something wrong. Specifically, you have an end bracket ] placed after :SILKSCARF that isn't closing anything. The error states this.

It would probably make it easier to catch these random syntax issues if you wrote out the script neater. You have the code on random lines for no reason, it makes it tough to read.
Code:
Expand Collapse Copy
pbMaxRaidDen([nil, :Grassland], {
  :loot => :SILKSCARF
},{
  :gmaxfactor => true,
  :obtaintext => "a Max Raid Den"
})
I'd probably set it up more like this.
 
Last edited:

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
216
Is it the same case for this? Also sorry for having to ask about every error I get, I just can almost never understand the error messages.
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 2 (coords 8,12), map 297 (Dynamax Field)
Exception: SyntaxError
Message: (eval):1: syntax error, unexpected '\n', expecting =>
...idDen([nil, :Mountain], {:loot
... ^
(eval):3: syntax error, unexpected '}', expecting end-of-input
[:SOFTSAND]}, {:gmaxfactor => true,
^


***Full script:
pbMaxRaidDen([nil, :Mountain], {:loot
=>
[:SOFTSAND]}, {:gmaxfactor => true,
:obtaintext => "a Max Raid Den"})
Edit: Why is it even talking about a \n? There is none.
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
Is it the same case for this? Also sorry for having to ask about every error I get, I just can almost never understand the error messages.
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Script error in event 2 (coords 8,12), map 297 (Dynamax Field)
Exception: SyntaxError
Message: (eval):1: syntax error, unexpected '\n', expecting =>
...idDen([nil, :Mountain], {:loot
... ^
(eval):3: syntax error, unexpected '}', expecting end-of-input
[:SOFTSAND]}, {:gmaxfactor => true,
^


***Full script:
pbMaxRaidDen([nil, :Mountain], {:loot
=>
[:SOFTSAND]}, {:gmaxfactor => true,
:obtaintext => "a Max Raid Den"})
Edit: Why is it even talking about a \n? There is none.
Structure your script the way I outlined in my last message and you won't get this problem. The error is occurring because the code is being jumbled up on different lines.
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
Would extendtext also work?
Possibly, but I would still get in the habit of structuring it how I've shown both here and in the many examples I showcase in the plugin tutorial. The raid script can get VERY long depending on how much you choose to customize it, and not even the extendtext would be able to contain it all on one line if youre making a ton of customizations. The script can be easily broken if you dont align the code correctly, as you have already demonstrated, so I would get in the habit of setting it up neatly even if you're not making many customizations.
 

Shadow56bomb

Cooltrainer
Member
Joined
Oct 15, 2022
Posts
216
When a Ditto used Transform on my Dynamax Snorlax it gave this error that didn't close the game, but is still an error:
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: ArgumentError
Message: wrong number of arguments (given 1, expected 0)

Backtrace:
[Essentials Deluxe] Battle_Misc.rb:102:in `display_base_moves'
[ZUD Mechanics] Battler_Overrides.rb:184:in `pbTransform'
178:MoveEffects_BattlerOther:1366:in `pbEffectAgainstTarget'
166:Battler_UseMove:704:in `block in pbProcessMoveHit'
166:Battler_UseMove:702:in `each'
166:Battler_UseMove:702:in `pbProcessMoveHit'
166:Battler_UseMove:407:in `block in pbUseMove'
166:Battler_UseMove:405:in `times'
166:Battler_UseMove:405:in `pbUseMove'
[ZUD Mechanics] Battler_Overrides.rb:102:in `pbUseMove'
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
When a Ditto used Transform on my Dynamax Snorlax it gave this error that didn't close the game, but is still an error:
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]

Exception: ArgumentError
Message: wrong number of arguments (given 1, expected 0)

Backtrace:
[Essentials Deluxe] Battle_Misc.rb:102:in `display_base_moves'
[ZUD Mechanics] Battler_Overrides.rb:184:in `pbTransform'
178:MoveEffects_BattlerOther:1366:in `pbEffectAgainstTarget'
166:Battler_UseMove:704:in `block in pbProcessMoveHit'
166:Battler_UseMove:702:in `each'
166:Battler_UseMove:702:in `pbProcessMoveHit'
166:Battler_UseMove:407:in `block in pbUseMove'
166:Battler_UseMove:405:in `times'
166:Battler_UseMove:405:in `pbUseMove'
[ZUD Mechanics] Battler_Overrides.rb:102:in `pbUseMove'
Ah, ok, now that is an actual bug.
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
Lucidious89 updated ZUD Plugin [v20.1] with a new update entry:

v1.1.3 Update

  • Fixed an error that would occur when a Dynamaxed Pokemon used the move Transform.
  • Fixed an error that would occur when using the Cheer command during Raid Battles in very specific situations.
  • Fixed an issue with Raid Den events that could cause large lag spikes when the game attempts to reset them.
  • Updated the AI so that it will no longer trigger ZUD mechanics on its own if it has been flagged to only use them as part of a scripted battle event using Essentials Deluxe...

Read the rest of this update entry...
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
Lucidious89 updated ZUD Plugin [v20.1] with a new update entry:

v1.1.4 Update

  • Moved all new Message Types added by this plugin to the Essentials Deluxe plugin, for tidiness.
  • Refactored all of the code related to displaying ZUD buttons while in the Fight Menu, and moved it into this plugin instead of keeping it in Essentials Deluxe.
  • Spruced up some of the text displays in the prize selection screen shown at the end of a Dynamax Adventure.
  • Added more item variety to the Backpacker's selection in Dynamax Adventures. The item pool will now also be more...

Read the rest of this update entry...
 

Lucidious89

Champion
Member
Joined
Nov 12, 2020
Posts
1,185
Hello! I recently linked all Z-Moves to one item and was wondering how I could remove the 9th bag slot? Since I don't really need it anymore.
Just remove the code that adds it in [001] Data/Data_Item. It's pretty clearly labeled. Also, you should probably delete the graphics for bag slot 9 in the Icons and Pictures/Bag folders.
 

RegalSword

Pokemon Itinerant Developer
Member
Joined
Feb 13, 2021
Posts
521
Just remove the code that adds it in [001] Data/Data_Item. It's pretty clearly labeled. Also, you should probably delete the graphics for bag slot 9 in the Icons and Pictures/Bag folders.
Got it. Thanks!
 
Back
Top