ID:87310
 
Resolved
Fixed
BYOND Version:460
Operating System:Windows XP Home
Web Browser:Firefox 3.5.5
Status: Resolved (web)

This issue has been resolved.
Descriptive Problem Summary:
When trying to parse the new &long=1 member pages into a BYOND savefile, there is a runtime error BYOND Error: failed to parse savefile text at line X (reading 'end of file'): . with some members.

Numbered Steps to Reproduce Problem:
Run the following code snippet.
Choose Lummox JR, or Tiberath which both work fine.
Choose AZA, or Schnitzelnagler, which both cause a runtime error.

Code Snippet (if applicable) to Reproduce Problem:
mob 
proc
get_fav(member, game)
if(member && game)
var/md[] = world.Export("http://www.byond.com/members/[member]?format=text&long=1")
if(md)
var
info = file2text(md["CONTENT"])
savefile/s = new()
s.ImportText(, info)
if("website" in s.dir)
s.cd = "website"
var/list/l[]
s["favorite_games"] >> l
src << "[l.Find(game)]"

verb
Test()
var
member = input("Please select a Byond member") as null|anything in list("Schnitzelnagler", "Tiberath", "AZA", "LummoxJR")
game = input("Please select a Byond game") as null|anything in games
if(member && game)
get_fav(member, games[game])


var/list/games = list("LRS" = "DDT.LastRobotStanding", "IU" = "Enigmaster2002.IconUltima", "Proelium" = "SilkWizard.Proelium")


Expected Results:
Every member page to work the same.

Actual Results:
Runtime error "BYOND Error: failed to parse savefile text at line X (reading 'end of file'): ." with some members.

Does the problem occur:
Every time? Or how often? always
In other games? NA
In other user accounts? NA
On other computers? NA

Workarounds:
Non known.