View unanswered posts | View active topics It is currently Sat May 25, 2013 10:06 pm



Post new topic Reply to topic  [ 76 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
 Admin UI as desktop application 
Author Message
The Team

Joined: Sun Sep 04, 2011 7:38 am
Posts: 173
Post Admin UI as desktop application
I've tried to think how to start with that nagahiro's WEBUI_MODULE idea. But, really, I'm not very experienced with creating web pages / web software from scratch. What I'm much better at is creating desktop applications. Now, I've seen these mentions about this Botmanager application for Budabot 0.6 which you could use to admin bots. So, I thought that would be something that I could do. So, here's the idea that I had:

Normally, when you double click chatbot.bat/.sh a new command prompt pops up which shows messages that bot prints, right?
So, this could be enhanced with a GUI application which would have the message output text area, just like the command prompt. But, in addition to that the UI would have buttons for starting, restarting and shutting down the bot. There would also be a text input field where you can give commands to the bot.

I'm not quite sure though what language I should use to program this. I'm most familiar with C++. Other languages I could use are PHP, Ruby, and... maybe Python.

And since this is a GUI application, a GUI library is needed to implement this. PHP would be ideal as it is the common language we use here. Now, I have years of experience using Qt-library. There is [urlhttp://sourceforge.net/projects/php-qt/]PHP-QT[/url] project which would allow using Qt with PHP, but unfortunately that project seems to be dead. There is also PHP-GTK library, which also is a bit stale, and GTK I have never used and I'm not really fond with the learning it would take ;)

This would leave other scripting languages or C++, I know that Ruby and C++ has working implementations of Qt. Python seems to have to have quite active implementation as well: http://www.pyside.org/.

Ideally, really, the language should be something that others can use as well, so I wouldn't be the only one who can develop and maintain it.

Any other ideas, suggestions?


Sat Apr 21, 2012 9:23 pm
Profile
Member
User avatar

Joined: Wed Oct 05, 2011 1:51 am
Posts: 57
Location: Lost in Time
Post Re: Admin UI as desktop application
I would think PHP for the portability. :) Especially for those of us that run bots in Linux. :) Plus it is in line with the coding of the bot, so dependencies are (or should be) already in place.

Just my thoughts. :mrgreen: :geek:

_________________
Your type personality is: SAEK
Breakdown: Socializer 73.33%, Achiever 60.00%, Explorer 60.00%, Killer 6.67%

http://en.wikipedia.org/wiki/Bartle_Test


Sun Apr 22, 2012 11:37 am
Profile WWW
The Team

Joined: Tue Mar 08, 2011 8:57 am
Posts: 159
Post Re: Admin UI as desktop application
Great idea, and yeah I suggest php for the same reasons. Plus if you ever leave it would be easy to continue it alongside the bot.


Sun Apr 22, 2012 9:03 pm
Profile
The Team

Joined: Sun Sep 04, 2011 7:38 am
Posts: 173
Post Re: Admin UI as desktop application
Hmm, I guess there is no other way than start learning GTK then.
I will first attempt to compile the php-gtk extension for Windows, and see if it works.


Mon Apr 23, 2012 7:45 am
Profile
The Team

Joined: Sun Sep 04, 2011 7:38 am
Posts: 173
Post Re: Admin UI as desktop application
I have managed to compile GTK+ and all its dependencies with VS2008 using same settings as the PHP binaries which comes with Budabot package.
Next I have to figure out how to compile the PHP-GTK extension. When that is done some "Hello World" example comes next :P

I will probably make a new branch of trunk and add the new GTK-binaries there + the example code. Then continue to develop from there onwards.


Wed Apr 25, 2012 7:46 am
Profile
The Team

Joined: Sat Jan 09, 2010 1:32 am
Posts: 1543
Post Re: Admin UI as desktop application
Very nice. :)

I know a lot of people run multiple bot instances so handling multiple bots in the gui might be a worthwhile feature for it.

_________________
FC fail http://www.anarchy-online.biz/Tyrence1.html
"Nearly all men stand adversity, but if you want to test a man's character, give him power." — Abraham Lincoln
Budabot Releases and Downloads: http://code.google.com/p/budabot2/downloads/list


Wed Apr 25, 2012 4:01 pm
Profile
The Team

Joined: Sun Sep 04, 2011 7:38 am
Posts: 173
Post Re: Admin UI as desktop application
It's alive!
Image
Well, sort of :)

Feel free to give it whack, it can be found from:
https://budabot2.googlecode.com/svn/branches/adminui

Run adminui.bat.
The example code is in adminui/adminui.php.


Wed Apr 25, 2012 7:27 pm
Profile
The Team

Joined: Sun Sep 04, 2011 7:38 am
Posts: 173
Post Re: Admin UI as desktop application
Tyrence wrote:
Very nice. :)

I know a lot of people run multiple bot instances so handling multiple bots in the gui might be a worthwhile feature for it.


Yeah, I agree that could be a useful feature as well.


Wed Apr 25, 2012 7:31 pm
Profile
Site Admin

Joined: Mon Nov 23, 2009 11:19 pm
Posts: 229
Post Re: Admin UI as desktop application
I have NO idea what this thread is even about...
Explanation for the non geek please? :mrgreen:


Wed Apr 25, 2012 9:40 pm
Profile
The Team

Joined: Sat Jan 09, 2010 1:32 am
Posts: 1543
Post Re: Admin UI as desktop application
Snakebite wrote:
I have NO idea what this thread is even about...
Explanation for the non geek please? :mrgreen:

He's writing a Windows GUI for Budabot similar to the old BotManager program that Derroylo wrote for Budabot 0.6.

_________________
FC fail http://www.anarchy-online.biz/Tyrence1.html
"Nearly all men stand adversity, but if you want to test a man's character, give him power." — Abraham Lincoln
Budabot Releases and Downloads: http://code.google.com/p/budabot2/downloads/list


Thu Apr 26, 2012 3:35 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 76 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
Translated by Maël Soucaze © 2009 phpBB.fr