Phantom Brigade

Phantom Brigade

Not enough ratings
Mech Affinity [OUTDATED]
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
245.957 KB
30 Aug, 2024 @ 1:14pm
1 Change Note ( view )

Subscribe to download
Mech Affinity [OUTDATED]

Description
Pilots now build affinity towards the mech frame they control, adding bonuses and incentive to keep pilots matched to specific mech frames.

Currently only provides a damage reduction bonus. The bonus is displayed on the pilot's info tab when they're assigned to a mech they have enough affinity for.

To uninstall: make sure to go into the mod config (can be found in your mods folder, in the mech affinity folder, in the config folder) and change uninstall mode to "true". Then, load & save your game once to remove all mech affinity data from your save file.

For modders interested in using the system, you can access mech affinity data and provide your own bonuses effects. If you have questions, just shoot me a message on the Brace Yourself Games Discord server!
18 Comments
Max  [author] 18 Apr @ 4:10am 
Marked the mod title as outdated. Considering the developers' focus is adding some form of pilot progression now, I'm going to hold off on updating it.
Dick Stealing Weasel 18 Apr @ 12:31am 
The mod is indeed broken. Loading a save deletes all pilots.
Max  [author] 12 Apr @ 1:48pm 
The mod might be outdated / broken with the latest updates. I haven't played in a while. If it doesn't work on its own, it probably is broken.
Dammokles 12 Apr @ 5:09am 
at HarmonyLib.Internal.Patching.ILManipulator.WriteTo (Mono.Cecil.Cil.MethodBody body, System.Reflection.MethodBase original) [0x00066] in <474744d65d8e460fa08cd5fd82b5d65f>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WriteTranspilers () [0x00084] in <474744d65d8e460fa08cd5fd82b5d65f>:0
at HarmonyLib.Public.Patching.HarmonyManipulator.WriteImpl () [0x0002b] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Dammokles 12 Apr @ 5:08am 
Rest of the log in 2 parts:

at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <695d1cc93cca45069c528c15c9fdd749>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
at HarmonyLib.Internal.Patching.ILManipulator.ApplyTranspilers (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Func`2[T,TResult] getLocal, System.Func`1[TResult] defineLabel) [0x00093] in <474744d65d8e460fa08cd5fd82b5d65f>:0
Dammokles 12 Apr @ 4:58am 
I seem to be getting the same error. Relevant portion of BepInEx log below:

[Error : HarmonyX] Failed to patch void CIViewBasePilotInfo::RedrawForPilot(PersistentEntity pilot, bool editable, string header, bool inMech): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: HarmonyLib.CodeMatcher HarmonyLib.CodeMatcher.SearchBackwards(System.Func`2<HarmonyLib.CodeInstruction, bool>)
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <695d1cc93cca45069c528c15c9fdd749>:0
--- End of inner exception stack trace ---
jordan shrubb 26 Feb @ 3:28pm 
sorsorry for the delay i work away :).

so the only errors seem to be 10 from djs cannons on neuxs i am removing that and testing again :)
Max  [author] 24 Feb @ 6:25am 
Are there any errors in your BepInEx log?
jordan shrubb 23 Feb @ 9:13am 
Hi it is enabled. version v0.2.0 mech affinity. the pilots state they have done x missions with a mech in there bio and just underneith that it states there are no affinities. wondering if its a mod conflict ?
Max  [author] 23 Feb @ 7:27am 
It's been a *while* since I last looked into this. Are you sure the mod is enabled?