• Welcome to Valhalla Legends Archive.
 

Not sure where to put this

Started by nahud, October 14, 2006, 06:30 PM

Previous topic - Next topic

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

Hero

www.javaop.com

KaneBot (don't know link)

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

Yegg

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.

nahud

#3
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.

Hero

Mind telling me where SlackChat is located?

@nahud: I don't think zds works with the new mpq names.

nahud

#5
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


Explicit

...

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...
I'm awake in the infinite cold.

[13:41:45]<@Fapiko> Why is TehUser asking for wang pictures?
[13:42:03]<@TehUser> I wasn't asking for wang pictures, I was looking at them.
[13:47:40]<@TehUser> Mine's fairly short.

Yegg

zDSBot and Slackchat can be easily modified for the recent changes.

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'

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.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

nahud

#10
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.

Explicit

#11
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.
I'm awake in the infinite cold.

[13:41:45]<@Fapiko> Why is TehUser asking for wang pictures?
[13:42:03]<@TehUser> I wasn't asking for wang pictures, I was looking at them.
[13:47:40]<@TehUser> Mine's fairly short.

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
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

Explicit

So have you or have you not configured .slackchatrc?

Just IM me on AIM whenever you have the chance.
I'm awake in the infinite cold.

[13:41:45]<@Fapiko> Why is TehUser asking for wang pictures?
[13:42:03]<@TehUser> I wasn't asking for wang pictures, I was looking at them.
[13:47:40]<@TehUser> Mine's fairly short.

K

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.