Project versioning and Conversion Tool

Description of the Feature:
I'm talking about adding a version number not only to the javascript files (as already exists), but to all project files like the data json files as well, and creating a tool for detecting and conversion of different versions/structures.
The purpose of this tool is mainly as a preparation for future changes, and what originally happened with the child generator in version 1.3.5 is the perfect proof of the need.

When the child generator was added, older json files from the old generator could no longer be loaded because those json files had a different structure and the editor couldn't read them any longer.
With the generator saves that was easily fixed later, but a similiar data change in the regular project data structures would break every project, and that prevents or restricts many fundamental improvements.

Additionally, project updates with new MV versions only work toward newer versions and have to be done manually (with a lot of new users failing on first tries).


If every datafile (like every javascript file) contains a version number, an additional tool could be written that knows all official versions and could convert a project from one version to another by copying or converting the correct versions of any file (json or js) into an output folder.

In the current structure, that tool would only change the javascript files for different versions (downgrading or upgrading), which would help if someone needs a plugin functional and didn't realise that a change in the core files made it incompatible.

However, with such a tool ready it would also be possible to change elemental data structures (like adding new properties to existing objects when that update is given in the editor). This would for example allow additions to map layers or changes to event conditions and more.
All would be neccessary is to give the tool an added setting for a new version and telling it (pre-version XY save maps with 2 upper layers only, after Version XY convert map data to have 4 upper layers) and so on.

Not always easy depending on what changes are made, but without such a project conversion tool it is much more difficult to add fundamental new features to the editor/projects.


Why is this feature good?
  • Project updates by this tool (no more mistakes in which files to manually copy from where to where)
  • Allows future changes to data structures without breaking all existing projects (they will get a message "data structure of 1.x.x detected, please convert to version 1.y.y)
  • Allows project downgrades for testing or plugin compatibility for each version that has its package programmed into the tool
Possible issues with this feature?
Will require a special upgrade and data package for every single MV-version it can convert to, that will not always be easy to program
The version number is not required for those tools to be made. Json file structures are easy to check.
This was gibberish to me. I didnt understand any of it. Didnt vote for it or against it. How will this improve the experience of the "average" MV user?
@RetroBoy It is an utility option that will 1) automate project updates (where some people still have problems when a new version comes out) and 2) it will make future improvements that change the data structure easier to implement (a lot of other suggestions were shot down because they would require a change in the data structure that would cause incompatibilities - with this in place that would be doable and those other suggestions might be re-checked for implementation).

For example changing vehicle passability from an automatic Tile-ID-Based setting to something handled by regular tileset properties is impossible without changing the data structure of the maps and tilesets - an automatic no-go if you don't have a conversion tool to change old projects to include the new data layer.
I wandered into this thread, searching the forum, for package.json folder location, in reference to a thing I'm making, because it's usually where the latest versions of the rpg-etc.js are kept. Speak of the devil; I'm writing an HTML app in MV to detect outdated engine JS in all projects, and then automatically make JS backups and copy the updated JS to all projects.

I was thinking about writing something like this => http://prettydiff.com/ to show all the Javascript lines that don't match the latest engine JS, in case somebody did their own plugin edit-in, without making it an official plugin.

So I'm all for this auto-updating feature, if you MV dev can beat me to writing my third party thing of the same nature. 😀

It is a delicate nature, updating the JSON and JS, because some people might have centered their games around said older versions, which is your answer to why, if anyone is curious that it doesn't automatically update all that.

Original thread: https://forums.rpgmakerweb.com/threads/project-versioning-and-conversion-tool.77227/