Author Topic: Error: Failed to load data file: [string "data file"]:2592: '}' expected (to clo  (Read 2606 times)

YoshiMario2000

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Error: Failed to load data file: [string "data file"]:2592: '}' expected (to close '{' at line 2588) near ']'

I have no idea what this means. Or where to fix it.
This signature was way too long before, but now it's short!
Also, I am Still Alive!
On ad Off I go!

Do you ever get the feeling that the fandom of a product(s) ruin the potential that you could have had to enjoy the product?

DementedKirby

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Check line 2592 to see if it's there directly or check to see if you've correctly closed all functions.

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1185
    • View Profile
When do you have this error message? In the engine or the editor? Does it appear when opening a particular file in the editor?

YoshiMario2000

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
When do you have this error message? In the engine or the editor? Does it appear when opening a particular file in the editor?
It's in the ERROR.TXT file and seems to generate on startup of solarus.exe, but only for my quest witch I'm building
This signature was way too long before, but now it's short!
Also, I am Still Alive!
On ad Off I go!

Do you ever get the feeling that the fandom of a product(s) ruin the potential that you could have had to enjoy the product?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1185
    • View Profile
I think there is something wrong in your dialogs file. Open it with a text editor like Notepad++ (languages/xx/text/dialogs.dat) and check lines 2588-2592.
Maybe there is a bug in the quest editor, that generated a file with a wrong syntax. Probably because of an unexpected character a dialog.

YoshiMario2000

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Found it, Apparently the dialog thought that this:
Code: [Select]
dialog{
  id = "dungeonintro.1",
  text = [[

    [Town's Temple]
]]
}


when put in the editor, Became this:
Code: [Select]
dialog{
  id = "dungeonintro.1",
  text = [[

    [Town's Temple]]]
}


Witch broke it.  So just to be safe I'll just do this for now:
Code: [Select]
dialog{
  id = "dungeonintro.1",
  text = [[

    {Town's Temple}
]]
}
This signature was way too long before, but now it's short!
Also, I am Still Alive!
On ad Off I go!

Do you ever get the feeling that the fandom of a product(s) ruin the potential that you could have had to enjoy the product?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1185
    • View Profile
Ok, so there is a bug with the square brackets characters. Thanks for the feedback!