parameters: (cls, gamespec, args, string_resources, existing_graphics)
return_statement: return modpacks
docstring: Input game speification and media here and get a set of
          modpacks back.
  
          :param gamespec: Gamedata from empires.dat read in by the
                           reader functions.
          :type gamespec: class: ...dataformat.value_members.ArrayMember
          :returns: A list of modpacks.
          :rtype: list
docstring_summary: Input game speification and media here and get a set of
          modpacks back.
docstring_tokens: Input game speification and media here and get a set of modpacks back .
function: def convert(cls, gamespec, args, string_resources, existing_graphics):
          """
          Input game speification and media here and get a set of
          modpacks back.
  
          :param gamespec: Gamedata from empires.dat read in by the
                           reader functions.
          :type gamespec: class: ...dataformat.value_members.ArrayMember
          :returns: A list of modpacks.
          :rtype: list
          """
  
          info("Starting conversion...")
  
          # Create a new container for the conversion process
          dataset = cls._pre_processor(
              gamespec,
              args.game_version,
              string_resources,
              existing_graphics
          )
          debug_converter_objects(args.debugdir, args.debug_info, dataset)
  
          # Create the custom openae formats (nyan, sprite, terrain)
          dataset = cls._processor(dataset)
          debug_converter_object_groups(args.debugdir, args.debug_info, dataset)
  
          # Create modpack definitions
          modpacks = cls._post_processor(dataset)
  
          return modpacks
function_tokens: def convert ( cls , gamespec , args , string_resources , existing_graphics ) : info ( "Starting conversion..." ) # Create a new container for the conversion process dataset = cls . _pre_processor ( gamespec , args . game_version , string_resources , existing_graphics ) debug_converter_objects ( args . debugdir , args . debug_info , dataset ) # Create the custom openae formats (nyan, sprite, terrain) dataset = cls . _processor ( dataset ) debug_converter_object_groups ( args . debugdir , args . debug_info , dataset ) # Create modpack definitions modpacks = cls . _post_processor ( dataset ) return modpacks