Not a bug but the website should allow replacement of an existing module

I’ve done some minor changes but because it will not allow a new copy of the same file I will have to create a new version etc. Minor changes shouldn’t really warrant this should it?

‘Minor changes’ is a vague definition and can hold widely different interpretations from the hundreds of Vassal module creators on the platform, which can result in unstable and unpredictable module experience for players across the board.

My 2 cents.

A fundamental rule of version numbers is that if two releases have the same version number, then they must be the same.

It follows from this that if you are making a change to a release, then the resulting new release must have a distinct version number. This isn’t peculiar to Vassal. It is universally how version numbers are expected to work.

If you make a change and release, increment the version number. Version numbers are not precious. You will not run out of them.

1 Like

Yeah I get it, had a bug in some layer math and had to create a new module for it to comply.

Look at it this way: If you were to release an updated module with the same version number, how would anyone who has the bad (let’s even be diplomatic and just say “old”) version know whether they have the old version, or that they need to update to get the most-current module?

3 Likes

This was discussed recently in another thread: Module ‘Library’ - Sponsor’s Onus.

Since the Game Library now enforces Semantic Versioning, why not take advantage of that? Semantic versions have the form major.minor.patch[-prerelease][+build], where major, minor, and patch are non-negative whole numbers (zero or positive integers), prerelease is ASCII letters and numbers, as well as some punctuation, while build is any combination of printable ASCII characters. major, minor, and patch are mandatory while both prerelease and build are optional (hence the [ and ] above)

  • If you do a “minor change” then that would correspond to a new patch release - e.g., going from release 1.2.3 to 1.2.4.
  • If you do a more elaborate release - in particular one that makes previous saves and logs incompatible with the new module release - increase the minor number - e.g., going from 1.2.4 to 1.3.0.
  • If you make more radical changes, such as a different layout, new graphics, etc., then an increase in the major version could be called for - e.g, going from 1.3.5 to 2.0.0.

Module developers are free to choose what ever release scheme they want. I would, however, recommend an approach like the above. That makes it clear to users what they can expect.

  • If they take a newer patch release (i.e., same major and minor version numbers), then they should expect that saves and logs are still compatible.
  • If they take a new minor release (same major version number), then old saves and logs may not work, but the module will behave more or less like before.
  • With a new major release, the module could have a very different feel to it.

Whatever release scheme a module developer chooses, it should probably be documented on the project page so that it is obvious to everyone.

If the Maths was introduced in the release, or was in some trait expression, it will probably make the release incompatible with previous releases, and then the minor version should be updated.

If the release simply fixes the calculations in some non-trait location, then there’s likely no incompatibility, and only the patch need to be update.

Anytime you change a trait, you are more or less introducing an incompatibility with older saves and logs, because saves and logs records the traits as they were at the time of the recording the save or log. Thus, updates will not be taken into account.

Yes, you can try a “Refresh” on the save or log, but it is not guaranteed to work, and will often fail.

Yours,
Christian

I actually have some sympathy for the OP’s plight in a limited set of circumstances. Despite trying my best to be thorough and run through all the checks that should be part of my process for determining that a module is “done” and ready to upload, there have been a couple times down the years where within minutes or hours I was able to determine that I had omitted something from a predefined setup or failed to include the newest edit of my in-module documentation.

In the old wiki, I was able to overwrite the existing file in short order, and there was effectively no harm done. To handle the extremely unlikely case of a user downloading the original file and the fixed file in the narrow window of time before the fixed one was approved, I simply edited the wiki to alert users. No one ever gave me grief in the handful of times this ever happened.

I’ve no quarrel with the principle behind version increments, but I think the approach is too strident and rules out quick/near-instant patches for non-substantive, administrative errors–things that module creators are well-positioned to judge fall into that realm and aren’t functional changes. But the system is what it is and I don’t think it’s worth re-litigating.

Obviously it’s an entirely different ball of wax if someone is making actual changes to behavior and module function. A version change is entirely warranted and proper for those.

I think this principle overrides any desire to make a particular version number sacred. If two different versions of the same version number exist, you have defeated the purpose establishing a version.

Unless you have customers who have downloaded two different versions with the same version number and are playing under the guise of sharing the same module. The library has thousands of modules, versions, and, creators, and customers. No need to invite chaos.

Absolutely understood, which is why I stressed the limited circumstances in which a near-instant correction might be countenanced. It’s not, won’t be, and I accept this.

I agree with the basic concept. Vassal is way to constrained. Have a look at the way google drive does version management.

How is that exactly? I’m not familiar with any version management at all in Google Drive.

As discussed else where (Module ‘Library’ - Sponsor’s Onus), and also argued here, a good deal of the problem is that that module authors are very heterogeneous when it comes to assigning releases.

If there was a clear policy on what constitutes a patch, minor, or major release, then one could, for example, retain only the last patch release of a given file. However, there is no such policy or even consensus - for example, World in Flames Official CE ++ updates the patch number even if incompatible changes are made.

Google drive still has the older files stored - slightly depending on the kind of file - even if it only presents you with the latest. There’s a lot of infrastructure beneath that. The major difference is, however, that Google Drive is in control of the versioning, so it can enforce policy. The Vassal Game Library is not in control and cannot do that.

See for example Check activity & version history

In a way, the problem isn’t that “Vassal is way [too] constrained”, but rather that it is too liberal. Module authors can basically do what they want - and they do.

Yours,
Christian

That looks like change tracking to me, not version management.

For Google native files - e.g., Docs, Slides, Sheets, …, - yes - it is change tracking.

For non-native Google files - e.g., PDFs, ZIPs, VMODs, … - it smells a little of version management, but without all the bells and whistles :slight_smile:

Yours,
Christian