@versionnum=<channel> makes the viewer say the version of the RLV API it implements, as a bare integer. This is the recommended way to detect RLV and to check which features it has. The number is the API version, not the host viewer's version.

Syntax

@versionnum=<channel>

Parameters

channel
A non-zero integer. A negative channel is recommended so the user can't fake the reply from the chat bar.

Return value

For API version X.Y.Z.P the reply is X·106 + Y·104 + Z·102 + P, written as an integer with no separators. Marine 2.09.35.00 replies 2093500. CoolVL 2.09.29.30 replies 2092930. Neither reply includes the blacklist; use @versionnumbl for that.

Examples

integer CH = -99331;
default
{
    state_entry()
    {
        llListen(CH, "", llGetOwner(), "");
        llOwnerSay("@versionnum=" + (string)CH);
        llSetTimerEvent(60.0);
    }
    listen(integer c, string n, key id, string m)
    {
        llSetTimerEvent(0.0);
        if ((integer)m >= 2092900) llOwnerSay("API 2.9.29 or later: @sitground is available");
    }
    timer() { llSetTimerEvent(0.0); llOwnerSay("No RLV."); }
}

Implementation notes

Client differences

The two clients report different numbers (2093500 and 2092930) because they implement different API versions. Otherwise there are no differences, apart from the shared channel and early-reply handling described on @version.

See also

Comparison with RLVa

This command works differently from RLVa's @versionnum; see the comparison.