Skip to content

game.log

Native global — no require.

console

function · console(line: string, r?: integer, g?: integer, b?: integer)

Append a script-log line; optional RGB.

Parameters

NameTypeSummary
linestring
rinteger
ginteger
binteger

file

function · file(name: string, line: string, max_bytes?: integer, max_files?: integer): boolean, ErrorMessage?

Append a line to a named script log file.

Parameters

NameTypeSummary
namestring
linestring
max_bytesinteger
max_filesinteger

Returns

TypeSummary
boolean, ErrorMessage?

path

function · path(name: string): string

Absolute path of a script log file.

Parameters

NameTypeSummary
namestring

Returns

TypeSummary
string

now

function · now(): string

Local wall-clock timestamp.

Returns

TypeSummary
string

now_ms

function · now_ms(): integer

Steady-clock milliseconds.

Returns

TypeSummary
integer

Arcane SDK catalog generated from scripts/sdk