Level headers with Lua-accessible level header parameters mess up when dealing with LUA.- prefixed lines, especially when the header continues beyond it. For each additional line you must add in four pointless characters to all following lines for the remainder of the level header. This problem also ends up stacking, leading to the ridiculous example below.
Bad header:
Bad header:
Error messages reported by bad header:level BS
levelname = Bitshift Shitfit
skynum = BS
LUA.example1 = Bitshift
nextlevel = BS
typeoflevel = Coop
LUA.example2 = Shitfit
musicslot = BS
Good header:WARNING: Line 5: Level header 164: unknown word 'level'
WARNING: Line 6: Level header 164: unknown word 'oflevel'
WARNING: Line 7: Level header 164: unknown word 'example2'
WARNING: Line 8: Level header 164: unknown word 'cslot'
No error messages produced from this version of the level header. Everything else is self-explanatory.level BS
levelname = Bitshift Shitfit
skynum = BS
LUA.example1 = Bitshift
I'mAnextlevel = BS
badPtypeoflevel = Coop
ersoLUA.example2 = Shitfit
nSoryInumusicslot = BS
Last edited by a moderator: