Artfile (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
 
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:WIP pages]]
'''artfile''' { [...]}
 
loads an ART file. You can use the "tile" sub-token to overwrite the starting tilenum of the file from def.
 
This is useful because ART files will load faster than images loaded through tilefromtexture (which must undergo a color matching process), and because tiles making use of palette indices which have duplicate colors in the stock Duke 3D palette but not in other palettes (such as the 3D Realms screen) are negatively affected by the aforementioned process.
 
== Tokens ==
 
'''file''' <filename>
 
The .art file to load from.
 
'''tile''' <tilenum>
 
The starting tilenum of the images in the art.
 
== Examples ==
 
artfile { file "whatever.art" } // loads whatever.art just as if it had been named TILES020.ART
artfile { file "whatever.art" tile 2000 } // loads whatever.art starting at index 2000 instead of the tilestart value contained within it


[[Category:DEF commands]]
[[Category:DEF commands]]

Revision as of 00:37, 22 February 2020

artfile { [...]}

loads an ART file. You can use the "tile" sub-token to overwrite the starting tilenum of the file from def.

This is useful because ART files will load faster than images loaded through tilefromtexture (which must undergo a color matching process), and because tiles making use of palette indices which have duplicate colors in the stock Duke 3D palette but not in other palettes (such as the 3D Realms screen) are negatively affected by the aforementioned process.

Tokens

file <filename>

The .art file to load from.

tile <tilenum>

The starting tilenum of the images in the art.

Examples

artfile { file "whatever.art" } // loads whatever.art just as if it had been named TILES020.ART artfile { file "whatever.art" tile 2000 } // loads whatever.art starting at index 2000 instead of the tilestart value contained within it