Skip to content

rq.TextureInfo ​

since 2.64.0

One texture of a game model, as rq.image.textures lists it.

Fields ​

NameTypeDescription
namestringThe texture's file name, as the model names it, such as "gokiburi.png".
pathstringIts full path in the game's archive with /, as rq.image.texture takes it. For a mod's model, the path in its base's folder.
kind"color"|"alpha"|"light"|"normal"|"specular"How the model uses it: "color" when any material draws its colours from it, else its other use. Rance Quest's models use colour, alpha and light maps; a model may also name a map its archive lacks (see missing).
alpha_mapbooleanTrue when a material also uses this colour file as its own alpha map. It matters only where alpha is false: the game's red then keeps cutting the model's holes whatever picture is put there. Where alpha is true, the picture's alpha decides, as on any texture with alpha.
framesintegerFor a colour texture the game animates, its frames (face.png, face[1].png and face[2].png are 3); otherwise 1.
missingbooleanTrue when the game's archive lacks the file. Such a texture cannot be changed and has no w, h or alpha.
w (optional)integerThe game's picture's width, in pixels.
h (optional)integerThe game's picture's height, in pixels.
alpha (optional)booleanWhether the game's picture has alpha.
mod (optional)stringWhen a mod changed it: that mod's id.
picture (optional)string|string[]When a mod put a picture on it: the PNG, or the list of PNGs, as the mod gave them (a copy).
colors (optional)rq.TextureColorsWhen a mod changed its colors: the numbers, with the defaults filled in.
own (optional)booleanWhen a mod changed it: true for a mod's model's own texture, from rq.monster.model.
used (optional)integerWhen a mod changed it: how many times a model's material was loaded with the change since it was made. 0 means nothing has drawn it yet; frames do not count apart.

Used by ​

rq.image.textures