I COME FROM SOF2

5 replies [Last post]
BRICKTOP
Offline
Joined: Jan 2006
Posts:

hi all

i try to search on forum, but i don't find nothing, so i post here my question........

i play q3a excessive plus, on capture the doener server, and i like it very much {u can find me as BrickTop}

the most interesting thing of this mod is the flag of the country........

mostly i'm a sof2 player, i run a server and actually i was going to write down the part of code to show the country flag on stats............

actually it's an option that u set from options, u choose your country and then in game it show the flag............

......but i really would like to have it automatically {first cause it's like excessive plus work, second cause people cannot put "fake" flags of where they come from}..........

the code is not a problem, my main problem actually is how i can know where the guy come from?

i thought about the ip check, if the ip come down to a range then server must show a flag.........................

....but it's a long work to make ip range for every country, so i was asking to the community and especially to mod writers 2 things

1 ) if they don't do like i write above, how they implement this kind of code for the flag?

2 ) if they do like this, would u please be nice to send me a files with the range of ip, or give me some help to how i can do it?

thanks for attention, sorry for the "school" english but i come from italy and i don't know english correct, if the coders will say "yes" to help me, later i will send them a pm with my contact through msn or yahoo

thanks again

mow Q [EN]
Offline
Joined: Nov 2003
Posts:
I COME FROM SOF2

maybe u write your question to

he checks his e-mails from time to time.

He is one of 2 programmer of XP

nihil
nihil's picture
Offline
Joined: Dec 2004
Posts:
I COME FROM SOF2

http://maxmind.com/geoip/
http://freshmeat.net/redir/geoip/30930/url_tgz/GeoIP-1.2.1.tar.gz

this lib is used in most gpl applications for looking up country by ip
there is also free db of ranges included in csv (atleast i had it somewhere Smug)

imho there will be more derivates of this

next variant is to decode ipdb.dat in pak0.pk3 there will be some simple format like range and id for each country (maybe exactly same format like that binary one from libgeoip)

BRICKTOP
Offline
Joined: Jan 2006
Posts:
I COME FROM SOF2

thanks guys for the quick reply, u are really kind!

i don't know if i will contact one of the programmer: i'm sure they are really busy, i will try the GeoIP-1.2.1.tar.gz first........

thanks again, and if someone has got idea, post here! :twisted: Big grin

nihil
nihil's picture
Offline
Joined: Dec 2004
Posts:
I COME FROM SOF2
BRICKTOP
Offline
Joined: Jan 2006
Posts:
I COME FROM SOF2

thanks a lot man really

i appreciate it a lot

your help is special: now i begin my work Winking

thanks again to all excessive plsu community for the support, and catch ya all on capture the doener

BrickTop is waiting u! :twisted: