Advertisement
Guest User

AADT bug report

a guest
Aug 23rd, 2010
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. In the making of larger scripts, Bukz and I have come across a serious problem.
  2. 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.
  3.  
  4. 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.
  5.  
  6. With several especially large scripts that manipulate many aliases at once, the game will sometimes fail to start, or throw an exception on quitting.
  7.  
  8. 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.)
  9.  
  10. 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.
  11. Hence:
  12. /echo $total_tks
  13. unknown alias lookup: total_tks
  14. /echo $total_tks
  15. 5
  16.  
  17. All in about 30 seconds.
  18.  
  19. 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