Digital Paint Discussion Board

Paintball 2: The Game => Paintball 2 Discussion => Topic started by: rockitude on August 03, 2013, 06:05:17 AM

Title: DP2Bot v1.1
Post by: rockitude on August 03, 2013, 06: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
Title: Re: DP2Bot v1.0
Post by: FusSioN on August 04, 2013, 03: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
Title: Re: DP2Bot v1.0
Post by: FusSioN on August 04, 2013, 03:21:26 AM
i just realised...
Title: Re: DP2Bot v1.0
Post by: FusSioN on August 04, 2013, 03: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
Title: Re: DP2Bot v1.0
Post by: jitspoe on August 05, 2013, 06: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

(http://gamersmafia.com/storage/comments/997/97/the-very-best-of-the-futurama-fry-meme.jpg_253fversion_253d1308337289000.jpg)



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.
Title: Re: DP2Bot v1.0
Post by: rockitude on August 05, 2013, 07: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?
Title: Re: DP2Bot v1.0
Post by: jitspoe on August 06, 2013, 12:20:55 AM
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.
Title: Re: DP2Bot v1.0
Post by: rockitude on August 06, 2013, 05: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.
Title: Re: DP2Bot v1.0
Post by: rockitude on August 06, 2013, 09:58:15 AM
Edit: I'm blind, problem solved.
Title: Re: DP2Bot v1.0
Post by: jitspoe on August 06, 2013, 10: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.
Title: Re: DP2Bot v1.0
Post by: rockitude on August 06, 2013, 10: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"?
Title: Re: DP2Bot v1.0
Post by: jitspoe on August 06, 2013, 11: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.
Title: Re: DP2Bot v1.0
Post by: rockitude on August 06, 2013, 04: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.
Title: Re: DP2Bot v1.0
Post by: jitspoe on August 06, 2013, 04: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.
Title: Re: DP2Bot v1.1
Post by: rockitude on August 06, 2013, 04: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.
Title: Re: DP2Bot v1.1
Post by: rockitude on August 06, 2013, 05: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.
Title: Re: DP2Bot v1.1
Post by: rockitude on August 24, 2013, 11:15:23 AM
First steps done..

(http://rockitude.com/my_project/Bildschirmfoto%202013-08-24%20um%2017.08.04.png)
Title: Re: DP2Bot v1.1
Post by: LaZeRs on August 24, 2013, 11: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
Title: Re: DP2Bot v1.1
Post by: rockitude on August 24, 2013, 12:24:14 PM
I just needed some columns for testing, so I took the same like in IRC. In the end there will be different ones.
Title: Re: DP2Bot v1.1
Post by: LaZeRs on August 24, 2013, 12:28:38 PM
Ok. Good luck.
Title: Re: DP2Bot v1.1
Post by: not_payl_obviously on August 26, 2013, 08:06:22 AM
Nice. Ask me if you need some help, i have reversed and made my version of strip_garbage, just ask me and i can be on IRC in a moment.

Also, picture of my serverbrowser, maybe you'll have ideas from it (note: it was made LONG time ago, not copied from rockitude or anythings like that): (http://i39.tinypic.com/2wq8uja.jpg)

Maybe should release my serverbrowser? Post if you want to see it released, and like if you don't want (just kidding, don't waste your time if you don't want to see it).

Also, sorry rocklitude for making competition to your program.
Title: Re: DP2Bot v1.1
Post by: rockitude on August 26, 2013, 08:50:36 AM
Seems we had many same ideas. I implemented the TYPE in my IRC Bot too. You can release it if you want, I don't really see it as competition. I do the serverbrowser more for myself, because I want a Java one for Mac OS.
Title: Re: DP2Bot v1.1
Post by: not_payl_obviously on August 26, 2013, 09:35:35 AM
Thing is i don't want to waste my time releasing it and improving some minor bugs that happens right now if nobody will use it. Some time ago when i released everything related to Paintball. I mostly got negative feedback, so i want to know if there will be people that would use it. If not, then less job for me, because i made it for myself anyway.
As for porting, because i'm using Lazarus i could probably cross-compile my serverbrowser with minor changes to Linux and possibly Mac. Still Mac port in my opinion is pointless because paintball doesn't run there natively nor i own Mac, so i don't think i'll release it for this platform since i can't even test it. Linux port however can be done if people would request it...

Also some OT: Jitspoe, please stop posting fake informations about me being unbanned, that was/is not true (i tested it last time you stated i was "unbanned" [so i dont need to make new accounts, you said back then] and few times before/after too). Also Jitspoe be sure to check your email, you could find interesting email there regarding PbHax if you haven't found it already. [/OT]
Title: Re: DP2Bot v1.1
Post by: not_payl_obviously on September 16, 2013, 08:22:05 AM
Bump: Why does it take 10+ seconds to get any answer? I hope you don't ask servers whenever anybody ask anything... Why not remember server status and update each minute or so...

Also: I believe commands should be case-insensitive. I would also suggest !help command so he will at least give link to this thread.

At least for now i found it annoying to wait 10+ seconds every time i ask anything...
Title: Re: DP2Bot v1.1
Post by: rockitude on September 16, 2013, 01:51:31 PM
It takes just 2-3 seconds to get all informations (like the normal serverbrowser too). IRC doesn't allow me to spam the servers so fast, I will talk to my GlobalGamers friends about that soon. I'm not sure if remembering about the server status every minute is better than waiting 2-3 seconds to get the new information. The !help command was implemented and printed all commands of the bot, I will add the forum link and get it back up.

Moreover.. why do you even use the irc bot. I thought I'm the only one who uses these commands when I'm on Mac OS. The only reason why the bot is still online are some methods for the clan aT.
Title: Re: DP2Bot v1.1
Post by: not_payl_obviously on September 16, 2013, 02:30:31 PM
It takes just 2-3 seconds to get all informations (like the normal serverbrowser too). IRC doesn't allow me to spam the servers so fast, I will talk to my GlobalGamers friends about that soon.
Well, in my test i had to wait 13 seconds to get one line of response. Thats why i ask, because i doubt it's due to antispam system as i don't think that soo many people use it... And for list of few servers i had to wait even more, i thought it didn't work...

The !help command was implemented and printed all commands of the bot, I will add the forum link and get it back up.
Didn't work for me on PM today.

Moreover.. why do you even use the irc bot. I thought I'm the only one who uses these commands when I'm on Mac OS. The only reason why the bot is still online are some methods for the clan aT.
I was just playing with it to check it capabilities :P . Just wanted to check some things like CTCP...
Title: Re: DP2Bot v1.1
Post by: gonass on September 16, 2013, 06:40:04 PM
Did you try turning the knob to 11?