Skip to content

Identity and logging

Who you are, which VM runs this copy of your script, and the game log.

server + client string

Your manifest id.

server + client string

Your manifest version.

server + client number

The mod API this game implements.

server + client string

"server" or "client": the VM running this copy of your script.

server + client boolean

mod.side == "server".

server + client boolean

mod.side == "client".

server + client

Writes a line to the game log, tagged with your id. Arguments are joined with spaces. print does the same.

mod.log("loaded on the", mod.side)

server + client

Like mod.log, as a warning. warn does the same.

if not mod.data.has("ships", "sub") then
mod.warn("no submarine in this build")
end