August 19, 2022, 03:00:35 am

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

Author Topic: GG2 Basketball v2 - [SERVER SENT] - DOESNT WORK WHATSOEVER  (Read 4105 times)

iLegend

  • 2013 Haxxy Award Winner
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 868
  • Force is always the answer.
    • Mah Resume
GG2 Basketball v2 - [SERVER SENT] - DOESNT WORK WHATSOEVER
« on: August 17, 2013, 06:34:52 pm »

GG2 BASKETBALL PLUGIN

Updated to be server-sent

just kidding I suck there are still bugs to be fixed.
Here's the old one, use this one for now
School is giving me a shitton to do so I'll try to work on this when I have time


Game Mechanics (now updated)
  • The intel is either a red, blue, or orange basketball
  • The "ball" will bounce and move around
  • If it's red, it can only be picked up by red. If it's blue, only blue. If it's orange, it's a neutral ball, can be picked up by anyone
  • If you're killed with the ball, the ball becomes neutral and goes to anyone
  • If you drop the ball, you can "pass" it to a teammate, the ball becomes your team color for 3s, after which it reverts to neutral
  • Grab the ball and fall through the enemy hoop to score, at which point the ball will reset

How to use
Well you can't use it until it's approved so come on ajf hurry up.
Attached as a zip, so if you move it to your ServerPluginsDebug folder you can see it in action by yourself.

Here are some maps if you want to host.
(click to show/hide)

if for some reason you want to make a custom map, here's how it works:
  • red intel is exposed
  • blu intel is in the ground somewhere, preferrably near the red intel and in plain view
  • place capture zones where you want the baskets to be
  • use team-colored intel walls to prevent players from dunking into the wrong basket
  • optional: use player walls and move boxes to prevent players from capping from the sides and bottom of the basket
Versions: should work for any version as long as intel grab syncing doesn't change dramatically

(click to show/hide)

The code's a bit messy, it could be more compact, I'll clean it up when I can/want. (it still is)

Also looking for general feedback, bugs, etc.
If anybody wants to add stuff to the random strategies feel free to let me know.

(click to show/hide)
(click to show/hide)
« Last Edit: September 14, 2013, 07:32:33 pm by iLegend »
Logged
<SecretMan> do i put BotAim.gml in plugins folder?
i hear los angeles is pretty good for casual sex with minors

Dusty

  • 2012 Haxxy Award Winner
  • *
  • Karma: -78
  • Offline Offline
  • Posts: 11006
  • Dust in a box under a table
Re: GG2 Basketball
« Reply #1 on: August 17, 2013, 07:05:24 pm »

Make it a server plugin, and then A) less confusion when a bball map appears, and B) you can actually have movement of the intel/bball that way.

iLegend

  • 2013 Haxxy Award Winner
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 868
  • Force is always the answer.
    • Mah Resume
Re: GG2 Basketball
« Reply #2 on: August 17, 2013, 07:16:58 pm »

I'd actually like it if bball was an official game mode. It's pretty fun, and has a whole new strategy.

This was scrapped up pretty quickly, if it ever gets more popular I'll definitely work on the whole moving intels thing.
Logged
<SecretMan> do i put BotAim.gml in plugins folder?
i hear los angeles is pretty good for casual sex with minors

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4904
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
    • arcticland
Re: GG2 Basketball
« Reply #3 on: August 18, 2013, 03:28:29 am »

why cant you post the pastebin link to the source so i cant read it without downloading it =/
Logged
[1:37:51 PM] Derpduck: arctic u need to quote ppl that make shit posts in case they edit them
[4:20:15 PM] Rubeus Hashgrid: i cant discover anything fuck you imageshack

B.illy S.O.D.

  • Ray Bann's Minion
  • *
  • Karma: 4
  • Offline Offline
  • Posts: 1295
  • LIKE A BOSSUN!! :P
Re: GG2 Basketball
« Reply #4 on: August 18, 2013, 08:47:09 am »

ERROR in
action number 1
of Destroy Event
for object Character:

Error in code at line 3:
       if intel && global.isHost && global.bball {
                                          ^
at position 41: Unknown variable bball


ERROR in
action number 1
of End Step Event
for object PlayerControl:

Error in code at line 5:
   
if(afktimer<=0) && global.myself.object.afk == false{
                                           ^
at position 42: Unknown variable afk


ERROR in
action number 1
of Draw Event
for object Weapon:

Error in code at line 7:
   
    imageOffset = owner.team;
                           ^
at position 26: Unknown variable team


ERROR in
action number 1
of Draw Event
for object HealthHud:

Error in code at line 12:
   
drawHealth(45, 547, global.myself.object.hp, global.myself.object.maxHp);
                                            ^
at position 43: Unknown variable hp


ERROR in
action number 1
of Draw Event
for object AmmoCounter:

Error in code at line 9:
   
    if instance_exists(global.myself.object.currentWeapon) {
                                               ^
at position 46: Unknown variable currentWeapon


ERROR in
action number 1
of Draw Event
for object ScorePanel:

Error in code at line 53:
   
        redsourcex=global.myself.object.x;
                                           ^
at position 42: Unknown variable x


ERROR in
action number 1
of Begin Step Event
for object PlayerControl:

In script ClientInputstate:
Error in code at line 7:
   
write_ushort(argument0, point_direction(global.myself.object.x, global.myself.object.y, mouse_x, mouse_y)*65536/360);
 

------------------

Got all those errors repeatedly after trying to test it on Machu.
Logged

iLegend

  • 2013 Haxxy Award Winner
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 868
  • Force is always the answer.
    • Mah Resume
Re: GG2 Basketball
« Reply #5 on: August 18, 2013, 10:20:07 am »

oops left one of chu's variables in the game. should be fixed. or not. worked when i tested it
Logged
<SecretMan> do i put BotAim.gml in plugins folder?
i hear los angeles is pretty good for casual sex with minors

.prime

  • "lLaRtT"
  • *****
  • Karma: -32679
  • Offline Offline
  • Posts: 2928
  • :%)
Re: GG2 Basketball
« Reply #6 on: August 20, 2013, 01:11:23 am »

Only hosted for one day  =/
Logged
give usa host next time n put prime on other team so i can fuk on this nigga for tlaking shit
plz ban all european ips so we can keep gg2 clean

iLegend

  • 2013 Haxxy Award Winner
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 868
  • Force is always the answer.
    • Mah Resume
Re: GG2 Basketball
« Reply #7 on: August 20, 2013, 08:14:38 am »

aww :( it's actually a really fun game mode
Logged
<SecretMan> do i put BotAim.gml in plugins folder?
i hear los angeles is pretty good for casual sex with minors

ajf

  • (Ex-?)Developer and forum/web admin
  • *****
  • Karma: 7
  • Offline Offline
  • Posts: 3492
  • she's never quite as dead as you think
Re: GG2 Basketball
« Reply #8 on: August 31, 2013, 04:05:34 pm »

is there like an API reference that I'm missing or something.

I took 10 minutes staring at lorgan's networking and I was like.. I'll get back to this.

can we move this conversation to the bball thread we're derailing.

Yes, there is:

http://www.ganggarrison.com/forums/index.php?topic=33509.0

Oh, and don't use Lorgan's code. (EDIT: chat code - the example in that thread wasn't bad) It's awful.
« Last Edit: August 31, 2013, 04:09:32 pm by ajf »
Logged
aka Andrea.

did you know that spinning stars work like this???

I've seen things you people wouldn't believe. execute_strings on fire off the shoulder of Overmars. I watched object-beams glitter in the dark near the room_goto_fix. All those moments will be lost in time, like tears...in...rain. Time to die.

iLegend

  • 2013 Haxxy Award Winner
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 868
  • Force is always the answer.
    • Mah Resume
Re: GG2 Basketball
« Reply #9 on: August 31, 2013, 04:11:28 pm »

well shit. Guess I'm not too high and mighty for FAQs.
thanks I'll look at it and see what I can do.
Logged
<SecretMan> do i put BotAim.gml in plugins folder?
i hear los angeles is pretty good for casual sex with minors

iLegend

  • 2013 Haxxy Award Winner
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 868
  • Force is always the answer.
    • Mah Resume
Re: GG2 Basketball
« Reply #10 on: August 31, 2013, 05:23:02 pm »

Ok, while you guys are doing rocket science, I can sprite a basketball.

Also as someone suggested in-game (was that you YB?), the ball should be pass-able similar to the "throwable_sandvich". Would probably take a new key tho.
I'd like a blue bball sprite, a red one, and a normal orange one.

I was thinking if you wanted to you could drop the ball and it'd be your team color, and if you dropped it your team could pick it up within say 3 seconds, and then, if you took too long to "pass" the ball the ball would revert to orange, nuetral color, in which case it's up for grabs by both teams.
Logged
<SecretMan> do i put BotAim.gml in plugins folder?
i hear los angeles is pretty good for casual sex with minors

Nova

  • Seasoned Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1740
  • Personal Text
Re: GG2 Basketball
« Reply #11 on: August 31, 2013, 05:28:32 pm »

It would also be kinda nice if it was more obvious who has the ball. Even with only 4 players it is hard to see.

A note "PlayerWithBall has the ball" where the name (in this case "PlayerWithBall") popping up for 1 second would be cool.

I'm probably thinking too far into this already.
Logged

iLegend

  • 2013 Haxxy Award Winner
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 868
  • Force is always the answer.
    • Mah Resume
Re: GG2 Basketball
« Reply #12 on: August 31, 2013, 05:31:18 pm »

I like that idea. If I can get a non ugly as shit gui going I'll try to make like a small notif at the top left.
Logged
<SecretMan> do i put BotAim.gml in plugins folder?
i hear los angeles is pretty good for casual sex with minors

iLegend

  • 2013 Haxxy Award Winner
  • *****
  • Karma: 0
  • Offline Offline
  • Posts: 868
  • Force is always the answer.
    • Mah Resume
Re: GG2 Basketball v2 - [SERVER SENT] - UPDATED
« Reply #13 on: September 01, 2013, 12:22:34 am »

WOOOOO GOT IT WORKING  :woot: :woot: :woot: :woot: :woot:

updated OP

come on somebody approve of it and get it tested.

Pretty sure it's still full of bugs.
Logged
<SecretMan> do i put BotAim.gml in plugins folder?
i hear los angeles is pretty good for casual sex with minors

Nova

  • Seasoned Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1740
  • Personal Text
Re: GG2 Basketball v2 - [SERVER SENT] - UPDATED
« Reply #14 on: September 01, 2013, 02:33:40 am »

Juat asking, what i the preferred resolution of the ball?
5x5 (same as vanillla intel) is kind hard to look like a basketball, got some nice 9x9 ones tho.

And do I have to make the background that strange Gamemaker-green?
« Last Edit: September 01, 2013, 02:39:38 am by Nova »
Logged
Pages: [1] 2
 

Page created in 0.033 seconds with 36 queries.