World map with players

all about Server Settings and important changes

Re: World map with players

Postby ChineseDemocracy » 06.10.09

Ok cool, loving these weekly score charts too, keep up the good work.
User avatar
ChineseDemocracy
Ingame Mod
 
Posts: 229
Joined: 03.16.09

Re: World map with players

Postby SKracht » 06.10.09

Yeah great new feature!

It's always a nice time, hanging on the server, familiar atmosphere, very kewl!

Weiter machen :?
User avatar
SKracht
Ingame Mod
 
Posts: 437
Joined: 05.08.09
Location: Germany

Re: World map with players

Postby Unclefragger » 06.10.09

Yes it's displaying the people online on the server using geoip information. Maybe wurst is still playing over his vpn connection and that's why the bot thinks that he is somewhere in Africa (although I have no idea why private ranges should be in Africa)
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
User avatar
Unclefragger
Godlike
 
Posts: 2006
Joined: 10.14.08
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60

Re: World map with players

Postby AimMe » 06.10.09

Unclefragger wrote:Yes it's displaying the people online on the server using geoip information. Maybe wurst is still playing over his vpn connection and that's why the bot thinks that he is somewhere in Africa (although I have no idea why private ranges should be in Africa)


Maybe because they have (in Africa) free space? If Germany has 89-91.XXX.XX.XX and most are used, and that county in africa has maybe 10000 IPs, they put germans there. Just idea, i don't know why really.

BTW: My IP isn't detected by b3? Or?
Image
User avatar
AimMe
Godlike
 
Posts: 2318
Joined: 09.28.08
Location: Solar System

Re: World map with players

Postby wurst » 06.10.09

no its a 192.168.66.xxx :)

btw, im having plans with this worldmap. i just didnt find the time to do everything properly.

first of it all, id like to show it only in the player profile in playerstats.
with only the shown player inside as a little dot.

for this i need an xml file in place, theres pre-written php example that can generate it even from SQL, on the fly.

to update it to DB, theres a php file that can query the gps coordinates on IP request.
best sure would be separate columns in B3 (or better a separate table) that get filled with this data on player connect.

maybe its a good way to archieve this through an sql trigger or better through B3 plugin. anyways: a player connecting on gameserver would execute research of his coordinates and DB update.

btw: the map can be started pre-zoomed into a specific location...
btw2: its free to use but not open source. the clients need the flash.
Image
User avatar
wurst
Godlike
 
Posts: 4648
Joined: 07.15.08
Location: Behind U
-----tdm:  
nick: [dswp]GewitterOma
skill: 1122.83
kills: 25960
deaths: 19847
ratio: 1.30
-----bomb:  
nick: [dswp]GewitterOma
skill: 812.172
kills: 3885
deaths: 3541
ratio: 1.09

Re: World map with players

Postby Unclefragger » 06.10.09

open source and flash don't really have much to do with each other, open source is how the code is handled, every one can get it in this case, flash is a technique to execute code, just because you can't see the actual code in the page source doesn't mean that it is not open. Like with C and any other compiled language ;)

Having the location in the player profiles is a nice feature, but the geo technology isn't perfect.
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
- Martin Golding
User avatar
Unclefragger
Godlike
 
Posts: 2006
Joined: 10.14.08
Location: rooftops
-----tdm:  
nick: [dswp]ucf
skill: 472.479
kills: 532
deaths: 332
ratio: 1.60

Re: World map with players

Postby AimMe » 06.11.09

wurst wrote:btw2: its free to use but not open source. the clients need the flash.

Well if i use gnash to play flash it's all open source. But it ain't so good :(.
Image
User avatar
AimMe
Godlike
 
Posts: 2318
Joined: 09.28.08
Location: Solar System

Re: World map with players

Postby SvaRoX » 06.11.09

wurst wrote:maybe its a good way to archieve this through an sql trigger or better through B3 plugin. anyways: a player connecting on gameserver would execute research of his coordinates and DB update.

I've seen a plugin on a server which welcomes players according to their location, for example it says "welcome svarox from france", but I don't know if it has anything to do with geoip (SG server, 91.121.169.88:27960).
Anyway, I'm in for the plugin part ;)
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger
User avatar
SvaRoX
Leader
 
Posts: 1972
Joined: 11.29.08

Re: World map with players

Postby dmmh » 06.11.09

ChineseDemocracy wrote:A very nice map and a great idea, I'm from London, England if anyone would be kind enough to add me to it!

lol :D
the meaning of the word cunt....loool

Image
User avatar
dmmh
Godlike
 
Posts: 1134
Joined: 01.19.09

Re: World map with players

Postby dmmh » 06.11.09

SvaRoX wrote:
wurst wrote:maybe its a good way to archieve this through an sql trigger or better through B3 plugin. anyways: a player connecting on gameserver would execute research of his coordinates and DB update.

I've seen a plugin on a server which welcomes players according to their location, for example it says "welcome svarox from france", but I don't know if it has anything to do with geoip (SG server, 91.121.169.88:27960).
Anyway, I'm in for the plugin part ;)

it's the only way to determine where somebody's from: the IP address.

and it sadly not flawless, if the IP ranges are not quite correct, they are compared to that range and someone from Spain might be shown as on Antartica or whatever. But it's better then nothing and works quite nicely most of the times :)
the meaning of the word cunt....loool

Image
User avatar
dmmh
Godlike
 
Posts: 1134
Joined: 01.19.09

PreviousNext

Who is online

Users browsing this forum: No registered users and 15 guests

Misc