-
Notifications
You must be signed in to change notification settings - Fork 8
createDatabase
Purpose: Creates a new database with the specified name and size.
Syntax: createDatabase {Name} {Sectors} [Address] [ServerPort] [ListenPort] <Option=Value> ...
{name}: The name of the database to be created.
{sectors}: The size of the universe in sectors (0-30000).
[Address]: Optionally specify the server address.
[ServerPort]: Optionally specify the server port.
[ListenPort]: Optionally specify the server protocol (default is Telnet).
: Additional settings to be configured
Notes: The database created is not automatically opened and changes to the current database will not take effect until the database is reloaded.
Optional Parameter Names
ServerAddress - The name of the destination server.
ServerPort - The port of the destination server (default=2002).
ServerProtocal - The protocol of the destitution server (i.e. RLOGIN / Default = TELNET).
ListenPort - The port for clients to connect to (Default = 2300)
ServerProtocal - The protocol for client connections (always TELNET)
UseLoginScript - Boolean to enable login script (Default = False)
LoginScript - Name of the login script
LoginName - The name used to login to the TWGS.
Password' - The password used to login to the TWGS.
GameLetter - The gameletter to select from the main menu
IconFile - The icon file Name:Index to be displayed in the tray.
Example:
createDatabase "ClassicTW-GAmeA" 30000 "twgs.classictw.com" "LoginName=Micro" "Password=Meow" "GameLetter=A"
openDatabase "ClassicTW-GameA"
connect
createDatabase "ClassicTW-GameB" 30000
editDatabase "ClassicTW-GameB" "ServerAddress=twgs.classictw.com" "ServerPort=2002"
editDatabase "ClassicTW-GameB" "LoginName=Micro" "Password=Meow" "GameLetter=A"
openDatabase "ClassicTW-GameB"
connect
.