• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Safari Zone + Bug Contest aren't working

4
Posts
9
Years
    • Seen Nov 6, 2015
    Hey there everyone, I'm Kabuki. Nice to meet you.

    I've been having some issues putting the Safari Zone and Bug Contest into my project. I copied the events over from the starter kit as I knew those worked, and I haven't changed the scripts (my game was using a really outdated Essentials so I updated it following the guide) so I'm just a bit confused as to why this isn't working. When testing these out in my game:

    - Non-contestant Pokemon aren't held
    - Entering the judging/entrance buildings seems to automatically end the contest, rather than the NPCs asking if you want to end it early and taking you to the judging area
    - Leaving the safari doesn't trigger the "are you sure you want to leave" text/second event page and the NPC just asks if you want to pay and enter
    - Timer/step and ball count don't appear when paused and I'm sure the timer doesn't start either
    - Safari balls aren't given to the player (I just noticed my items.txt doesn't have a park ball item so that explains that, but as the scripts are so similar I don't think the game would give you park balls either)
    - Start menu and battle menu don't change for both the safari and contest
    - The Pokemon in the contest encounters list don't appear, just the normal encounters

    Probably missed a few things but basically nothing about these two work, except the player's money gets deducted when paying for the safari. I'm sure I just missed something really small in the scripts which would fix all of this but after looking through them a couple of times I just can't find anything. What should I try out to fix this?

    Thank you.
     
    Last edited:

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    Have you tried looking at the examples of these things that come with Essentials? Last I checked, they worked.

    Remember that you need to define certain maps as being in these game areas. For Safari Maps they're set as such in the metadata, while Bug Catching Contest maps (and the gatehouse maps and other things) are set in the event that starts the contest.

    The ball used for Bug Catching Contests is the Sport Ball. The ball for Safari games is the Safari Ball
     
    4
    Posts
    9
    Years
    • Seen Nov 6, 2015
    Oh man, I knew the fix would be something really simple like that. The safari zone's working perfectly now. Thanks!

    I added the Sport Ball and edited the Contest events, but right after the NPC stops talking (before moving) it gives me this error:

    Exception: RuntimeError
    Message: Script error within event 1, map 97 (Garden Entrance):
    Exception: ArgumentError
    Message: (eval):5:in `pbSetContestMap'wrong number of arguments(0 for 1)

    ***Full script:
    pbBugContestState.pbSetJudgingPoint(
    138,10,10)
    pbBugContestState.pbSetReception(
    97)
    pbBugContestState.pbSetContestMap
    (137)
    pbBugContestState.pbSetPokemon(
    pbGet(1))
    pbBugContestState.pbStart(20)


    Interpreter:243:in `pbExecuteScript'
    (eval):5:in `pbExecuteScript'
    Interpreter:1592:in `eval'
    Interpreter:243:in `pbExecuteScript'
    Interpreter:1592:in `command_355'
    Interpreter:493:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'


    Interpreter:275:in `pbExecuteScript'
    Interpreter:1592:in `command_355'
    Interpreter:493:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'

    I'm not too sure what this means, the map numbers in the script are correctly set. What do I do about this?
     
    Last edited:

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    Exception: RuntimeError
    Message: Script error within event 1, map 97 (Garden Entrance):
    Exception: ArgumentError
    Message: (eval):5:in `pbSetContestMap'wrong number of arguments(0 for 1)

    ***Full script:
    pbBugContestState.pbSetJudgingPoint(
    138,10,10)
    pbBugContestState.pbSetReception(
    97)
    pbBugContestState.pbSetContestMap
    (137)

    pbBugContestState.pbSetPokemon(
    pbGet(1))
    pbBugContestState.pbStart(20)
    The red part looks like two separate lines to the game. Use ExtendText to give yourself more space to type.
     
    4
    Posts
    9
    Years
    • Seen Nov 6, 2015
    Ohhh I see, didn't catch that. Thanks! I'll make sure to remember ExtendText in the future if I need it.

    I did what you said and now it's throwing this at me, at the same time as before.

    Exception: RuntimeError
    Message: Script error within event 1, map 97 (Garden Entrance):
    Exception: TypeError
    Message: Section118:177:in `[]'cannot convert String into Integer
    ***Full script:
    pbBugContestState.pbSetJudgingPoint(
    138,10,10)
    pbBugContestState.pbSetReception(
    97)
    pbBugContestState.pbSetContestMap(
    137)
    pbBugContestState.pbSetPokemon(
    pbGet(1))
    pbBugContestState.pbStart(20)

    Interpreter:243:in `pbExecuteScript'
    PokemonBugContest:177:in `pbStart'
    (eval):9:in `pbExecuteScript'
    Interpreter:1592:in `eval'
    Interpreter:243:in `pbExecuteScript'
    Interpreter:1592:in `command_355'
    Interpreter:493:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'

    Interpreter:275:in `pbExecuteScript'
    Interpreter:1592:in `command_355'
    Interpreter:493:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'

    Sorry about all of this. Normally I'm alright with errors and get things sorted out, but I really don't understand what it's saying this time and don't know what to do >_<
     
    Last edited:
    14
    Posts
    9
    Years
    • Seen Jun 1, 2016
    Are you sure you have an integer in your game_variable 1?

    pbBugContestState.pbSetPokemon(pbGet(1))
     
    4
    Posts
    9
    Years
    • Seen Nov 6, 2015
    I'm not too sure to be honest, but since everything is just like the starter kit's I'd assume so? I've been looking around my scripts and comparing it to the starter kit's and everything seems to be fine, and all the game_variables I've seen have phrases and numbers next to them so I'd assume those have integers (unless I'm looking in the wrong place >_< Do you mean the game_variables on lines 133-138 in PokemonBugContest?). I thought maybe it would be easier to find the issue if I posted the script and event pages here.

    Event pages:
    i.imgur.com/Gjm2UxC.png

    PokemonBugContest script:
    pastebin.com/QBrUNU5d

    Do you see what the issue might be?
     
    14
    Posts
    9
    Years
    • Seen Jun 1, 2016
    The easiest thing would be to scrap your work and to start from essentials v14 (There are several little differences in the script)

    You can open RPGmakerXP two times and copy the events between them.


    ----
    The cureent error is that you do not have an integer in @chosenpokemon
     
    Back
    Top