Re: My code is crashing pipmak, but why?
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2009-09-10 11:24:57
|
syxified wrote: > I just introduced a 'for' loop into the > onkeydown handler to check the array of patches, and those which are found > to be true in the inventory get moved so they are in a decending order > visually on the page. However, that for loop keeps crashing pipmak the > moment I hit the "i" button. Quick answer before I have time to actually test your code or show you a better solution: You can't store the patch objects from node 99 in global variables and use them before node 99 is entered or after node 99 is left. These objects are (re-)created when their node is entered and are only valid as long as the node is displayed. Arranging the patches should be done in an onenternode handler of node 99 (or create them at the correct location in the first place). That said, any possibility to crash Pipmak using Lua scripting is a bug and I will look into it. Thanks for the report. -Christian |