• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

GidoM3CH

Private
3 Badges
May 2, 2018
10
0
  • Cities: Skylines
  • BATTLETECH
  • BATTLETECH - Digital Deluxe Edition
Was messing around with a few mods using BTML with Modtek.
I have downloaded 2 new sets of weapon mods, each have their own mod.json, weapon folder and shops folder.
Started a new campaign just to see if I can see them in the shop.
But I can only see one set, the other is not available in the shop.
I can see them in the shop when I tested them individually.
The repeating files I can see are the mod.json, the shop files shopdef_Weapons_all.json, base_0 and base_1 since both sets of weapon mods have each of it.
My question is, are these files overwriting each other?
Should I create only one for each of these files containing both weapons?

Thank you. And a big thank you to the people who created these mods and mod tools.
You're all making a great game even better. :)

Edit: Yup I think there can be only one for each of the shop files. I consolidated them under one modweapon folder and modshop folder and now it worked, can see both sets of weapons in the shop.
 
Last edited:
Disclaimer - the below is all based on what I have read about how ModTek works - as the darned thing just refuses to work well on my system. So, please correct me if I am wrong ;)



If the files have the same names, then they likely are overwriting one another, with the later taking precedence.

Other than the mod.json file (which each mod has to tell ModTek what to do).

You could likely rename the files - but you would also need to go into the file and change any references it makes to itself to that same file name

For example:
If Weapon_Hammer_Mjolnir_0-STOCK.json was in both mods, you could change it to Weapon_Hammer_Strombreaker_0-STOCK.json.
BUT, you also need to go into that new file and look for the ID line and change that to match names (without the .json at the end).
"Id" : "Weapon_Hammer_Stormbreaker_0-STOCK",

Lastly, if any other file refers to that file, you need to change it. This is more important with 'Mechs/Vehicles where the files reference :
mechdef_
chassisdef_
hardpointdatadef_
movementdef_

AND some may even reference weapons/components.


BUT - for your shop file issue, you really should be able to just change the name, then go into the file and change the name after "ID" to match.

There is also a way to choose the order mods are loaded, to help out with the overwrites.
 
Thanks I'll keep that in mind.
That's a shame if BTML is not working for you, IMO one of the best tools we have for modding.
With further improvements it could potentially be a standard of how mods are organized and injected into a game.
And wow, you were the author of JK_Variants mod, hat tip to you mate.
Haven't tried it yet, but the work you've put into that mod, amazing.
 
I appreciate that - though the mod really is a culmination of feedback from everyone who noticed issues, as well as help from other modders (@GenTask, @don Zappo , @Lynx7725 , @raok ) - making it far more solid than I could have just testing it on my own - so, team effort ;)

Yeah, I am hoping to get ModTek to work for me this weekend - I spent last night uninstalling everything so I could start fresh this eve.

I'd really love to see HBS pick up ModTek and make it officially incorporated into the game itself - would be pretty awesome :D