• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] Berry plant error, does anyone know how to fix it?

This happens every time I enter a map with berryes
---------------------------
Error
---------------------------
Script '[PField_BerryPlants]' line 146: NoMethodError occurred.

undefined method `length' for 949032393:Fixnum

from 'PField_BerryPlants' line 146 in `updatePlantDetails'
from 'PField_BerryPlants' line 117 in `initialize'
from 'PField_BerryPlants' line 38 in `new'
from 'PField_BerryPlants' line 38
from 'PField_BerryPlants' line 35 in `each'
from 'PField_BerryPlants' line 35
from 'PField_BerryPlants' line 31 in `call'
from 'Event_Handlers' line 51 in `trigger'
from 'Event_Handlers' line 46 in `each'
from 'Event_Handlers' line 46 in `trigger'
from 'PField_Field' line 172 in `pbOnSpritesetCreate'
from 'Spriteset_Map' line 67 in `_animationSprite_initialize'
---------------------------
OK
---------------------------
 
I need more details.
Is it a map with berry plants you made yourself?
Do you know at what stage of growth the berry plants should be? (fully grown, barely grown, just planted...?)
 
yes, I made the map myself. Fully grown berries. This happens on saves made on v17 and transferred. Since my game has a high range of players, I need them to be able to transfer their saves to my game with the essentials updated in v18.

Can you post a screenshot of your Berry event page?
 
I use the essentials pattern
~page 1 https://imgur.com/dNrVUEf
- page 2 https://imgur.com/XK6d75Z

I don't see the error here.

I need to check some things.
  • Go to the map called "Route 1". It's one of the base maps from Essentials. Do you have the error?
  • Can you send the map that shows the error?
    Go to the Data folder, find the file MapXXX where XXX is the ID of the map that generates this bug, and attach it to your next post. (Use the full editor)
 
Last edited:
Back
Top