Spider Stomper
Posts: 186
Joined: Friday, 8th March 2013, 13:27
Add CSV file to crawl
Solution: Write the information in comma separated file with data from character, every time the character reaches some amount of experience points both the file and the morgue of the character are appended with the line that has the information in a comma separated format.
Benefits: With the comma separated file players could quickly and easily see things like which species is most played, in which levels do they die the most, at which levels do their transmuters die or compare the development (not only the dead result) of several characters of a kind.
I imagine advisors checking the files and discovering things that are usually difficult to see with one morgue file from a character that reached high level and that is still alive:
-Most low level characters (between level 2 and 6) have a traps&doors skill above 3.
-All of the characters between experience level 8 and 14 die at orc dungeon 4.
-The player isn't quivering anything with characters of level bellow experience level 6.
-90% of the characters from this player die before they reach level 4.
-This player plays mostly hill orcs (85% of characters), the ones that are priests survive on average more that the healers.
Example of a CSV file:
For anyone not familiar with comma separated value files just open a text editor (wordpad,notepad,gedit...) paste the four lines of the example onto a blank file, save it in .csv format and open it with an excel like program it (if it ask you to specify a separator, specify commas).
These kind of files are read by most statistical packages and excel like programs and will provide a lot of information in a very little space. Also I think it shouldn't be very difficult to implement (for people that know a bit of crawl code I mean).
Pseudocode example:
The pseudocode above is more kind of a shell script (prinf or cout for c++?) and surely it is an oversimplificacion but I hope that it makes the point that the only thing that I'm asking for is for crawl to append the morgue file with the values of a character separated by a comma and to append another file with the same data. Also it could be nice if there were no spaces in the names (some programs get crazy with them) so that "The Shining One" would appear as "The_Shining_One"
Edit: Edited for cosmetic changes.