[bug][warning] Need to delete old versions of mods after downloading an updated one

db0

Bane of Misoids
Joined
Aug 31, 2010
Messages
92
Location
Somewhere far beyond...
If you download a new version of a mod, you should delete the old version first. If you do not, their changes might be merged or start overwritting each other.

I noticed it firstly in my mod which uses SQL statements to increase the movements and when I created a new version, the moves of units just kept increasing.

Apparently, the list of installed mods will activate all versions of the mod you have installed at the same time, even though you see only one entry in your list. If you delete the old mod directories directly it will fix it. A commenter informed me that if you delete the mod from the installed mods list as well, it will clear the old verion as well but keep the newest.

This is obviously a bug. An updated version download should either overwrite the old one, or, if it's meant to leave it there as a fallback solution in case the new one breaks it, they should definitelly not activate together while having the old versions hidden.

Hope this helps anyone with weird issues :)
 
This is just speculation since I hadn't played with this feature but the problem might be that you hadn't set in the mod properties the number that verifies what version it is compatible with. If you leave it at 0, then it's contents will accumulate but if you set it to the current version, I bet it will wipe the mod of all previous versions and keep that version's stuff and later.
 
This is just speculation since I hadn't played with this feature but the problem might be that you hadn't set in the mod properties the number that verifies what version it is compatible with. If you leave it at 0, then it's contents will accumulate but if you set it to the current version, I bet it will wipe the mod of all previous versions and keep that version's stuff and later.

I had no idea such a function existed. I will check in the mod properties for it and run a few checks.
 
This is actually a problem with all mods. It affects SQL mods more simply because those sorts of things can stack -- XML/LUA edits typically result in fixed changes. Kael stated the mod browser is actually supposed to automatically update mods:

Its suppose to automatically update all your versions, but the installer may need to have a few bugs worked out. For me I had to manually go in and download the new version, but it just sat there as "Complete" without installing. To finish I had to go back to the Installed menu and delete the existing copy of Queen of the Iceni before the new copy would work.

Perhaps the current behavior is because each folder is named with the version number in it. If the folder was named without the version number, new downloads would overwrite old versions.
 
Indeed. Although it's a nice idea to keep previous versions in the system, in case a new one is broken and you'd like to go back, but at the moment the implementation is broken.

Good to know I wasn't just being silly though :)
 
If you download a new version of a mod, you should delete the old version first. If you do not, their changes might be merged or start overwritting each other.

I noticed it firstly in my mod which uses SQL statements to increase the movements and when I created a new version, the moves of units just kept increasing.

Apparently, the list of installed mods will activate all versions of the mod you have installed at the same time, even though you see only one entry in your list. If you delete the old mod directories directly it will fix it. A commenter informed me that if you delete the mod from the installed mods list as well, it will clear the old verion as well but keep the newest.

This is obviously a bug. An updated version download should either overwrite the old one, or, if it's meant to leave it there as a fallback solution in case the new one breaks it, they should definitelly not activate together while having the old versions hidden.

Hope this helps anyone with weird issues :)

Good to know. ;)
 
Although I have still not managed to get my mod working.... grumble grumble... I feel like I have seen something similar to this bug.

In Modbuddy, sometimes when I open it I will see a double or triple listing of the mod I am working with. When I click on the first name, it will say something like "mod no longer exists"... and that will come up for all/most copies of the name. But, if I then click "open" and find the file i want to work with, it opens in modbuddy.

That's probably completely unrelated to my problem of not getting my simple mod to work, but it makes me wonder about how solutions/builds are made/remade/duplicated.
 
Back
Top Bottom