From The Mana World
(→‎Add new sections here: save/account.txt)
Line 20: Line 20:


=== Add new common types here ===
=== Add new common types here ===
== login/save/account.txt ==
The standard 13-field form:
#int account_id
#string userid
#string pass
#string lastlogin
#char sex
#int logincount
#int state
#string email
#string error_message
#int connect_until_time
#string last_ip
#string memo
#optional int ban_until_time
Historically, there was no ban_until_time.


== Add new sections here ==
== Add new sections here ==

Revision as of 05:46, 27 December 2012

This is some notes on the save formats of TMWA. It is not intended to authorative, but rather a porting tool.

General

Save files generally consist of a number of tab separated fields, each of which may consist of a number of space and/or comma-separated fields.

Any line starting with // is usually ignored. But, any line not matching for format correctly is also usually ignored.

If there are any C0 control characters, funny stuff might happen.

integer

All integers stored at this level are in base 10.

/0|-?[1-9][0-9]*/

string

A string is a sequence of non-control characters.

word

A word is a string containing no spaces.

Add new common types here

login/save/account.txt

The standard 13-field form:

  1. int account_id
  2. string userid
  3. string pass
  4. string lastlogin
  5. char sex
  6. int logincount
  7. int state
  8. string email
  9. string error_message
  10. int connect_until_time
  11. string last_ip
  12. string memo
  13. optional int ban_until_time

Historically, there was no ban_until_time.

Add new sections here