ModTek v0.7.2 won't load your mod and I hope what I copied is the reason why. Hope this helps you to fix the problem. Thanks!
StoreTagEnabler 1.0 Loaded assembly StoreTagEnabler (v1.0.0.0) Invoking 'StoreTagEnabler.Init(String directory, String settingsJSON)' using parameter dictionary Error: While invoking 'StoreTagEnabler.Init', an exception occured System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: No target method specified for class StoreTagEnabler.StarSystem_InitializeShop (declaringType=BattleTech.StarSystem, methodName =InitializeShop, methodType=, argumentTypes=NULL) at Harmony.PatchProcessor.PrepareType () [0x00000] in <filename unknown>:0 at Harmony.PatchProcessor..ctor (Harmony.HarmonyInstance instance, System.Type type, Harmony.HarmonyMethod attributes) [0x00000] in <filename unknown>:0 at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00000] in <filename unknown>:0 at Harmony.CollectionExtensions.Do[Type] (IEnumerable`1 sequence, System.Action`1 action) [0x00000] in <filename unknown>:0 at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0 at StoreTagEnabler.StoreTagEnabler.Init (System.String directory, System.String settingsJSON) [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 ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2 paramsDictionary) [0x00000] in <filename unknown>:0 at ModTek.ModTek.LoadAssemblyAndCallInit (ModTek.ModDef modDef) [0x00000] in <filename unknown>:0
if i recall correctly this mod broke when they changed how stores work. or itsnt needed with the new way stores work..... a good indicator is that it hasnt been updated in over a year
and in the thread below this one the author says: "No since shops are completely overhauled and work nothing like before, so there is nothing to update this too. "
like morphyum said....stores work in a whole different way now. for all we know a mod like this wont be needed anymore. hopefully the authors of the gear mods will be able to figure things out.
Hey Morphyum, awesome mod. Any thoughts on how to do this (outside of shops) for mech availability? I.e., limit what the AI can generate as a deployable unit based upon daysSinceStart and/or OpFor house?
I really wish I understood what this mod does and how to use it. I want to use a mod that requires this one but I just can't seem to wrap my head around how to use it.
This mod is nothign a user really realizes, it enables other modders to make better shops based on rep and time. So if another mod says it needs this mod, just install it.
I do, but even reducing the value to 5 didn't work. I thought another mod might interfere with the tags but I've deleted everything else for the last test and still nothing.
Edit: And I've tested "time_60" too instead of "rep_taurian_80" (the testing career has been going for ~2600 days ^^ ), but that didn't work either. I'm out of ideas.
Edit 2: I FIXED IT! YOUR MOD WORKS GREAT!
Damn, it was just a simple formating error, a tab where there shouldn't have been one or something like this. From now on I'm swearing off using Notepad for anything and instead I will use jsoneditoronline.org for everything.
Also it seems that the shop.json NEEDS a tag in the ExclusionTags field, otherwise the whole json won't work at all. Just adding "planet_other_empty" works fine though.
I only have one small favor to ask, could you add the mercenary review board to the faction list that have tags? Because with dotPeek I couldn't find them anywhere and I want to edit my Star League - shops so that the blackmarket for instance will only sell you the really good stuff when they have heard of you before, i.e. you have a high enough MRB-score.
Thank you VERY much for your time and ALL the mods that you've already made!
Edit: For now I have circumvented the problem by using your faction tags and made a shop_def file for every faction plus a file for each planet with a blackmarket or star league tag and gave those the tags of the main ContractEmployers of the system. I gave each faction a minimum rep_requirement of 80 (Allied in vanilla), and for the indipendent system each dominant faction 60 for two, and 50 for three factions present. (160 for the real juicy stuff)
In short, I took 6 files and made 76 out of them ^^ Worth it! Thank you very, VERY much for your work, because otherwise I wouldn't have been able to do this tedious and glorious work ;P
I love your mods, Morphyum, but please consider expanding the description of you mods so lesser mortals like myself know what they hell they are and what they do and why we would want to use them. Basically, fire your public relations director and hire an ad agency to sell your mods. Please. Thanks bro! keep up the good work!
You might wanna put that in your description. ;) Your audience is the world of Battletech players, Morphyum, lets try and make mod descriptions sell the mod. I can tell you there are some lousy mod descriptions out there that dont tell the casual mod installer why they need the mod, nor the proper folders to put the mod in or the required mod dependencies. So that all adds to frustration and most users bypass those mods that otherwise could help the community grow. So anyway, just hope you take my words to heart and we have a great frontpage of mods for everyone to easily be able to enjoy. Thanks!
All that stuff takes time. that i don't have, i sadly don't earn a single penny doing these and already used 90% of my free time making them, i haven't played the game myself in like 3 weeks and besides my day job all i did was working on these mods. If anyone want's to send me a nicer description i would totally use it, but in my own time, this current version has to be enough :-/
I understand. All I'm asking for is more description on what the mod does and how it does it. Having the mods u make is more important than having our hand held. So Keep doing what youre doing and if you find the time... explanations are great.
30 comments
StoreTagEnabler 1.0
Loaded assembly StoreTagEnabler (v1.0.0.0)
Invoking 'StoreTagEnabler.Init(String directory, String settingsJSON)' using parameter dictionary
Error: While invoking 'StoreTagEnabler.Init', an exception occured
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: No target method specified for class StoreTagEnabler.StarSystem_InitializeShop (declaringType=BattleTech.StarSystem, methodName =InitializeShop, methodType=, argumentTypes=NULL)
at Harmony.PatchProcessor.PrepareType () [0x00000] in <filename unknown>:0
at Harmony.PatchProcessor..ctor (Harmony.HarmonyInstance instance, System.Type type, Harmony.HarmonyMethod attributes) [0x00000] in <filename unknown>:0
at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00000] in <filename unknown>:0
at Harmony.CollectionExtensions.Do[Type] (IEnumerable`1 sequence, System.Action`1 action) [0x00000] in <filename unknown>:0
at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0
at StoreTagEnabler.StoreTagEnabler.Init (System.String directory, System.String settingsJSON) [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 ModTek.Util.AssemblyUtil.InvokeMethodByParameterNames (System.Reflection.MethodInfo method, System.Collections.Generic.Dictionary`2 paramsDictionary) [0x00000] in <filename unknown>:0
at ModTek.ModTek.LoadAssemblyAndCallInit (ModTek.ModDef modDef) [0x00000] in <filename unknown>:0
or itsnt needed with the new way stores work.....
a good indicator is that it hasnt been updated in over a year
and in the thread below this one the author says:
"No since shops are completely overhauled and work nothing like before, so there is nothing to update this too. "
for all we know a mod like this wont be needed anymore.
hopefully the authors of the gear mods will be able to figure things out.
o_O
:(
-,-
I am not good at this, am I?
Example of a shopfile:
{
"ID" : "shopdef_Ammo_starleague_taurian",
"RequirementTags": {
"items" : [
"planet_other_starleague",
"planet_faction_taurian",
"rep_taurian_80"
]
},
"ExclusionTags" : {
"items" :
[],
"tagSetSourceFile" : ""
},
"Inventory" : [
{
"ID" : "Ammo_AmmunitionBox_Generic_GAUSS",
"Type" : "AmmunitionBox",
"DiscountModifier" : 1.0,
"Count" : 1
}
],
"Specials" : []
}
The above shop ONLY works if I remove "rep_taurian_80", so I don't know what's going on here.
And now I'mgoing to bed, haven't done that in a while.
I thought another mod might interfere with the tags but I've deleted everything else for the last test and still nothing.
Edit: And I've tested "time_60" too instead of "rep_taurian_80" (the testing career has been going for ~2600 days ^^ ), but that didn't work either.
I'm out of ideas.
Edit 2:
I FIXED IT!
YOUR MOD WORKS GREAT!
Damn, it was just a simple formating error, a tab where there shouldn't have been one or something like this.
From now on I'm swearing off using Notepad for anything and instead I will use jsoneditoronline.org for everything.
I really am NOT good at this -,-
Just adding "planet_other_empty" works fine though.
I only have one small favor to ask, could you add the mercenary review board to the faction list that have tags?
Because with dotPeek I couldn't find them anywhere and I want to edit my Star League - shops so that the blackmarket for instance will only sell you the really good stuff when they have heard of you before, i.e. you have a high enough MRB-score.
Thank you VERY much for your time and ALL the mods that you've already made!
Edit:
For now I have circumvented the problem by using your faction tags and made a shop_def file for every faction plus a file for each planet with a blackmarket or star league tag and gave those the tags of the main ContractEmployers of the system.
I gave each faction a minimum rep_requirement of 80 (Allied in vanilla), and for the indipendent system each dominant faction 60 for two, and 50 for three factions present. (160 for the real juicy stuff)
In short, I took 6 files and made 76 out of them ^^
Worth it! Thank you very, VERY much for your work, because otherwise I wouldn't have been able to do this tedious and glorious work ;P