Create account / Log in

Load/Save as text

Suggestions for additional features for the module editor and Vassal engine.

Moderators: uckelman, Tim M

Load/Save as text

Postby FluffyDog » September 19th, 2020, 9:55 am

If you could save/load files into text, you could create scenarios to load with external programs, that would be useful for leagues for some games that take a bit of time to set up.
FluffyDog
 
Posts: 2
Joined: September 19th, 2020, 9:08 am

Re: Load/Save as text

Postby Flint1b » September 19th, 2020, 5:33 pm

There are plans for changing the buildfile/save/log format to JSON. There are some issues with that though, the current format helps obscuring necessary parts of the game, like hidden units or the opponents passwords. Either way, do not expect the JSON format before at least 3.6, probably even later.
User avatar
Flint1b
 
Posts: 461
Joined: May 19th, 2020, 12:27 am
Location: Colonia Agrippina

Re: Load/Save as text

Postby FluffyDog » September 19th, 2020, 8:14 pm

Thx, I understand there are many reasons for the current format, what I suggest is an alternative (mostly for the pre-game that do not involve hidden stuff on the games I know at least) not replacing
FluffyDog
 
Posts: 2
Joined: September 19th, 2020, 9:08 am

Re: Load/Save as text

Postby marktb1961 » September 20th, 2020, 11:57 am

Slightly at a tangent, is there any chance that the plans for the buildfile/save/log format (especially the log file) will result in smaller file sizes ?

By the way, the recent performance improvement on save files was incredible by the way. For the large save files that I am generating in my current development (1Mb+), save times went from several seconds to barely any difference when compared to minuscule save files.
Platform used:
Vassal 3.4.10
MacOS Big Sur
iMac (27", mid-2020)
User avatar
marktb1961
 
Posts: 335
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: Load/Save as text

Postby Flint1b » September 20th, 2020, 1:52 pm

There is a "text export light" function already, when editing a module you can add a thing called "Text Saver" to a map, it's a button in the toolbar that allows to export board state to a plain text file.
User avatar
Flint1b
 
Posts: 461
Joined: May 19th, 2020, 12:27 am
Location: Colonia Agrippina

Re: Load/Save as text

Postby Flint1b » September 20th, 2020, 1:54 pm

marktb1961 wrote:Slightly at a tangent, is there any chance that the plans for the buildfile/save/log format (especially the log file) will result in smaller file sizes ?


Possibly, but hard to tell right now. On modern computers and with modern networks file size shouldn't be an issue, what's more important is the performance.
User avatar
Flint1b
 
Posts: 461
Joined: May 19th, 2020, 12:27 am
Location: Colonia Agrippina


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 3 guests

cron