Mapping high scores to morgue files


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

Lair Larrikin

Posts: 29

Joined: Wednesday, 22nd July 2015, 16:50

Post Tuesday, 28th July 2015, 22:37

Mapping high scores to morgue files

Hey there! I feel I'm monopolizing this sub-forum right now... :)

I wanted to know, I've just migrated from Windows-trunk to Linux-trunk, and the details of my high scores do not show any longer, in-game. I've noticed that if I navigate to ./saves/scores and there, I change the last character of every line from a "S" to a "D", it fixes the issue. I have three questions:

a) what does these last characters mean?
b) why is it a "D" now when it was a "S" before?
c) am I screwing something up in the process?
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Tuesday, 28th July 2015, 23:40

Re: Mapping high scores to morgue files

twipley wrote:Hey there! I feel I'm monopolizing this sub-forum right now... :)

I wanted to know, I've just migrated from Windows-trunk to Linux-trunk, and the details of my high scores do not show any longer, in-game. I've noticed that if I navigate to ./saves/scores and there, I change the last character of every line from a "S" to a "D", it fixes the issue. I have three questions:

a) what does these last characters mean?
b) why is it a "D" now when it was a "S" before?
c) am I screwing something up in the process?


The D versus S is just daylight savings time vs standard time. The difference between Windows and Linux here is that Windows text files have an extra (usually invisible) carriage return character at the end of each line. By editing the lines (and specifically their ends), you are probably removing these carriage returns.

You can convert the file more easily with the program "dos2unix" or "fromdos", or if you don't have and don't want to install those:
  Code:
tr -d '\r' < oldscores > newscores

(Be careful that you specify separate files, or the contents will be destroyed)

For this message the author neil has received thanks:
twipley

Lair Larrikin

Posts: 29

Joined: Wednesday, 22nd July 2015, 16:50

Post Tuesday, 28th July 2015, 23:58

Re: Mapping high scores to morgue files

neil wrote:You can convert the file more easily with the program "dos2unix" or "fromdos", or if you don't have and don't want to install those:
  Code:
tr -d '\r' < oldscores > newscores

Hey, thanks! This has fixed the issue. Moreover, now my text editor shows the line endings as "Linux" instead of as "Windows."

neil wrote:The D versus S is just daylight savings time vs standard time.

Oh, my! I would never have found out... :)

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 17 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.