Zippy-Egoboo Home EgoWiki > Documentation > MakingZippyObjects > DataDirectories EgoWiki webs:
Main | TWiki | Know | Sandbox
Documentation . { Changes | Index | Search | Go }
Data directories are directories where data files (such as models, skins, and particle graphics are stored. Directories may be added to this list using the add_data_dir() function, which takes a single string argument and adds the named directory to the beginning of the search list.

Whenever a character type is created, it is given its own data directory, which is the directory where the script that defines it was found. This class-specific directory is given precedence over all others for filenames referenced in the type's profile.

In Lua scripts, files in these directories may be referred to by strings with the following format:

"[foundry[.subgroup]+:]name"

Examples:

The "foundry" and "subgroup" parts are named after subdirectories of data directories. So the first example searches each data directory for (using UNIX path names) "booger/future/bar.bmp".

-- ElminI - 25 Jan 2004

Topic DataDirectories . { Edit | Attach | Ref-By | Printable | Diffs | r1.4 | > | r1.3 | > | r1.2 | More }
Revision r1.4 - 04 Oct 2004 - 19:06 GMT - ElminI
Parents: WebHome > MakingZippyObjects
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding EgoWiki? Send feedback.