跳转至内容

公告与通知

8 主题 17 帖子

本社区论坛有关的通知与公告

此版块可通过社交网络公开平台使用用户名 announcements@bbs.pymud.cn 进行关注

  • PyMUD 更新 0.22.5 版

    1
    0 赞同
    1 帖子
    70 浏览
    N
    0.22.5 (2026-05-02) 功能新增: 为Session类型增加 invalidate 方法,调用该方法时,只有本会话是当前会话时,该方法才会调用 PyMudApp.invalidate() 进行刷新。 注意事项: 对于在个人脚本中调用的 session.application.invalidate() 方法,建议改成 session.invalidate()。因为会话的刷新会判断前台,而application的刷新会强制刷新。 功能新增: 增加 lazy 模式,当设置为 lazymode 模式时,即使 PyMudApp.invalidate() 的调用也不会进行显示刷新,系统仅保留在切换会话、以及定时1s材记性刷新。该模式可以通过快捷键F4切换。在lazy模式下,最底下状态栏右侧会显示"LAZY"提示。该模式可以用于在后台挂机运行时,降低CPU占用率。 功能新增: 增加 verbatim 模式,当设置为 verbatim 模式时,所有命令行输入的命令,都不会进行解析,直接发送到服务器。该模式可以通过快捷键F3切换。在 verbatim 模式下,最底下状态栏右侧会显示"VERB"提示。 功能新增: 增加一个非解析提示符"/",当在命令行行首使用该提示符时,所有后续命令不进行任何解析,直接发送到服务器。该提示符可以通过 pymud.cfg 中的 noparser 进行覆盖。此提示符相当于临时使用 verbatim 模式。 功能新增: 增加设置 "cmd_prefix",当配置该参数后,在窗口中的命令回显或者log记录中,输入的命令会带有该前缀。改配置默认为空白,可以通过 pymud.cfg 中的 cmd_prefix 进行覆盖。同步调整了命令的显示样式,与info默认值相同。 功能调整:在#var等命令执行之后,会调用del删除创建的临时列表,以加快内存释放。 功能调整: 在会话被关闭时,会调用del对会话中的相关对象同步进行清除,并使用代码调用执行垃圾回收(但我测试了,并没有啥用处,内存占没什么变化)。 问题修复: 修复了在使用网络配置(包括指定IP和使用socks5代理)连接服务器后,当断开后,再重新执行 #con 不会再次调用网络配置,而是直接使用默认配置的问题。 English update history is translated by TRAE (GLM5) 0.22.5 (2026-05-02) New Feature: Added invalidate method to Session class. When called, it only triggers PyMudApp.invalidate() for refresh if the current session is the active session. Note: For session.application.invalidate() calls in personal scripts, it is recommended to change to session.invalidate(). Because session refresh checks for foreground status, while application refresh forces a refresh. New Feature: Added lazy mode. When lazy mode is enabled, even PyMudApp.invalidate() calls will not trigger display refresh. The system only refreshes when switching sessions or on a 1-second timer. This mode can be toggled with the F4 hotkey. In lazy mode, "LAZY" is displayed on the right side of the bottom status bar. This mode can be used to reduce CPU usage when running in the background. New Feature: Added verbatim mode. When verbatim mode is enabled, all commands entered in the command line are sent directly to the server without any parsing. This mode can be toggled with the F3 hotkey. In verbatim mode, "VERB" is displayed on the right side of the bottom status bar. New Feature: Added a non-parsing prefix "/". When this prefix is used at the beginning of a command line, all subsequent commands are sent directly to the server without any parsing. This prefix can be overridden via noparser in pymud.cfg. This prefix is equivalent to temporarily using verbatim mode. New Feature: Added "cmd_prefix" setting. When configured, command echo in the window or log records will display commands with this prefix. Default is empty, can be overridden via cmd_prefix in pymud.cfg. Also adjusted command display style to match the default info style. Improvement: After executing commands like #var, temporary lists created are deleted using del to speed up memory release. Improvement: When a session is closed, related objects in the session are cleared synchronously using del, and garbage collection is triggered programmatically (however, testing showed no significant effect on memory usage). Bug Fix: Fixed the issue where after disconnecting, when you using #con, the default network configuration is used instead of the one you specified.
  • PyMUD 0.22.4 正式版发布

    1
    0 赞同
    1 帖子
    180 浏览
    N
    0.22.4 (2026-02-24) 功能新增: 当一台设备拥有多个网卡和IP时,可以指定使用哪个IP进行连接。 功能新增: 支持直接使用socks5代理进行连接。可以支持无需认证的代理(如ssh -D创建的socks5代理),和用户名密码认证的代理。 功能新增: 上述两功能,通过新增的 network 配置字典来实现,也可以在#session, #connect命令中直接指定。使用方式见下方。 问题修复: 修复了提示错误代码时不正确显示函数名、文件名和行数的情况 问题修复: 修复了内存监控启动代码BUG导致无法正常监控的问题 其他变更: 完善修复了所有涉及 basedpyright 提示不符合编码标准的内容,改为更符合编码标准的写法 其他变更: 默认的 remain_last_input 现在设置为 True 了 其他变更: 新版的 SessionBuffer 确认可以正常运行,删除了原来的 SessionBuffer 实现 其他变更: 移除了所有不需要的 import 内容 其他变更: 当所有会话都被关闭后,底下的状态窗口将会清空 多IP网络/Socks5代理连接使用方法: 首先在pymud.cfg中增加配置字段 network,内容如下(如果复制使用,请删除注释内容): { // 放在根节点内部即可 "network" : { "ipv6": false, // 是否启用ipv6,可接受 true|false,默认为false。该设置仅会影响 auto 模式模式,即设置 auto 模式是否会自动获取IPv6地址 "local_addr": "auto", // 本地绑定的IP地址,可接受 auto|preset,默认auto,即自动获取本地所有网络设备的IP,当配置为 preset 时,会使用ip_list中的IP "ip_list": [ // 当local_addr设置为 preset 时,需要配置该字段,用于指定使用哪个IP进行连接。 "192.168.1.100", "192.168.2.100", ], "proxy": true, // 是否启用代理,可接受 true|false,默认为false。 "proxies": { // Socks5代理列表,可配置多个,即可以使用无密码的代理,也可以使用用户名密码认证的代理。 "proxy1": "socks5://192.168.6.66:1080", // 使用proxy1标识该无密码代理 "proxy2": "socks5://user:password@yoursock5proxy.site:1080", // 使用proxy2标识该用户名密码认证代理 } } } 当配置完成后,启动pymud时, 世界菜单中,每一个角色的都会添加一个下级菜单,将IP和代理列表中的代理都添加为子菜单。此时,角色自身菜单,以及下级子菜单都可以单机连接到服务器。 当依然单机角色菜单时,会使用系统当前默认网络设备进行连接。 当点击角色下级菜单中的IP时,会指定绑定该IP进行连接。例如,一台设备有2个网卡,一个连接到电信网络,一个连接到联通网络,即使系统设置默认连接是网卡1电信网络,通过IP绑定也可以使用联通网络连接到服务器。 当点击角色下级菜单中的代理时,会指定使用该代理进行连接。例如,在配置中增加了一个代理 proxy1,当点击角色下级菜单中的 proxy1 时,会使用该代理进行连接。 也可以在#session/#connect命令中指定IP或代理。二者语法相同,都是在最后面增加了 >> 来指定IP或代理。注意,>>之后的IP或者代理之间没有空格。例如: #session pkuxkx.newstart >>#2 # 指定使用ip_list中(当local_addr设置为 preset 时)或自动获取的ip列表(也会显示在菜单上)的第2个(序号从1开始)IP进行连接 #session pkuxkx.newstart >>@proxy1 @ 指定使用proxies中配置的proxy1代理进行连接 #con >>>#1 # 会话断开后(比如使用#dis命令),可以使用 #con 重新指定以第1个IP连接。 #con >>socks5://192.168.6.67:1080 # 也可以在命令直接指定新的socks5代理。(IP只能使用序号指定,不接收手动填入) #con命令也可以使用三个大于号 >>> 来连接。这二者区别在于,当使用 >> 时,该配置会变成本会话的默认配置,下次直接 #con 就是使用该配置;而使用 >>> 时,只是临时指定该配置,下次 #con 还是会使用原先的配置。
  • PyMUD 0.22.2 正式版发布

    5
    0 赞同
    5 帖子
    375 浏览
    T
    不知道为什么现在又可以了 这个功能挺好~~~~
  • PyMUD 0.22.3post1 正式版发布

    2
    0 赞同
    2 帖子
    193 浏览
    N
    0.22.3 (2026-01-18) Bug Fixes: Removed unnecessary imports from various code files. Verified to work normally with Python 3.8. Fixed an issue in the getVariable method where non-alphabetic characters would cause the variable value to return None. Fixed a bug in #var nested variable support. Previously, if a digit was used as a dictionary key, it would be incorrectly identified as a list and return None. Feature Improvements: Updated #mem diff to compare against the memory usage at initial startup, rather than against the previous execution. Other Changes: Updated the help documentation for #close to include a description of its parameters, specifically support for the -f and session_name arguments (previously supported but undocumented). Refactored multiple instances of non-standard syntax and replaced deprecated code. (Translation by Quark)
  • PyMUD 0.22.2a2预览版发布

    信息发布 新版发布 预览版
    1
    0 赞同
    1 帖子
    83 浏览
    N
    PyMUD 0.22.2a2预览版已推送到 pypi.org, 感兴趣的可以尝鲜。相对于 0.22.2a1 版和 0.22.1 版主要修改包括: 功能新增: 可以通过.cfg文件指定 "auto_chars" 来定义启动pymud时自动打开的会话。(0.22.2a1新增) 问题修复: 修复GMCPTrigger类型enabled属性不生效问题。 (0.22.2a1新增) 问题修复: 修复添加/删除系统时钟回调时,可能会导致的异常问题。(0.22.2a2新增) 问题修复: 修复在增加系统时钟回调时,如果回调函数代码错误产生异常,会导致系统时钟停顿的问题。(0.22.2a2新增) auto_chars 示例 以下 pymud.cfg 代码可以让运行pymud时自动打开会话并登录 mychar2 和 mychar4 : { "sessions": { "pkuxkx": { "host": "mud.pkuxkx.net", "port": "8081", "encoding": "utf8", "autologin": "{0};{1}", "default_script": ["main"], "chars": { "mychar1": ["mycharid1", "mypassword1"], "mychar2": ["mycharid2", "mypassword2"], "mychar3": ["mycharid3", "mypassword3"], "mychar4": ["mycharid4", "mypassword4"], } } }, "auto_chars": ["mychar2", "mychar4"] } 0.22.2a2版修复的错误概述 本版修复的两个错误主要解决 websocket 插件会调用系统时钟回调来处理sendOverview,但添加/移除回调或者回调写错都会导致系统时钟停止的问题。系统时钟停止后,会导致sendOverview不会再被调用刷新,且控制台ui的连接时间也不会保持每秒自动刷新,而只是随数据变化刷新。
  • PyMUD论坛上线啦

    6
    0 赞同
    6 帖子
    148 浏览
    N
    @bigb 在 PyMUD论坛上线啦 中说: 邮件确认也可以了,但是等了一天邮件才到。 邮件确认问题是因为我在前天晚上不小心改错了配置,昨天上午修复后重新发的,现在应该没问题。
  • 本站点服务器已升级

    1
    0 赞同
    1 帖子
    85 浏览
    N
    由于中国大陆访问回程不稳定问题,已将运行服务器升级为中国大陆访问更优的套餐,本站点已完成迁移,欢迎大家继续支持本论坛。 2026年1月1日
  • 此主题已被删除!

    已移动
    1
    0 赞同
    1 帖子
    18 浏览