[Crossfire-wiki] [Crossfire DokuWiki] page added: dev_todo:map_cleanup

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Tue Aug 15 08:22:09 CDT 2006


A page in your DokuWiki was added or changed. Here are the details:



Date        : 2006/08/15 08:22

User        : raphael

Edit Summary: created



====== Map Cleanup ======



Several maps are still using old tricks that are obsolete now.  Cleaning u
p these maps would make them easier to maintain and would also help the [[
dev_todo:server_cleanup|server cleanup]] by simplifying the map loading co
de (''loader.l'').



===== Map and object syntax =====



  * Objects using the old spell number instead of having a spell object in
 their inventory

  * Objects missing a plural (''name_pl'' attribute), material name, or it
em power

  * Objects using the old ''last_heal'' instead of ''gen_sp_armour''



Most of these problems could be fixed automatically by running the script 
''cfmap-normalize'' from cfplus.



===== Obsolete map design hacks =====



  * **Conveyor belts for keys**.  Some maps use conveyor belts and other t
ricks in order to deliver a key or a pass to the player every time they ar
e triggered.  These hacks are not necessary anymore because the ''creator'
' archetype can duplicate the contents of its inventory when it is trigger
ed.  Creators can allow infinite uses and never run out, unlike the convey
or belts that require a map reset from time to time.

  * **fire/lightning walls for destroying scrolls on buttons**.  Some maps
 implement on/off triggers by having a scroll dropped on a button (=> sw
itch to "on" state) and another trigger that destroys the scroll by openin
g a gate in front of a lightning wall or fireball wall (=> switch to "of
f" state when the scroll burns).  It is better to use a duplicator with it
s number set to 0 (so that it effectively destroys the scroll instead of d
uplicating it) because the duplicator is triggered instantly and does not 
generate sounds (for those who play with sounds enabled).



===== Map bugs =====



  * **Missing floors**. Some old maps do not have any floor under some wal
ls (especially cave walls).  The missing floor is more visible now with th
e PNG images (compared to the old XPM images that were smaller).  It is ev
en more visible when map smoothing is enabled because of the "bleeding" ef
fects.





IP-Address  : 212.117.81.29

Old Revision: none

New Revision: http://wiki.metalforge.net/doku.php/dev_todo:map_cleanup



-- 

This mail was generated by DokuWiki at

http://wiki.metalforge.net/





More information about the crossfire-wiki mailing list