Anemone Client

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Re: Anemone Client

Postby romovs » Mon Mar 03, 2014 5:32 pm

robous wrote:Any ideas on how to drop an item that is currently dragging?

Right click should do it:

Code: Select all
dropCoord = new Coord(x, y);
maid.doRightClick(dropCoord);

Or this if you need to pathfind to the destination:
Code: Select all
maid.pathFindRightClick(dropCoord, 4, false);
User avatar
romovs
 
Posts: 1472
Joined: Sun Sep 29, 2013 9:26 am
Location: The Tabouret

Re: Anemone Client

Postby Veasst » Mon Mar 03, 2014 5:53 pm

Someone knows how to fill a Waterskin with water from Bucket with Bot? Tried many things, but nothing worked...
Is there any documentation for that or I need to use source code?
Veasst
 
Posts: 4
Joined: Mon Mar 03, 2014 5:50 pm

Re: Anemone Client

Postby romovs » Mon Mar 03, 2014 6:33 pm

Veasst wrote:Someone knows how to fill a Waterskin with water from Bucket with Bot? Tried many things, but nothing worked...
Is there any documentation for that or I need to use source code?


Code: Select all
Inventory inv = maid.getInventory();
waterskins = maid.getItems(inv, "waterskin");
buckets = maid.getItems(inv, "bucket");
maid.doTake(buckets[0]);    // take the first bucket
maid.waitForGrab();
maid.doInteract(waterskins[0], 0); // fill the first available waterskin
maid.doDrop(buckets[0], (Widget)inv, buckets[0].c.div(31));  // return bucket to its place   
User avatar
romovs
 
Posts: 1472
Joined: Sun Sep 29, 2013 9:26 am
Location: The Tabouret

Re: Anemone Client

Postby robous » Mon Mar 03, 2014 6:44 pm

romovs wrote:
robous wrote:Any ideas on how to drop an item that is currently dragging?

Right click should do it:

Code: Select all
dropCoord = new Coord(x, y);
maid.doRightClick(dropCoord);

Or this if you need to pathfind to the destination:
Code: Select all
maid.pathFindRightClick(dropCoord, 4, false);



Thanks for the quick reply!

I know this method works if I'm carrying a liftable object like a barrel. In my context, I'm harvesting and when it creates the items, there is insufficient room in the inventory so it creates one dragging. I would like to drop the seed that is dragging.
robous
 
Posts: 29
Joined: Fri Jun 07, 2013 3:44 am

Re: Anemone Client

Postby romovs » Mon Mar 03, 2014 7:03 pm

robous wrote: In my context, I'm harvesting and when it creates the items, there is insufficient room in the inventory so it creates one dragging. I would like to drop the seed that is dragging.


Oh there is no built-in functions for it. But this should work:

Code: Select all
maid.ui.mainview.wdgmsg("drop", 0);
User avatar
romovs
 
Posts: 1472
Joined: Sun Sep 29, 2013 9:26 am
Location: The Tabouret

Re: Anemone Client

Postby Veasst » Wed Mar 05, 2014 9:14 pm

Hello!
It's again me. Is it possible to check if Items "maid.getItems(inv, "beetroot");" are "beetroot leaves"?
Veasst
 
Posts: 4
Joined: Mon Mar 03, 2014 5:50 pm

Re: Anemone Client

Postby romovs » Thu Mar 06, 2014 12:02 pm

Veasst wrote:Hello!
It's again me. Is it possible to check if Items "maid.getItems(inv, "beetroot");" are "beetroot leaves"?


Code: Select all
Item[] items = maid.getItems(inv, "beetroot");
for (Item i : items) {
    if (i.res.res.name.endsWith("beetrootleaves")) {
        // leaves
    } else {
        // beetroots
    }
}


Or
Code: Select all
...
if (maid.getName(i).equals("Beetroot Leaves")) {
        // leaves
}
...
User avatar
romovs
 
Posts: 1472
Joined: Sun Sep 29, 2013 9:26 am
Location: The Tabouret

Re: Anemone Client

Postby Noon575 » Thu Mar 06, 2014 9:41 pm

Could use some help here,
Im running windows 7 with java 7.

I downloaded "Windows 64bit - https://dl.dropboxusercontent.com/u/371 ... -amd64.zip"

I unzipped and created a run.bat with the command line:

Code: Select all
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xms512m -Xmx1024m -jar maid.jar moltke.seatribe.se -r ./res
pause


Saved and dropped in Anemone folder. When i run it i get the following:

Code: Select all
C:\Users\Matt\Desktop\anemone-15.02.14-windows-amd64>"C:\Program Files (x86)\Jav
a\jre7\bin\java.exe" -Xms512m -Xmx1024m -jar maid.jar moltke.seatribe.se -r ./re
s
Catched FileNotFoundException: C:\Users\Matt\Desktop\anemone-15.02.14-windows-am
d64\gluegen-rt-natives-windows-i586.jar (The system cannot find the file specifi
ed), while addNativeJarLibsImpl(classFromJavaJar class com.jogamp.common.os.Plat
form, classJarURI jar:file:/C:/Users/Matt/Desktop/anemone-15.02.14-windows-amd64
/gluegen-rt.jar!/com/jogamp/common/os/Platform.class, nativeJarBaseName gluegen-
rt-natives-windows-i586.jar): [ file:/C:/Users/Matt/Desktop/anemone-15.02.14-win
dows-amd64/gluegen-rt.jar -> file:/C:/Users/Matt/Desktop/anemone-15.02.14-window
s-amd64/ ] + gluegen-rt-natives-windows-i586.jar -> slim: jar:file:/C:/Users/Mat
t/Desktop/anemone-15.02.14-windows-amd64/gluegen-rt-natives-windows-i586.jar!/
Exception in thread "Haven main thread" java.lang.UnsatisfiedLinkError: Can't lo
ad library: C:\Users\Matt\Desktop\anemone-15.02.14-windows-amd64\gluegen-rt.dll
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.load0(Unknown Source)
        at java.lang.System.load(Unknown Source)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoad
erBase.java:551)
        at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.ja
va:64)
        at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNIL
ibLoaderBase.java:96)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.j
ava:414)
        at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrar
y(DynamicLibraryBundle.java:388)
        at com.jogamp.common.os.Platform$1.run(Platform.java:203)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.common.os.Platform.<clinit>(Platform.java:173)
        at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:82)
        at javax.media.opengl.GLCapabilities.<init>(GLCapabilities.java:84)
        at haven.HavenPanel.<clinit>(HavenPanel.java:68)
        at haven.MainFrame.<init>(MainFrame.java:149)
        at haven.MaidFrame.<init>(MaidFrame.java:18)
        at haven.MaidFrame.main2(MaidFrame.java:383)
        at haven.MaidFrame.access$200(MaidFrame.java:12)
        at haven.MaidFrame$6.run(MaidFrame.java:341)
        at java.lang.Thread.run(Unknown Source)

C:\Users\Matt\Desktop\anemone-15.02.14-windows-amd64>pause
Press any key to continue . . .


I've been reading through the forums for a couple hours now and cant seem to come up with anything. Any help would be much appreciated thanks.
Noon575
 
Posts: 11
Joined: Sun Oct 31, 2010 6:25 am

Re: Anemone Client

Postby phatboydw » Thu Mar 06, 2014 9:43 pm

When I click on global chat, the client freezes, but watching the command prompt for abit it appears that stuff is still happening but I am unable to click on or do anything. I am pretty sure this error appears after clicking on it.

Exception in thread "Haven UI thread" java.lang.NullPointerException
at haven.Widget.<init>(Widget.java:90)
at haven.HWindow.<init>(HWindow.java:59)
at haven.ChatHW.<init>(ChatHW.java:58)
at haven.IRChatHW.<init>(IRChatHW.java:9)
at haven.IRChatHW.open(IRChatHW.java:40)
at haven.MenuGrid.usecustom(MenuGrid.java:364)
at haven.MenuGrid.use(MenuGrid.java:278)
at haven.MenuGrid.mouseup(MenuGrid.java:383)
at haven.UI.mouseup(UI.java:350)
at haven.HavenPanel.dispatch(HavenPanel.java:348)
at haven.HavenPanel.run(HavenPanel.java:398)
at java.lang.Thread.run(Unknown Source)
phatboydw
 
Posts: 7
Joined: Fri Sep 16, 2011 2:45 am

Re: Anemone Client

Postby borka » Thu Mar 06, 2014 10:27 pm

Noon575 wrote:Could use some help here,
Im running windows 7 with java 7.

I downloaded "Windows 64bit - https://dl.dropboxusercontent.com/u/371 ... -amd64.zip"

I unzipped and created a run.bat with the command line:

Code: Select all
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xms512m -Xmx1024m -jar maid.jar moltke.seatribe.se -r ./res
pause


I've been reading through the forums for a couple hours now and cant seem to come up with anything. Any help would be much appreciated thanks.


You're trying to run the 64 Bit client with 32 Bit Java (-> x86) ... install 64 Bit Java aswell: http://www.havenandhearth.com/forum/vie ... 86#p359412
change run.bat java path to
Code: Select all
"C:\Program Files\Java\jre7\bin\java.exe"
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot], Google [Bot] and 1 guest