Because Lua does not support HTTP, this upload also contains an executable (for Windows) and its Python source (for Linux). If you don't trust the executable, you can compile a new one from the source by using the included Py2Exe setup script.
Usage is very simple:
1
player(id, "usgnname")
Just extract the files from the right folder (there are separate folders for Windows and Linux) into your CS2D directory, then add the following line to your script:
1
dofile("sys/lua/usgnname/GetUSGNName.lua")
There's a more detailed readme included if you want more information.
Just to be sure, I ran this file through an online virus checker (I wouldn't want to be responsible for the spread of viruses), it came out clean: http://www.virustotal.com/file-scan/report.html?id=74fa9c4f66458119ce583fb6414095eae01648238ba8e7dda018cbc867eed6fb-1308818490.
Screens aren't really useful for this file since it only provides a helper function. I just took one of the included example uses and took a screen of that.
edited 1×, last 23.06.11 10:55:55 am
Approved by GeoB99
Download
1.40 mb, 830 Downloads