Page 1 of 1

Files from dependency mods being overwritten

Posted: 14 May 2014, 08:25
by gajop
It seems that if you have two files from different mods with the same name (path?) only one will be available. Is it possible to avoid files from dependency mods being overwritten?

To illustrate it in an example, imagine you have mod A which has mods B and C as dependency. Now if both mod B and mod C had a file called "modpicture.png" (in the root folder) only one of those files will be available. Is there any way to get both of these files?

Re: Files from dependency mods being overwritten

Posted: 14 May 2014, 10:59
by Forboding Angel
The last file in the list takes precedence.

The dep system is old and pretty wonky, and seriously needs a bit of a facelift, but in it's hayday it helped quite a bit.

AA was a very intricate web of dependencies designed to keep update download sizes to a minimum.

Re: Files from dependency mods being overwritten

Posted: 14 May 2014, 13:11
by Funkencool
I noticed this when one of my widgets was showing credits.txt from a maps root rather than the games root. I guess in my case renaming the file has no drawbacks but it would still be nice to have a better solution if one exists.

Re: Files from dependency mods being overwritten

Posted: 14 May 2014, 14:34
by Silentwings
I have never tried to do it but I have wondered if it was possible by changing the VFS mode (http://springrts.com/wiki/Lua_VFS), although the "unimplemented" comment on the wiki suggests someone once planned to write it but that its not been done.