March 28, 2020, 05:55:54 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:


NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.
Chat with us online! (or @irc.esper.net/#gg2)
Come Mumble with us!

Poll

-No Question, but don't know how to remove poll-

Nothing
- 9 (52.9%)
Nothing
- 8 (47.1%)

Total Members Voted: 14


Pages: [1] 2 3 ... 15

Author Topic: [Real Mod] Orpheon's Hosting Utilities - v8.1  (Read 16924 times)

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6439
  • Developer
[Real Mod] Orpheon's Hosting Utilities - v8.1
« on: July 15, 2011, 07:59:25 am »

Orpheon's Hosting Utilities

Description:
I've noticed that there is no server-mod anymore, because both Vindicator and Ajf (and Artemis) decided to discontinue their mods.
This is not a very good thing, since there are several features that are easy to code and very useful for hosting yet do not exist in the standard gg2 for various reasons (like kicking).

That's why I've decided to make my own.

It features kicking, banning, classlimits, plugin support, map changing, chat, rcon and the newest version of the Tempest Bot.


Command List and the Console:

The console is in the bottom-left of your screen. You can activate/desactivate it pressing Enter.
When you type a command, add arguments like this:
Code: [Select]
myCommand -arg1 -arg2 -arg3
Rcon commands must simply be preceded with "rcon ", like this:
Code: [Select]
rcon addBot -red -pyro
You can make some commands execute automatically once you host/join a server. To do this, create a text file called "autoexec.txt" inside your OHU Directory.
Then, inside, mark your commands with the following syntax:
Code: [Select]
addBot -red -pyro|chat|Hello, I'm your host|/exit(This is an example, of course)

Commands with players, like kick, use the player ID instead of the name. To see this id, just hit shift and look a the scoreboard.
If you want a specific id, just use the showID command.

-The current Command List-
(click to show/hide)

Plugins, how to use and how to make them:

I used the .spy extension on wish of a few members, but the plugins are still a normal text.
To use plugins, just put the plugin into the folder "Plugins" and it should get automatically loaded.

To make plugins, just write the code in GMK, paste it into Notepad/Gedit/whathaveyou and give it the extension .spy

I defined two commands that are useful for the making of plugins: print(string), which displays a message to the console; and addCommand(name, command), which adds a command to the list.


Plugin List:

Warning: I do not guarantee that any of these plugins work or do not break OHU.
Damage Indicator
Taunt-heal
Bullet Coloration
FPS Indicator
Player List
Sprite Loader+The default sprites
Hat Loader+Hap Sprites


Rcon and you:

The first thing a hoster should do is define a rcon password. This is done by typing
Code: [Select]
setRconPass -my_very_secret_password
Clients can then connect using
Code: [Select]
rconPass -the_secret_password
A rcon client can do everything the host can.
Beware: Error messages will appear on the hosts console, because I haven't made a system to convey them back yet.
Be careful to type your commands correctly.


The Chat:

You can activate the chat mode by typing "chat" inside the console.

By pressing "u" everything you type will be for your team only, and by pressing "y" you'll let everyone know.

Default is private chat.

The host will always have a yellow text color for everyone.
Else simply the team color, with green for Spectators.

If the host wants to kick someone from the chat, type in chat mode "/kick -playerName".

NOTE: It's possible, if you do a bit of research in the source, for a client to send text in about every color.
You don't even need to modify anything. So don't be surprised if suddenly the chat gets colorful.


Credits:

   -I ripped several parts from TTS, most notably the console itself, as well as a few algorithms. Credit to ajf.
   -I ripped a bit of the design concept from the Artemis chat into my own. I'm talking about the chat background. I made it myself, but I ...inspired myself from Artemis.

Also Huge thanks to:
  • Derp(new)
  • Goodness and Light
  • Jazzi
  • Gangsterman
  • CrazNoDooder
  • ViP3R
  • Muse
  • Mew
  • Ultros
  • rolfcake
  • Trog (also known as gorT)
for bug-testing and various small helps.


Download:
The exe
The zip (for people with oversensitive Anti-virus)
The source (as gmk)
The source (at GitHub)


A hilarious example of the Tempest Bot, provided by rolfcake:
And yeah, you can do this with Scouts, Pyros, Soldiers, Heavies, Medics, Engineers, Snipers and any combination of those!
More information on the Tempest Bot can be found here.
Actually this is almost too old.


This is a WIP, I can still use help.
Plugins, Questions, Requests, Bug Reports and Ideas are very appreciated.

If you do find bugs, please test whether they also happen without plugins. This is important for me.


PS: Moved because Haxxy ended.
« Last Edit: August 10, 2011, 05:55:24 am by Orpheon »
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 40
  • Offline Offline
  • Posts: 5762
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #1 on: July 15, 2011, 08:55:58 am »

so can I use my vin mod plugins without lots of chanages (also can i have the source)

MTK5012

  • 2011 Haxxy Finalist
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 773
  • if (ping <= 150) jaw.y += 100;
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #2 on: July 15, 2011, 08:57:00 am »

I'm gone from the 18th to the 25th = no update = D:

RBY

  • Guest
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #3 on: July 15, 2011, 08:59:42 am »

So does this also include map changing and such?
Logged

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6439
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #4 on: July 15, 2011, 09:18:18 am »

So does this also include map changing and such?
Oh damn, I forgot map changing. Will be coming soon.
Logged

BassMakesPaste

  • Guest
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #5 on: July 15, 2011, 09:27:57 am »

Huh.

So that's what you're entering.
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 40
  • Offline Offline
  • Posts: 5762
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #6 on: July 15, 2011, 09:35:09 am »

is this for 2.3.4

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6439
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #7 on: July 15, 2011, 09:49:28 am »

Huh.

So that's what you're entering.
You seem disappointed.

Yes, I know it has 0 originality. But it's needed, because there are no such mods in circulation right now, and hosters can really use these things.

Also updated, added map-changing (command = "nextMap") and fixed a bug with the bots crashing after map change.
Logged

BassMakesPaste

  • Guest
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #8 on: July 15, 2011, 09:55:55 am »

I was expecting something a bit more grandiose. Host mods never were my favorite thing.
Logged

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6439
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #9 on: July 15, 2011, 10:21:43 am »

I was expecting something a bit more grandiose. Host mods never were my favorite thing.
Grandiose....
Ideas?

Don't forget:
Quote
I'm gone from the 18th to the 25th.

I'm thinking of including a mini-map kinda thing, if I can make it.
Logged

trog

  • member of intel's squad of garbagemen against the yakuza
  • Veteran Member
  • ******
  • Karma: 27
  • Offline Offline
  • Posts: 10095
  • i am uberdeath
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #10 on: July 16, 2011, 02:19:49 am »

please no minimap

even a friendly only one is kind of cheap, delete your post derp


Anyways can you add a command for changing to a specific map, not just to the next map in the rotation?
Logged

PM me your apps for my clan

92% of people who see this will not
have the guts to repost it. When Goku
died in the explosion Cell tied to destroy Earth with, he did it for you and me. If you're not ashamed to love Goku, post this as your status and show everyone. Thank you, Goku. I lifted up my arms for the spirit bomb every time you asked for my energy.

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 40
  • Offline Offline
  • Posts: 5762
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #11 on: July 16, 2011, 03:47:19 am »

Get a mod  delete it i cant right now done
« Last Edit: July 16, 2011, 06:01:00 am by Derp(new) [RA] [ONΞ.] »
Logged

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6439
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #12 on: July 16, 2011, 05:05:06 am »

please no minimap

even a friendly only one is kind of cheap, delete your post derp


Anyways can you add a command for changing to a specific map, not just to the next map in the rotation?
That's harder, but I'll see what I can do.
Logged

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6439
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #13 on: July 16, 2011, 07:02:35 am »

please no minimap

even a friendly only one is kind of cheap, delete your post derp


Anyways can you add a command for changing to a specific map, not just to the next map in the rotation?
That's harder, but I'll see what I can do.
Done.

Also remade OP, it's MUCH better now.
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 40
  • Offline Offline
  • Posts: 5762
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #14 on: July 16, 2011, 07:05:24 am »

the read me is broke on notepad
« Last Edit: July 16, 2011, 07:10:49 am by Derp(new) [RA] [ONΞ.] »
Logged
Pages: [1] 2 3 ... 15
 

Page created in 0.061 seconds with 39 queries.