创建游戏插件时出现SerpentAI错误

2024-05-23 14:33:54 发布

您现在位置:Python中文网/ 问答频道 /正文

我最近安装了SerpentAI,在创建游戏插件时遇到了一个问题。你知道吗

运行命令时:

serpent generate game

我提供以下答案:

  • 木筏大战
  • web浏览器

    What is the name of the game? (Titleized, No Spaces i.e. AwesomeGame):
    

    木筏大战 游戏是如何推出的?('steam'、'executable'、'web\u browser'之一): web浏览器 分支:正在尝试安装SerpentRaftWarsGamePlugin。。。你知道吗

    分支插件安装:正在验证插件依赖项是否已安装。。。你知道吗

    分支插件安装:正在安装文件。。。你知道吗

    安装过程中出现问题。。。回复! 回溯(最近一次呼叫): 文件“c:\users\marce\anaconda3\envs\serpent\lib\朗比“,第193行,在\u run \u module \u as \u main中” “main”,型号规格) 文件“c:\users\marce\anaconda3\envs\serpent\lib\朗比“,第85行,在运行代码中” exec(代码,运行全局) 文件“C:\Users\marce\SerpentAI\plugins\SerpentRaftWarsGamePlugin\插件.py“,第28行,in 分支.u钩子(蛇筏战机插件) 文件“c:\users\marce\anaconda3\envs\serpent\lib\site packages\offshoot\基本.py,第185行,在钩子中 插件_类。安装() 文件“c:\users\marce\anaconda3\envs\serpent\lib\site packages\offshoot\插件.py,第35行,安装中 cls.install\u文件() 文件“c:\users\marce\anaconda3\envs\serpent\lib\site packages\offshoot\插件.py,第118行,在install\u文件中 升起e 文件“c:\users\marce\anaconda3\envs\serpent\lib\site packages\offshoot\插件.py,第91行,在install\u文件中 是否有效,messages=cls.\u验证\u文件\u是否可插入(plugin \u file \u path,file \u dict[“pluggable”]) 文件“c:\users\marce\anaconda3\envs\serpent\lib\site packages\offshoot\插件.py“,第235行,在\u validate \u file \u for \u pluggable中” raise PluginError(“插件定义指定了无效的可插入:%s=>;%s”%(文件路径,可插入)) 分支.plugin.PluginError:插件定义指定了无效的可插件:plugins\SerpentRaftWarsGamePlugin\files\serpent\u RaftWars_游戏.py=>;游戏


Tags: 文件py插件web游戏libpackages分支
1条回答
网友
1楼 · 发布于 2024-05-23 14:33:54

我遇到了完全相同的问题,我发现这是由于试图生成一个游戏与一个已经有一个插件同名。如果您也是这样,那么进入C:\Users\___\Anaconda3\envs\serpent\plugins并删除已经存在的插件。在这之后,再次运行教程的步骤,在运行conda activate serpent之前小心地将cd放入C:\Users\___\Anaconda3\envs\serpent\。你知道吗

相关问题 更多 >