Files from dependency mods being overwritten

Files from dependency mods being overwritten

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Files from dependency mods being overwritten

Post 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?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Files from dependency mods being overwritten

Post 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.
User avatar
Funkencool
Posts: 542
Joined: 02 Dec 2011, 22:31

Re: Files from dependency mods being overwritten

Post 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.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Files from dependency mods being overwritten

Post 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.
Post Reply

Return to “Game Development”