valid_vid(3)
πΈ NAME πΈ
OKAY SO bestie, valid_vid is literally the βcheck if vid matches a valid object or notβ function, and it also accepts NULL/BADID arguments. This is the valid_vid(3) page from the Arcan Lua API, and the way that it handles your bad IDs? Iconic. π
β¨ SYNOPSIS β¨
true or false
valid_vid( vid, type )
It gives you true or false, no cap. β¨
π DESCRIPTION π
Hereβs the design tea: the engine uses a numerical type to reference the internal engine type for most visible entities. Because of that, a number of situations arise where you might need to test if a specific numeric value maps to a corresponding engine object before calling some functions that require a valid VID β or even a valid VID that is also connected to a frameserver or other secondary processing types. Itβs giving βvibe check before you commit,β and honestly? Obsessed. π¦
π NOTES π
- 1 β Possible values for
typeareTYPE_FRAMESERVERandTYPE_ 3 DOBJECT. requirement
So yeah, those are the possible type values and thatβs the requirement, fr fr. Periodt. π
π¦ EXAMPLE π¦
Look at this little example, bestie:
function valid_vid0()
a = fill_surface(32, 32, 255, 0, 0, 0);
print(valid_vid(a));
print(valid_vid(NULL));
print(valid_vid(BADID));
end
It prints the result for a, then for NULL, then for BADID β so you can see the true/false check in action. π«Ά
mwah π β this page comes from vidsys, dated October 2026, and itβs the valid_vid(3) manual page. Bye bestie, go check those VIDs π«Άβ¨
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms