边缘世界 RimWorld

边缘世界 RimWorld

HugsLib
Kolljak 2017 年 1 月 28 日 下午 7:00
Bugs
Post your bugs here.
< >
正在显示第 1 - 15 条,共 405 条留言
Kolljak 2017 年 1 月 28 日 下午 7:00 
Ran into a strange conflict with psycology mod

[HugsLib] Exception during DetourMethodByAttribute: System.Exception: Failed to detour method Pawn.CheckAcceptArrest to _Pawn._CheckAcceptArrest (assembly: Psychology) ---> System.Exception: Verse.Pawn.CheckAcceptArrest was already detoured to Psychology.Detour._Pawn._CheckAcceptArrest.
at HugsLib.Source.Detour.DetourProvider.CompatibleDetourWithExceptions (System.Reflection.MethodInfo source, System.Reflection.MethodInfo destination) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.DetourMethodByAttribute (System.Reflection.MemberInfo info, System.Attribute attrib) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at HugsLib.Source.Detour.DetourProvider.ThrowClearerDetourException (System.Exception e, System.Reflection.MemberInfo sourceInfo, System.Reflection.MemberInfo targetInfo, System.String detourMode) [0x00000] in <filename unknown>:0
at HugsLib.Source.Detour.Helpers.DetourMethodByAttribute (System.Reflection.MemberInfo info, System.Attribute attrib) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
HugsLib.Utils.ModLogger:ReportException(Exception, String, Boolean, String)
HugsLib.Source.Detour.Helpers:DetourMethodByAttribute(MemberInfo, Attribute)
HugsLib.Source.Attrib.AttributeDetector:CallHandlersForAttributes(List`1, Dictionary`2)
HugsLib.Source.Attrib.AttributeDetector:ProcessNewTypes()
HugsLib.HugsLibController:LoadReloadInitialize()
HugsLib.HugsLibController:Initalize()
HugsLib.Core.UnityProxyComponent:Start()

https://gist.github.com/56d7fbd1467e1e978eaa4abbba45e926
Kolljak 2017 年 1 月 28 日 下午 7:56 
it would seem hugslib and pysc are not playing nicely together.
Symbolic  [开发者] 2017 年 1 月 29 日 上午 2:14 
I couldn't reproduce the error with just HugsLib and the latest Psychology running.
Not sure what the issue is here, but a full log might help (press Ctrl+F12 after the error is shown).
Also, I would check that neither HugsLib nor Psychology appear twice in the Mods menu.
Kolljak 2017 年 1 月 29 日 上午 6:27 
https://gist.github.com/a520115a2ad27698dfab22f34e4ecb5c

its pretty much whats under the bug below.
最后由 Kolljak 编辑于; 2017 年 1 月 29 日 上午 6:28
Kolljak 2017 年 1 月 29 日 上午 6:33 
working on things on my end too trying to narrow down what it could be.
Kolljak 2017 年 1 月 29 日 上午 6:43 
fixed the error but caused a ton more by placing Psyc above hugs lib. but hugs lib has to be on top and psyc needs to go to the lowest spot possible.
Symbolic  [开发者] 2017 年 1 月 29 日 上午 8:11 
Doesn't look like the log has any additional details. HugsLib should definitely be loaded before Psy, though.
If you manage to isolate the conflict, let me know. It would have to be another mod with a dll.
Kolljak 2017 年 1 月 29 日 上午 8:19 
weird thing is it didnt do this before i unloaded my mods reloaded them and now i get the error.
Kolljak 2017 年 1 月 29 日 上午 8:25 
ok so i loded just your mod only and psyc and sexuality traits mod. no errors so it has to be another mod ill begine the LONG procces of adding them 1 at a time quiting and restarting till i run into it.
Kolljak 2017 年 1 月 29 日 上午 9:53 
Almost done :D 95% like 8 more mods to go.
Kolljak 2017 年 1 月 29 日 上午 10:07 
Sigh didnt get the error but found the culprit.

[ExpandedIncidents] Could not detour Pawn.CheckAcceptArrest! If you are using Psychology, all is well.
Verse.Log:Warning(String)
ExpandedIncidents.Detour._Pawn:DetourFallbackHandler(MemberInfo, MethodInfo, Exception)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
HugsLib.Source.Detour.Helpers:TryCallDetourFallbackHandler(MethodInfo, MemberInfo, Exception)
HugsLib.Source.Detour.Helpers:DetourMethodByAttribute(MemberInfo, Attribute)
HugsLib.Source.Attrib.AttributeDetector:CallHandlersForAttributes(List`1, Dictionary`2)
HugsLib.Source.Attrib.AttributeDetector:ProcessNewTypes()
HugsLib.HugsLibController:LoadReloadInitialize()
HugsLib.HugsLibController:OnDefReloadDetected()
HugsLib.Core.DefReloadWatcher:<Update>b__0()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()

https://gist.github.com/a908d8b639f52111aa7d03c57e7ea064

all is well now.

My Theory

Adding all the mods at once causes conflicts so adding them in segments works better.
[mmmmmmmmmmmmmmmmmmm] = x
[mmm] [mmm] [mmm] [mmm] [mmm] = :D
Kolljak 2017 年 1 月 29 日 上午 10:23 
yes sir indeed got the error agian removed expanded and its gone. yay. so it is without a doubt Expanded Inscidents
Symbolic  [开发者] 2017 年 1 月 29 日 上午 11:20 
Ah yes, I got the error now. It happens when loading Expanded Incidents before Psy. However, the error message has inaccurate information due to a bug in HugsLib, which I'll address on my end.
If you want, you could let the author of Psy know about this conflict- maybe he would want to add some fallback code for better compatibility.
Thank you for taking the time to research this- it will benefit mod authors, as well as other players.
Kolljak 2017 年 1 月 29 日 上午 11:36 
Nah i just removed expanded as psy adds those events in. it might be a case of double modded you know two of the same thing. and your welcome :D
最后由 Kolljak 编辑于; 2017 年 1 月 29 日 上午 11:37
< >
正在显示第 1 - 15 条,共 405 条留言
每页显示数: 1530 50