Author Topic: ClientMod: Country Code labels [failed, ]  (Read 2541 times)

Please remove this from your Blockland folder.:
« Last Edit: April 24, 2012, 02:45:03 PM by Brian Smithers »

and you need this because...?


Fixed the XX thing. You have to redownload because the server part was moved.

This keeps crashing me. No errors in console.

This keeps crashing me. No errors in console.
thats odd.
Though you got to redownload again because there was a bug D:

I did, I still crash.

EDIT: Wait, what does v3 fix?

I did, I still crash.

EDIT: Wait, what does v3 fix?
no there was a bug where everything was ??.
try doing trace(1); then posting console.log

Hi.

This is actually pretty damn cool, good job!

try in console first doing
deactivatepackage(countrycodes);
then while it's loading do
activatepackage(countrycodes);

what about if the person's server is in the middle of the ocean? :J

then it takes the code of the cruise ship's ip



however, if its satellite internet, then probably where you got the internet router/transmitter

You call getIP twice

Also since you're expecting a HTTPobject to return data at the execution speed of torquescript it doesn't loving work

First refresh gets nothing because the HTTPobject is constantly getting deleted; the very last one works, second refresh the very last one's value is stored in $loc so is applied to every server

So the first refresh didn't work at all and on the second refresh, every server is from Great Britain or whatever country the last server requested was.

This is not something you can halfass like this. What you should be doing is making a list of IPs, committing them to the server as a list in one query using postdata, and getting back IP->country mappings then applying them retroactively to the list (by going through it once you get the data back). Doing it this way you could also be fancy and create guiBitmapCtrls at the appropriate positions with flags quite easily (though you'd have to resort the flags when you resort the list as well, which happens quite often so you'd want to hide the flag container during refreshes then show it again afterwards when it's sorted - but hey if you're gonna do something do it properly)

Cool!
Now I can finally see all the Sea Land Blocklanders!