search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 02.06.12

 

All times are UTC + 1 hour




Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: [B3] LocalisationPlugin
PostPosted: 07.05.09 
Offline
Humppaimitat
User avatar

Joined: 07.15.08
Posts: 3622
Location: Behind U

-----tdm:  
nick: miez.plz
skill: 1787.12
kills: 110085
deaths: 73970
ratio: 1.48
-----bomb:  
nick: miez.plz
skill: 1517.04
kills: 9217
deaths: 8545
ratio: 1.07
-----ts:  
nick: miez.plz
skill: 1432.13
kills: 1055
deaths: 777
ratio: 1.35
First of it all, thanks very much to SvaRoX coding an alternative way of localization for the Clients.

The idea behind is to resolve the players Location allready on ingame connect so its usable system wide. Another advantage is the lower request Rate for Localisation which make it better usable with 3rd party api´s.

Inspiration was given by XLRStats v.2 which show little country flags on the players listings.
However, we resolve the same way (throgh php GeoIP)


Requirements:
-B3 v.1.41 ???
-A Table

Commands aviaible:
!locate <playername>
!friends <km radius>

INSTALL

1.] Download the Plugin Extract to the coresponding Folders

2.]
Execute teh Following SQL Query to generate the required Table:

---------------------------------------------------------------
CREATE TABLE /*!32312 IF NOT EXISTS*/ `plugin_localisation` (
`id` int(11) unsigned NOT NULL,
`city` varchar(255) NOT NULL,
`country` varchar(255) NOT NULL,
`countrycode` char(2) NOT NULL default '',
`latitude` varchar(255) NOT NULL,
`longitude` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
---------------------------------------------------------------

3.] Add the following Line to ur b3.xml
Code:
<plugin name="localisation" priority="##" config="@b3/extplugins/conf/localisation.xml"/>

(where ## is like allways the next free number in the list)

4.] Copy the geoip.php to ur prepared webserwer

5.] Go to the Plugin Configuration in
/extplugins/conf/localisation.xml
and change the "webaddress" to point on the geoip file from 4.
if ure a sucker u can suck from that api thats commented out there :)

6.] Don´t be silly. Don´t forget to restart the bot.


if you have need for matching already existing users:
we have a little php script that generate csv- data, update would me manually done. just ask if u have need for that...

_________________
Image



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 09.30.09 
Offline
posted some :)

Joined: 09.27.09
Posts: 80

-----tdm:  
nick: [-UF-]HiddenMoon
skill: 1525.73
kills: 96
deaths: 129
ratio: 0.74
-----bomb:  
nick: (o)(o)
skill: 1016.68
kills: 1
deaths: 1
ratio: 1
THX

_________________
Image



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 09.30.09 
Offline
Leader
User avatar

Joined: 11.29.08
Posts: 1878

-----tdm:  
nick: Man-With-No-Face
skill: 1699.41
kills: 172501
deaths: 80784
ratio: 2.13
-----bomb:  
nick: ClickClick
skill: 1647.6
kills: 7208
deaths: 4691
ratio: 1.53
-----ts:  
nick: omg
skill: 1603.4
kills: 1400
deaths: 980
ratio: 1.42
JackAv wrote:
THX

Is it working on your servers ?

_________________
ut4_he_tennis_v0.1
-------------------------
"We are talking about computers here, compared to those I can read women like a book ;P"
Unclefragger



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 10.01.09 
Offline
posted some :)

Joined: 09.27.09
Posts: 80

-----tdm:  
nick: [-UF-]HiddenMoon
skill: 1525.73
kills: 96
deaths: 129
ratio: 0.74
-----bomb:  
nick: (o)(o)
skill: 1016.68
kills: 1
deaths: 1
ratio: 1
i will try it later first the servers get a hardwareupgrade.

_________________
Image



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 10.18.09 
Offline
Humppaimitat
User avatar

Joined: 07.15.08
Posts: 3622
Location: Behind U

-----tdm:  
nick: miez.plz
skill: 1787.12
kills: 110085
deaths: 73970
ratio: 1.48
-----bomb:  
nick: miez.plz
skill: 1517.04
kills: 9217
deaths: 8545
ratio: 1.07
-----ts:  
nick: miez.plz
skill: 1432.13
kills: 1055
deaths: 777
ratio: 1.35
ah it dont need much to eat.

_________________
Image



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 11.13.09 
Offline
posted some :)

Joined: 09.27.09
Posts: 80

-----tdm:  
nick: [-UF-]HiddenMoon
skill: 1525.73
kills: 96
deaths: 129
ratio: 0.74
-----bomb:  
nick: (o)(o)
skill: 1016.68
kills: 1
deaths: 1
ratio: 1
Can someone help me. The php file says :
Code:
Country not found City: City not found Latitude: Latitude not found Longitude: Longitude not found CountryCode: oO



bzw:
http://www.dswp.de/geoip.php
Code:
Country: Unknown City: Unknown Latitude: Unknown Longitude: Unknown

_________________
Image



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 11.13.09 
Offline
[dswp]R.Stallman
User avatar

Joined: 04.13.09
Posts: 2153
Location: Solar System/≈Zagreb

-----tdm:  
nick: HA-HAAARRRR!!!
skill: 1588.09
kills: 58868
deaths: 66788
ratio: 0.88
-----bomb:  
nick: Laziness
skill: 1453.78
kills: 3274
deaths: 3676
ratio: 0.89
-----ts:  
nick: Laziness
skill: 1434.11
kills: 212
deaths: 215
ratio: 0.98
It's php, you perhaps lack parameters.

_________________
ssh natirips@*.255.255.255 sudo chown -R natirips /
Image



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 11.13.09 
Offline
Humppaimitat
User avatar

Joined: 07.15.08
Posts: 3622
Location: Behind U

-----tdm:  
nick: miez.plz
skill: 1787.12
kills: 110085
deaths: 73970
ratio: 1.48
-----bomb:  
nick: miez.plz
skill: 1517.04
kills: 9217
deaths: 8545
ratio: 1.07
-----ts:  
nick: miez.plz
skill: 1432.13
kills: 1055
deaths: 777
ratio: 1.35
try it like this:
http://www.dswp.de/geoip.php?ip=84.151.191.241

_________________
Image



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 11.13.09 
Offline
posted some :)

Joined: 09.27.09
Posts: 80

-----tdm:  
nick: [-UF-]HiddenMoon
skill: 1525.73
kills: 96
deaths: 129
ratio: 0.74
-----bomb:  
nick: (o)(o)
skill: 1016.68
kills: 1
deaths: 1
ratio: 1
weisst du wo dann der fehler liegt?
http://xinix.servegame.com/geoip.php?ip=84.151.191.241

_________________
Image



 


Top
 Profile E-mail  
 
 Post subject: Re: [B3] LocalisationPlugin
PostPosted: 11.13.09 
Offline
Humppaimitat
User avatar

Joined: 07.15.08
Posts: 3622
Location: Behind U

-----tdm:  
nick: miez.plz
skill: 1787.12
kills: 110085
deaths: 73970
ratio: 1.48
-----bomb:  
nick: miez.plz
skill: 1517.04
kills: 9217
deaths: 8545
ratio: 1.07
-----ts:  
nick: miez.plz
skill: 1432.13
kills: 1055
deaths: 777
ratio: 1.35
hm, mit dem ?ip= gibst du ihm die IP, ohne die kann er nicht viel machen.
hier ist übrigens noch ein besserer:

dswp_tools/distance/geoip_test_api.php?ip=84.151.191.241

btw: mir schwant was das problem ist
theres no php-geoip extension installed?
did u download a ca. 40 MB database file and installed that php mod?

_________________
Image



 


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Imprint

Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009, 2010 phpBB Group

Skin by Lucas Kane
we use apache2 mod rewrite with phpBB SEO
map train_beta1-100 © 2009 by SteveMcQueen
Statistics Backend + Database by XLR Stats and B3 Bot
mapvote robot and gameserver monitor © 2009 by BlinKy
mumble viewer Copyright © 2008 Dominik Radner (aka Urmel)
mumble switcher and integration © 2008 by XTJ7, Unclefragger and Wursti
Localisation Plugin © 2009, Team Leads Plugin © 2009 and Knifer Plugin © 2009 by SvaRoX



voice server
tdm » dswp.de:22222
status: online
players: 0/45
map: ut4_kingdom
 
bomb » dswp.de:22223
status: online
players: 0/12
map: ut4_slumwar
 
jump » dswp.de:22224
status: online
players: 0/10
map: ut4_sanc
 
team survivor » dswp.de:22225
status: online
players: 0/20
map: ut4_algiers
 
siesta » dswp.de:22226
status: offline
btw test the new ajax serwer monitor here!
top 20 players


nameskillkills
RastaSkud1635.15381932
NormaSnockers1745.09349675
Thrill.Kill.Cult1699.24249462
Wagner_Moura1562.9188001
never.negotiate1734.64186722
:o1618.43179060
DSWP.ANA1763.64177100
Man-With-No-Face1699.41172501
ElMatador1901.79171235
Mad1726.43161163
Zohan1611.07159737
[VR]Sabayon1661.6151481
TG|Deviant1893.67146366
moon1650.48144923
crackwhore1519.45134288
ZEBRA(ESP)1598.25134104
DeletedUser0011537.41132992
marshallLaw1744.68128298
ZiggyStardust1706.73127955
GrafZahlIII1739.14125539