Page 3 of 4
Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 12:35 pm
by Montis
Found another bug:
I have a pressure plate that you have to throw a rock onto. After it's activated, I want the stone to disappear, so I created a script with a destroy() command. When the stone lands on the pressure plate, the game crashes.
If I just step on the pressure plate with the stone somewhere else, the rock gets destroyed correctly. Except when I'm holding it in the mouse or in the inventory, in which case it will give me a script error "attempt to index global 'rock_1': a nil value", but that might be intended behaviour.
Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 12:49 pm
by Blichew
I don't know if you need a workaround for this but that's what I'd do to make it work the way you described - just warp the stone away (to a locked 1x1 area) with a hidden teleporter on activation.
Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 1:33 pm
by Montis
Yeah that's what I've done already

Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 3:19 pm
by Komag
I guess the game just doesn't like item suicide. Just as a test, maybe try having the plate trigger a timer set to .1sec, then the timer destroys the rock
Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 5:39 pm
by Montis
Komag wrote:I guess the game just doesn't like item suicide. Just as a test, maybe try having the plate trigger a timer set to .1sec, then the timer destroys the rock
That actually works.
So I guess the program can't handle that tha pressure plate is activated at the same time that it's not activated or something

Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 5:42 pm
by Komag
did you test it with the plate on activate once?
Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 5:46 pm
by Montis
both with and without. my original plate also had activate once, so that wasn't the issue.
Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 6:26 pm
by Emciel
i ran into the same thing montis, used the timer work around as well =)
Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 7:31 pm
by Lilltiger
trying to access a script in the editor from the item.lua that does not exist will crash the editor when trying to call that script. Should just stop the preview and warn about that script doesn't exist.
Re: Beta-1.2.11 now available!
Posted: Thu Sep 27, 2012 7:55 pm
by cromcrom
Is it normal that export to steam isn't there anymore ?