安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题








Description:
During gameplay, when a projectile doesn’t hit any target (e.g. due to the TrueVisualMisses mod or other projectile flight modifications), the Postfix Infusion.Harmonize.Impact.Postfix assumes that both hitThing and __state are never null.
In such cases, this results in a NullReferenceException.
Log excerpt:
Exception ticking RNBullet_BlueDeath1778600: System.NullReferenceException: Object reference not set to an instance of an object
at Infusion.Harmonize.Impact.Postfix (Verse.Thing hitThing, RimWorld.Bullet __instance, Infusion.Harmonize.BulletImpactPatchState __state)
at RimWorld.Bullet.Impact (Verse.Thing hitThing, System.Boolean blockedByShield)
- PREFIX lucio.TrueVisualMisses: ...
- POSTFIX rimworld.sk.infusion: Void Infusion.Harmonize.Impact:Postfix(...)
Suggested fix:
Add null-safety checks in the Postfix:
if (__instance == null || __state == null || hitThing == null || hitThing.Destroyed) return;
This will make the mod resilient when other mods cause the bullet to have no hit target or alter the flow in Impact.
Reproduction notes:
Occurs when used with TrueVisualMisses (likely also with other mods altering projectile hits).
Happens with any bullet type if hitThing ends up null.
The real reason why this error has surfaced is because TrueVisualMisses is making some destructive changes to the bullet mechanics which causes my mod to fail. If you test my mod in vanilla, you won't face any similar issues. I have applied the fix that ChatGPT recommended because it does improve resilience against these type of issues but I am still not too optimistic.
I've updated my mod to 1.4.6. Please try it out and if you face any more issues, do let me know because I have a feeling I might have to set this mod as incompatible. Thank you again for the report.