Closed nelhage closed 8 years ago
Invalid PTN
File content: [Site "PlayTak.com"] [Date "2016.10.26"] [Player1 "Guest853"] [Player2 "BeginnerBot"] [Size "5"] [Result "R-0"]
I tracked it to line break problems. Windows saves files with a double line break (\r\n) There seem to be additional problems though. I can't pin it down any further, as I am currently at work.
@TreffnonX just updated, works for me now. Fixed the newlines and bug in drops with neither explicit count nor drops, like "d1>"
Yep, works for me as well. Was able to load several arbitrary PTNs now. Good work!!1eleven ;) This might even trigger me to make an intermediary merge and get it to run on my fork before I add all the other stuff I did on it.
Thanks nelhage awesome work! Thanks Treff for pointing out the issue!
Live demo at https://nelhage.github.io/TakWeb/#
Replaces the "Load TPS" button with a "Load PTN" button that can upload playtak PTN files directly.