Clan x86

Technical (Development, Security, etc.) => JavaOp Board => JavaOp Support Archive => Topic started by: Dan on May 20, 2008, 07:03:56 pm

Title: JavaOp, no gui, shell
Post by: Dan on May 20, 2008, 07:03:56 pm
Hello all

I am having problems with getting JavaOp to work without a gui, I have had JavaOp before but that was on a windows machine.
This is on a shell, no matter what I try to do, it will not find the plugins, it trys to open the gui to navigate to the plugin folder.
Java is installed, and I have also tried looking on these boards for answers but none really.

Any ideas?






dan@Nekron:~/Desktop/Core$ java -jar CommandlineConfiguration.jar

Unable to find any plugins.
Please download the plugin package from
http://www.javaop.com/download.html
and extract them somewhere.  You will be prompted to find them.

(.:15245): Gtk-WARNING **: cannot open display:
Title: Re: JavaOp, no gui, shell
Post by: iago on May 20, 2008, 08:27:23 pm
Does it display anything after that? I thought I set it so, if it couldn't find the gui, it would automatically prompt you on the shell?

If it doesn't, run this:

echo "/path/to/plugins" >> ~/.javaop2/_PluginPaths.txt

Then run the bot.
Title: Re: JavaOp, no gui, shell
Post by: Dan on May 20, 2008, 10:52:14 pm
Ok, that worked thank you, it didn't prompt me to enter in the path in, but that echo thing worked.

now, how do I set the bnls server by command line?  I got everything else done



nvm got it, thanks for the support
Title: Re: JavaOp, no gui, shell
Post by: Dan on May 21, 2008, 09:22:22 am
Ok, now my problem is getting the JavaOp to stay connected when I close the putty window, is there a command I give it to run in the background or something, and I can safely close my putty window and have the bot stay connected?

Thanks
Title: Re: JavaOp, no gui, shell
Post by: iago on May 21, 2008, 09:33:05 am
Learn how to use "screen". Here is a quick rundown, but I suggest learning it good:

1. Run "screen" (starts a "screen" session)
2. Run the bot
3. Close the putty window (detaches the "screen" session)
4. If you need access to the bot, run "screen -r" (-r = resume)
Title: Re: JavaOp, no gui, shell
Post by: Sidoh on May 21, 2008, 11:09:16 am
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.
Title: Re: JavaOp, no gui, shell
Post by: Dan on May 21, 2008, 12:56:05 pm
ah yes, screen, I remember that, how do I quit the bot after I put it on screen though?

I can resume fine but can't seem to quit the bot.
I don't want to use the battle.net commands to do it, I want to use console.




Thanks
Title: Re: JavaOp, no gui, shell
Post by: Joe on May 21, 2008, 02:40:34 pm
If you run screen --help it should tell you how to kill a session.

Wait.. I'm on Linux. Sec!

Hm, Ctrl+C on a resumed screen seemed to kill it. How to make the bot QUIT, I'm not sure from the console. Maybe just /quit?
Title: Re: JavaOp, no gui, shell
Post by: iago on May 21, 2008, 02:46:52 pm
Log into the server, resume screen like I said, kill the bot with control-c, exit screen with "exit"
Title: Re: JavaOp, no gui, shell
Post by: Sidoh on May 21, 2008, 04:00:01 pm
Log into the server, resume screen like I said, kill the bot with control-c, exit screen with "exit"


If you run screen with the command you use to launch the bot, it'll shut itself down when the bot is closed (assuming you haven't launched any other programs in that screen session).

example:
$ screen "java -jar ./iagosbot.jar"
Title: Re: JavaOp, no gui, shell
Post by: Dan on May 22, 2008, 04:12:33 pm
is it possible to have more than one screen going?
Title: Re: JavaOp, no gui, shell
Post by: Sidoh on May 22, 2008, 04:20:59 pm
is it possible to have more than one screen going?

Yes, but screen -r won't work, since you'll have more than one session.  To resume, you can either use screen -R, which will resume the first detached session it comes across, or you can do the following.

screen -ls will list all of the screen sessions.  I forget exactly how they're formatted, but I'm pretty sure it's something like PID.somecrap.  If you name the session, done with screen -t name when you're launching screen, then you can do screen -r name.  Otherwise, do screen -r PID.
Title: Re: JavaOp, no gui, shell
Post by: Dan on May 22, 2008, 04:26:38 pm
ohh ok, Thanks guys.
Title: Re: JavaOp, no gui, shell
Post by: Camel on May 25, 2008, 02:29:56 am
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.
Title: Re: JavaOp, no gui, shell
Post by: iago on May 25, 2008, 02:31:50 am
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

Great, but that's pretty much irrelevant.
Title: Re: JavaOp, no gui, shell
Post by: Camel on May 25, 2008, 02:34:42 am
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

Great, but that's pretty much irrelevant.

So's your post, troll!
Title: Re: JavaOp, no gui, shell
Post by: Warrior on May 25, 2008, 11:43:48 am
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

Great, but that's pretty much irrelevant.

So's your post, troll!

he's more like troll in training
through my infinite wisdom i've turned him into a troll against his own wishes

btw, happy Topaz Week.
Title: Re: JavaOp, no gui, shell
Post by: Sidoh on May 25, 2008, 11:52:19 am
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

I know, but I specified to avoid having to answer that question in the future.