python-3.x SerpentAI错误:插件定义指定了无效的可插拔

igetnqfo  于 2022-11-26  发布在  Python
关注(0)|答案(1)|浏览(201)

我最近安装了SerpentAI,我在创建游戏插件时遇到了一个问题。
运行命令时:“”“蛇生成游戏”“”
抛出SerpentAI Error When Creating a Game Plugin这样的错误内部是一样的,我试过内部方法,但是不起作用。有人可以帮助我

What is the name of the game? (Titleized, No Spaces i.e. AwesomeGame):
THProject
How is the game launched? (One of: 'steam', 'executable', 'web_browser'):
executable
c:\users\28734\.conda\envs\serpent\lib\site-packages\offshoot\base.py:38: UserWarning: 'offshoot.yml' not found! Using default configuration.
  warnings.warn("'offshoot.yml' not found! Using default configuration.")
c:\users\28734\.conda\envs\serpent\lib\site-packages\offshoot\base.py:38: UserWarning: 'offshoot.yml' not found! Using default configuration.
  warnings.warn("'offshoot.yml' not found! Using default configuration.")
OFFSHOOT: Attempting to install SerpentTHProjectGamePlugin...
c:\users\28734\.conda\envs\serpent\lib\site-packages\offshoot\base.py:38: UserWarning: 'offshoot.yml' not found! Using default configuration.
  warnings.warn("'offshoot.yml' not found! Using default configuration.")

OFFSHOOT PLUGIN INSTALL: Verifying that plugin dependencies are installed...

OFFSHOOT PLUGIN INSTALL: Installing files...

There was a problem during installation... Reverting!
Traceback (most recent call last):
  File "c:\users\28734\.conda\envs\serpent\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\28734\.conda\envs\serpent\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\28734\.conda\envs\serpent\plugins\SerpentTHProjectGamePlugin\plugin.py", line 28, in <module>
    offshoot.executable_hook(SerpentTHProjectGamePlugin)
  File "c:\users\28734\.conda\envs\serpent\lib\site-packages\offshoot\base.py", line 185, in executable_hook
    plugin_class.install()
  File "c:\users\28734\.conda\envs\serpent\lib\site-packages\offshoot\plugin.py", line 35, in install
    cls.install_files()
  File "c:\users\28734\.conda\envs\serpent\lib\site-packages\offshoot\plugin.py", line 118, in install_files
    raise e
  File "c:\users\28734\.conda\envs\serpent\lib\site-packages\offshoot\plugin.py", line 91, in install_files
    is_valid, messages = cls._validate_file_for_pluggable(plugin_file_path, file_dict["pluggable"])
  File "c:\users\28734\.conda\envs\serpent\lib\site-packages\offshoot\plugin.py", line 235, in _validate_file_for_pluggable
    raise PluginError("The Plugin definition specifies an invalid pluggable: %s => %s" % (file_path, pluggable))
offshoot.plugin.PluginError: The Plugin definition specifies an invalid pluggable: plugins\SerpentTHProjectGamePlugin\files\serpent_THProject_game.py => Game
uyto3xhc

uyto3xhc1#

嗯,我自己解决了这个问题。你只需要安装“serpent.game”。代理中的所有第三方库都是足够的。有些库没有安装

相关问题