feat(BsScriptHub): 支持目录类型脚本下载,修复中文路径问题#27
Merged
AniBullet merged 1 commit intoAniBullet:devfrom Feb 24, 2026
Merged
Conversation
- 新增 DirectoryDownloadWorker 类,递归下载整个目录结构 - 新增 get_short_path() 函数,将中文路径转换为 Windows 8.3 短路径 - 新增 _safe_exception_str() 方法,安全处理 Unicode 异常消息 - 新增目录类型脚本识别和处理函数 - 修复 MaxScript 无法处理 Unicode 路径的问题 - 修复 UnicodeEncodeError 异常显示问题 - 版本升级 1.3 -> 1.4 - 新增文档 BsScriptHub_vs_BulletScripts_对比.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
新增功能
final_auto_animator),自动递归下载所有子目录和文件DirectoryDownloadWorker类:通过 GitHub API 递归获取目录结构并批量下载Bug 修复
GetShortPathNameWAPI 将中文路径转换为 8.3 短路径格式,解决 MaxScript 无法处理 Unicode 路径的问题_safe_exception_str()方法,安全处理包含中文的异常消息技术细节
_is_directory_script()、_get_directory_name()、_get_directory_local_path()等get_short_path()函数将中文路径转换为 Windows 8.3 短路径_execute_script()中调用get_short_path()转换路径后再执行文档
docs/BsScriptHub_vs_BulletScripts_对比.md文档版本
1.3 → 1.4
测试
final_auto_animator正常下载和运行04_动画工具正常处理Pull Request opened by Augment Code with guidance from the PR author