Valhalla Legends Archive

General => General Discussion => Topic started by: nahud on October 14, 2006, 06:30 PM

Title: Not sure where to put this
Post by: nahud on October 14, 2006, 06:30 PM
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
Title: Re: Not sure where to put this
Post by: Hero on October 14, 2006, 07:25 PM
www.javaop.com

KaneBot (don't know link)

And there is some other one out there but I can't seem to remember.
Title: Re: Not sure where to put this
Post by: Yegg on October 14, 2006, 07:36 PM
Quote from: heRo on October 14, 2006, 07:25 PM
www.javaop.com

KaneBot (don't know link)

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

There is also slackchat (Starcraft only) and zDSBot. There must be others, I just can't think of them now.
Title: Re: Not sure where to put this
Post by: nahud on October 14, 2006, 07:52 PM
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.
Title: Re: Not sure where to put this
Post by: Hero on October 14, 2006, 09:32 PM
Mind telling me where SlackChat is located?

@nahud: I don't think zds works with the new mpq names.
Title: Re: Not sure where to put this
Post by: nahud on October 15, 2006, 12:00 AM
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

Title: Re: Not sure where to put this
Post by: Explicit on October 15, 2006, 02:12 AM
...

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...
Title: Re: Not sure where to put this
Post by: Yegg on October 15, 2006, 08:59 AM
zDSBot and Slackchat can be easily modified for the recent changes.
Title: Re: Not sure where to put this
Post by: nahud on October 15, 2006, 01:59 PM
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'
Title: Re: Not sure where to put this
Post by: Kp on October 15, 2006, 03:44 PM
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.
Title: Re: Not sure where to put this
Post by: nahud on October 15, 2006, 08:14 PM
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)

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


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.
Title: Re: Not sure where to put this
Post by: Explicit on October 15, 2006, 08:38 PM
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.
Title: Re: Not sure where to put this
Post by: nahud on October 16, 2006, 10:19 PM
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
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


which in turn gives this error upon ./slackchat

[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
Title: Re: Not sure where to put this
Post by: Explicit on October 17, 2006, 12:02 AM
So have you or have you not configured .slackchatrc?

Just IM me on AIM whenever you have the chance.
Title: Re: Not sure where to put this
Post by: K on October 17, 2006, 05:52 PM
Quote from: nahud on October 16, 2006, 10:19 PM
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

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

ls -a

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.
Title: Re: Not sure where to put this
Post by: nahud on October 22, 2006, 02:33 PM
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?
Title: Re: Not sure where to put this
Post by: warz on October 22, 2006, 03:05 PM
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.