At this point I am just going to wait for 1.8 to see if I can still build what I want. I think it will be possible. The question will be how.
¯\_(ツ)_/¯ Well I don't know for certain about the advanced json merge function, but looking at for example JK_Variants many just do a wholesale "AddToDB" and call it good. If I'm wrong someone if free to correct me.... so if it's working what is the correct way to do this?
This most likely is not working because you're trying to advanced merge "JSONPath": "InitialTonnage" to the mechdef_ and not the chassisdef_ as chassisdef_ appears to be the only place that JSONPath is called.Yea! This is the stuff we wanted, thank you very much.
Ho dang, so trying to do this with cyclops and modtek returns an error:
Code:{ "TargetID": "mechdef_cyclops_CP-10-Q", "Instructions": [ { "JSONPath": "InitialTonnage", "Action": "Replace", "Value": 35.2 } ] }
Error: AdvancedJSONMerge: "(mod)\cyclopsQ.json" could not resolve type for ID: mechdef_cyclops_CP-10-Q. Skipping this merge
cyclopsQ.json looks like this:
¯\_(ツ)_/¯ Well I don't know for certain about the advanced json merge function, but looking at for example JK_Variants many just do a wholesale "AddToDB" and call it good. If I'm wrong someone if free to correct me.
That said:
This most likely is not working because you're trying to advanced merge "JSONPath": "InitialTonnage" to the mechdef_ and not the chassisdef_ as chassisdef_ appears to be the only place that JSONPath is called.
from the modtek github (from one of the issues):I have a question about the itemcollection files. I made half-ton incremental Ammo bins in a mod successfully, but I can't add them to the shop. Does this modtek function work for the .csv files, too?
hope that helps.The mod.json is a JSON file -- you can read more about JSON here. Keep in mind that JSON is just the structure, the names of the fields are ModTek specific.
In your manifest in your mod.json, you can include your .csv files that you would like to append. Lets say that I have a directory called itemCollections that has all of them in it, my mod.json would include something like:
This "ShouldAppendText" flag is what tells ModTek that these are incomplete files that should simply be tacked on to the existing file. These files only include the lines that you want to appear at the end of the file and should include a newline at the end of the last lineCode:"Manifest": [ { "Type": "ItemCollectionDef", "Path": "itemCollections", "ShouldAppendText": true }, ]
My .csv file for adding a new item (in this case, a half load of MG ammo) would look like this:
Code:Ammo_AmmunitionBox_Generic_MG_Half,AmmunitionBox,0,10
from the modtek github (from one of the issues):
hope that helps.
To confirm you're trying to edit, and not make a new variant based on a DLC mech? New variants from what i've looked at can possibly work. As for edited variants, at this point, I think the problem has some of the same issues some of the more advanced mod content is running into. But don't quote me on that.It really does! Thanks!
But now I am running against the same wall as before in this thread. No matter how I do the json merging, the DLC mechs do not change.
"Manifest": [
{ "Type": "MovementCapabilitiesDef", "Path": "movement", "AddToDB": true }
]
I still haven't been able to mod anything in the DLCs using the 1.8 built-in loader,