AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   City Temperature on join | Updated Nov 26th 2022 (https://forums.alliedmods.net/showthread.php?t=314896)

DJEarthQuake 03-12-2019 11:45

City Temperature on join | Updated Nov 26th 2022
 
3 Attachment(s)

Quote:

Originally Posted by tarsisd2 (Post 2615885)
your plugin could detect from what city is the player from and get the weather right for him!

Quote:

Originally Posted by tarsisd2 (Post 2615885)
"Player" connected from "City", temperature right now is "temp°"

Translations.
&Checksums.
Spoiler

Requires:
  • GeoIP+ module or AMXX 1.9+.
  • GeoLite2 database.

    Debian based Linux systems symbolic link from apt install geoipupdate.

    GeoLite2-City.mmdb -> /var/lib/GeoIP/GeoLite2-City.mmdb
    GeoLite2-Country.mmdb -> /var/lib/GeoIP/GeoLite2-Country.mmdb


    Cron code for automatic update of database.
    @weekly geoipupdate
Directions:
  1. Download the 3 files and compare checksums.
  2. Compile and place SMA that is now an AMXX file in plugins directory.
  3. Place TXT in lang directory of amxmodx.
  4. Edit modules.ini and remove the semi-colon from in front of geoip2
  5. Unzip WAV file and place in sound/misc directory.
  6. As an admin the MOTD will prompt you where to go to get a key for CVAR: sv_openweather-key.

SMA URL
https://github.com/djearthquake/amxx.../clientemp.sma

Original without the temp. Geo data on connect Amxx 182++

ORIGINAL VERSION ARCHIVE
Includes windage. If shot the cross hair points to where the wind is blowing in real life. Have to duck or heal to straighten it. The humor.

The infamously named TRAFFIC(ID) reniced by iceeedr.
Spoiler

fysiks 03-12-2019 22:17

Re: TrafficID
 
So, why is the title of your thread "TrafficID"? Makes no sense. Also, are you saying that none of the other plugins that do this exact same thing no longer work?

DJEarthQuake 03-12-2019 23:53

Re: TrafficID
 
Quote:

Originally Posted by fysiks (Post 2643048)
So, why is the title of your thread "TrafficID"? Makes no sense. Also, are you saying that none of the other plugins that do this exact same thing no longer work?


Thanks for your feedback. This is reposted and answered later.

smurfavr 03-13-2019 08:03

Re: TrafficID
 
AMX Mod X v1.8.2-d server Hl1 eror
Code:

//// named.sma
// D:\server-2\valve\addons\amxmodx\scripting\named.sma(21) : error 017: undefin
ed symbol "geoip_city"
// D:\server-2\valve\addons\amxmodx\scripting\named.sma(23) : error 017: undefin
ed symbol "client_print_color"
// D:\server-2\valve\addons\amxmodx\scripting\named.sma(36) : error 017: undefin
ed symbol "geoip_city"
// D:\server-2\valve\addons\amxmodx\scripting\named.sma(38) : error 017: undefin
ed symbol "client_print_color"

Here it also gives, error.
http://aghl.ru/webcompiler/webcompiler.php

<VeCo> 03-13-2019 11:54

Re: TrafficID
 
Quote:

Originally Posted by smurfavr (Post 2643083)
AMX Mod X v1.8.2-d server Hl1 eror

you'd need 1.9 to run this

DJEarthQuake 03-13-2019 11:55

Re: TrafficID
 
This is definitely not for 1.8.2.

thEsp 03-13-2019 14:48

Re: TrafficID
 
Attach a zip file if it doesn't compile. Not everyone viewing this forums or thread is capable of coding, in this case compiling locally.

OciXCrom 03-13-2019 16:00

Re: TrafficID
 
Quote:

Originally Posted by thEsp (Post 2643137)
Attach a zip file if it doesn't compile. Not everyone viewing this forums or thread is capable of coding, in this case compiling locally.

Everyone should know how to compile locally.

DJEarthQuake 03-13-2019 18:24

Re: TrafficID
 
Updates were made.

fysiks 03-13-2019 22:39

Re: TrafficID
 
Quote:

Originally Posted by DJEarthQuake (Post 2643055)
Since when did you become a nominalist? I did not know you were multi-talented! Now that makes absolutely no sense. This identifies the network traffic and places it into log file. Follow? Sure there are others similar albeit unmaintained and unnecessarily convoluted big code. This works. One tiny sma. Void of tons of other files and instructions. Just drop it in and it works. You cannot force me to use other scripts or discourage me from sharing fix with sample code especially when GeoIP is packaged wrong leaving bad code on the street on a much more grandiose scale than you can fathom. I was the first one to point out the problem with GeoIP here if you take the time to read the details. It was packaged wrong. Why not use the code from the guy who got it working? Use it on your DoD server and let me know what it does to it. =P If you have any players you will know where your traffic is coming from. Identified. There are more issues with GeoIP and this was not intended to be released as is. It was going to have the weather pushed to it also of each new connection IE traffic. The so-called 'Traffic', I am not the only one to call it that buddy. Wikiapedia has an entire page dedicated to it. The ID? Really? Okay. Thanks for helping me be patient and explain what this does if the name ambiguates it some how please suggest a new name now. I see it as unique and that was what I named it. It is actually called named.sma. Not to confuse you. Name like a name server, a DNS server, resolves the IP through name server say to alliedmods.net. Similarly TrafficID called name was like my name server for my GoldSource farm. I had alpha version name a b c d e was for element. Left pending. This stable version is D name D. named.sma. D is combo of the B and C version. C was for counter-strike. The GeoIP IP ID which is an abbreviation for identify. Identifies the connector by country, region, and city. Region is state for U.S. and region for everybody else so I just called it region. It is in your destiny to test the D for DoD. Please let me know if you do not see colored messages like on CS. If not I will tell you it is WW2.

https://en.wikipedia.org/wiki/Internet_traffic

Wow, what in the world is this nonsensical post? Your plugin does not log "internet traffic", it only logs the location from which a player is connecting based on their IP address (so not "traffic" and not an "id"). Also, the title of your thread doesn't exist in your post nor is it the name of your .sma file (which is named nonsensical). It's just confusing and should be reasonably consistent for people to even take you seriously.


All times are GMT -4. The time now is 05:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.