How do I write a .tp2 file to install specific components to various games BGEE, BGEE SoD and BGEE2
Greener
Member Posts: 430
As the title would suggest, I have a mod that I'm trying to make compatible with BGEE, BGEE SoD and BGEE2 and different components need to be installed in different games.
I'm sure there is a way to specifically check and only install a component in one version of the game, but I'm unclear how to write it, any help would be appreciated.
Cheers,
a.
I'm sure there is a way to specifically check and only install a component in one version of the game, but I'm unclear how to write it, any help would be appreciated.
Cheers,
a.
0
Comments
REQUIRE_PREDICATE GAME_IS ~sod~...
So far I've been able to get the following to work but I believe it's a workaround:
BACKUP ~Kensai Kit - BGEE/Backup~
AUTHOR ~Greener~
VERSION ~1.7~
BEGIN ~Kensai Kit Revision~
ACTION_IF FILE_EXISTS_IN_GAME ~OH3000.ARE~ THEN BEGIN // BGEE check
STRING_SET ~25362~ // New Kensai kit description (character generation)
~Various text ect...~
END
BEGIN ~Optional SoD Content~
ACTION_IF FILE_EXISTS_IN_GAME ~bdcru112.cre~ THEN BEGIN // BGEE SoD check
COPY_EXISTING_REGEXP GLOB ~^_?bdcru112\.cre$~ ~override~ //This is specific SoD content
REPLACE_CRE_ITEM ~kensai~ #0 #0 #0 ~NONE~ ~WEAPON1~ EQUIP
END
Any suggestions?
Note that weidu recognizes sod as bgee, so you will want to do a similar workaround if you want something to install in bgee but not sod