Garry's Mod

Garry's Mod

312 ratings
New Scoreboard + Loading players + GeoIP
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
Updated
803.297 KB
Oct 31, 2013 @ 6:45am
Jul 6, 2019 @ 3:42pm
94 Change Notes ( view )

Subscribe to download
New Scoreboard + Loading players + GeoIP

In 6 collections by Cédric GÉRILLE [GiletJaune]
The TTT by Mohamed Rachid
39 items
Mohamed Rachid's Vehicles Paradize
191 items
The DarkRP by Mohamed Rachid
44 items
Université Joseph Poireau (serveur)
70 items
MR: Serveur Garry's Mod Jeu en 2D
11 items
G-1:788429
50 items
Description
New social scoreboard, Listing loading players functions, GeoIP library
The GeoIP library and the List of loading players can be used for your own development.
You are free to disable the included scoreboard if you want only Loading players or GeoIP!
The Scoreboard displays players' country.

[curse.com]

Documentation
Administrators and technicians, here is what you need
Developpers, here is what you need

New scoreboard
● Features:
——□ This is a new scoreboard designed to upgrade any generic scoreboard. It has a clear design and it is thought to be very social.
——□ Default language is English, and it is available in French. The translation is automatically selected by client's Garry's Mod interface language.
——□ Displays all players, including players who are loading.
——□ On each player's line, you have the photo, the country flag, the packet loss percentage, the score, the deaths, the ping, the mute state.
——□ The profile photo is a link to the user's profile.
——□ The flag is a button to display user's information: group, life status, interface language, country and region. (To see the region in the GeoIP information, please read the IP2Location section below.)
——□ The gamemode name is a link to the gamemode's website.
——□ The server's name is a link to an URL you set or to the server's group. Please look at documentation.
● It can be used correctly if your gamemode uses the standard scoreboard. It may also be usable in some gamemodes that do not use the default scoreboard, depending on the way it is displayed and used.

Get loading users
● It allows to know the complete list of loading players and every player including loading ones.
● You can use these new functions in your gamemode: player.GetAny() and player.GetLoading(). For players connected since a previous map only, the results will only be correct when the gamemode has finished starting; you can use the property player.AllConnectedLoaded to check if you can trust the result. You can use matching console commands "player_getany" (similar to the command "users") and "player_getloading" to see the results.
● You can call the method element:GetPlayerEnt() on each element of the returned tables. If the player has finished loading it returns the player entity, else it returns nil. You can simply use an IsValid() check on the result.
● You can modify both empty functions player.OnReloadAllConnected() (1 clientside and 1 serverside) in your gamemode. They are called every time a change in the list occurs. For example, the clientside player.OnReloadAllConnected() can be modified to refresh the scoreboard.
● The client gets the full nicknames except after a change, and receives nothing if the changes are only over the 31 first bytes. This is not a problem in the joined scoreboard.

IP2Location
● With no database, the library will use the default IP location database which is now included, based on the DB1-lite database. It is updated every month. This will cause some country names to be displayed differently for a country code that has different country names.
● To make this file fully working (with region and city), you need to download the IP location CSV database.
——□ You can download it at http://lite.ip2location.com/database-ip-country-region-city
——□ Then extract the .CSV file at garrysmod/data/geolocation/IP2LOCATION-LITE-DB3.CSV
——□ Do not forget to update it every month!
● The DB3-lite CSV file is suggested, but you can also use the standard DB3 one (not free). The DB1-lite and DB1 (not free) CSV files can also be used but they will not display the region.
● You can use : ulx luarun "print(table.ToString(geoip.GetIpInfo('127.0.0.1'), 'GetIpInfo', true))" in console to test if you can get an IP address (with ULX installed).
● The IP geolocation data is provided by http://www.ip2location.com
Popular Discussions View All (4)
2
Jan 13, 2018 @ 8:20pm
PINNED: Bug reports
Cédric GÉRILLE [GiletJaune]
61 Comments
Cédric GÉRILLE [GiletJaune]  [author] Dec 7, 2023 @ 9:17pm 
Huh, did something change on the default scoreboard? I don't understand what you mean. I barely work on video games anymore. BTW I should update this add-on, the GeoIP base is really out dated now.
Rosie Nov 17, 2023 @ 10:30am 
This is really cool. But can you make it so that it shows Lambda players on the scoreboard like it does on the default?
Cédric GÉRILLE [GiletJaune]  [author] Dec 28, 2022 @ 1:38pm 
Oh wow, you took a very old project out of the ground! Well, you just brought to my knowledge that there is such a function. Well, as you can see I did not even kept going with GeoIP updates, but of course if I was still using GMod then I would make such an update!
Thanks for commenting! 👍
淋一喃 Jul 2, 2017 @ 6:27am 
thanks
Cédric GÉRILLE [GiletJaune]  [author] Jul 2, 2017 @ 6:18am 
Okay, upload it somewhere and I'll integrate it.
淋一喃 Jul 2, 2017 @ 5:54am 
Hmm,I would like to have your work translated and provided to Chinese players. I've finished the part of chinese. Hope to get the right to publish.:steamhappy:
Cédric GÉRILLE [GiletJaune]  [author] Jun 21, 2017 @ 9:09am 
Hmm, I'm not totally sure. But if the connection between the server and the client loses packets then the value will not be 0.
It's a good piece of information to check whether a user faces a bad connection or simply has a high latency, when the ping is high.
A server under attack will also lose packets for all remote users.
Max The Malinois Jun 21, 2017 @ 8:37am 
What does packet loss percentage mean?
Cédric GÉRILLE [GiletJaune]  [author] Jun 18, 2017 @ 9:17pm 
In garrysmod\cache\srcds, of course.
Sam Jun 18, 2017 @ 7:56am 
Okay so I have removed the addon from the collection, do you have any more information on where the .gma folder is located.