|
From: | Andreas Lochmann |
Subject: | Re: [Enigma-devel] new version does not run sometimes |
Date: | Mon, 08 Apr 2013 22:09:40 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
Hi, you call "enigma.GetPos" in a 1.10-level - this yields a call to nil. You have to replace it by po(sender), in your case change [...] local x,y = enigma.GetPos(sender) wo[{x,y+1}] = ti["+ "] .. ti["a "] local x,y = enigma.GetPos(last_oxyd) wo[{x,y+1}] = ti["+ "] .. ti["a "] [...] to [...] wo[po(sender) + {0,1}] = ti["+ "] .. ti["a "] wo[po(last_oxyd) + {0,1}] = ti["+ "] .. ti["a "] [...] This still doesn't work: You are killing the sender in your callback in the next line! Never kill the sender. If you take a look at the opal-levels, you will notice that we just plant a seed which will later kill the oxyd. Here, you have to work around this. Even after this, the code fails. You have to add wo["AllowSingleOxyds"] = true if you are manipulating oxyds. After this, you have to make sure yourself, that all colors match afterwards. One more thing: For lasers, switchs and triggers, you should definitely use autotiling. Best, Andreas Am 08.04.2013 21:49, schrieb efhorry efhorry: Hello |
[Prev in Thread] | Current Thread | [Next in Thread] |