首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >创建游戏插件时SerpentAI错误

创建游戏插件时SerpentAI错误
EN

Stack Overflow用户
提问于 2019-03-02 20:19:18
回答 2查看 361关注 0票数 2

我最近安装了SerpentAI,在创建游戏插件时遇到了问题。

运行命令时:

代码语言:javascript
复制
serpent generate game

我提供以下答案:

  • RaftWars
  • web_browser 这个游戏叫什么名字?(滴定,无空格,即AwesomeGame): RaftWars游戏是如何推出的?(其中一个:“蒸汽”、“可执行文件”、“web_browser”):web_browser分支:试图安装SerpentRaftWarsGamePlugin. 分支插件安装:验证插件依赖项是否已安装. 插件安装:安装文件..。 在安装过程中有个问题..。复元!追溯(最近一次调用):文件"c:\users\marce\anaconda3\envs\serpent\lib\runpy.py",第193行,在_run_module_as_main "main“中,mod_spec中的文件"c:\users\marce\anaconda3\envs\serpent\lib\runpy.py",行85,在_run_code exec(代码,run_globals)文件"C:\Users\marce\SerpentAI\plugins\SerpentRaftWarsGamePlugin\plugin.py",第28行中在offshoot.executable_hook(SerpentRaftWarsGamePlugin)文件"c:\users\marce\anaconda3\envs\serpent\lib\site-packages\offshoot\base.py",第185行、executable_hook plugin_class.install() "c:\users\marce\anaconda3\envs\serpent\lib\site-packages\offshoot\plugin.py",第35行、安装cls.install_files()文件"c:\users\marce\anaconda3\envs\serpent\lib\site-packages\offshoot\plugin.py",第118行中,在文件"c:\users\marce\anaconda3\envs\serpent\lib\site-packages\offshoot\plugin.py",第91行,在install_files is_valid中,messages = cls._validate_file_for_pluggable(plugin_file_path,file_dict“可插拔”)文件"c:\users\marce\anaconda3\envs\serpent\lib\site-packages\offshoot\plugin.py",第235行,在plugins\SerpentRaftWarsGamePlugin\files\serpent_RaftWars_game.py _validate_file_for_pluggable PluginError(“插件定义指定无效的可插拔:%s => %s”% (file_path,可插拔))中,offshoot.plugin.PluginError:插件定义指定无效的可插拔:_validate_file_for_pluggable =>游戏
EN

回答 2

Stack Overflow用户

发布于 2019-04-22 15:53:26

我也遇到了同样的问题,我发现这是因为我试图生成一个和已经有插件的游戏同名的游戏。如果您也是这样的话,那么进入C:\Users\___\Anaconda3\envs\serpent\plugins并删除已经存在的插件。在此之后,再次运行本教程的步骤,在运行C:\Users\___\Anaconda3\envs\serpent\之前要注意cd到conda activate serpent中。

票数 1
EN

Stack Overflow用户

发布于 2022-06-01 11:30:21

我也有同样的问题,但是我的serpent\plugins\目录是空的,在激活蛇之前,我要确保我的SerpentAI目录中有cd。错误仍然存在,我不知道发生了什么。

运行命令时:

代码语言:javascript
复制
serpent generate game

我提供以下答案:

代码语言:javascript
复制
    Ballance
    executable
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54962625

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档