讨论&实现:一键搭建 Mod 开发环境 - #18
Open
TWT233 wants to merge 1 commit into
Open
Conversation
Contributor
|
要不直接做成vs 插件吧 |
Contributor
Author
|
nuget包在实现上会更自然 方案也更原生所以效果会更好 也更通用像我就不是用vs的
On Oct 28, 2025, at 09:36, JustFor ***@***.***> wrote:
[https://avatars.githubusercontent.com/u/35858818?s=20&v=4]zhongqingsong left a comment (xvrsl/duckov_modding#18)<#18 (comment)>
要不直接做成vs 插件吧
—
Reply to this email directly, view it on GitHub<#18 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWDZFEXHDPQOTDYF4LWOYT3Z3CAFAVCNFSM6AAAAACKJVZXYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINJUGA3TCMZRG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
有个bug:当游戏的安装位置不在Steam本体中,而在其它的库中时,注册表的安装位置可能为空,从而导致NuGet包定位不到游戏 |
Contributor
Author
|
这个可以通过自己传GameDir来解决
目前是先从注册表捞游戏安装位置,没有的话就捞steam库的位置来拼凑,不知道有没有更稳定的方案
```
<PropertyGroup>
<GameDir>path\to\game\通常结尾是\steamapps\common\Escape from Duckov</GameDir>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TWT233.DMAPI.ModBuildConfig"/>
</ItemGroup>
```
On Oct 28, 2025, at 15:46, 企鹅2035 ***@***.***> wrote:
[https://avatars.githubusercontent.com/u/18079122?s=20&v=4]QiE2035 left a comment (xvrsl/duckov_modding#18)<#18 (comment)>
有个bug:当游戏的安装位置不在Steam本体中,而在其它的库中时,注册表的安装位置可能为空,从而导致NuGet包定位不到游戏
—
Reply to this email directly, view it on GitHub<#18 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWDZFCQB6FDNOGXWRDSJM33Z4NOBAVCNFSM6AAAAACKJVZXYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINJVGAZDSOBUGY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
|
我这边做了个模板工程 我感觉可以和你这个包一起工作看看? |
Contributor
Author
|
可以的 我这个包现在还没加harmony 之前没怎么用过harmony有点知识欠缺不太明白加哪些功能会比较方便用
On Oct 29, 2025, at 02:02, OLC ***@***.***> wrote:
[https://avatars.githubusercontent.com/u/35646643?s=20&v=4]BAKAOLC left a comment (xvrsl/duckov_modding#18)<#18 (comment)>
我这边做了个模板工程
https://github.com/BAKAOLC/Duckov_Modding_Template
我感觉可以和你这个包一起工作看看?
—
Reply to this email directly, view it on GitHub<#18 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWDZFCLJ4REJBVLHRTAD6D3Z6VSVAVCNFSM6AAAAACKJVZXYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINJXG44TSOBYG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
inkydragon
reviewed
Oct 29, 2025
| <Reference Include="$(DuckovPath)$(SubPath)TeamSoda.*"/> | ||
| <Reference Include="$(DuckovPath)$(SubPath)ItemStatsSystem.dll"/> | ||
| <Reference Include="$(DuckovPath)$(SubPath)Unity*"/> | ||
| <PackageReference Include="TWT233.DMAPI.ModBuildConfig"/> |
There was a problem hiding this comment.
用第三方包避不开的问题:如何防范供应链攻击?
没有针对任何人的意思。
这相当于多了个不受控的步骤,而且问题一般发生在,你都忘了这个包/这个游戏的时候。
mod 开发者自己用可以,但加到示例项目中不太好。
如果可以,直接源码引入也是好的。
Contributor
Author
|
是的 官方能维护这类工具包肯定是最好的
还有一个好处是官方更了解managed下哪些dll需要reference 昨天我自己梳理了下有点痛苦
在 2025年10月30日,01:10,OLC ***@***.***> 写道:
@BAKAOLC commented on this pull request.
________________________________
In DisplayItemValue/DisplayItemValue.csproj<#18 (comment)>:
</PropertyGroup>
<ItemGroup>
- <Reference Include="$(DuckovPath)$(SubPath)TeamSoda.*"/>
- <Reference Include="$(DuckovPath)$(SubPath)ItemStatsSystem.dll"/>
- <Reference Include="$(DuckovPath)$(SubPath)Unity*"/>
+ <PackageReference Include="TWT233.DMAPI.ModBuildConfig"/>
可以考虑官方fork一个然后发布并维护,这样就是移交到官方供应
—
Reply to this email directly, view it on GitHub<#18 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWDZFEMR76YDM2K37JKGUL32DYITAVCNFSM6AAAAACKJVZXYGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTGOJUHA3TSMRTGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Owner
|
感谢支持,不过我不太像引入额外的 Nuget 包,毕竟是一个示例工程。推荐 fork 一个,然后我可以在 README 贴一个参考链接。 |
Contributor
Author
|
我 fork 然后挂链接在 README 的话其实还是避免不了供应链风险,毕竟加入 README 也算官方背书的一部分
如前所述还是希望官方能做一个这类方便开发的套件的
On Nov 3, 2025, at 12:10, Xavier Seal ***@***.***> wrote:
[https://avatars.githubusercontent.com/u/20654166?s=20&v=4]xvrsl left a comment (xvrsl/duckov_modding#18)<#18 (comment)>
感谢支持,不过我不太像引入额外的 Nuget 包,毕竟是一个示例工程。推荐 fork 一个,然后我可以在 README 贴一个参考链接。
—
Reply to this email directly, view it on GitHub<#18 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWDZFDTJMNBJAG6NN645YL323IUTAVCNFSM6AAAAACKJVZXYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTINZYHA2DEOJQHA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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.
本 PR 引入了一个第三方 NuGet 包用以实现一键搭建开发环境:
测试:
虽然比较利好上手 Mod 开发,但由于涉及引入三方包,放在官方性质的指引中可能不合适,所以本 PR 需要讨论