The Mana World Buddy

Got something on your mind about the project? This is the correct place for that.
Forum rules
This forum is for feature requests, content changes additions, anything not a Bug in the software.
Please report all bugs on the Support Forums
User avatar
WesJanson
Peon
Peon
Posts: 8
Joined: 07 Apr 2008, 22:59
Location: Nebraska, USA
Contact:

The Mana World Buddy

Post by WesJanson » 07 Apr 2008, 23:12

Hi all!

I saw a VB app a while back that managed a "buddy list", but I run Linux so that's a no go.

Anyway, I wrote a quick one with cURL and gtk and thought I'd share.
http://static.velvetcache.org/projects/tmwbuddy/

Image

The site has source with an install script, as well as a compiled x86 version with install script.

If people like it, I can add on to it with time.

I think that there is guild and buddy list stuff being worked on in the TMW source (from commit logs I read) so I guess this will probably just be a temporary solution until that stuff gets pushed out.

Hope you all like it!

P.S. Didn't know if this was the right forums thread for it, so admins please move me if I'm wrong :)

EDITED:

Current version is 0.0.3. Be aware that the install script may be buggy.
Please post all bugs here or through the contact form on the website.

Image
Last edited by WesJanson on 24 Apr 2008, 18:22, edited 1 time in total.
User avatar
GonzoDark
Novice
Novice
Posts: 325
Joined: 21 Apr 2007, 10:27
Location: Denmark

Re: The Mana World Buddy

Post by GonzoDark » 08 Apr 2008, 00:30

It installs without any problems, really nice.

But there is 2 things I kinda miss;

1. I wish to see the online list when I open the program, then I can right click on those I want to add and chose a option "add buddy"? Instead of having to type the name for myself, and could you make that online list+my friends "auto update" fx. every 30 sec? ( maybe this will help? http://server.themanaworld.org/online.html )

2. Can you make a system tray icon? and a Gnome menu button?

Besides for those 2 minor things, I think it is working great - It is saving my buddy's when I log off and showing them when I log on.

Say hi to Lusankya from IchigoBlack ;-)

// GonzoDark
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan

Image
User avatar
WesJanson
Peon
Peon
Posts: 8
Joined: 07 Apr 2008, 22:59
Location: Nebraska, USA
Contact:

Re: The Mana World Buddy

Post by WesJanson » 08 Apr 2008, 04:19

Wow, glad it worked for somebody else :)

As to your items...

1) I'm going to incorporate an adjustable refresh time, and I'll do that with the add buddy dialog as well.
2) No idea how that works, but I'll look into it.

Watch this thread for updates!
User avatar
GonzoDark
Novice
Novice
Posts: 325
Joined: 21 Apr 2007, 10:27
Location: Denmark

Re: The Mana World Buddy

Post by GonzoDark » 08 Apr 2008, 14:41

WesJanson wrote:Wow, glad it worked for somebody else :)

As to your items...

1) I'm going to incorporate an adjustable refresh time, and I'll do that with the add buddy dialog as well.
2) No idea how that works, but I'll look into it.

Watch this thread for updates!
can't wait for the updates =)

// GonzoDark
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan

Image
User avatar
WesJanson
Peon
Peon
Posts: 8
Joined: 07 Apr 2008, 22:59
Location: Nebraska, USA
Contact:

Re: The Mana World Buddy

Post by WesJanson » 21 Apr 2008, 23:29

Okay!

Long time coming but I have something for you

CHANGES
  • File naming is changed, everything is based off of "The Mana World Buddy", no more g's
  • Installer should add a menu item in "Games"
  • Tray icon with "X Buddies Online" tool tip
  • More flexible configuration
    • Change refresh time
    • Change server address
  • Nice new icon
The installer should clean up any old versions, just run as root.

One other item is that it uses a configuration file library I wrote, libvcconfig. There are links to that on the project page, and it's dead simple to install as well.

I promise I'll get around to that add buddy/online list thing next!

Please put any bugs or feature requests in this thread, or use the contact form on the site.

http://static.velvetcache.org/projects/tmwbuddy/
User avatar
GonzoDark
Novice
Novice
Posts: 325
Joined: 21 Apr 2007, 10:27
Location: Denmark

Re: The Mana World Buddy

Post by GonzoDark » 22 Apr 2008, 00:49

I got some problems here;

First I needed the libgtkmm-2.4-dev (you might want to add this to dependencies)

Then I ran the installer one more time;
lk@lk-laptop:~/Skrivebord/ROD/TMWBuddy-0.0.2-src$ sudo sh install
-e \E[01;36mThis script will attempt to install (or update) The Mana World Buddy on your machine.\E[01;0m
-en \E[01;33mContinue? \E[01;0m[\E[01;32my\E[01;0m/\E[01;31mN\E[01;0m]
y
-e \E[01;36mCleaning up build directory.\E[01;0m
-e \E[01;36mBuilding software.\E[01;0m
g++ -Wall -g `pkg-config gtkmm-2.4 --cflags` `curl-config --cflags` -c main.cpp -o main.o
I filen inkluderet af main.cpp:24:
mainWindow.h:36:22: error: vcConfig.h: No such file or directory
mainWindow.h:50: fejl: ‘vcConfig’ does not name a type
server.h:31: advarsel: ‘int tmwb::curlWriter(char*, size_t, size_t, std::string*)’ defined but not used
make: *** [main.o] Fejl 1
-e \E[01;31mSomething went wrong in the build. Check it out.\E[01;0m
It did not work, and the
DEFAULT="\E[01;0m"
RED="\E[01;31m"
YELLOW="\E[01;33m"
TEAL="\E[01;36m"
BLUE="\E[01;34m"
GREEN="\E[01;32m"
does not work in Ubuntu 7.10 or 8.04.

// GonzoDark

EDIT:

Forgot to install the libvcconfig - trying it out right now

New EDIT:

Can't install the libvcconfig;

Code: Select all

lk@lk-laptop:~/Skrivebord/ROD/libvcconfig-1.0.0-x86$ sudo sh install.sh
-e \E[01;36mThis script will attempt to install (or update) libvcconfig on your machine.\E[01;0m
-en \E[01;33mContinue? \E[01;0m[\E[01;32my\E[01;0m/\E[01;31mN\E[01;0m] 
Y
cp: kan ikke udføre stat() 'vcConfig.h': No such file or directory
-e \E[01;31mCouldn't copy the header file to /usr/include/.\E[01;0m
The new EDIT:

Got the problem fixed with installing the src.

but I can't find any link in the gnome menu, and the link on my desktop does not work (but it is there)
Last edited by GonzoDark on 22 Apr 2008, 01:13, edited 1 time in total.
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan

Image
User avatar
WesJanson
Peon
Peon
Posts: 8
Joined: 07 Apr 2008, 22:59
Location: Nebraska, USA
Contact:

Re: The Mana World Buddy

Post by WesJanson » 22 Apr 2008, 01:06

Oops!

Forgot the header file in the compiled libvcconfig release, should be fixed now and is on website.
Here's a shortcut:
http://static.velvetcache.org/projects/ ... x86.tar.gz

Should all work now, I'm looking into the echo problem with Ubuntu.

I guess I need a better test environment :)
User avatar
GonzoDark
Novice
Novice
Posts: 325
Joined: 21 Apr 2007, 10:27
Location: Denmark

Re: The Mana World Buddy

Post by GonzoDark » 22 Apr 2008, 02:21

I edited the desktop link and added "TMWBuddy" under "shortcut" "command", so now it works, but it would be great if that worked from the start ;)

The program can also be opened from the terminal with the same command "TMWBuddy".

So I got the program up and running, and it looks great. (and nice ikon by the way)

Keep up the good work ;)

// GonzoDark
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan

Image
User avatar
WesJanson
Peon
Peon
Posts: 8
Joined: 07 Apr 2008, 22:59
Location: Nebraska, USA
Contact:

Re: The Mana World Buddy

Post by WesJanson » 22 Apr 2008, 02:24

I'll roll that in too. Thanks for being a faithful tester :)
User avatar
GonzoDark
Novice
Novice
Posts: 325
Joined: 21 Apr 2007, 10:27
Location: Denmark

Re: The Mana World Buddy

Post by GonzoDark » 22 Apr 2008, 02:31

Hehe, no problem :D

Forgot to say that I now see a icon in the top screen (with my skype icon and xchat icon), in my top menu-bar, but when I minimize the program it just minimizes to the bottom-bar instead of the top-bar. :?

So if you could look into that 2, then it would be awesome :wink:

// GonzoDark
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan

Image
User avatar
WesJanson
Peon
Peon
Posts: 8
Joined: 07 Apr 2008, 22:59
Location: Nebraska, USA
Contact:

Re: The Mana World Buddy

Post by WesJanson » 24 Apr 2008, 07:40

Another update!

This one finally brings the online users list into the add buddy dialog.

Image

Also the install script should do some basic dependency checking.

No other real additional fixes, I am working on setting up some virtual machines with different distros and such so that I can test this better, but this versions just going to have to be another "buggy" one.

Still TODO:
  • Minimize to tray
  • Figure out escape codes in Ubuntu
    • install script, they should go away now, but thats not what I want)
  • Get it in the applications menu
    • Works in Debian sid with KDE, again, need to set up test environments
As always, it's at http://static.velvetcache.org/projects/tmwbuddy

Also, there are now some really low-quality videos there for if you want to preview what it does :-)
User avatar
GonzoDark
Novice
Novice
Posts: 325
Joined: 21 Apr 2007, 10:27
Location: Denmark

Re: The Mana World Buddy

Post by GonzoDark » 24 Apr 2008, 12:06

fi

echo -e "${TEAL}Checking for libvcconfig${DEFAULT}"
ldconfig -p | grep libvcconfig
if [ $? -ne 0 ]; then
echo -e "${RED}Couldn't find libvcconfig.\nTry http://static.velvetcache.org/projects/ ... g${DEFAULT}"
exit 1
when I run that part of the sh script I get
-e \E[01;36mChecking for libvcconfig\E[01;0m
-e \E[01;31mCouldn't find libvcconfig.
Try http://static.velvetcache.org/projects/libvcconfig\E[01;0m
and when I ran ldconfig -p | grep libvcconfig after I had installed the libvccongfig-file, I got this:
gonzodark@gonzodark-desktop:~/Skrivebord/libvcconfig-1.0.0-x86$ sudo sh install.sh
-e \E[01;36mThis script will attempt to install (or update) libvcconfig on your machine.\E[01;0m
-en \E[01;33mContinue? \E[01;0m[\E[01;32my\E[01;0m/\E[01;31mN\E[01;0m]
y
-e \E[01;32mlibvcconfig installed successfully!\E[01;0m
gonzodark@gonzodark-desktop:~/Skrivebord/libvcconfig-1.0.0-x86$ sudo ldconfig -p | grep libvcconfig
It should be like;
gonzodark@gonzodark-desktop:~/Skrivebord/TMWBuddy-0.0.3-x86$ ldconfig -p | grep libcurl
libcurl.so.4 (libc6) => /usr/lib/libcurl.so.4
libcurl-gnutls.so.4 (libc6) => /usr/lib/libcurl-gnutls.so.4
libcurl-gnutls.so (libc6) => /usr/lib/libcurl-gnutls.so
So the problem is that I have the libvcconfig installed but there is no link to the file, so my computer thinks that I don't have it.

But it looks great from the image you posted :lol:

Hope it will get fixed soon so I can test it out :D

Keep up the good work ;)

// GonzoDark
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan

Image
User avatar
GonzoDark
Novice
Novice
Posts: 325
Joined: 21 Apr 2007, 10:27
Location: Denmark

Re: The Mana World Buddy

Post by GonzoDark » 24 Apr 2008, 12:25

I did a little test to locate the problem:
gonzodark@gonzodark-desktop:~/Skrivebord/libvcconfig-1.0.0-x86$ sudo ldconfig -p | grep libvc
libvcdinfo.so.0 (libc6) => /usr/lib/libvcdinfo.so.0
libvcard.so.0 (libc6) => /usr/lib/libvcard.so.0
gonzodark@gonzodark-desktop:~/Skrivebord/libvcconfig-1.0.0-x86$ sudo ldconfig -p | grep libvcconfig.so
gonzodark@gonzodark-desktop:~/Skrivebord/libvcconfig-1.0.0-x86$ locate libvcconfig
/home/gonzodark/Skrivebord/libvcconfig-1.0.0-x86
/home/gonzodark/Skrivebord/libvcconfig-1.0.0-x86.tar.gz
/usr/lib/libvcconfig.so
/usr/lib/libvcconfig.so.1
/usr/lib/libvcconfig.so.1.0.0
As you see I got the file, but it is not working as it should.

I should be able to locate the file with a symbolic link, with this code "sudo ldconfig -p | grep libvc" or else I will not pass the test, and besides it would not work if I did, if the symbolic link does not work =/

Hope you are able to fix the problem now, since I have located it :)

// GonzoDark
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan

Image
User avatar
WesJanson
Peon
Peon
Posts: 8
Joined: 07 Apr 2008, 22:59
Location: Nebraska, USA
Contact:

Re: The Mana World Buddy

Post by WesJanson » 24 Apr 2008, 18:17

Hmmm.... That's a weird one.

The only thing I can think of is that the links are there so it works, but the ld cache isn't current.
Try running "ldconfig" then running the "ldconfig -p | grep libvcconfig" again.

I guess my clever plan for helping users find missing dependencies has a flaw :?

If that doesn't work, just remove the libvcconfig check part from the script. Sorry that there is always a hassle!
User avatar
GonzoDark
Novice
Novice
Posts: 325
Joined: 21 Apr 2007, 10:27
Location: Denmark

Re: The Mana World Buddy

Post by GonzoDark » 25 Apr 2008, 00:27

WesJanson wrote:Hmmm.... That's a weird one.

The only thing I can think of is that the links are there so it works, but the ld cache isn't current.
Try running "ldconfig" then running the "ldconfig -p | grep libvcconfig" again.

I guess my clever plan for helping users find missing dependencies has a flaw :?

If that doesn't work, just remove the libvcconfig check part from the script. Sorry that there is always a hassle!
That fixed the first problem... BUT I got a new problem - "Could not load buddy file!" <-- I get that error when I try to open the program.

So if you could fix that last problem, THEN I will finally get to test it =)

keep up the good work ;)

hehe :lol:

// GonzoDark
IchigoBlack (86) a.k.a GonzoDark (80) || HolyManaClan

Image
Post Reply