Adding initial data via Django's syncdb facility. We will no longer distribute a SQLite DB in the near future in favor of this cross-platform alternative. Also in this commit is a crash fix for @dig with SQLite.

This commit is contained in:
Greg Taylor 2007-04-25 14:47:33 +00:00
parent 26a354204c
commit 3292405fcb
7 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,9 @@
INSERT INTO "config_commandalias" VALUES(1,'l','look');
INSERT INTO "config_commandalias" VALUES(2,'ex','examine');
INSERT INTO "config_commandalias" VALUES(3,'@dest','@destroy');
INSERT INTO "config_commandalias" VALUES(4,'@nuke','@destroy');
INSERT INTO "config_commandalias" VALUES(5,'sa','say');
INSERT INTO "config_commandalias" VALUES(6,'@tel','@teleport');
INSERT INTO "config_commandalias" VALUES(7,'i','inventory');
INSERT INTO "config_commandalias" VALUES(8,'inv','inventory');
INSERT INTO "config_commandalias" VALUES(9,'@desc','@description');

View file

@ -0,0 +1,5 @@
INSERT INTO "config_configvalue" VALUES(0,'site_name','Evennia Test Site');
INSERT INTO "config_configvalue" VALUES(1,'site_port','4000');
INSERT INTO "config_configvalue" VALUES(2,'player_dbnum_start','2');
INSERT INTO "config_configvalue" VALUES(3,'money_name_plural','Credits');
INSERT INTO "config_configvalue" VALUES(4,'money_name_singular','Credit');

View file

@ -0,0 +1,17 @@
INSERT INTO "helpsys_helpentry" VALUES(1,'Help Index','This game has yet to customize its help index, so for now you may browse the generic codebase help files.
Topics
------
NEWBIE %%t%%t Getting started (for new players).
COMMANDS %%t How to get help with commands.
CREDITS %%t Codebase credits.',0);
INSERT INTO "helpsys_helpentry" VALUES(2,'Credits','Evennia is a product of a small community of developers, all working towards the continual improvement of the codebase. The following people have made major contributions with the end result being what you are now playing.
"Kelvin" (Greg Taylor) - Lead developer and original author.',0);
INSERT INTO "helpsys_helpentry" VALUES(3,'Commands','Commands in Evennia are generally organized into one of two categories: %%cgPublic%%cn or %%cyPrivileged%%cn commands.
%%cgPublic%%cn commands are more or less available to everyone. None of these commands are prefixed with anything, they are typical, every-day commands like %%chlook%%cn, %%chsay%%cn, and %%chget%%cn.
%%cyPrivileged%%cn command availability is largely dependent on the privileges and powers bestowed on you by the staff. Privileged commands are generally building/administration related and aren''t of general interest to players. These commands are all pre-fixed by a ''%%ch@%%cn'' character.
To see a list of all commands, use %%ch@list commands%%cn. If you''d like to learn more about any individual command, you may do so by typing %%chhelp <topic>%%cn, where <topic> is the name of the command (without the <>''s).',0);

View file

@ -441,6 +441,7 @@ class Object(models.Model):
try:
return self.location
except:
functions_general.print_errmsg("Object '%s(#%d)' has invalid location: #%s" % (self.name,self.id,self.location_id))
return False
def get_attribute_value(self, attrib, default=False):

View file

@ -0,0 +1,2 @@
INSERT INTO "objects_object" VALUES(1,'Wizard','Wizard',1,0,2,1,'',2,'','CONNECTED','2007-04-25');
INSERT INTO "objects_object" VALUES(2,'Limbo','Limbo',1,NULL,NULL,2,'Welcome to your new Evennia-based game. From here you are ready to begin development. If you should need help or would like to participate in community discussions, visit http://evennia.com.',NULL,'','','2007-04-25');

Binary file not shown.

View file

@ -179,7 +179,10 @@ def create_object(odat):
new_object.home = odat["location"]
new_object.save()
new_object.move_to(odat['location'])
# Rooms have a NULL location.
if not new_object.is_room():
new_object.move_to(odat['location'])
return new_object