thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: B3 Remote Control  (Read 6574 times)

Offline Spoon

  • Moderator
  • Sr. Member
  • *
  • Posts: 255
    • EHD Gaming
B3 Remote Control
« on: June 11, 2012, 01:36:36 AM »
Control your B3 from your desktop, website or another b3 bot.
With this plugin you can use any b3 command that you have access to.

This plugin uses the password field in the clients table in the b3 database, you will need to have a password set in order to use this.

This plugin also uses your b3 @id so if you are wanting to use this to eg. kick someone from one of your servers with out leaving the one you are playing in you will need to have your bots on the same database.

You will need to edit ips & ports in the .py file

Download
Link1: http://ehdfiles.co.uk/spoon/plugin_remote.rar
Link2: http://forum.bigbrotherbot.net/downloads/?sa=view;down=202
« Last Edit: June 11, 2012, 01:39:17 AM by Spoon »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: B3 Remote Control
« Reply #1 on: June 11, 2012, 10:04:08 AM »
nice.

Could you explain what tool to use to connect to B3 after having installed this plugin ?

Offline Spoon

  • Moderator
  • Sr. Member
  • *
  • Posts: 255
    • EHD Gaming
Re: B3 Remote Control
« Reply #2 on: June 11, 2012, 12:29:18 PM »
forgot about that. it uses udp packets i use this to connect from my desktop but u need python installed to use it.

Code: [Select]
# Client program

from socket import *

host = "127.0.0.1"
port = 514
buf = 1024
addr = (host,port)

UDPSock = socket(AF_INET,SOCK_DGRAM)

def_msg = "=== Enter message to send to B3 on IP:";
def_msg2 = "Port:";
def_msg3 = "===";
def_msg4 = "Eg. password @0 !say message from remote control";
print "\n",def_msg,host,def_msg2,port,def_msg3
print "\n",def_msg4

while (1):
    data = raw_input('>> ')
    if not data:
        break
    else:
        if(UDPSock.sendto(data,addr)):
            print "Sending message '",data,"'....."

UDPSock.close()


Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 981
    • GitHub
Re: B3 Remote Control
« Reply #3 on: June 11, 2012, 04:04:36 PM »
Since it's using a socket is possible the programming language doesn't matter. Maybe is better to create some precompiled apps for differents update systems. Will be way easier to use ^^

Offline Spoon

  • Moderator
  • Sr. Member
  • *
  • Posts: 255
    • EHD Gaming
Re: B3 Remote Control
« Reply #4 on: June 11, 2012, 04:07:48 PM »
if make a program to run udp it will work I mainly use php from my echelon

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: B3 Remote Control
« Reply #5 on: June 11, 2012, 04:14:21 PM »
Wow. The possibilities are endless...

I would love to see this integrated into echelon!
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Dwarfer

  • Full Member
  • ***
  • Posts: 52
Re: B3 Remote Control
« Reply #6 on: June 11, 2012, 06:40:24 PM »
Wow,

This looks like it could be a wicked addition. I am going to setup on test box and give it a try. 

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: B3 Remote Control
« Reply #7 on: August 28, 2012, 08:09:42 PM »
Excellent!
How to control my b3 from my website?
Does i install a special interface?
Website of my urt server : www.frag-urt.com/

Offline tanka

  • Jr. Member
  • **
  • Posts: 46
Re: B3 Remote Control
« Reply #8 on: August 28, 2012, 10:36:35 PM »
Excellent!
How to control my b3 from my website?
Does i install a special interface?

You need to make a front end ;)

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: B3 Remote Control
« Reply #9 on: August 28, 2012, 11:16:23 PM »
You need to make a front end ;)
Is it complicated to do that ?
Can someone create this webfront for all other users of this plugin ?
Thanks in advance.
Website of my urt server : www.frag-urt.com/

Offline Sitting-Duc

  • Sr. Member
  • ****
  • Posts: 185
    • BanButton Developments Blog
Re: Re: B3 Remote Control
« Reply #10 on: August 29, 2012, 01:37:14 PM »
Havent looked at the code yet but does a response get returned in any way? I have some simple rcon functions added to my echelon but using this may prove more reliable.

Duc.

Sent from my GT-I9100P using Tapatalk 2

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: Re: B3 Remote Control
« Reply #11 on: August 29, 2012, 02:47:22 PM »
Havent looked at the code yet but does a response get returned in any way? I have some simple rcon functions added to my echelon but using this may prove more reliable.

Duc.

Sent from my GT-I9100P using Tapatalk 2

Hi,

How did you add it to Echelon?
Can I have this function as well?
Website of my urt server : www.frag-urt.com/

Offline Sitting-Duc

  • Sr. Member
  • ****
  • Posts: 185
    • BanButton Developments Blog
Re: Re: B3 Remote Control
« Reply #12 on: August 29, 2012, 03:06:21 PM »
Hi,

How did you add it to Echelon?
Can I have this function as well?

I haven't added this to echelon - I have some basic rcon functions currently. However this looks to be a better system as I read it uses the B3 ID and as it requires the admins password I assume all actions are recorded in the B3 database.

Duc.

Offline Spoon

  • Moderator
  • Sr. Member
  • *
  • Posts: 255
    • EHD Gaming
Re: B3 Remote Control
« Reply #13 on: August 29, 2012, 08:37:30 PM »
This plugin is buggy. I have found it can stop B3 sending heartbeats and can stop other plugins that require cron to run properly.

Offline Fragmeister

  • Full Member
  • ***
  • Posts: 78
    • Serveur FRAG on Urban terror
Re: Re: B3 Remote Control
« Reply #14 on: August 29, 2012, 10:46:02 PM »
I haven't added this to echelon - I have some basic rcon functions currently. However this looks to be a better system as I read it uses the B3 ID and as it requires the admins password I assume all actions are recorded in the B3 database.

Duc.

How can i have this function too ? Can you help me for install that ?

Thanks
Quote
This plugin is buggy. I have found it can stop B3 sending heartbeats and can stop other plugins that require cron to run properly.

Yes i've installed it and b3 won't started !
Website of my urt server : www.frag-urt.com/

 


Rate this page +1 at Google Search

anything