Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamemann/-gmod-server-hop
A server hop addon for Garry's Mod
https://github.com/gamemann/-gmod-server-hop
database garrys glua gmod hop lua mod mysql server
Last synced: 10 days ago
JSON representation
A server hop addon for Garry's Mod
- Host: GitHub
- URL: https://github.com/gamemann/-gmod-server-hop
- Owner: gamemann
- Created: 2015-06-07T07:36:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-21T23:42:52.000Z (about 9 years ago)
- Last Synced: 2024-10-11T02:25:32.647Z (27 days ago)
- Topics: database, garrys, glua, gmod, hop, lua, mod, mysql, server
- Language: PHP
- Homepage: https://moddingcommunity.com/
- Size: 145 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation
1. Create a MySQL database.
2. Import the mysql.sql file.
3. Go to the servers table and insert a row with your server details.
4. Put the "Server Hop" addon on your server.
5. Configure addons/serverhop/lua/shp_server.lua (MySQL information, etc).
6. Put the web files on your web server.
7. Configure the web file web/refreshserverlist.php (MySQL information, etc).
7. Create a cronjob and set the file as web/refreshserverlist.php (this is to refresh the server's details every x minutes, seconds, etc. GFL has theirs set to refresh every 5 minutes).# Description
As promised in June, here's the Garry's Mod server list! As you may tell from looking at the SQL file, GFL has a global server list. However, I am currently not releasing my Server Hop plugin for SourceMod. I've spent the thirty minutes preparing this addon. However, I did not test this. Therefore, there may be addon-breaking issues. If there is, let me know (submit an issue under this repo) and I will get it resolved. I also didn't originally plan on releasing this to the public. Therefore, the code may seem a bit messy. Eventually, I plan on recoding this and making it more public-friendly. Enjoy!# MySQL Column Descriptions
`id` - ID of the server (auto increment)
`name` - The server name that displays in the ad (e.g. TTT)
`location` - The location ID (1 - USA, 2 - Germany, ...)
`ip` - The IP of the server. This is mainly used for A records (e.g. ze.gflclan.com)
`publicip` - The number IP of the server (e.g. 64.74.97.72)
`port` - The join port for the server (e.g. 27015)
`qport` - The query port for the server (e.g. 27015, not used)
`description` - A description of the server. Not used in the GMod Server Hop.
`gameid` - The server's game ID (e.g. 1 for Garry's Mod)
`players` - The current amount of players (value should be 0 when inserting a new row)
`playersmax` - The maximum players of the server (value should be 0 when inserting a new row)
`bots` - The amount of bots the server currently has (value should be 0 when inserting a new row)
`map` - The current map the server is on
`password` - The password of the server (currently useless)