Quick questions about mods
GrimLefourbe
Member Posts: 637
Hi, i just have a few questions.
Can a mod have two setup-modname.tp2 in its files?
What's the difference between tp2 and tpa ?
Some mods have their tp2 outside of modname folder, generally the folder isn't even named folder. Is it safe to rename the folder and move the tp2 inside? If no, can some find/replace magic solve that?
Thanks.
Can a mod have two setup-modname.tp2 in its files?
What's the difference between tp2 and tpa ?
Some mods have their tp2 outside of modname folder, generally the folder isn't even named folder. Is it safe to rename the folder and move the tp2 inside? If no, can some find/replace magic solve that?
Thanks.
0
Comments
You typically have one tp2 and multiple tpa/tph files that are included from the tp2 file. Extensions tpa and tph are conventions, you could use another extension as well.
So if there's a .tp2 outside of its folder and I want to put it in its folder, replacing "oldname/" by "newname/" in the .tp2 wouldn't work since there's also "oldname/" in the .tpa/.tph. That's annoying.
can be easily fixed: http://www.makeuseof.com/tag/how-to-find-and-replace-words-in-multiple-files/
Enjoy
While standardizing every mod would be doable, I'm not sure it's a very good idea to force it.
I'm trying to extract mods with python but not all mods play well with being extracted and not all mods have their files at the same place. Mods aren't always layered the same way and they don't always come with a version of weidu (some mods play badly enough with extraction that weidu and the .tp2 can be in folders that aren't even in the same branch after being extracted) so i'm looking for a way to find the different pieces of a mod and put them back together in the game folder so it can be installed. I currently list all files in the extracted directory and subdirectories and identify the .tp2, I then try to find the folder through the .tp2. However there are a number of complications so I want to make sure the .tp2 will be unique(if the .tp2 I find isn't in the folder with the rest of the mod's assets it won't work).
I also check for the backup folder in case it's there as I assume the backup folder would be inside the mod folder all the time.
I'm thinking that if i'm going to find the different pieces of the mod and put them back together, I might as well clean it up at the same time, plus self contained mods play more nicely together when it comes to not risking overwriting other mod's files.
The issue is that while I know some about mods, i've never really delved into weidu enough to know how unusual mods can get.