ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:empty_string

This is an old revision of the document!


Empty and invalid strings in ACS

ACS strings are actually integers containing string ids. Any integer can either refer to a string that exists or not.

Using an invalid string id will either do nothing, crash the script or crash the engine. Invalid string ids should never be used.

In contrast, empty ACS strings (“”) are valid strings of length 0. They have a valid string id. All string operations on them are guaranteed not to crash.

Unlike some other ACS libraries, ACSUtils string functions only accept valid string ids (including empty strings) and never return invalid string ids (but sometimes return empty strings).

new/empty_string.1519136768.txt.gz · Last modified: 2018/02/20 16:26 by korshun