Valhalla Legends Forums Archive | General Discussion | Not sure where to put this

AuthorMessageTime
nahud
I just installed xubuntu 6.06 (my first distro ever) and I'm planning on working more in that than Windows XP, just to learn something new. So far for communications programs, I've got xchat-gnome(I believe), GAIM for instant messages and now I'm looking for a bnet bot that works. Anyone know any plus instructions on how to install because I'm totally nub at linux :x
October 14, 2006, 11:30 PM
HeRo
www.javaop.com

KaneBot (don't know link)

And there is some other one out there but I can't seem to remember.
October 15, 2006, 12:25 AM
Yegg
[quote author=heRo link=topic=15875.msg159821#msg159821 date=1160871944]
www.javaop.com

KaneBot (don't know link)

And there is some other one out there but I can't seem to remember.
[/quote]

There is also slackchat (Starcraft only) and zDSBot. There must be others, I just can't think of them now.
October 15, 2006, 12:36 AM
nahud
Hmm, I thought zDS was out of date... or does it connect to bnet still if you have the correct hashes.

edit: Thanks for the links above.
October 15, 2006, 12:52 AM
HeRo
Mind telling me where SlackChat is located?

@nahud: I don't think zds works with the new mpq names.
October 15, 2006, 2:32 AM
nahud
http://www.javaop.com/~tmp/index.htm for hero

and JavaOp ... I dunno if my java doesn't like swing or something. Spacings were out of order and I couldn't fill in items or scroll properly :(

trying slackchat and hoping that it works and that the terminal look is hot \o/

edit: can't get slackchat working either... I get this problem

"nahud@nahud-desktop:~/Desktop$ cd ./slackchat/src && make
bash: make: command not found"

The readme told me to install it like this so ... :\

edit: some weird error I won't even attempt to understand

nahud@nahud-desktop:~/Desktop/slackchat/src$ make
gcc -I./include -Wall -ggdb  -c main.c
main.c:9:20: error: curses.h: No such file or directory
main.c:10:19: error: ctype.h: No such file or directory
main.c:11:19: error: stdio.h: No such file or directory
main.c:12:23: error: sys/types.h: No such file or directory
main.c:13:22: error: sys/time.h: No such file or directory
main.c:14:24: error: sys/socket.h: No such file or directory
main.c:15:24: error: netinet/in.h: No such file or directory
main.c:16:20: error: string.h: No such file or directory
main.c:17:19: error: errno.h: No such file or directory
main.c:18:20: error: stdlib.h: No such file or directory
main.c:19:20: error: unistd.h: No such file or directory
main.c:20:20: error: getopt.h: No such file or directory
main.c:21:18: error: time.h: No such file or directory
main.c:22:17: error: pwd.h: No such file or directory
main.c:23:20: error: dirent.h: No such file or directory

October 15, 2006, 5:00 AM
Explicit[nK]
...

Read it, because it does tell you what's causing the error.

I'll give you a hint: No such file or directory

Also, what version of JRE do you have installed, and what linux distro are you running?  I had a similar problem awhile back...
October 15, 2006, 7:12 AM
Yegg
zDSBot and Slackchat can be easily modified for the recent changes.
October 15, 2006, 1:59 PM
nahud
to Explicit: that is part of the error. the full thing is here http://pastebin.ca/204192

I know I'm missing some files but where do I get them. Is it in some package?

I'm using Xubuntu 6.06 with Sun Java(TM) Development Kit (JDK) 5.0 (That's what I installed from Synaptic)

to Yegg: I have so little knowledge in programming, let alone bnet programming :< I have no clue where to start 'modifying'
October 15, 2006, 6:59 PM
Kp
You need glibc-devel and ncurses-devel.  They may be called something else on your distribution, but those names should get you started on your search.
October 15, 2006, 8:44 PM
nahud
Seems one step closer to running. I installed

libc6-dev (2.3.6-0ubuntu20)
linux-kernel-headers (2.6.11.2-0ubuntu18) < when I clicked libc6-dev this thing was automatically added
libncurses5-dev (5.5-1ubuntu3)

[code]nahud@nahud-desktop:~/Desktop/slackchat/src$ make
gcc -I./include -Wall -ggdb  -c main.c
main.c: In function ‘recvloop’:
main.c:441: warning: pointer targets in passing argument 1 of ‘parsedata’ differ  in signedness
main.c: In function ‘parsedata’:
main.c:949: warning: pointer targets in passing argument 1 of ‘packet’ differ in  signedness
gcc -I./include -Wall -ggdb    -c -o include/isock.o include/isock.c
gcc -I./include -Wall -ggdb    -c -o include/conf.o include/conf.c
gcc -I./include -Wall -ggdb    -c -o include/packet.o include/packet.c
gcc -I./include -Wall -ggdb    -c -o include/checkver.o include/checkver.c
gcc -I./include -Wall -ggdb    -c -o include/cdkey.o include/cdkey.c
gcc main.o include/isock.o include/conf.o include/packet.o  include/checkver.o i nclude/cdkey.o -o ../slackchat -lncurses
[/code]

It's also failed to copy .slackchatrc into /home/nahud/ when I try to run ./slackchat. I'm not sure if the problem below is related to the problem above

[21:13:34]  Using default configuration file: /home/nahud/.slackchatrc...
[21:13:34]  Error opening configuration file.
[21:13:34]  Failed to open configuration file: /home/nahud/.slackchatrc
[21:13:34]  Failed to connect!
[21:13:34]  Disconnected.

edit: Something weird went on and .slashchatrc wouldnt appear in the terminal or file manager, but when I tried to create a file called that it said it already existed and if it wanted to be overwritten. I've worked around that by creating the file with mousepad(some text editor).

nahud@nahud-desktop:~$ ls
Desktop  Examples  workspace
nahud@nahud-desktop:~$ ls -l /home/nahud/.slackchatrc
-rw-r--r-- 1 nahud nahud 0 2006-10-15 21:18 /home/nahud/.slackchatrc

Pretty weird that it doesnt show up anywhere except when I do that ls -l command.

Now the problem is ...

[21:25:28]  Using default configuration file: /home/nahud/.slackchatrc...
[21:25:28]  Connecting...
[21:25:28]  create_socket->gethostbyname():
[21:25:28]  Error: create_socket()
[21:25:28]  Failed to connect!
[21:25:28]  Disconnected.
October 16, 2006, 1:14 AM
Explicit[nK]
The default configuration is .slackchatrc, and that should be located in the directory where you extracted slackchat to.  What you want to do is manually mv it to /home/nahud/, and then open it with a text editor like pico or nano.
October 16, 2006, 1:38 AM
nahud
I'm not sure if Xubuntu hates files that start with periods or something, I am sure I extracted the entire archive and that file doesn't not show up in the Terminal unless I do ls -l /blahblah/.slashchatrc

I think the problem is when I run make
[code]main.c: In function ‘recvloop’:
main.c:441: warning: pointer targets in passing argument 1 of ‘parsedata’ differ  in signedness
main.c: In function ‘parsedata’:
main.c:949: warning: pointer targets in passing argument 1 of ‘packet’ differ in  signedness
[/code]

which in turn gives this error upon ./slackchat
[code]
[21:25:28]  Using default configuration file: /home/nahud/.slackchatrc...
[21:25:28]  Connecting...
[21:25:28]  create_socket->gethostbyname():
[21:25:28]  Error: create_socket()
[21:25:28]  Failed to connect!
[21:25:28]  Disconnected.
[/code[/code]
October 17, 2006, 3:19 AM
Explicit[nK]
So have you or have you not configured .slackchatrc?

Just IM me on AIM whenever you have the chance.
October 17, 2006, 5:02 AM
K
[quote author=nahud link=topic=15875.msg159910#msg159910 date=1161055168]
I'm not sure if Xubuntu hates files that start with periods or something, I am sure I extracted the entire archive and that file doesn't not show up in the Terminal unless I do ls -l /blahblah/.slashchatrc
[/quote]

Under linux, files and folders that begin with periods are hidden files; they aren't shown unless you explicitly choose to show them.  I bet if you run
[code]
ls -a
[/code]
in your home directory, you'll be surprised how many hidden files you have already; .bashrc, .bash_profile, .bash_history, .Xdefaults, and so on.

It makes sense to hide these files since unless you're looking for one, you probably don't want to see all the configuration files.
October 17, 2006, 10:52 PM
nahud
Cool cool, I think I'm at the last step now.. Check revision failed.. and I got 1.13f hashes... What's left to do?
October 22, 2006, 7:33 PM
warz
This was made prior to the CheckRevision changes, not to mention, Brood War is now 1.14. You will have to search the forums for an updated CheckRevision function in C.
October 22, 2006, 8:05 PM

Search