<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[cmdScore.py加载报错]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1768443837772-d9500b76-82ba-465d-b1a5-76991198e0c0-image.png" alt="d9500b76-82ba-465d-b1a5-76991198e0c0-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1768443889843-75e9d52d-b8d1-4e0a-a15f-93dbba0cf38e-image.png" alt="75e9d52d-b8d1-4e0a-a15f-93dbba0cf38e-image.png" class=" img-fluid img-markdown" /><br />
直接从群里下载的，代码没动过。</p>
]]></description><link>https://bbs.pymud.cn/topic/21/cmdscore.py加载报错</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 03:50:35 GMT</lastBuildDate><atom:link href="https://bbs.pymud.cn/topic/21.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Jan 2026 02:25:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:56:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 在 <a href="/post/71">cmdScore.py加载报错</a> 中说：</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanghua" aria-label="Profile: shanghua">@<bdi>shanghua</bdi></a> 你的IDE对于不能识别的关键字不会提示么？</p>
</blockquote>
<p dir="auto">用的pycharm，只要不是语法错误，它都不提示</p>
]]></description><link>https://bbs.pymud.cn/post/75</link><guid isPermaLink="true">https://bbs.pymud.cn/post/75</guid><dc:creator><![CDATA[shanghua]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:56:44 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:54:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> 在 <a href="/post/72">cmdScore.py加载报错</a> 中说：</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanghua" aria-label="Profile: shanghua">@<bdi>shanghua</bdi></a><br />
打score命令，然后在命令行输入#var(或者#var char_profile)查看变量</p>
</blockquote>
<p dir="auto">看到了，把相关信息都存变量了。<img src="https://bbs.pymud.cn/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44f.png?v=bd960ea4455" class="not-responsive emoji emoji-android emoji--clap" style="height:23px;width:auto;vertical-align:middle" title=":clap:" alt="👏" /> <img src="https://bbs.pymud.cn/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44f.png?v=bd960ea4455" class="not-responsive emoji emoji-android emoji--clap" style="height:23px;width:auto;vertical-align:middle" title=":clap:" alt="👏" /> <img src="https://bbs.pymud.cn/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44f.png?v=bd960ea4455" class="not-responsive emoji emoji-android emoji--clap" style="height:23px;width:auto;vertical-align:middle" title=":clap:" alt="👏" /></p>
]]></description><link>https://bbs.pymud.cn/post/74</link><guid isPermaLink="true">https://bbs.pymud.cn/post/74</guid><dc:creator><![CDATA[shanghua]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:54:06 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:51:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/newstart" aria-label="Profile: newstart">@<bdi>newstart</bdi></a> 现在的逻辑不是也应该这样么？<br />
后边的那些命令我还没写好，所以暂时让我注释掉了</p>
]]></description><link>https://bbs.pymud.cn/post/73</link><guid isPermaLink="true">https://bbs.pymud.cn/post/73</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:47:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanghua" aria-label="Profile: shanghua">@<bdi>shanghua</bdi></a><br />
打score命令，然后在命令行输入#var(或者#var char_profile)查看变量</p>
]]></description><link>https://bbs.pymud.cn/post/72</link><guid isPermaLink="true">https://bbs.pymud.cn/post/72</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:47:22 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:45:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanghua" aria-label="Profile: shanghua">@<bdi>shanghua</bdi></a> 你的IDE对于不能识别的关键字不会提示么？</p>
]]></description><link>https://bbs.pymud.cn/post/71</link><guid isPermaLink="true">https://bbs.pymud.cn/post/71</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:43:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/newstart" aria-label="Profile: newstart">@<bdi>newstart</bdi></a> 在 <a href="/post/68">cmdScore.py加载报错</a> 中说：</p>
<blockquote>
<p dir="auto">之前CmdScore设计逻辑是这样的，会从score信息里读取到角色id，门派，然后传递给战斗模块，让战斗模块根据角色id或者门派来配置自定义的战斗方式，比如不同perform之类。</p>
</blockquote>
<p dir="auto">加载成功了，怎么用呢？</p>
]]></description><link>https://bbs.pymud.cn/post/70</link><guid isPermaLink="true">https://bbs.pymud.cn/post/70</guid><dc:creator><![CDATA[shanghua]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:43:59 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:27:15 GMT]]></title><description><![CDATA[<p dir="auto">原来如此，原来如此</p>
]]></description><link>https://bbs.pymud.cn/post/69</link><guid isPermaLink="true">https://bbs.pymud.cn/post/69</guid><dc:creator><![CDATA[shanghua]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:27:15 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:06:39 GMT]]></title><description><![CDATA[<p dir="auto">之前CmdScore设计逻辑是这样的，会从score信息里读取到角色id，门派，然后传递给战斗模块，让战斗模块根据角色id或者门派来配置自定义的战斗方式，比如不同perform之类。</p>
]]></description><link>https://bbs.pymud.cn/post/68</link><guid isPermaLink="true">https://bbs.pymud.cn/post/68</guid><dc:creator><![CDATA[newstart]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:06:39 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:03:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/shanghua" aria-label="Profile: shanghua">@<bdi>shanghua</bdi></a> 在 <a href="/post/66">cmdScore.py加载报错</a> 中说：</p>
<blockquote>
<p dir="auto"><img src="/assets/uploads/files/1768464078892-9f4247f5-383c-4cf9-b6f3-653d2b9e7227-image.png" alt="9f4247f5-383c-4cf9-b6f3-653d2b9e7227-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">继续报错。</p>
</blockquote>
<p dir="auto">这是调用了另一个cmd_combat的Command，然后你没有这个，所以不行。把这一行注释掉再试。</p>
]]></description><link>https://bbs.pymud.cn/post/67</link><guid isPermaLink="true">https://bbs.pymud.cn/post/67</guid><dc:creator><![CDATA[newstart]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:03:56 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 08:01:27 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1768464078892-9f4247f5-383c-4cf9-b6f3-653d2b9e7227-image.png" alt="9f4247f5-383c-4cf9-b6f3-653d2b9e7227-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">继续报错。</p>
]]></description><link>https://bbs.pymud.cn/post/66</link><guid isPermaLink="true">https://bbs.pymud.cn/post/66</guid><dc:creator><![CDATA[shanghua]]></dc:creator><pubDate>Thu, 15 Jan 2026 08:01:27 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 03:06:07 GMT]]></title><description><![CDATA[<p dir="auto">好的，收到收到收到！</p>
]]></description><link>https://bbs.pymud.cn/post/63</link><guid isPermaLink="true">https://bbs.pymud.cn/post/63</guid><dc:creator><![CDATA[shanghua]]></dc:creator><pubDate>Thu, 15 Jan 2026 03:06:07 GMT</pubDate></item><item><title><![CDATA[Reply to cmdScore.py加载报错 on Thu, 15 Jan 2026 02:51:17 GMT]]></title><description><![CDATA[<p dir="auto">跟我之前遇到的问题一样的，你需要先定义‘char_profile’变量</p>
<pre><code>        self.session.setVariable("char_profile",DotDict())
        self.session.vars["char_profile"].update(self.profile) 
</code></pre>
]]></description><link>https://bbs.pymud.cn/post/62</link><guid isPermaLink="true">https://bbs.pymud.cn/post/62</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Thu, 15 Jan 2026 02:51:17 GMT</pubDate></item></channel></rss>