Page 1 of 1
Editor Crash: Exploding Barrels No Longer Work!
Posted: Thu Oct 11, 2012 4:19 pm
by Lark
I posted an exploding barrel block object at
viewtopic.php?p=34905#p34905 and it's been working fine for a long time. Now, presumably after several editor updates, it not only doesn't work, but it crashes the editor back to the desktop.
Code: Select all
cloneObject{
name = "exploding_barrel_block",
baseObject = "barrel_crate_block",
onDie = function(self)
for i = -1, 1 do
for j = -1, 1 do
spawn("fireburst", self.level, self.x + i, self.y + j, 0)
end
end
end
}
Thinking that I might have added something else that interfered, I created a brand new dungeon, modified it by adding only this one custom object, and when it dies, so does the editor. The barrel isn't at the edge of the level either so out-of-bounds coordinates aren't a factor. Please help.
Thank you, -
Lark
Re: Editor Crash: Exploding Barrels No Longer Work!
Posted: Thu Oct 11, 2012 4:32 pm
by Lilltiger
That code works for me.
Re: Editor Crash: Exploding Barrels No Longer Work!
Posted: Thu Oct 11, 2012 4:44 pm
by Komag
It's working fine for me too, just tested again, both in editor and in game after export, no problems
Re: Editor Crash: Exploding Barrels No Longer Work!
Posted: Thu Oct 11, 2012 4:50 pm
by Lark
Well this is good news, but I wonder what I could have done to my editor installation that causes it to crash thusly? Any ideas? I’ve verified the install files (via Steam), created that test dungeon with no other mods, and can't think of what else to do…
<heavy sigh>, -Lark
Re: Editor Crash: Exploding Barrels No Longer Work!
Posted: Thu Oct 11, 2012 5:01 pm
by Komag
it probably doesn't matter, but I have it in my items.lua
Have you modified any files within your install directory? Do you have custom assets in that directory, such as the asset pack?
Re: Editor Crash: Exploding Barrels No Longer Work!
Posted: Sat Oct 13, 2012 8:50 pm
by Lark
Yes, I have the asset pack downloaded and no doubt I've made a lot of additions to a lot of files, but I thought all of those (sans asset pack) were stored in the dungeon. It crashes on my home and work computer, but I "borrowed" my wife's laptop and it works fine on that. I'll save everything elsewhere and start removing things until it works again. I just haven't had time to do that yet. Thanks, -Lark
EDIT: I found the problem; a stray keystroke turned "fireburst" into "firebust".