[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev:objects
no-reply_wiki at metalforge.org
no-reply_wiki at metalforge.org
Thu Sep 4 03:22:59 CDT 2014
A page in your DokuWiki was added or changed. Here are the details:
Date : 2014/09/04 03:22
User : saru
Edit Summary: Including links to svn pages for reference.
@@ -1,18 +1,16 @@
This so far only concerns how to make archetypes, treasure and NPC's
-
- [[dev:object fields|Description of the fields of the object structure]]
-
- FIXME rename to ''archetype''? merge info with [[dev:object fields]]. document all ''type'' and ''subtype''. fix & check everything
+ * The most up-to-date information regarding archetype properties can be accessed from the {{https://svn.code.sf.net/p/gridarta/code/trunk/src/crossfire/src/main/resources/resource/conf/types.xml|types.xml}} file associated with gridarta
+ * There is also a page on the format for fields of the [[dev:object fields|object structure]]
====== How to create new archetypes and bitmaps ======
- Determine if new archetype is really needed. Archetypes are only needed to add new images, or if the archetype simplifies creation of a very common item. Don't make a new arch to simply customize an existing archetype.
- Figure out which directory/category the object will belong to. This determines an appropriate location for it inside the 'arch' directory. For objects with many animations or that are very large, new subdirectory may be advisable.
- Create a bitmap. It must be divisible by 32 in both height and width. The file format should be .PNG 256 colour with transparency.
- Create additional bitmaps if you want animation or directional facing.
- - Split the bitmaps up into 32x32 bitmaps and named according to the naming.doc conventions in the arch tar package. Note, this is not really necessary at current time - non-split images should work properly, but some older clients may have problems with it. (the script "splitxbm" may be used and is included below).
- - Create an archetype entry. The file should be called object.arc, where object is whatever the new object is. This is the most complicated step. See "crossfire.doc" for an introduction on how to create archetypes.
+ - Split the bitmaps up into 32x32 bitmaps and named according to the {{https://svn.code.sf.net/p/crossfire/code/arch/trunk/README|naming conventions}} in the {{https://svn.code.sf.net/p/crossfire/code/arch/trunk/|arch}}. Note, this is not really necessary at current time - non-split images should work properly, but some older clients may have problems with it. (the script "splitxbm" may be used and is included below).
+ - Create an archetype entry. The file should be called object.arc, where object is whatever the new object is. This is the most complicated step, read on for more information about considerations about creating archetypes.
* Look at other similar archetypes to see how they have been made.
* If a single 32x32 bitmap is created, only one archetype is needed, but if a larger bitmap is made which is cut down to several 32x32 bitmaps, use "linked" archetypes are needed. To create a linked archetype, add a 'More' line filed by the next piece. The X and Y coordinates in this next piece determine the offset from the head (first) object.
* When making multipart objects, they should be rectangular. Non rectangular may work, but has not been tested. Note that for multi-part objects, in most cases, only the values in the head portion are used (eg, hp, damage, etc for monsters) so it is generally unnecessary to put a copy of all the head tags in the other parts.
* See the section later in this document about animations.
IP-Address : 59.167.121.117
Old Revision: http://wiki.metalforge.net/doku.php/dev:objects?rev=1409736923
New Revision: http://wiki.metalforge.net/doku.php/dev:objects
--
This mail was generated by DokuWiki at
http://wiki.metalforge.net/
More information about the crossfire-wiki
mailing list