-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A question regarding file/folder priority #2
Comments
Here is fine :) The problem with not having a standard is that... there's no standard. So each mod manager can do it their own way. AFAIK, Mod Organizer 2's installer merges the result (I'm not very fluent in C++) and Wrye Bash's upcoming installer completely overrides the losing folder. |
Thanks for responding! If you don't mind me asking, what were the reasons for Wrye Bash's design choice of deviating from what MO2 already does, if it's "upcoming" and there's no standard? Wouldn't it cause some FOMODs to break on one mod manager but not the other? Thanks, |
I would highly recommend not relying on implementation details such as this on your installer. That said, Wrye Bash's way was not so much a design choice as the dev that is working on that (me) not really thinking about that specific case :P That said, it's still in alpha and thank you for bringing this to attention, we'll have to make a decision on it. wrye-bash/wrye-bash#380 |
For my installer, I'm currently having it support a The I briefly looked at the wrye bash project, and it doesn't look like it's something that's pip-installable as a library, so any code in it seems to be difficult to import and use. Do you expect to backport the wrye bash installer to pyfomod at some point? Or perhaps have another more general implementation in pyfomod? Someday I hope to get rid of my installer and just use one that comes with the library if possible (assuming it has enough features). I know back in pyfomod 3.3 there was an installer (I tried it and there were issues - but that's old history 😃), are there plans to bring that back in pyfomod later? |
The pyfomod installer is getting rewritten for the new API. Can you test the folder priority on MO2? That would clear any issues. |
Hi GandaG, So I made a sample fomod to test out MO2's behavior: myfomod.zip The fomod has the following files:
In case1:
case2:
case3:
I did 3 installs, each time for each of the above cases, and observed the following results: case1:
case2:
case3:
So, the following is MO2's behavior:
Anyway, I think my questions are sufficiently answered by now, and maybe it would be a bit helpful to you too? In any case, thanks so much for documenting fomods and also to developing pyfomod. It made my life tons easier 😃. |
Could you also test with different priorities? To check if they are merged as well? |
Oh crap, I forgot about that case. My mind was stuck with the idea of the same priorities overriding each other for some reason. Anyway, will test after I get home today. |
Okay, modified my test fomod to have different priorities: myfomod-differentpriorities.zip case1:
case2:
case3:
case1 output:
case2 output:
case3 output:
Basically same as before, files are merged as much as possible. |
Thanks for all the help :P |
@leontristain the last test case I need (I think) is installing folders under a file tag. Can you do that? Something like:
For both priority cases (different and equal) and destination fields (empty, missing, etc.). If you come up with other permutations it would be appreciated. Thank you! |
Sure, I will do that within the next few days (probably tomorrow - going to get home quite late today). |
myfomod-allfiletags-differentpriorities.zip Installing folders with file tags with different priorities: Case 1: destination specified nonempty
Case 2: destination specified empty
Case 3: destination unspecified
In all 3 cases, MO2 displays warning messages in the logs with the messages "foo not found" and "bar not found". Installing folders with file tag with same priorities is the same as different priorities. So in conclusion, it seems that when folders are being referred to with file tags, MO2 will simply warn and ignore. |
Hi GandaG,
Not sure if this is the right place to do this. I just have a simple question about the fomod specification, regarding file/folder priority.
If two folders containing different files have the same destination, would the result be merged or would the winning folder completely override the existence of the losing folder? Likewise, if a folder wins in priority over a file with destination path underneath that folder but does not actually present a file conflict, would the file end up getting installed or omitted?
Thanks in advance for any answers!
leontristain
The text was updated successfully, but these errors were encountered: