Author Topic: Server "Hopper" + Platform  (Read 7797 times)

0 Members and 1 Guest are viewing this topic.

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Server "Hopper" + Platform
« on: May 28, 2015, 02:52:33 PM »
Before I start, I do realize that there's already a release of a server hopper on this forum ( http://forums.ulyssesmod.net/index.php/topic,8464.0.html ), but I don't really like it due to its limitations and design. In other words, I take no credit for the idea

What is it
This server hopper is like any other, when activated, a DFrame will open up displaying all enabled servers in the config file, as well as a connect button and a copy IP to clipboard button
You can "activate" the window in multiple ways:
One, by standing on the platform, which I'll explain later in this post
Secondly, via the various commands, which are under the Commands heading in this post

Commands
Chat Commands:
"!servers" - "/servers" - "!hopper" - "/hopper": All do the same thing: open the server hopper window via a chat command.


Console Commands:
"hopper_setpos" - sets the position of the platform to where the user is standing. By default, only users with the superadmin group can use this command. All positions are saved to a data file for each map for easy "memory," as I call it. Using this command WILL override any previously set position for the given map.

"hopper_spawn" - spawns & places the platform at its set position on the current map. By default, only users with the admin group and above can use this command

"hopper_getpos" - prints to the users chat where the platform is set to spawn for the current map. Any user can access this command.

"hopper_remove" - removes the platform from the map. By default, only users with superadmin access can use this command. This does not unsave the position of the platform.

"hopper_info" - prints information about the addon to the users console.

To Do
 - Add slightly more configuration to the addon (ex: title of the DFrame, permissions for console commands, etc.)
 - Make the title of the DFrame look better
 - Figure out how to put floating text above the platform to advertise that it's the server hopper platform

What is the Platform
The "platform," as I have called it a few times throughout this post, is nothing more than a default prop with purple coloring on it (models/props_phx/construct/plastic/plastic_angle_360.mdl, to be exact)
I would've made my own model for it but I am at modelling
Anyway, standing on this platform will activate the hopper window.
Don't worry about the obvious bugs like standing on it will spam the opening of thousands of windows per second, or closing the window instantly bringing it back up. I've taken steps to eliminate the first problem and done as much as I could think of to eliminate the second

Known Bugs:
N/A

Pictures:
Window front and center, platform slightly visibile at the bottom: http://i.imgur.com/clZzUHr.jpg
Might add more pictures later, running low on time right now

Download file is attached to this post

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Server "Hopper" + Platform
« Reply #1 on: May 28, 2015, 03:27:57 PM »
Looks awesome!!!! Ill have to try it out later but it looks really awesome!

Offline Tomzen

  • Full Member
  • ***
  • Posts: 115
  • Karma: -1
  • A new lua adventurer
    • Thirdage Gaming
Re: Server "Hopper" + Platform
« Reply #2 on: May 28, 2015, 07:08:15 PM »
Nice, quick question, does it save the position through map restarts/server restarts or do you have to set it each time? I imagine it saves in a config?
Finished:
Impersonate
<==> FakePromote/Demote <==> RandomMap <==> ForceMic <==> Search <==> PlayMenu <==
WIP:
ServerMode <==

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: Server "Hopper" + Platform
« Reply #3 on: May 28, 2015, 07:51:48 PM »
Yea it saves through restarts & map changes by saving the coordinates in a txt file in /data

Offline Undercover Orange

  • Full Member
  • ***
  • Posts: 139
  • Karma: -14
  • Leader of Undercover Gaming Community
Re: Server "Hopper" + Platform
« Reply #4 on: July 27, 2016, 08:20:00 AM »
Do I need MySQL to make this work?
~ Undercover Orange

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: Server "Hopper" + Platform
« Reply #5 on: July 27, 2016, 10:38:53 AM »
Do I need MySQL to make this work?

No, it saves in a local text file

Offline Undercover Orange

  • Full Member
  • ***
  • Posts: 139
  • Karma: -14
  • Leader of Undercover Gaming Community
Re: Server "Hopper" + Platform
« Reply #6 on: July 27, 2016, 12:12:51 PM »
Great. Thanks. I only have one server at the moment but ill favorite this and come back to it when I decide to expand
~ Undercover Orange