BeyondDimension / BeyondDimension/SteamTools

🐛[BUG] 第三方脚本`//@name`字段若与脚本工坊中某一脚本`//@name`字段相同,那么导入脚本后会显示脚本有更新

Open
#3,727 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
26.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

## 请认真检查以下清单中的每一项
- [x] 已经搜索过,没有发现类似的 issue
- [x] 已经搜索过文档,没有发现相关内容
- [x] 已经尝试使用过最新版,问题依旧存在
- [x] 使用的是官方版本(未替换及修改过安装目录程序文件)

### 🐛 描述

我在尝试导入第三方脚本的时候(#3726)发现了这个问题,导入的脚本`//@name`字段如果与脚本工坊里的某一脚本`//@name`字段相同,那么脚本配置页面会显示此脚本有更新,如果进行更新,则更新后的脚本会替换为脚本工坊中相同名字的脚本

### 📷 复现步骤

1. 下载第三方脚本
2. 更改脚本中的`//@name`字段,使其与脚本工坊中某一脚本的`//@name`字段相同
3. 导入此脚本
4. 导入后脚本配置页面会显示脚本存在更新

### 📄 日志信息

[nlog-all-2025-07-30.log](https://github.com/user-attachments/files/21541736/nlog-all-2025-07-30.log)
[nlog-all-2025-07-31.log](https://github.com/user-attachments/files/21541733/nlog-all-2025-07-31.log)
[nlog-all-2025-08-01.log](https://github.com/user-attachments/files/21541734/nlog-all-2025-08-01.log)
[nlog-all-2025-07-28.log](https://github.com/user-attachments/files/21541735/nlog-all-2025-07-28.log)
[nlog-all-2025-07-29.log](https://github.com/user-attachments/files/21541737/nlog-all-2025-07-29.log)

### 🖼 截图

### 🚑 其他信息

- 处理器体系结构:x64
- 系统版本号:Windows 10
- 下载渠道:GitHub
- 程序版本:3.00-rc.6
- 是否包含独立运行时:

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the third-party script import flow described in the issue, using a script whose //@name matches a Script Workshop script. Trace how the imported script is matched to updates and review the attached logs for relevant evidence. Done means an imported script with a duplicate name no longer reports or applies an update from the unrelated Workshop script.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.