I COME FROM SOF2
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
maybe u write your question to
he checks his e-mails from time to time.
He is one of 2 programmer of XP
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 )
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)
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: