• 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.

[Error] NameError for new trainer

2
Posts
5
Years
    • Seen Aug 2, 2023
    I wanted to add a new trainer to Pokémon Xenoverse. However, whenever I start the event, I get an error saying the trainer type isn't valid. If you can figure out what's wrong, I would appreciate it. I will post the error, as well as the trainers.txt and trainertypes.txt. The new trainer Lovrina, is at the very bottom of both text files.

    ---------------------------
    Xenoverse
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 16, map 36 (Nova Ranch):

    Exception: NameError

    Message: (eval):3200:in `const_get'The trainer type 'LOVRINA' is not valid. Please add the trainer

    to the list of trainer types in the Editor. See the wiki for

    more information.

    ***Full script:

    pbTrainerIntro(:LOVRINA)
    Kernel.pbNoticePlayer(get_character(0))
    fbNewMugshot("Lovrina","allenatori/lovrina","default",:left)
    fbEnable(true)
    fbText("Well, what a coincidence.
    Imagine seeing you here. This time
    I'm not losing though.")
    fbEnable(false)
    fbDispose


    (eval):243:in `pbExecuteScript'

    (eval):3200:in `pbTrainerIntro'

    (eval):1:in `pbExecuteScript'

    (eval):1606:in `eval'

    (eval):243:in `pbExecuteScript'

    (eval):1606:in `command_355'

    (eval):494:in `execute_command'

    (eval):193:in `update'

    (eval):106:in `loop'

    (eval):198:in `update'



    (eval):276:in `pbExecuteScript'

    (eval):1606:in `command_355'

    (eval):494:in `execute_command'

    (eval):193:in `update'

    (eval):106:in `loop'

    (eval):198:in `update'

    (eval):107:in `zer0_choice_window_upd'

    (eval):105:in `loop'

    (eval):118:in `zer0_choice_window_upd'

    (eval):35:in `update'
     

    Attachments

    • trainertypes.txt
      14.4 KB · Views: 2
    • trainers.txt
      61 KB · Views: 2
    22
    Posts
    365
    Days
    • Seen May 2, 2024
    Well, what I'm seeing is that the LOVRINA trainer type isn't defined like the others. Have you tried putting the "Cipher Admin" between () like the rest of trainer types? Also, you added the file extension for the music when no other trainer type does. Try fixing this and see if it works.
     
    Back
    Top