边缘世界 RimWorld

边缘世界 RimWorld

HugsLib
Vectorial1024 2020 年 3 月 3 日 上午 3:44
UpdateFeatureDef is unexpectedly "duplicated"
UpdateFeatureDef does not seem to be differentiated between different HugsLib mods.

Try:

1. Make two mods with distinct package ID that define UpdateFeatureDef with the same name
2. Load the game
3. Error: duplicated UpdateFeatureDef

This never happened before. I suspect it may have something to do with the latest fix to the ModIdentifier issue.

Current workaround is to change the UpdateFeatureDef from different mods to hav different names.
< >
正在显示第 1 - 8 条,共 8 条留言
Symbolic  [开发者] 2020 年 3 月 3 日 上午 5:41 
By name, do you mean def name, or modNameReadable?
Because if it's the latter, then it's a side effect of changing to the new news system which does not require an assembly with a matching ModBase.ModIdentifier in it.
The modIdentifier from the news defs is now only used to identify the "group" they belong to- as in, which version among them is the highest already seen, an whether the "group" is ignored by the player.
In theory, any mod can now display its news under any modIdentifier, including multiple ones.

If that is a problem (as in- not a theoretical one) I can see about putting some logging and safeguards in place.
Vectorial1024 2020 年 3 月 4 日 上午 3:19 
To clarify, the news defs have the same def name, but belong to different mods

Hmmm, I may need to go back to my mods to have a look again to be sure; I guess I may have deleted the modIdentifier tag after I read that the modIdentifier tag is not used to uniquely identify mods anymore

I may have misunderstood something
最后由 Vectorial1024 编辑于; 2020 年 3 月 4 日 上午 3:20
Proxyer 2020 年 3 月 8 日 上午 1:56 
It has nothing to do with threads, but let me ask a question.

In 1.0
I was able to put a translation of UpdateFeatures.xml in Languages\***\ DefInjected\HugsLib.UpdateFeatureDef\UpdateFeatures.xml, isn't it translatable in 1.1?

Currently, it is placed in the News folder instead of Def, so it is not recognized as Defs, so translation can not be applied.

Thank you.
Symbolic  [开发者] 2020 年 3 月 8 日 上午 10:49 
@Proxyer
Yes, this is a bit of a regression issue. Currently, there is no translation support for news defs- but adding it should be possible. I'll see if I can look into this eventually.

Proxyer 2020 年 3 月 8 日 上午 11:10 
@UnlimitedHugs
Thank you very much. The urgency is low, so please wait until other important matters are cleared. :lunar2019piginablanket:
Vectorial1024 2020 年 3 月 12 日 上午 7:12 
引用自 UnlimitedHugs
By name, do you mean def name, or modNameReadable?
Because if it's the latter, then it's a side effect of changing to the new news system which does not require an assembly with a matching ModBase.ModIdentifier in it.
The modIdentifier from the news defs is now only used to identify the "group" they belong to- as in, which version among them is the highest already seen, an whether the "group" is ignored by the player.
In theory, any mod can now display its news under any modIdentifier, including multiple ones.

If that is a problem (as in- not a theoretical one) I can see about putting some logging and safeguards in place.

I checked again, and indeed, if I keep the modIdentifier field as is, the news can be loaded just fine.

Thanks for the clarification anyways!
Symbolic  [开发者] 2020 年 3 月 24 日 上午 4:39 
@Proxyer
Re-enabled translation support for update news defs in the latest update.
The translation syntax has not changed, they still count as regular defs for translation purposes.
Proxyer 2020 年 3 月 24 日 下午 3:46 
@UnlimitedHugs
Thank you for your works!
I will begin the process of restoring the translation.
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50