PDA

View Full Version : How do you use custom textures?


halkun
01-04-2009, 04:45 PM
Hmm, I made a new include file called HIRES.CON

In it I put this


texture IDCARD {
pal 1 { file "tex/captainid.png"}
}


But Eduke doesn't see it as a valid command.


Including: HIRES.CON (55 bytes)
HIRES.CON: At top level:
HIRES.CON:1: error: expected a keyword but found `texture'.
HIRES.CON:1: error: expected a keyword but found `IDCARD'.
HIRES.CON:2: error: syntax error.
HIRES.CON:2: error: expected a keyword but found `pal'.
HIRES.CON:2: error: expected a keyword but found `1'.
HIRES.CON:2: error: syntax error.
HIRES.CON:2: error: expected a keyword but found `file'.
HIRES.CON:2: error: expected a keyword but found `tex/captainid.png'.


I can't find any data about this is the wiki, I'm using JFDuke's format. Does Eduke do it differently?

halkun
01-04-2009, 04:54 PM
never mind, it's in the def file.

DeeperThought
01-04-2009, 04:55 PM
Those kinds of commands belong in .DEF files, not .CON files.

The default def name is duke3d.def

You can have duke3d.def include additional def files.