--@server directive inside a string breaks the chip
π Luaβ’Updated 2 days agoβ’0 views
The Starfall preprocessor searches for the directive pattern anywhere in the code - it doesn't know what's a string vs real code - so '--@server' inside the genβ¦
Why does a --@server directive inside a string in prop.createSent prevent the client from initializing
The Starfall preprocessor searches for the directive pattern anywhere in the code - it doesn't know what's a string vs real code - so '--@server' inside the generated code string gets processed. Workaround: build the directive dynamically, e.g. "--@" .. "server" or "--\064server".