May 01, 2026, 09:58:48 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Wondering where all the forums have gone?

Join the community Discord server!

Poll

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

Nothing
- 9 (50%)
Nothing
- 9 (50%)

Total Members Voted: 15


Pages: 1 ... 12 13 [14] 15

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

muse

  • Veteran Beta Tester
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 1789
  • ah ah ah
    • Steam
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #195 on: August 02, 2011, 10:00:06 am »

Wow, great thanks for all your hard work Orpheon!
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5752
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #196 on: August 02, 2011, 10:00:23 am »

 :z7:

muse

  • Veteran Beta Tester
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 1789
  • ah ah ah
    • Steam
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #197 on: August 02, 2011, 10:01:56 am »

:z7:
Oops, forgot about other contributors.
Big thanks to all of you guys too. ;)
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5752
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #198 on: August 02, 2011, 10:05:29 am »

ok this is my bot follow specific person code
Code: [Select]
if class == CLASS_MEDIC
otherPlayer = ds_list_find_value(global.players, my_player_index)
if point_distance(otherPlayer.x, otherPlayer.y, object.x, object.y) >900 if player.object.hp > 30
{
    nearestFriend = otherPlayer
}
if global.bot_coop
{
    var targetQueue, testDist, playercheck, targetAngle, obscured, rotateoffset;

    nearestFriend = -1;
    targetQueue = ds_priority_create();

    // Build a queue of potential targets
    with(Character) {
        testDist = distance_to_object(other.object);
        if(player.object_index == BotPlayer and team == other.team) {//If the Character is a bot and on our team:
            ds_priority_add(targetQueue, id, testDist);
        }
    }

    if(nearestFriend == -1 && !ds_priority_empty(targetQueue)) {
        playercheck = ds_priority_delete_min(targetQueue);
        nearestFriend = playercheck     
    }
    ds_priority_destroy(targetQueue);

    if nearestFriend != -1
    {
        if point_distance(object.x, object.y, nearestFriend.x, nearestFriend.y) < 150
        {
            followingBot = 1
        }
        else
        {
            followingBot = 0
        }
    }
}

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6408
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #199 on: August 02, 2011, 10:16:21 am »

ok this is my bot follow specific person code
(click to show/hide)

Woah woah wait.

Sorry if I'm going hard, but...

-Why the hell are bots listed but not regular characters?
-What is global.bot_coop again? Because I think I removed that variable long ago. Use "global.bot_mode != 0"
-You forgot an "and" while checking the point_distance in the third line.

More importantly, why did you make this? This is dependent on the order in which players enter the game, and thus not really usable for anyone other than the host.
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5752
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #200 on: August 02, 2011, 10:17:08 am »

i removed that i came up with a better system
what you i use to say who im currently healing
i keep getting an error say unkown variable player
« Last Edit: August 02, 2011, 10:18:42 am by Dәɹp(Nәʍ) »
Logged

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6408
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #201 on: August 02, 2011, 10:21:19 am »

i removed that i came up with a better system
what you i use to say who im currently healing
i keep getting an error say unkown variable player
What?

In that code (the medic code)?

"player"?
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5752
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #202 on: August 02, 2011, 10:30:22 am »

yes

also here is my medic fight code
(click to show/hide)

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6408
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #203 on: August 02, 2011, 10:38:24 am »

yes
Can you... uhh... post the error?

yes

also here is my medic fight code
(click to show/hide)

Code: [Select]
if point_distance(otherPlayer.x, otherPlayer.y, object.x, object.y) >600 if player.object.hp > 30 LMB = 1"player.object.hp"? What's that doing here?
What you want is
Code: [Select]
if point_distance(otherPlayer.x, otherPlayer.y, object.x, object.y) >600 if otherPlayer.object.hp > 30 LMB = 1which basically means
Code: [Select]
if otherPlayer_far_away and otherPlayer_has_more_than_30_hp: HealWhich makes no sense at all.


Code: [Select]
if LMB = 1 BotFollowBot() BotFollowHuman() You realise that commenting out 1 line in BotFollowHuman() will make it follow bots too?


Code: [Select]
if point_distance(object.x, object.y, nearestTarget.x, nearestTarget.y) > 10 RMB = 1
if point_distance(object.x, object.y, nearestTarget.x, nearestTarget.y) < 10 RMB = 0
if point_distance(object.x, object.y, nearestFriend.x, nearestFriend.y) > 600 LMB = 1 else LMB = 0
So uhh, ...
Code: [Select]
if enemy_inside_me: Don't shoot
if enemy_not_inside_me: Shoot
if friend_far_away: heal
What the ****?


Logged

trog

  • member of intel's squad of garbagemen against the yakuza
  • Veteran Member
  • ******
  • Karma: 27
  • Offline Offline
  • Posts: 9757
  • i am uberdeath
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #204 on: August 02, 2011, 10:43:48 am »

Okay so some nitpicks about chat:

Bubble menus will still open when you're chatting.
If you start a message my pressing enter but decide you don't want to send one, there's no way to exit the chat. Pressing enter with nothing typed should just send no message and return to the game.
Pressing y or u should switch the chat mode and start the message, instead of just changing the mode.
If you change the mode to one you're already on, it should just say nothing. In vinmod it doesn't even say that the mode has been changed, but when you type the text color will be the same as it will appear in the chatbox so you know what mode it's on.

And probably the biggest thing: the chat box takes up a lot of space. This is the max amount of space vinmod can take up while playing. This is how much OHU can take up. I'd suggest making the text enter a new line once it hits a set character limit so it fits inside the chat, for both when the message appears in the chat and when you're typing it, reducing the font size, reducing the text box width a bit, show only 5 or 6 lines when not typing a message, and not having the messagebox sprite at all when not typing.

Also I think you messed up the font size for pretty much everything, lol.
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: 42
  • Offline Offline
  • Posts: 5752
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #205 on: August 02, 2011, 10:48:56 am »

btw this doesnt work
Code: [Select]
if point_distance(object.x, object.y, nearestTarget.x, nearestTarget.y) < 10 RMB = 1
if point_distance(object.x, object.y, nearestTarget.x, nearestTarget.y) > 11 RMB = 0
if point_distance(object.x, object.y, nearestFriend.x, nearestFriend.y) < 900 LMB = 1 LMB = 0
//Heal Priority
LMB = 0 if point_distance(otherPlayer.x, otherPlayer.y, object.x, object.y) < 600 if otherPlayer.object.hp > 30 LMB = 1

if LMB = 1 BotFollowBot() BotFollowHuman()
if RMB = 1 BotGetTarget()
{
BotFighting = 0
    BotInit()
}
you have to swap the symbols round on the LMB codes

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6408
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #206 on: August 02, 2011, 10:57:44 am »

Okay so some nitpicks about chat:

Bubble menus will still open when you're chatting.
If you start a message my pressing enter but decide you don't want to send one, there's no way to exit the chat. Pressing enter with nothing typed should just send no message and return to the game.
Pressing y or u should switch the chat mode and start the message, instead of just changing the mode.
If you change the mode to one you're already on, it should just say nothing. In vinmod it doesn't even say that the mode has been changed, but when you type the text color will be the same as it will appear in the chatbox so you know what mode it's on.

And probably the biggest thing: the chat box takes up a lot of space. This is the max amount of space vinmod can take up while playing. This is how much OHU can take up. I'd suggest making the text enter a new line once it hits a set character limit so it fits inside the chat, for both when the message appears in the chat and when you're typing it, reducing the font size, reducing the text box width a bit, show only 5 or 6 lines when not typing a message, and not having the messagebox sprite at all when not typing.

Also I think you messed up the font size for pretty much everything, lol.
I fixed most of them, the first three are really minor nitpicks. If you want, I can upload it, but I think people will prefer to wait for the next version which will come soon if I can make it.
As for the font, that's not my fault. The gg2 font doesn't work on Ubuntu, and it is the one thing I can really not touch. Sorry.
You can ask someone else to compile the source for you.


btw this doesnt work
Code: [Select]
if point_distance(object.x, object.y, nearestTarget.x, nearestTarget.y) < 10 RMB = 1
if point_distance(object.x, object.y, nearestTarget.x, nearestTarget.y) > 11 RMB = 0
if point_distance(object.x, object.y, nearestFriend.x, nearestFriend.y) < 900 LMB = 1 LMB = 0
//Heal Priority
LMB = 0 if point_distance(otherPlayer.x, otherPlayer.y, object.x, object.y) < 600 if otherPlayer.object.hp > 30 LMB = 1

if LMB = 1 BotFollowBot() BotFollowHuman()
if RMB = 1 BotGetTarget()
{
BotFighting = 0
    BotInit()
}
you have to swap the symbols round on the LMB codes
Did you define "otherPlayer" somewhere?
Logged

Derpduck

  • 2011 Haxxy Finalist
  • *
  • Karma: 42
  • Offline Offline
  • Posts: 5752
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #207 on: August 02, 2011, 11:00:50 am »

all of that is obsolite i give up on healing prirotiy im fixing other thinmgs

Orpheon

  • 2011 Haxxy Award Winner
  • *
  • Karma: 15
  • Offline Offline
  • Posts: 6408
  • Developer
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #208 on: August 02, 2011, 11:02:01 am »

Does anyone here know this?
Code: [Select]
write_ubyte(global.serverSocket, OHU_RCON_PASS)
write_ubyte(global.serverSocket, string_length(string_array[1]))
write_string(global.serverSocket, string_array[1])
socket_send(global.serverSocket)

This gets processed every time you enter that command and hit "enter".

This gets sent by the client.

Suddenly, the client gets the message:
Code: [Select]
You have been disconnected from the server.
GameServerDefineCommands looks fine:
Code: [Select]
var i;

commandBytesInvalidCommand = -1; // No such command
commandBytesPrefixLength1 = -2;  // The length of the command is indicated by the first byte

for(i=0; i<256; i+=1) {
    // -1 indicates an invalid command byte
    commandBytes[i] = commandBytesInvalidCommand;
}

commandBytes[PLAYER_LEAVE] = 0;
commandBytes[PLAYER_CHANGECLASS] = 1;
commandBytes[PLAYER_CHANGETEAM] = 1;
commandBytes[CHAT_BUBBLE] = 1;
commandBytes[BUILD_SENTRY] = 0;
commandBytes[DESTROY_SENTRY] = 0;
commandBytes[DROP_INTEL] = 0;
commandBytes[OMNOMNOMNOM] = 0;
commandBytes[SCOPE_IN] = 0;
commandBytes[SCOPE_OUT] = 0;
commandBytes[PASSWORD_SEND] = commandBytesPrefixLength1;
commandBytes[PLAYER_CHANGENAME] = commandBytesPrefixLength1;
commandBytes[INPUTSTATE] = 3;

commandBytes[OHU_HELLO] = 0;
commandBytes[OHU_CHAT] = commandBytesPrefixLength1;
commandBytes[OHU_CHAT_PRIVATE] = commandBytesPrefixLength1;
commandBytes[OHU_CHAT_JOIN] = 0;
commandBytes[OHU_CHAT_LEAVE] = 0;
commandBytes[OHU_CHAT_KICK] = 1;
commandBytes[OHU_RCON_PASS] = commandBytesPrefixLength1;
commandBytes[OHU_RCON_COMMAND] = commandBytesPrefixLength1;
Look at the two last lines.

The "case OHU_RCON_PASS:" inside processClientCommands never gets executed, I've checked with show_message().

Does anyone have an idea what I'm doing wrong?
Logged

CrazNoDale

  • Guest
Re: [Real Mod] Orpheon's Hosting Utilities
« Reply #209 on: August 02, 2011, 11:03:25 am »

If your making Rcons. Vindicator made it like this, when and rcon of your server arrives he goes to the console and types in rcon fudge. I forgot what the exact command was, rcon being the command and fudge being the password.


Also are V.I.P passwords coming out?
Logged
Pages: 1 ... 12 13 [14] 15
 

Page created in 0.035 seconds with 39 queries.