January 17, 2022, 10:19:18 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.

Join the community Discord server!

Pages: [1] 2 3 ... 24

Author Topic: Orpheon's Hosting Utilities - v8.2  (Read 34182 times)

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer
Orpheon's Hosting Utilities - v8.2
« on: August 02, 2011, 11:32:15 am »

Orpheon's Hosting Utilities

This is Dead. I rewrote this here, so use that.


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
Automatic Spy-Alert
Quick Chat


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 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: December 13, 2011, 01:40:51 pm by Orpheon »
Logged

CrazNoDale

  • Guest
Re: Orpheon's Hosting Utilities - v6.2
« Reply #1 on: August 02, 2011, 11:39:08 am »

Yay! Also did you get my last post?
Logged

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer
Re: Orpheon's Hosting Utilities - v6.2
« Reply #2 on: August 02, 2011, 11:46:25 am »

Yay! Also did you get my last post?
Yes.

I know how rcon should work, I got a quite detailed description from some other people and I read the VinMod OP.

As for V.I.P, I'm not sure I like that. For starters it's hard, and second, well..., it's really unfair to pubs.

As it's forum-goers that are more likely to host, giving forum-goers priority will kinda decrease the number of potential servers even more.

So I'm not really for. But if people absolutely want, ok.
Logged

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer
Re: Orpheon's Hosting Utilities - v6.2
« Reply #3 on: August 02, 2011, 12:07:02 pm »

Also,
Quote from: Derp(new)
Does someone know what I did wrong here?
(click to show/hide)
Look at the VinMod Code.

Well, ok, but...
(click to show/hide)
Logged

Mew!

  • 2011 Haxxy Finalist
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 546
  • PAL5Q 1.15.2013
Re: Orpheon's Hosting Utilities - v6.2
« Reply #4 on: August 02, 2011, 12:08:15 pm »

___________________________________________
ERROR in
action number 1
of Other Event: User Defined 12
for object Character:

Error in code at line 32:
               write_ubyte(global.serializeBuffer, currentWeapon.uberCharge*255/2000);
                                                                 ^
at position 64: Unknown variable uberCharge
Logged

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer
Re: Orpheon's Hosting Utilities - v6.2
« Reply #5 on: August 02, 2011, 12:10:19 pm »

___________________________________________
ERROR in
action number 1
of Other Event: User Defined 12
for object Character:

Error in code at line 32:
               write_ubyte(global.serializeBuffer, currentWeapon.uberCharge*255/2000);
                                                                 ^
at position 64: Unknown variable uberCharge
If you press "Ignore", does the error go away or does it stay?
And did you have bots?
Logged

Mew!

  • 2011 Haxxy Finalist
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 546
  • PAL5Q 1.15.2013
Re: Orpheon's Hosting Utilities - v6.2
« Reply #6 on: August 02, 2011, 12:15:36 pm »

Ignore made it go away this time, but a similar error message sometimes shows up repeatedly even if I press ignore. I didn't have bots during the aforementioned error, but having bots seem to give repeating errors at the end of rounds until the next round starts.
« Last Edit: August 02, 2011, 12:16:58 pm by Mew! »
Logged

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer
Re: Orpheon's Hosting Utilities - v6.2
« Reply #7 on: August 02, 2011, 12:19:00 pm »

Ignore made it go away this time, but a similar error message sometimes shows up repeatedly even if I press ignore. I didn't have bots during the aforementioned error, but having bots seem to give repeating errors at the end of rounds until the next round starts.
1. Were you hosting Arena?
2. Was that error about an unknown variable "target"?
Logged

Mew!

  • 2011 Haxxy Finalist
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 546
  • PAL5Q 1.15.2013
Re: Orpheon's Hosting Utilities - v6.2
« Reply #8 on: August 02, 2011, 12:19:56 pm »

1. It was on ctf.
2. I think so.
Logged

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer
Re: Orpheon's Hosting Utilities - v6.2
« Reply #9 on: August 02, 2011, 12:22:04 pm »

1. It was on ctf.
2. I think so.
"ctf"?

Ok, now that's strange.

Can you try to get the error again and post the exact thing here?
Logged

Lorgan

  • Retired Randomizer Mod Developer
  • Resident Miku
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 3657
    • My own website
Re: Orpheon's Hosting Utilities - v6.2
« Reply #10 on: August 02, 2011, 01:01:39 pm »

it happens when there is a medic without a medigun while a player tries to join (then the full update gets executed). Perhaps you destroy weapons somewhere?
Logged
Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking

Mew!

  • 2011 Haxxy Finalist
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 546
  • PAL5Q 1.15.2013
Re: Orpheon's Hosting Utilities - v6.2
« Reply #11 on: August 02, 2011, 01:07:18 pm »

This was on a/d cp. There was a  :x16: and a :x26:.
___________________________________________
ERROR in
action number 1
of  Step Event
for object HealedHud:

Error in code at line 10:
               if(player.object.currentWeapon.healTarget == global.myself){
                                              ^
at position 45: Unknown variable healTarget

___________________________________________
ERROR in
action number 1
of  Step Event
for object HealingHud:

Error in code at line 9:
       target = global.myself.object.currentWeapon.healTarget;
                                                   ^
at position 50: Unknown variable healTarget


...and they repeat after being ignored.
« Last Edit: August 02, 2011, 01:08:25 pm by Mew! »
Logged

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6426
  • Developer
Re: Orpheon's Hosting Utilities - v6.2
« Reply #12 on: August 02, 2011, 01:26:14 pm »

This was on a/d cp. There was a  :x16: and a :x26:.
___________________________________________
ERROR in
action number 1
of  Step Event
for object HealedHud:

Error in code at line 10:
               if(player.object.currentWeapon.healTarget == global.myself){
                                              ^
at position 45: Unknown variable healTarget

___________________________________________
ERROR in
action number 1
of  Step Event
for object HealingHud:

Error in code at line 9:
       target = global.myself.object.currentWeapon.healTarget;
                                                   ^
at position 50: Unknown variable healTarget


...and they repeat after being ignored.
Thanks.

it happens when there is a medic without a medigun while a player tries to join (then the full update gets executed). Perhaps you destroy weapons somewhere?
I know, but I'm really not seeing what I did for this.

I didn't touch the code of a single weapon, and it apparently has nothing to do with bots.
I don't think I destroyed something somewhere either.....

What I did play around with is the actual joining, but that can't really have an influence...

In the mean time Mew, what you can do is turn off the Healing Hud. Both of them.

But I hate inexplicable bugs like this....
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5770
Re: Orpheon's Hosting Utilities - v6.2
« Reply #13 on: August 02, 2011, 02:13:36 pm »

Wait medic without a gun, also im nearly done on my medic bot, ill port over to the latest version and then everyone else can help with thehealing priority and stuff

Kirtan

  • 2011 Haxxy Finalist
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 1034
Re: Orpheon's Hosting Utilities - v6.2
« Reply #14 on: August 02, 2011, 02:30:39 pm »

Plugin List doesn;t work?
Logged
You better run, better run, faster than my bullet.
Pages: [1] 2 3 ... 24
 

Page created in 0.06 seconds with 64 queries.