benilla-re systems structs docs

s_badWorldNumberFormat

global · unassigned

Address
0x82ef98 · 22 bytes, up to 0x82efad
Type
char[22]
Meaning
Holds the format "Bad world number: %i" and a line feed
Confidence
verified, proof one
Finding
console/commands#world-port-command

Finding: World port command in console: commands

worldport <map> [x [y [z [facing]]]] (0x404dc0) does nothing and returns 1 without an active player. It splits its arguments at tabs, line breaks, " and spaces (0x82ecc8, no comma) into tokens of at most 63 bytes. With an empty first token (none, or "") it prints Usage: worldport <continentID> [x y z] [facing] in class 4 and returns 0. The map is the first token read by SStrToUnsigned: text not starting with a digit gives 0, reading stops at the first non-digit, and digits wrap at 32 bits. A map negative as a signed integer, above the highest Map.dbc id or without a row prints Bad world number: and the signed number in class 3, and returns 0.

The derivation is in the doc.