ULX

Author Topic: ULib.parseKeyValues Error  (Read 4015 times)

0 Members and 1 Guest are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
ULib.parseKeyValues Error
« on: June 12, 2008, 08:34:15 PM »
Ok, I have no clue why I'm getting this problem. It worked fine until today, but now for some reason it's a complete failure. No new addons, in fact nothing is new on the server.

Commmand:
Code: [Select]
lua_run players = ULib.parseKeyValues ( file.Read("player_times.txt"))
> players = ULib.parseKeyValues ( file.Read("player_times.txt"))...
lua_run PrintTable(players)
> PrintTable(players)...
ยด??^*#1:

player_times.txt:
Code: [Select]
"players"
{

}

I'm lost  ???
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: ULib.parseKeyValues Error
« Reply #1 on: June 13, 2008, 05:03:25 PM »
Looks like an encoding issue.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ULib.parseKeyValues Error
« Reply #2 on: June 13, 2008, 06:08:27 PM »
So, how would I go about fixing this?
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ULib.parseKeyValues Error
« Reply #3 on: June 15, 2008, 02:48:11 PM »
I really need to find a fix for this. I'm very limited w/o it.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULib.parseKeyValues Error
« Reply #4 on: June 15, 2008, 08:21:47 PM »
I'll look into it tomorrow.
Experiencing God's grace one day at a time.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: ULib.parseKeyValues Error
« Reply #5 on: June 16, 2008, 05:29:55 PM »
Problem solve, thanks to Megiddo :D

Must save the file as ANSI, not UTF-8
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly