Editor Crash: Exploding Barrels No Longer Work!

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Editor Crash: Exploding Barrels No Longer Work!

Post 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
Lilltiger
Posts: 95
Joined: Sun Sep 16, 2012 1:12 am

Re: Editor Crash: Exploding Barrels No Longer Work!

Post by Lilltiger »

That code works for me.
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Editor Crash: Exploding Barrels No Longer Work!

Post by Komag »

It's working fine for me too, just tested again, both in editor and in game after export, no problems
Finished Dungeons - complete mods to play
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: Editor Crash: Exploding Barrels No Longer Work!

Post 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
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Editor Crash: Exploding Barrels No Longer Work!

Post 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?
Finished Dungeons - complete mods to play
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: Editor Crash: Exploding Barrels No Longer Work!

Post 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".
Post Reply