Kexikus

TSLPatcher: Only modify file if it's present

Recommended Posts

I'm currently setting up the installer for my Full Jedi Council mod v2.0 and I've run into a problem.

 

My mod edits holorec.dlg and since this file is also modified by several other mods (TSLRCM, TSLRCM No Overlay, PartySwap to name a few) I use TSLPatcher to apply my changes to a file already present in the Override. The problem is that TSLRCM places its edited holorec.dlg in 950COR.mod and not in the Override. So there are two options:

Apply my changes to the holorec.dlg in 950COR.mod which could be either from TSLRCM or from the 950COR.mod that I install if it's not present. But then any of the other mods that places holorec.dlg in the Override would override my changes.

The other option would be to make my changes to holorec.dlg in the Override. That way I could apply them to a holorec.dlg already installed there by other mods but that results in an issue when installing on a vanilla installation or with only TSLRCM. Then I'd have to provide a holorec.dlg that these changes could be applied to. So either I'd use the vanilla holorec.dlg for that, overriding TSLRCM's changes or the TSLRCM file, installing TSLRCM changes for a user who probably doesn't want them or he'd have installed TSLRCM before doing so.

 

I could of course just put TSLRCM as a requirement in my read-me but I'd rather avoid that. Ideally I'd just tell TSLPatcher to modify the holorec.dlg in 950COR.mod and if holorec.dlg is present in the Override folder modify that as well. The first part is no problem but so far I've not been able to tell TSLPatcher to do the latter. Is this even possible? And if it is, how?

Share this post


Link to post
Share on other sites

Maybe you could set your TSLPatcher to edit both only if they are present, omitting them if they are not. I think you could do this with setting only GFFEdit and not placing the vanilla .dlg in the directories, if the file is not present then TSLPatcher has nothing to edit and just skips it with a warning.

Share this post


Link to post
Share on other sites

I tried not having the file in the tslpatchdata folder but then TSLPatcher would open a window asking me to select the file and if I abort this prompt, TSLPatcher will stop the installation with a critical error.

Share this post


Link to post
Share on other sites

Strange. Maybe you should set up different options (if you have no holorec.dlg in your Override and if you have).

Share this post


Link to post
Share on other sites

I guess that there is not much to do about it then aside from giving the headers some kind of friendly name, like "With TSLRCM- use this if you have TSLRCM installed. Note that if you use any mods which place a holorec.dlg in your Override folder, you should use non-TSLRCM option" and "Non-TSLRCM - use this if you don't use TSLRCM or have its holorec.dlg overwritten through Override". Considering that any mod which overwrites holorec.dlg in 950COR.mod keeps a camera effect, and any mod which places it in the Override doesn't, TSLRCM could add a camera effect to any of the added nodes while Non-TSLRCM option wouldn't.

Share this post


Link to post
Share on other sites

Install options would definetly be a possibility but I was hoping to avoid them.

...But.... But that's exactly what they were designed for! :o

 

I mean, you're trying to do something while ignoring the feature designed to do what you want. I'm just not seeing the logic here.

Share this post


Link to post
Share on other sites

...But.... But that's exactly what they were designed for! :o

 

I mean, you're trying to do something while ignoring the feature designed to do what you want. I'm just not seeing the logic here.

For me the primary use install options is and has always been to provide different versions of a mod and I've seen them used for compatibility options. If the different versions would come down to more than the location of one file I would have used install options immediately but I figured that editing a .gff file only if it's present is not too far from what I knew TSLPatcher can do and thus might be available as a feature.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.