![]() |
Could we have the .save file in a format which is easy to read.
Currently the .save file is a mess . It is just a data file through which it's impossible to know, what if anything is wrong.
Code:
~/games/angband-t4nk074/lib/save$ file Shirish Code:
$ cat Shirish Right now, don't think there's a way to do that unless there is some specialized tool that can read that stuff . Having it in some sort of json, xml format would make things lot more simpler and also extensible if need be. There is possibility I may be missing something obvious, if it is, would be glad to be pointed out. I am willing to test and give feedback if anybody is prepared to do something like that. |
To be honest I think it would be a lot of work for limited use. The savefile code is pretty straightforward, and quite extensible already. Debugging what is going on in it isn't that hard. The savefile also stores a lot of binary data and it would be really inefficient to encode it in a text-based format like XML or JSON. I'm not sure what actual advantages it would offer.
|
Well it lets you cheat more easily. More seriously, json does not make sense for a language without first class objects (like C or C++) where you can't serialize objects via reflection. You would have tk write your own serialization code, which pretty much defeats the purpose.
|
Having a human-readable file format would be preferable, all else being equal, to the current binary format. Human-readable files are easier to debug, inspect, and of course modify. :) But someone would have to implement it.
shirish: if your goal is modifying the save file, a lot of common operations (like editing stats, experience level, and equipment) can be done via the debug commands. I'm not aware of good documentation for them, but this portion of a Let's Play has a few examples. |
Quote:
The save file as it is hard for me to know what level I am, what quests are there (if there are any) , my armor and various bits of information. Having such information is and would be gold in an easy to read manner. It might also tell if there are any 'secrets' in any room I am or are left or something like that. It would make it also easier for people to share save files and exchange info. (copy and paste) rather than having to write each and everything. I do hope it makes sense. |
Quote:
I wonder if what you want is a better way to choose between different saved games that gives you an indication of a given savefile's current status before you load it? Or maybe an autosaved character dump alongside each savefile that gives you the kind of information you want in a human-readable format? |
Quote:
Interestingly though, could you share some more info. or point out to threads about the human-readable save file initiative which was done ? |
Quote:
|
that is a pity :(
|
Also, if you're on Linux you can get some basic information about what savefiles you have with ./angband -l (I think, anyway).
|
All times are GMT +1. The time now is 12:41. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.