enigma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Enigma-devel] new version does not run sometimes


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
my test level ne0999

at 
https://drive.google.com/folderview?id=0B3QD7L9bSWAHakl5Zm5mMzM5RU0&usp=sharing


did run with previous version of enigma
http://lists.nongnu.org/archive/html/enigma-devel/2010-05/msg00005.html
but new version crushes on windows 7 and windows xp
without throwing an error exception
problem is probably with lines like
wo[{x,y+1}] = ti["+ "] .. ti["a "]
in function oxyd_callback
bye
Emanuel Funiok
https://sites.google.com/site/levelsforgames/ 



_______________________________________________
Enigma-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/enigma-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]