September 04, 2025, 09:01:09 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!

Pages: [1] 2

Author Topic: [Server-Side]GG2StatsX_Server.gml  (Read 2563 times)

WoodNeck

  • 2011 Haxxy Award Winner
  • *
  • Karma: 23
  • Offline Offline
  • Posts: 491
    • GG2Stats
[Server-Side]GG2StatsX_Server.gml
« on: February 20, 2015, 02:33:19 am »

This plug-in makes players compete who's real hikikomori in server.
just put file in plug-in folder and make server to use.

Following is how point calculated.

Start Point : 1000
Kill : +2
Suicide : -2
Backstab : +4
Assist : +1
Capture Intel : +5
Use superburst : +4
Destroy Sentry : +2

Points are saved in 'stats.bin' file which located in same folder where gg2 is.



+ Now use player's IP as identifier.
+ If you enabled lorgan's chat plugin, message send via chat plugin.
« Last Edit: March 25, 2015, 06:55:35 am by WoodNeck »
Logged

ZaSpai

  • Ray Bann's Minion
  • *
  • Karma: 14
  • Offline Offline
  • Posts: 2169
  • "Eeh?! We're just allies!"
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #1 on: February 20, 2015, 02:43:56 am »

I really like this plugin and I knew it was from GG2K when I first saw it :z5:

How about points for capping points?
Logged
Right behind you when you most expect it | classicwell master race

notarctic

  • just arctic, what gives?
  • ******
  • Karma: 8
  • Offline Offline
  • Posts: 4864
  • 👎👀 bad aim ba̷̶ ԁ aIm 👎 thats❌ some bad 👎👎aim
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #2 on: February 20, 2015, 04:28:06 am »

ips are a good identifier, use socket_remote_ip(socket) in the player object
« Last Edit: February 20, 2015, 04:32:41 am by just arctic »
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

WoodNeck

  • 2011 Haxxy Award Winner
  • *
  • Karma: 23
  • Offline Offline
  • Posts: 491
    • GG2Stats
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #3 on: February 20, 2015, 06:04:43 am »

I really like this plugin and I knew it was from GG2K when I first saw it :z5:

How about points for capping points?

Gathering capping points is somewhat hard for me. I'm trying to do it though.
maybe you can find out what I was trying to do in attached file  :z5:

WoodNeck

  • 2011 Haxxy Award Winner
  • *
  • Karma: 23
  • Offline Offline
  • Posts: 491
    • GG2Stats
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #4 on: February 20, 2015, 06:08:47 am »

ips are a good identifier, use socket_remote_ip(socket) in the player object

Really, REALLY thanks!
I was thinking of using IP as identifier, but I couldn't find out what command can tell me ip of players.

Now I can upgrade my code, thanks!

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #5 on: February 20, 2015, 02:37:17 pm »

Nice plugin, will use when I get to restart my server

I should have done this long ago but I never got to finish it. Glad someone took the time to do so
Thanks

I'd suggest something about generating identifiers and storing them on the client's side, so that the client could re-use that identifier to save his score, instead of using his IP. You know, in case he has a dynamic IP, or if he wants to reset his score.
But this means that the client has to communicate with the server in a specific way, and so it would need to be a server-sent plugin.

Good job anyway :c1:

Edit: maybe you could provide a version that uses chat_v2 instead of Server Messages?
Like, it would log the scores in the chat, instead of sending messages this way. I feel like it might be a bit spammy.
« Last Edit: February 20, 2015, 02:39:10 pm by [FR]YB »
Logged

hello

  • Lucky Member
  • *******
  • Karma: 75
  • Offline Offline
  • Posts: 1015
  • nigga
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #6 on: February 20, 2015, 03:38:36 pm »

what about
+2 cap intel
-1 die with intel on you
-3 die with uber on you
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12519
  • Another one --
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #7 on: February 20, 2015, 04:00:04 pm »

never subtract points from one person without adding points to another
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

WoodNeck

  • 2011 Haxxy Award Winner
  • *
  • Karma: 23
  • Offline Offline
  • Posts: 491
    • GG2Stats
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #8 on: February 20, 2015, 09:51:30 pm »

Nice plugin, will use when I get to restart my server

I should have done this long ago but I never got to finish it. Glad someone took the time to do so
Thanks

I'd suggest something about generating identifiers and storing them on the client's side, so that the client could re-use that identifier to save his score, instead of using his IP. You know, in case he has a dynamic IP, or if he wants to reset his score.
But this means that the client has to communicate with the server in a specific way, and so it would need to be a server-sent plugin.

Good job anyway :c1:

Edit: maybe you could provide a version that uses chat_v2 instead of Server Messages?
Like, it would log the scores in the chat, instead of sending messages this way. I feel like it might be a bit spammy.

Nice idea using chat_v2. I'll try that. I thought it was pretty spammy, too.  :z5:

And, sorry to hear that you were working on this. I wouldn't do this if I had knew that.
You know, cutting off someone's work is pretty unpleasing. Both you and me.
I'm really sorry for it.

WoodNeck

  • 2011 Haxxy Award Winner
  • *
  • Karma: 23
  • Offline Offline
  • Posts: 491
    • GG2Stats
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #9 on: February 20, 2015, 09:56:05 pm »

what about
+2 cap intel
-1 die with intel on you
-3 die with uber on you
Point system is only provisional.
Anyway, you can change it anyway.
open file with notepad and change xxx.xPoints part and statText part to change value of points and message text for it.

I'll add intel-die code and uber-die code :)

WoodNeck

  • 2011 Haxxy Award Winner
  • *
  • Karma: 23
  • Offline Offline
  • Posts: 491
    • GG2Stats
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #10 on: February 20, 2015, 10:07:42 pm »

never subtract points from one person without adding points to another
I think reducing suicider's point is appropriate. so I added it.
You can change it by opening file with notepad, anyway.
Cause point system is just provisional, change whatever you want!
Like HLstatsX, different server can have different point calculate system. that's what I was aiming to.

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #11 on: February 21, 2015, 05:08:50 am »

And, sorry to hear that you were working on this. I wouldn't do this if I had knew that.
You know, cutting off someone's work is pretty unpleasing. Both you and me.
I'm really sorry for it.

Ha, don't be sorry. I had said I'd work on this, like, 8 months ago? And I had totally forgotten about this anyway.
Plus we don't have so many people working on plugins for GG2 these days. The last thing I want is to refrain people from coding and creating stuff, so yeah, don't worry, you're doing fine :)

WoodNeck

  • 2011 Haxxy Award Winner
  • *
  • Karma: 23
  • Offline Offline
  • Posts: 491
    • GG2Stats
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #12 on: February 21, 2015, 05:20:56 am »

And, sorry to hear that you were working on this. I wouldn't do this if I had knew that.
You know, cutting off someone's work is pretty unpleasing. Both you and me.
I'm really sorry for it.

Ha, don't be sorry. I had said I'd work on this, like, 8 months ago? And I had totally forgotten about this anyway.
Plus we don't have so many people working on plugins for GG2 these days. The last thing I want is to refrain people from coding and creating stuff, so yeah, don't worry, you're doing fine :)
Thank you for saying kindly, now I can do thing without worry. haha

Mr.Garrison

  • Guest
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #13 on: February 21, 2015, 07:25:52 am »

-3 die with uber on you

Whaaaaaaaaat?Oh maybe Healer not used uber... Yeee
« Last Edit: February 21, 2015, 07:26:34 am by Overseer [GGi] »
Logged

hello

  • Lucky Member
  • *******
  • Karma: 75
  • Offline Offline
  • Posts: 1015
  • nigga
Re: [Server-Side]GG2StatsX_Server.gml
« Reply #14 on: February 21, 2015, 09:33:09 am »

-3 die with uber on you

Whaaaaaaaaat?Oh maybe Healer not used uber... Yeee
you deserve -3 if you didnt pop it and dropped it.
Logged
Pages: [1] 2
 

Page created in 0.046 seconds with 37 queries.