Author Topic: DP2Bot v1.1  (Read 5731 times)

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
DP2Bot v1.1
« on: August 03, 2013, 04:05:17 AM »
The DP2Bot is now available on the GlobalGamers network. Everything is written in Java. Thanks ViciouZ and Superman for help.


Commands:

!browse: Lists all not empty servers.

!browsePubs: Lists just public servers.

!browseMatches: Lists just match servers.

!browseJumps: Lists just jump servers.

!playerInfo x: Receives player "x" status (playing or not).

!players x: Receives all players from hostname "x".


Channels: #paintball #team_qehs #SupermansPub

Use !i DP2Bot to make the bot connect your channel.



Updates:

04.08.2013:

- added "!players x" command
- added reconnect function

06.08.2013:

- all functions work in PM now
- added teamcolour information to "!players x"
- fixed "strip_garbage" method
« Last Edit: August 06, 2013, 03:21:24 PM by rockitude »

FusSioN

  • Autococker
  • Posts: 603
Re: DP2Bot v1.0
« Reply #1 on: August 04, 2013, 01:21:18 AM »
Is this a joke? I thought it is a REAL person in IRC..... I shouted at him(it?) many times and he kept saying the words

FusSioN

  • Autococker
  • Posts: 603
Re: DP2Bot v1.0
« Reply #2 on: August 04, 2013, 01:21:26 AM »
i just realised...

FusSioN

  • Autococker
  • Posts: 603
Re: DP2Bot v1.0
« Reply #3 on: August 04, 2013, 01:26:20 AM »
and also.... when im using IRC the bot got kicked by ChanServ for spamming I said hi twice ang he said Hi FusSioN and got kicked.... I wonder

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: DP2Bot v1.0
« Reply #4 on: August 05, 2013, 04:17:10 PM »
Is this a joke? I thought it is a REAL person in IRC..... I shouted at him(it?) many times and he kept saying the words





Cool stuff, rockitude.  You should make it so you can just use the commands in PM and it will respond to them there.

Kind of weird having to type "!browsePM" in a channel for it to send you something in pm.

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.0
« Reply #5 on: August 05, 2013, 05:24:33 PM »
Thanks for feedback, I added all functions in PM and deleted the useless ones from the channel commands. More criticism and new ideas are welcome.

BTW jitspoe how I get the information about the players team color? Is there a new updated "status" UDP network protocol command?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: DP2Bot v1.0
« Reply #6 on: August 05, 2013, 10:20:55 PM »
Thanks for feedback, I added all functions in PM and deleted the useless ones from the channel commands. More criticism and new ideas are welcome.

BTW jitspoe how I get the information about the players team color? Is there a new updated "status" UDP network protocol command?
Team colors are unreliable when there are players in the process of connecting, but if everybody is fully in the game, "pr,pb,pp,py,po" will list the player indexes for each color, separated by !'s.  If people are in the process of connecting/downloading, it will throw the indexes off.

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.0
« Reply #7 on: August 06, 2013, 03:57:25 AM »
Team colors are unreliable when there are players in the process of connecting, but if everybody is fully in the game, "pr,pb,pp,py,po" will list the player indexes for each color, separated by !'s.  If people are in the process of connecting/downloading, it will throw the indexes off.

Thanks, I will implement it for the !players command later.

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.0
« Reply #8 on: August 06, 2013, 07:58:15 AM »
Edit: I'm blind, problem solved.
« Last Edit: August 06, 2013, 08:20:01 AM by rockitude »

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: DP2Bot v1.0
« Reply #9 on: August 06, 2013, 08:20:27 AM »
\pb\!3!4\pr\!0!1\po\!2!5\ <=- that right there shows the team colors.  It's not a command, sorry, it's just returned with the rest of the info.

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.0
« Reply #10 on: August 06, 2013, 08:24:50 AM »
\pb\!3!4\pr\!0!1\po\!2!5\ <=- that right there shows the team colors.  It's not a command, sorry, it's just returned with the rest of the info.

Yes, thank you. I just realized it one minute ago. By the way are there more commands or just "status"?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: DP2Bot v1.0
« Reply #11 on: August 06, 2013, 09:18:47 AM »
Yes, thank you. I just realized it one minute ago. By the way are there more commands or just "status"?
I think that's about the only thing that'll give you anything useful right now.

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.0
« Reply #12 on: August 06, 2013, 02:11:04 PM »
Teamcolour for !players "hostname" is implemented. Now it's time for me to work on my "inverse/colour/funletter" nickname encoding. Anyone knows how to do it? At the moment I change the chars into bytes and when it's negative, it's evil and gets deleted! And I'm using the dp2 char_map to change the chars.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: DP2Bot v1.0
« Reply #13 on: August 06, 2013, 02:19:59 PM »
If you look at the Paintball2 source, there's a function called "strip_garbage", I think, which will convert funname characters into normal, readable text.

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.1
« Reply #14 on: August 06, 2013, 02:21:58 PM »
Yea I saw the strip_garbage method in the Serverbrowser source, but I couldn't get it. Maybe I'm just too tired, I will take a look again tomorrow.

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.1
« Reply #15 on: August 06, 2013, 03:16:23 PM »
Okay I couldn't sleep and had to solve it. Everything works fine now and I will think about a Java browser application with integrated IRC-Chat, because I think it would be really helpful. Maybe with a friendlist that uses the !playerInfo method to show if the friend is online and where he's playing. Favorite servers will be easy to implement too. A "Rent Server" tab would be helpful for newbies too (just links to websites as first step).

Everything started with the problem to have no serverbrowser that runs on Mac Os (I wanted to see if it's worth to change to Windows) and now it escalated in 1000 lines of commands without GUI :D.
« Last Edit: August 07, 2013, 09:53:29 AM by rockitude »

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.1
« Reply #16 on: August 24, 2013, 09:15:23 AM »
First steps done..


LaZeRs

  • Autococker
  • Posts: 875
Re: DP2Bot v1.1
« Reply #17 on: August 24, 2013, 09:57:13 AM »
Looks nice! You could put your current ping on the server like in the regular version. I like the scores and the time left feature :D

rockitude

  • Committee Member
  • 68 Carbine
  • Posts: 492
Re: DP2Bot v1.1
« Reply #18 on: August 24, 2013, 10:24:14 AM »
I just needed some columns for testing, so I took the same like in IRC. In the end there will be different ones.

LaZeRs

  • Autococker
  • Posts: 875
Re: DP2Bot v1.1
« Reply #19 on: August 24, 2013, 10:28:38 AM »
Ok. Good luck.