Code:
LANG="nl_NL.UTF-8"
LC_COLLATE="nl_NL.UTF-8"
LC_CTYPE="nl_NL.UTF-8"
LC_MESSAGES="nl_NL.UTF-8"
LC_MONETARY="nl_NL.UTF-8"
LC_NUMERIC="nl_NL.UTF-8"
LC_TIME="nl_NL.UTF-8"
LC_ALL=
LANG="nl_NL.UTF-8"
LC_COLLATE="nl_NL.UTF-8"
LC_CTYPE="nl_NL.UTF-8"
LC_MESSAGES="nl_NL.UTF-8"
LC_MONETARY="nl_NL.UTF-8"
LC_NUMERIC="nl_NL.UTF-8"
LC_TIME="nl_NL.UTF-8"
LC_ALL=
I'm going to try and get SL running to see what's up then. It should be OK with that file. Only other thing I can think of is rewriting the python in CCode:LANG="nl_NL.UTF-8" LC_COLLATE="nl_NL.UTF-8" LC_CTYPE="nl_NL.UTF-8" LC_MESSAGES="nl_NL.UTF-8" LC_MONETARY="nl_NL.UTF-8" LC_NUMERIC="nl_NL.UTF-8" LC_TIME="nl_NL.UTF-8" LC_ALL=
So I loaded up a copy of Snow Leopard in VirtualBox and I wasn't able to replicate: http://i.imgur.com/5qLXF.pngIt's 3:20 here in the Netherlands, so i go to bed. I hope you get it working. it seems like a nice challenge.
Yes, the language is set to Dutch.So I loaded up a copy of Snow Leopard in VirtualBox and I wasn't able to replicate: http://i.imgur.com/5qLXF.png
Working just fine for me so it must be some profile setting or something to do with language. Is it set to Dutch?
Last login: Sun Nov 18 13:27:32 on ttys000
MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers
-bash: /Users/***/Downloads/skialservers: Permission denied
MacBookPro-***:~ ***$ chmod +x /Users/***/Downloads/skialservers
MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers
Please enter the location of your steam folder:
python /Users/***/Downloads/skialservers
File "/Users/***/Downloads/skialservers", line 1
SyntaxError: Non-ASCII character '\xce' in file /Users/***/Downloads/skialservers on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Last login: Sun Nov 18 14:29:07 on ttys001
MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers
-bash: /Users/***/Downloads/skialservers: Permission denied
MacBookPro-***:~ ***$ chmod +x /Users/***/Downloads/skialservers
MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers
Please enter the location of your steam folder:
Last login: Sun Nov 18 14:38:42 on ttys000
MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers
-bash: /Users/***/Downloads/skialservers: Permission denied
MacBookPro-***:~ ***$ chmod +x /Users/***/Downloads/skialservers
MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers
Traceback (most recent call last):
File "/Users/***/Downloads/skialservers", line 24, in <module>
c = imp.load_compiled('__main__', tp.name)
ImportError: Bad magic number in /var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/tmpTrvDU7
MacBookPro-***:~ ***$ python /Users/***/Downloads/skialservers
Traceback (most recent call last):
File "/Users/***/Downloads/skialservers", line 24, in <module>
c = imp.load_compiled('__main__', tp.name)
ImportError: Bad magic number in /var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/tmpZtTCZj
The error in the original python script is because I think it was compiled with a python version later than SL has so it doesn't have the necessary byte-code stuff to run it properly (at least that's my guess.)Again Google is my friend.
So i tested some more with the last version you posted:
I changed my system language from Dutch to English but that didn't help at all.
I changed Formats to "United States (Computer)" and now i got a permission denied message.
So i used the chmod line, and finaly i got the thing working!
Code:Last login: Sun Nov 18 13:27:32 on ttys000 MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers -bash: /Users/***/Downloads/skialservers: Permission denied MacBookPro-***:~ ***$ chmod +x /Users/***/Downloads/skialservers MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers Please enter the location of your steam folder:
Edit:
Ok, i finaly know what i did wrong.
The first time i tried the recompiled 32-bit version, i must have used the python command, and then you get this error:
So, once i realised my mistake, i switched system language and format both back to Dutch, downloaded the file again and after i used the chmod command it worked:Code:python /Users/***/Downloads/skialservers File "/Users/***/Downloads/skialservers", line 1 SyntaxError: Non-ASCII character '\xce' in file /Users/***/Downloads/skialservers on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Code:Last login: Sun Nov 18 14:29:07 on ttys001 MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers -bash: /Users/***/Downloads/skialservers: Permission denied MacBookPro-***:~ ***$ chmod +x /Users/***/Downloads/skialservers MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers Please enter the location of your steam folder:
Edit 2:
Just to be sure i didn't make any mistakes with the original file (the python-script in the OP), i tried it again:
Code:Last login: Sun Nov 18 14:38:42 on ttys000 MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers -bash: /Users/***/Downloads/skialservers: Permission denied MacBookPro-***:~ ***$ chmod +x /Users/***/Downloads/skialservers MacBookPro-***:~ ***$ /Users/***/Downloads/skialservers Traceback (most recent call last): File "/Users/***/Downloads/skialservers", line 24, in <module> c = imp.load_compiled('__main__', tp.name) ImportError: Bad magic number in /var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/tmpTrvDU7 MacBookPro-***:~ ***$ python /Users/***/Downloads/skialservers Traceback (most recent call last): File "/Users/***/Downloads/skialservers", line 24, in <module> c = imp.load_compiled('__main__', tp.name) ImportError: Bad magic number in /var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/tmpZtTCZj
The error in the original python script is because I think it was compiled with a python version later than SL has so it doesn't have the necessary byte-code stuff to run it properly (at least that's my guess.)
Try this and see if you get the bad magic number error: http://davidweitz.com/Skialservers.zipThe compiled version works, but you still need Terminal to run it. Is it possible to convert it to a stand-alone version wit the .app extension? Just to make it a bit more user-friendly. It would be nice if you can just download the .app and double click it in finder.
not a magic number error, but:Try this and see if you get the bad magic number error: http://davidweitz.com/Skialservers.zip
This is an app package I made. Since the python script wasn't developed for a GUI, I just removed any inputs that you have to make. I don't think you have the ability to move the Application Support Library anywhere else on Steam for Mac, so there shouldn't be any issues.
File "/Users/***/Downloads/Skialservers.app/Contents/Resources/script", line 1
SyntaxError: Non-ASCII character '\xf3' in file /Users/***/Downloads/Skialservers.app/Contents/Resources/script on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
So I think I managed to track this down to a version issue. Try this: http://davidweitz.com/Skialservers2.zipnot a magic number error, but:
Code:File "/Users/***/Downloads/Skialservers.app/Contents/Resources/script", line 1 SyntaxError: Non-ASCII character '\xf3' in file /Users/***/Downloads/Skialservers.app/Contents/Resources/script on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
You were right in your edit, it didn't work:So I think I managed to track this down to a version issue. Try this: http://davidweitz.com/Skialservers2.zip
Hopefully this cracks the nut.
EDIT: This might not work actually. Goddamit. I think we're using a function that's in 2.7 and not 2.6
/Users/***/Library/Application Support/Steam/userdata/111393130/7/remote/serverbrowser_hist.vdf
/Users/***/Library/Application Support/Steam/userdata/111543052/7/remote/serverbrowser_hist.vdf
/Users/***/Library/Application Support/Steam/userdata/13131642/7/remote/serverbrowser_hist.vdf
Downloading server list from Skial
Opening /Users/***/Library/Application Support/Steam/userdata/111393130/7/remote/serverbrowser_hist.vdf
Traceback (most recent call last):
File "/var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/.plx_tmp.f4732y", line 235, in <module>
OOOOO0OO()
File "/var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/.plx_tmp.f4732y", line 175, in OOOOO0OO
III1I11 = OOO0(I1O0)
File "/var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/.plx_tmp.f4732y", line 59, in OOO0
O00 = collections.OrderedDict()
AttributeError: 'module' object has no attribute 'OrderedDict'
You were right in your edit, it didn't work:
As you can see, i have 1 main account and 2 alts. the script tried to update all 3 accounts.Code:/Users/***/Library/Application Support/Steam/userdata/111393130/7/remote/serverbrowser_hist.vdf /Users/***/Library/Application Support/Steam/userdata/111543052/7/remote/serverbrowser_hist.vdf /Users/***/Library/Application Support/Steam/userdata/13131642/7/remote/serverbrowser_hist.vdf Downloading server list from Skial Opening /Users/***/Library/Application Support/Steam/userdata/111393130/7/remote/serverbrowser_hist.vdf Traceback (most recent call last): File "/var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/.plx_tmp.f4732y", line 235, in <module> OOOOO0OO() File "/var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/.plx_tmp.f4732y", line 175, in OOOOO0OO III1I11 = OOO0(I1O0) File "/var/folders/AA/AAoQYt4bFTCknwNF51Og6k+++TI/-Tmp-/.plx_tmp.f4732y", line 59, in OOO0 O00 = collections.OrderedDict() AttributeError: 'module' object has no attribute 'OrderedDict'
Yes! Now it works!That's actually what the script should do. Check this: http://davidweitz.com/Skialservers21.zip
I re-implemented the function for 2.6 so hopefully that should work. OrderedDict was a function introduced into 2.7 so I just copied it back from the source so it should run in 2.6.
/Users/***/Library/Application Support/Steam/userdata/111393130/7/remote/serverbrowser_hist.vdf
/Users/***/Library/Application Support/Steam/userdata/111543052/7/remote/serverbrowser_hist.vdf
/Users/***/Library/Application Support/Steam/userdata/13131642/7/remote/serverbrowser_hist.vdf
Downloading server list from Skial
Opening /Users/***/Library/Application Support/Steam/userdata/111393130/7/remote/serverbrowser_hist.vdf
Finished adding servers.
Opening /Users/***/Library/Application Support/Steam/userdata/111543052/7/remote/serverbrowser_hist.vdf
Finished adding servers.
Opening /Users/***/Library/Application Support/Steam/userdata/13131642/7/remote/serverbrowser_hist.vdf
Finished adding servers.
Woo! Finally figured that out.Yes! Now it works!
Code:/Users/***/Library/Application Support/Steam/userdata/111393130/7/remote/serverbrowser_hist.vdf /Users/***/Library/Application Support/Steam/userdata/111543052/7/remote/serverbrowser_hist.vdf /Users/***/Library/Application Support/Steam/userdata/13131642/7/remote/serverbrowser_hist.vdf Downloading server list from Skial Opening /Users/***/Library/Application Support/Steam/userdata/111393130/7/remote/serverbrowser_hist.vdf Finished adding servers. Opening /Users/***/Library/Application Support/Steam/userdata/111543052/7/remote/serverbrowser_hist.vdf Finished adding servers. Opening /Users/***/Library/Application Support/Steam/userdata/13131642/7/remote/serverbrowser_hist.vdf Finished adding servers.
It must feel great to have solved this "problem". Don't forget to update the download in the OP with this file.Woo! Finally figured that out.
Well I don't exactly want to host this on my site. So Bottiger will have to upload it.It must feel great to have solved this "problem". Don't forget to update the download in the OP with this file.