DVU Home
Starting 
 Out
Managing 
 Files
Editing 
 Files
Remote 
 Editor
Objects
Functions
Spells
Author
Managing Files in the Dreamverse environment

"Hey!  Where's my mouse?"

We're not in Windows anymore, Toto.  Dreamverse, like most MUDs, is built on a Unix platform.  In order to code here, we're going to need to get familiar with some file management commands.  This lesson will teach you the ones you need to navigate Dreamverse's file system.

Now that you've logged in, the first thing you should do is type <cd>.  Just like Windows, cd changes directories.  If you type <cd> by itself, you are brought to your home directory.  Now type <ls>.  ls displays the contents of whatever directory you're in.  You should see the contents of your root directory, which will look something like this:

cd and ls commands
Notice that the directory was displayed when you typed <cd>.  In this case, the creator name is Ghengis, so we're in /realms/ghengis.  Your directory will be /realms/your_name

The contents of the diretory were displayed when we typed <ls>.  Right now, there is only one file in the directory, "workroom.c".  Most of the files you work with in Dreamverse will end in ".c".  There are several types however.

  • .c files are files for the objects that you create in the game.  Objects are any file in the game that loads and becomes "real" in the player environment: rooms, weapons, food, NPCs (non-player characters), etc..
  • .o files are saved data files.  Each player has a .o file, as do parts of the game that need to recall information for later use.  This is fairly advanced coding, so we won't worry about that for now.
  • .h files are inhertiable files.  These files can be called by an object.  They are useful if you are creating an area and wish to define things that will be the same for all of your rooms or NPCs or other objects.  This is also fairly advanced.

Click the Next arrow (right arrow) to continue.

Previous

Previous

Next

Next

© 2000