Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In the making of larger scripts, Bukz and I have come across a serious problem.
- At uncertain times, and with uncertain depth, scripts (and commands loaded via command prompt) loaded into game memory are cut off -- that is, config files, alias names, and alias contents are arbitrarily being dumped and suddenly unavailable.
- We first noticed it in scripts that make use of large recursions to loop examination of "conline" and manipulate aliases using += and -=; other scripts that do not use those commands (but do have large volumes of code) are also affected in a similar way.
- With several especially large scripts that manipulate many aliases at once, the game will sometimes fail to start, or throw an exception on quitting.
- We've noticed that usually, rather than being completely ejected from memory, many aliases have their names truncated at three letters (though unpredictable which ones will do this). Thus, "alias mapstartalways [code to start on loading]" causes memory to see "alias map [code to start on loading]" -- disabling the default script "map". (has only happened once -- as I said, rather unpredictable.)
- At certain points in testing this, I have found that the game only momentarily "forgets" an alias, then "remembers" it again after an arbitrary amount of time.
- Hence:
- /echo $total_tks
- unknown alias lookup: total_tks
- /echo $total_tks
- 5
- All in about 30 seconds.
- I'm sorry to have to report such a vague and complicated problem, but everything I've tried in figuring out the cause points to a severe, and sometimes fatal, vulnerability in alias memory storage (though perhaps triggered by abuse from Scripters :-P). I'm sorry I cannot find more information on it; if I find more clues when I next read the source code, I'll update this report.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement