Page 1 of 1
[RESOLVED] PlayerDB
Posted: July 27th, 2011, 12:33 am
by Silent79
I am migrating to fcraft from MCStorm and I was using mySQL with MCStorm. My players want to hang on to their stats from MCStorm, their blocks built and time spent on the server. What format is the playerdb.txt file so I can correctly transfer this information? The most important is the time spent on the server as that is the basis for them getting ranks.
Re: Playerdb
Posted: July 27th, 2011, 2:37 am
by fragmer
I cannot help you. PlayerDB is a work in progress and I cannot provide any support. The file format is subject to change. There are no plans to make MCStorm-to-fCraft import tools.
Re: Playerdb
Posted: July 27th, 2011, 2:55 am
by Silent79
Shoot, that is what I thought, just wanted to hear it from the horses mouth ...

Re: Playerdb
Posted: July 27th, 2011, 8:30 am
by Ollieboy
*pony's mouth.
Re: Playerdb
Posted: July 27th, 2011, 10:56 am
by fragmer
Woops, you are talking about PlayerDB. I thought you are talking about the things I added 2 days ago (BlockDB). I'll post PlayerDB info.
Re: Playerdb
Posted: July 27th, 2011, 4:07 pm
by Silent79
fragmer wrote:Woops, you are talking about PlayerDB. I thought you are talking about the things I added 2 days ago (BlockDB). I'll post PlayerDB info.
LOL ... ok, thanks for that. I know your busy a lot and read things quick, so I understand the mix up.
Re: Playerdb
Posted: August 2nd, 2011, 9:53 am
by xanderortiz
Perhaps I can help some here. I created an Excel file that pulls the data from the PlayerDB.txt file and separates it into columns.
I can read it better and search for specific fields quickly and easily. I suggest you do that for your old database and for the fields I'm about to tell you.
Then copy time spent from that one single column (in old database) and paste into the time column of the NEW excel file.
Then output into a PlayerDB.txt file.
Here is the format:
playerName,lastIP,rank,rankChangeDate,rankChangeBy,banStatus,banDate,bannedBy,unbanDate,unbannedBy,firstLoginDate,lastLoginDate,lastFailedLoginDate,lastFailedLoginIP,failedLoginCount,totalTimeOnServer,blocksBuilt,blocksDeleted,timesVisited,linesWritten,UNUSED,UNUSED,previousRank,rankChangeReason,timesKicked,timesKickedOthers,timesBannedOthers,UID,rankChangeType,lastKickDate,LastSeen,BlocksDrawn,lastKickBy,lastKickReason,bannedUntil,loggedOutFrozen,frozenBy,mutedUntil,mutedBy,IRCPassword,online,leaveReason
Good Luck!
Re: Playerdb
Posted: August 2nd, 2011, 3:50 pm
by fragmer
The first line of PlayerDB.txt is the header. First number is format version (between 0 and 3). Second number is max player ID. After that, there's a list of columns.
Format versions differ mostly in the way dates are stored:
- 0 - Prior to 0.530 - Dates are in local time, date and time format is locale-dependent.
- 1 - 0.530 to 0.536 (current stable) - Dates are UTC, date and time format is in milliseconds since Unix epoch (like Unix timestamp, but with more precision).
- 2 - old 0.600 dev builds - Dates are UTC, date/time format is Unix timestamp (seconds since Unix epoch).
- 3 - current 0.600 dev builds - PlayerDB sorting by ID (ascending) is now enforced.
The list of columns is in the header. Values are comma-separated. Blank values for numeric columns mean "0". Blank values for date/time columns mean "Never."
Re: Playerdb
Posted: August 21st, 2011, 6:11 am
by roblikescake
if its a fairly small amount of players you could always just use the /setinfo command
Re: Playerdb
Posted: August 21st, 2011, 5:44 pm
by fragmer
There are also /importranks and /importbans commands. The are set up to work with MCZall. I'm not sure if MCForge uses same format.