Most mods that are in are working directly with Mod Loader. Will see, maybe at some point have time to convert all for ModTek. In the end ModTek makes it look a bit better in your folder but not much other benefits.
Trying this out.. . Where are i installing these files exactly? I unziped file and put the exact way it unpacked into the mods folder... So folder "StabilePiloting" and "StabilePiloting.dll" into BATTLETECH/Mods
I got these errors
Found DLL: StabilePiloting.dll 7:35:54 PM - StabilePiloting.dll: Found and called entry point with void param: StabilePiloting.Init 7:35:54 PM - StabilePiloting.dll: While loading a dll, an exception occured: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "D:\Steam SSD Library\steamapps\common\BATTLETECH\mods\StabilePiloting\Log.txt". at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0 at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) at StabilePiloting.Logger.LogError (System.Exception ex) [0x00000] in <filename unknown>:0 at StabilePiloting.Settings.Load () [0x00000] in <filename unknown>:0 at StabilePiloting.StabilePiloting.Init () [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 at BattleTechModLoader.BTModLoader.LoadDLL (System.String path, System.String methodName, System.String typeName, System.Object[] prms, BindingFlags bFlags) [0x00000] in <filename unknown>:0
does it matter where the .dll sits? should it be in the "StabilePiolting" folder with the .JSON file?
Should not be in the same folder with the json. New ModTek is done so that all are in the same folder, I am still supporting directly Mod Loader so files are under Mods folder. Will make all to support ModTek at some point.
@taintedloki, or you tested and it works from the subfolder as well? Maybe ModTek automatically checks from there as well then.
It says there... "Could not find a part of the path "D:\Steam SSD Library\steamapps\common\BATTLETECH\mods\StabilePiloting\Log.txt"."
ive tested it a bit more now, the dll for this mod needs to be in the mods folder while the json goes into the stabilepiloting folder. Ive its all where its supposed to be, the way jaajoo has it in the mod download, this is what you should see in BTModLoader.log
StabilePiloting.dll: Found and called entry point with void param: StabilePiloting.Init Found DLL: StopScrolling.dll If this is what you see the mod is loaded and working.
Interesting idea, how does your mod account for health added by the Cockpit Mod? There shouldn't be a stability malus until the pilot's actual health is decreased.
edit: also, you misspelled "stable" :) you should change it if you can, it will help others find your mod if they're searching.
1. I like how Stable Piloting is under "Balance" category. :) 2. Can this be adapted to include a reduction in stability damage per Reserve? (Based on Piloting skill, not perk.)
16 comments
See this PR for reference: https://github.com/citizenSnippy/ArmorRepair/pull/2
Thank you for an awesome mod!!
When you get a chance, jaajoo, you should fix those. Take pride in your work! ;p
https://www.nexusmods.com/battletech/mods/198
Most mods that are in are working directly with Mod Loader. Will see, maybe at some point have time to convert all for ModTek. In the end ModTek makes it look a bit better in your folder but not much other benefits.
So folder "StabilePiloting" and "StabilePiloting.dll" into BATTLETECH/Mods
I got these errors
Found DLL: StabilePiloting.dll
7:35:54 PM - StabilePiloting.dll: Found and called entry point with void param: StabilePiloting.Init
7:35:54 PM - StabilePiloting.dll: While loading a dll, an exception occured:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path "D:\Steam SSD Library\steamapps\common\BATTLETECH\mods\StabilePiloting\Log.txt".
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
at StabilePiloting.Logger.LogError (System.Exception ex) [0x00000] in <filename unknown>:0
at StabilePiloting.Settings.Load () [0x00000] in <filename unknown>:0
at StabilePiloting.StabilePiloting.Init () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at BattleTechModLoader.BTModLoader.LoadDLL (System.String path, System.String methodName, System.String typeName, System.Object[] prms, BindingFlags bFlags) [0x00000] in <filename unknown>:0
does it matter where the .dll sits? should it be in the "StabilePiolting" folder with the .JSON file?
Yes, it should be in the StabilePiloting with the json, it wont work otherwise.This is for some mods, ignore this.@taintedloki, or you tested and it works from the subfolder as well? Maybe ModTek automatically checks from there as well then.
It says there...
"Could not find a part of the path "D:\Steam SSD Library\steamapps\common\BATTLETECH\mods\StabilePiloting\Log.txt"."
Any idea how that is possible?
StabilePiloting.dll: Found and called entry point with void param: StabilePiloting.Init
Found DLL: StopScrolling.dll
If this is what you see the mod is loaded and working.
edit: also, you misspelled "stable" :) you should change it if you can, it will help others find your mod if they're searching.
It reads injuries from the pilots data, so I would assume that to be just the injuries. Would need to double check.
2. Can this be adapted to include a reduction in stability damage per Reserve? (Based on Piloting skill, not perk.)
1 quest.. In your discrption. "Now yet supports modtek" it does or doesn't?