OK, I like to change the title of modules so my modules are sorted by Publisher, etc. So I renamed “Ambush” to “VG-Ambush” so it will sort with the other VGs. But now the extensions don’t work, because they were created for “Ambush.” Is there any way to change their attachment to “VG-Ambush?”
If you open the extension .vmdx
file in a ZIP archive manager, such as 7-zip
(modules and extensions are actually just ZIP archives with different file extensions), you will see it contains 3 plain text files: moduledata
, extensiondata
, and buildfile.xml
(some older extensions may leave off the “.xml” from the last file).
I haven’t tried this myself, so no guarantees it will work and won’t mess up anything, but the file moduledata
includes the module name as the XML tag <name>
, and buildfile.xml
has the module name as the attribute module
of the first XML tag (line 2 of the file), <VASSAL.build.module.ModuleExtension>
. So, if you extract those 2 files from the extension, use a text editor to modify those tags, then reinsert the files into the extension archive, that should probably work.
In the folder containing your Ambush.vmod file you will find a folder called Ambush_ext containing your extension .vmdx files.
If you rename your .vmod file to VG_Ambush.vmod, rename your extension folder to VG_Ambush_ext to match the module filename, it will pick up the extensions automatically again. No other changes required.
This is only applicable for extensions with Extension Properties flagged to “Allow loading with any module”.
Cheers,
Reg
If you edit the Game Name (ModuleName) of the module using the editor* the module will be sorted on the new name in the main Vassal window and not affect the extensions.
You will need to close the main Vassal window and restart to see the sort changes.
( * Right click on the module in the main window and select Edit Module. Right click the top line in the editor window and select properties. Don’t forget to save.)
This is only applicable for extensions with Extension Properties flagged to “Allow loading with any module”.
Cheers,
Reg.
That does not work for me. I’m trying to change the Combat! file from Compass games to “Compass-Combat!” When I do so, the extension does not load.
I had success changing data in the files for Ambush! as jrwatts suggested though.
What version of vassal are you using? It seems to me that it used to work, but it sue doesn’t in 3.7.15
Hi Chris,
I am using 3.7.15. I did a bit more digging and the issue is the Extension Properties in the extensions themselves. (Found in the extension editor menu bar).
What I said above is correct IF the Extension Properties are set for “Allow loading with any module” which I have been doing for generic add ons.
Locking the extension to the module is a very valid requirement for many extensions which have to be paired with a particular main module to maintain data integrity. jrwatts’ proceedure is the appropriate way to deal with them if you are confident they are transferrable.
I will edit my comments above to clarify this.
Cheers,
Reg.
Yeah, I finally got everything to work by converting the extension to a .zip, extracting the .zip. modifying the name in the extension file to the changed name, then reversing the process.
Where is this “extension editor menu bar”? If you go into the main menu, select the extension, and say “edit extension,” I don’t see any way to change association (I mean, the tree shows the extension already integrated), and you don’t appear to be able to edit the .vmdx itself.
At any rate, I have a workaround.
Thanks for the replies!