Editor corrupted dungeon files?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Editor corrupted dungeon files?

Post by The cube »

So, i was editing the custom dungeon i have been working with, with the only tabs currently open being my browser and dungeon editor. I was testing it, then putted it to pause and edited the text on a scroll in a alcove. When i tried to refresh, it crashed. Me being the silly me, i closed the crash window and tried to restart the editor. I still have the error logs on my computer but have no idea how to find them. So then when i tried to restart and load my dungeon, the editor gave me this warning:

Image

Now, that is one of the lua files of the dungeon i am working on, but i swear i have not touched those at all for this dungeon. Also, it is SOOOOO long that i have no hopes of finding that spot.

I have no other saves for the dungeon, do i need to start over or can this still be fixed?

Thanks.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Editor corrupted dungeon files?

Post by NutJob »

The cube wrote:Also, it is SOOOOO long that i have no hopes of finding that spot.
Have you considered looking on line 2039 in dungeon.lua?
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Re: Editor corrupted dungeon files?

Post by The cube »

Yeah, but i have no text editor that shows lines..
Batty
Posts: 509
Joined: Sun Apr 15, 2012 7:04 pm

Re: Editor corrupted dungeon files?

Post by Batty »

Notepad++ or Sublime Text

Both reasonably priced... :D
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Editor corrupted dungeon files?

Post by NutJob »

MS o/s Notepad: View -> Show Status Bar

FYI: look at line 2038 first to see if that conforms to proper syntax.
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Re: Editor corrupted dungeon files?

Post by GoldenShadowGS »

This happened to me when I accidently named an entity something "dungeondoor1--" The two dashes broke the syntax of the dungeon.lua script. Open dungeon.lua and do a charcter search for --
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Re: Editor corrupted dungeon files?

Post by The cube »

So, i spent some time fixing the errors, and it worked, thank you notepad++ (oh and you others too)
Post Reply