Skip to content

Fix CheckFlags signature mismatch after game update#14

Open
He40026 wants to merge 1 commit into
pcfantasy:masterfrom
He40026:master
Open

Fix CheckFlags signature mismatch after game update#14
He40026 wants to merge 1 commit into
pcfantasy:masterfrom
He40026:master

Conversation

@He40026
Copy link
Copy Markdown

@He40026 He40026 commented Apr 28, 2026

问题描述 :
自从游戏更新 1.21.1 (Race Day Patch) 后,模组在使用时会报错,无法正确预览和创建道路。报错内容如下:

Method not found: 'NetInfo.Segment.CheckFlags'. [System.MissingMethodException]
Details:
No details

原因 :
游戏 Assembly-CSharp.dll 中,NetInfo.Segment.CheckFlags 的函数发生了改变。官方新增了一个 NetSegment.Flags2 参数:
Old API: CheckFlags(Flags, out bool)
New API: CheckFlags(Flags, Flags2, out bool)

修复 :
更新了代码中对 CheckFlags 函数的调用,补齐了缺失的 Flags2 参数以适配最新版游戏 API。本地测试已通过,道路预览与创建功能恢复正常。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant