边缘世界 RimWorld

边缘世界 RimWorld

HugsLib
Orion 2020 年 3 月 27 日 上午 11:17
Please log assembly file version of loaded mods
Hey there,

I'm not sure if it was always like this, but I noticed that in HugsLib logs I can only see the assembly version of mods. This version usually doesn't change (or shouldn't, since it breaks mods relying on the assembly), it's kind of useless for debugging.

I often get reports from players where I suspect they're running an old version of some mod, but I can't tell from their logs. Could you please log the assembly file version (as you do with HugsLib itself)?

This would be of great help. Thanks in advance.
< >
正在显示第 1 - 10 条,共 10 条留言
Symbolic  [开发者] 2020 年 3 月 27 日 下午 12:57 
Hey!
Currently the assembly file version is logged whenever it is greater than the assembly version- for all assemblies, not only HugsLib. Have you noticed any instances where that is not the case?
Orion 2020 年 3 月 27 日 下午 1:36 
Yeah... I my list it doesn't show for any mods, except HugsLib. I can link you a log tomorrow...
Symbolic  [开发者] 2020 年 3 月 28 日 上午 5:34 
I assume some of these other assemblies have an AFV greater than their AV?
Sure, I'll investigate.
Orion 2020 年 3 月 28 日 上午 5:47 
I'm only using 3 digits... So like 1.1.4 ... Could that be the problem?
Orion 2020 年 3 月 28 日 上午 5:48 
Isn't the comparison to the AV a bit specific? Maybe it'd be better to check if it's different then the default value...
Symbolic  [开发者] 2020 年 3 月 28 日 上午 9:41 
That might be the problem- perhaps System.Version assumes there is a leading zero digit.
The original idea with "greater than" was to filter out cases where the author just doesn't bother incrementing AFV along with AV. However, I probably will switch that to "not equal" for more clarity.

I looked at some other logs, and the current system seems to be working for some mods:
TD Enhancement Pack(Uuugggg.TDPack): 0Harmony(2.0.0.8), TD_Enhancement_Pack(av:1.0.0.0,fv:1.3.8.0) 4M Mehni's Misc Modifications(Mehni.4M): 4M(av:0.1.1.7,fv:0.1.1.8)
Orion 2020 年 3 月 28 日 上午 11:08 
I guess you could do that for av too, then. I'm leaving it default for my mods since I realized that when I change it, mods break that are built against my assemblies.
Symbolic  [开发者] 2020 年 3 月 29 日 上午 6:40 
Just released an update with the changes.
Also, I sure am glad you reported this.
Turns out, the LoadFolders configuration was being ignored while looking up the AFV. As a result, AV was reported correctly, while the AFV was read from the same assembly for 1.0.
Orion 2020 年 3 月 29 日 上午 8:41 
Ah, cool. That might have been part of the issue as well.
< >
正在显示第 1 - 10 条,共 10 条留言
每页显示数: 1530 50