Server players file
A player is someone in the sim world controlled by an actual user. Every player
has a person of the same name associated with it, which contains
information such as that player's position and inventory. Thus each player
must have a unique name (like nodes and objects).
The format of the players file is :
player name {
attribute value(s)
attribute value(s)
...
}
player name {
attribute value(s)
...
}
...
Valid attributes for a player are :
- password string
If this attribute is given, then a client connecting to the server
as this player must provide a matching password. Users can set a
password using their client program, to prevent others connecting
to the server under their name.
- inout number
The time (in seconds since 1/1/1970) since this player last
logged in or out (set by the server automatically).
- wizard number
The wizard level of the player. Players with non-zero wizard
level will be able to change the server map from their clients
Real Soon Now :-)
- money number
The amount of cash carried by this player. This isn't used for
anything yet.
- hp number
The health points of this player. Not used for anything yet either.
Like objects, players can have data files associated with them. To
give a player a data file, create a directory named player_data in
the map data directory for the server, and a subdirectory under it with the
same name as the player. Any files place in the subdirectory will be associated
with the player, and transferred to other servers if the person moves from
one to another.
Typically, users will upload data to the server using their client programs
and the directories mentioned about will be created automatically. Users can
send their data to their client program or to other nearby user's clients. To
prevent users uploading huge amounts of data, there is a limit of 500k bytes
of data that can be 'carried' by a user at any time.
Return to the [server guide]
or to the [final report]