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

Script: [v16/v17/v18/v19/v20/v21] Cable Club (Online Trades/Battles)

12
Posts
2
Years
    • Seen yesterday
    Screenshot 2024-03-30 130647.jpg
    I'm getting an error when running cable_club_pokemon_processor.py using the syntax for a standard call in the user manual.
     
    72
    Posts
    4
    Years
  • Hey i could use some help, here is my command prompt log

    Code:
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>py cable_club.py
    Traceback (most recent call last):
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club.py", line 562, in <module>
        Server(args.host, int(args.port), args.pbs_dir,args.rules_dir).run()
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club.py", line 37, in __init__
        self.valid_party = make_party_validator(pbs_dir)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club.py", line 326, in make_party_validator
        with io.open(os.path.join(pbs_dir, r'pokemon_server.txt'), 'r', encoding='utf-8-sig') as pokemon_pbs:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: './PBS\\pokemon_server.txt'
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>py cable_club_pokemon_processor.py
    usage: cable_club_pokemon_processor.py [-h] [--mode {simple,propagate,shared}] [-o OUTPUT_FILE]
                                           [-pf FORMS_FILES [FORMS_FILES ...]] [-tm TM_FILE]
                                           input_files [input_files ...]
    cable_club_pokemon_processor.py: error: the following arguments are required: input_files
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>py cable_club_pokemon_processor.py pokemon.txt --mode propagate
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>tm tm.txt -pf pokemonforms.txt
    'tm' is not recognized as an internal or external command,
    operable program or batch file.
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>py cable_club_pokemon_processor.py pokemon.txt --mode propagate tm tm.txt -pf pokemonforms.txt
    usage: cable_club_pokemon_processor.py [-h] [--mode {simple,propagate,shared}] [-o OUTPUT_FILE]
                                           [-pf FORMS_FILES [FORMS_FILES ...]] [-tm TM_FILE]
                                           input_files [input_files ...]
    cable_club_pokemon_processor.py: error: unrecognized arguments: tm tm.txt
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>\ py cable_club_pokemon_processor.py -h
    '\' is not recognized as an internal or external command,
    operable program or batch file.
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion> py cable_club_pokemon_processor.py -h
    usage: cable_club_pokemon_processor.py [-h] [--mode {simple,propagate,shared}] [-o OUTPUT_FILE]
                                           [-pf FORMS_FILES [FORMS_FILES ...]] [-tm TM_FILE]
                                           input_files [input_files ...]
    
    A preprocessor that converts game PBS files into a format acceptable for Cable Club's Server.
    
    positional arguments:
      input_files           The pokemon.txt files to convert.
    
    options:
      -h, --help            show this help message and exit
      --mode {simple,propagate,shared}
                            The method used in processing the PBS file. simple is a direct conversion, propagate copies
                            movesets down an evolution chain, shared gives the same moveset to all members of an
                            evolutionary family.
      -o OUTPUT_FILE, --output_file OUTPUT_FILE
                            The output name of the file. Cable Club expects a pokemon_server.txt file.
      -pf FORMS_FILES [FORMS_FILES ...], --forms_files FORMS_FILES [FORMS_FILES ...]
                            If provided, will combine the data from the forms files into the base form data.
      -tm TM_FILE, --tm_file TM_FILE
                            If provided, will combine the moves data with the main pokemon.txt PBS file
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>py cable_club_pokemon_processor.py pokemon.txt --mode propagate -tm tm.txt -pf pokemonforms.txt
    Traceback (most recent call last):
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club_pokemon_processor.py", line 194, in <module>
        generate_server_pokemon_PBS(args.mode,args.input_files,args.output_file,args.forms_files,args.tm_file)
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club_pokemon_processor.py", line 150, in generate_server_pokemon_PBS
        with open(tm_file, 'r',encoding='utf-8-sig') as tm_pbs:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: expected str, bytes or os.PathLike object, not list
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>py cable_club.py
    Traceback (most recent call last):
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club.py", line 562, in <module>
        Server(args.host, int(args.port), args.pbs_dir,args.rules_dir).run()
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club.py", line 37, in __init__
        self.valid_party = make_party_validator(pbs_dir)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club.py", line 326, in make_party_validator
        with io.open(os.path.join(pbs_dir, r'pokemon_server.txt'), 'r', encoding='utf-8-sig') as pokemon_pbs:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: './PBS\\pokemon_server.txt'
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>py cable_club_pokemon_processor.py pokemon.txt --mode propagate -tm tm.txt -pf pokemonforms.txt
    Traceback (most recent call last):
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club_pokemon_processor.py", line 194, in <module>
        generate_server_pokemon_PBS(args.mode,args.input_files,args.output_file,args.forms_files,args.tm_file)
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club_pokemon_processor.py", line 150, in generate_server_pokemon_PBS
        with open(tm_file, 'r',encoding='utf-8-sig') as tm_pbs:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: expected str, bytes or os.PathLike object, not list
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>py cable_club_pokemon_processor.py pokemon.txt --mode propagate -tm tm.txt -pf pokemonforms.txt
    Traceback (most recent call last):
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club_pokemon_processor.py", line 194, in <module>
        generate_server_pokemon_PBS(args.mode,args.input_files,args.output_file,args.forms_files,args.tm_file)
      File "C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion\cable_club_pokemon_processor.py", line 150, in generate_server_pokemon_PBS
        with open(tm_file, 'r',encoding='utf-8-sig') as tm_pbs:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: expected str, bytes or os.PathLike object, not list
    
    C:\Users\nateh\Desktop\Pokemon-game\Game18.1-2\ShadowVersion>

    im trying to enter it just as instructed in the manual but it doesnt seem to be working v18
     
    Back
    Top