Zippy-Egoboo Home EgoWiki > Documentation > DataDirectories (r1.1 vs. r1.4) EgoWiki webs:
Main | TWiki | Know | Sandbox
Documentation . { Changes | Index | Search | Go }
 <<O>>  Difference Topic DataDirectories (r1.4 - 04 Oct 2004 - ElminI)
Changed:
<
<

Data directories are directories where data files (such as models, skins, and particle graphics are stored. There are three types of data directories:

>
>

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.

Changed:
<
<

  1. The basic data directory, where defaults for all Zippy-based games reside.
  2. Game-specific data directories, where those defaults may be overridden for a particular game.
  3. Object-specific data directories, where files needed for specific objects may be stored.
>
>

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.

Added:
>
>

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".


 <<O>>  Difference Topic DataDirectories (r1.3 - 11 Mar 2004 - ElminI)
Changed:
<
<

Examples (expanded paths given relative to the Zippy root):

>
>

Examples:


 <<O>>  Difference Topic DataDirectories (r1.2 - 27 Feb 2004 - ElminI)
Changed:
<
<

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

>
>

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

Changed:
<
<

Where "type" is one of the following:

>
>

Examples (expanded paths given relative to the Zippy root):

Changed:
<
<

Examples:

  • "booger.future.particle:bar"
  • "zippy.magic.necromancy.icon:book"
  • "spyro.skin:cobol"
  • "model:advent"
>
>

  • "booger.future:bar.bmp"
  • "zippy.magic.necromancy:book.bmp"
  • "spyro:cobol.md2"
  • "advent.md2"

 <<O>>  Difference Topic DataDirectories (r1.1 - 25 Jan 2004 - ElminI)
Added:
>
>

%META:TOPICINFO{author="ElminI" date="1075016159" format="1.0" version="1.1"}% %META:TOPICPARENT{name="MakingZippyObjects"}% Data directories are directories where data files (such as models, skins, and particle graphics are stored. There are three types of data directories:

  1. The basic data directory, where defaults for all Zippy-based games reside.
  2. Game-specific data directories, where those defaults may be overridden for a particular game.
  3. Object-specific data directories, where files needed for specific objects may be stored.

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

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

Where "type" is one of the following:

Examples:

  • "booger.future.particle:bar"
  • "zippy.magic.necromancy.icon:book"
  • "spyro.skin:cobol"
  • "model:advent"

-- ElminI - 25 Jan 2004


Topic DataDirectories . { View | Diffs | r1.4 | > | r1.3 | > | r1.2 | More }
Revision r1.1 - 25 Jan 2004 - 07:35 GMT - ElminI
Revision r1.4 - 04 Oct 2004 - 19:06 GMT - ElminI
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.