Yoink Pasta - Purus Pasta fork

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

Re: Yoink Pasta - Purus Pasta fork

Postby caz » Sat Feb 24, 2024 1:20 pm

sTinKNuGGeTs wrote:Does anyone know why opening the equipment manager (ctrl+e) would crash the client? The client is fine as long as I don't try and open the equipment manager, the instant I open it or look at new loot the client locks and I have to manually close it. Any help would be greatly appreciated. I have installed and re-installed Java numerous times as well as the Pasta client.

Do you get the issue in other clients? Making a fresh character?
I used a couple different clients and one of them will crash if I open a cupboard containing gems, since the latest update. Maybe there's something in your equipment triggering it?
It would help if you have any kind of error log for the client dev to see.
Image
User avatar
caz
 
Posts: 205
Joined: Fri Jul 16, 2010 7:27 pm

Re: Yoink Pasta - Purus Pasta fork

Postby vatas » Sat Feb 24, 2024 3:41 pm

caz wrote:
sTinKNuGGeTs wrote:Does anyone know why opening the equipment manager (ctrl+e) would crash the client? The client is fine as long as I don't try and open the equipment manager, the instant I open it or look at new loot the client locks and I have to manually close it. Any help would be greatly appreciated. I have installed and re-installed Java numerous times as well as the Pasta client.

Do you get the issue in other clients? Making a fresh character?
I used a couple different clients and one of them will crash if I open a cupboard containing gems, since the latest update. Maybe there's something in your equipment triggering it?
It would help if you have any kind of error log for the client dev to see.

The description "client locks" implies the entire program freezes without producing an error log.

I had some kind of issue with Kami where this happened but since it stopped happening, I've forgotten most of the details and ended up not documenting it. I do remember that it (probably) had nothing to do with the equipment window.

I'm not sure if it was this version of the Pasta (as in, Pasta has been re-started from scratch at least once, probably twice) but there was a bug where having equipment screen open killed 10-15 FPS. Cause was that equipment screen bonuses were re-calculated every single frame and it was fixed to only update much more conditionally.

Also Kami has possibly related issue where some of the equipment bonuses aren't shown in the custom extension of the Equipment Screen.
Image
(Survival is missing from the custom list.)
The most actively maintained Haven and Hearth Wiki (Not guaranteed to be up-to-date with all w14 changes.)

Basic Claim Safety (And what you’re doing wrong) (I recommend you read it in it's entirety, but TL:;DR: Build a Palisade.)

Combat Guide (Overview, PVE, PVP) (Tells you how to try and escape, and make it less likely to die when caught.)
User avatar
vatas
 
Posts: 4511
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: Yoink Pasta - Purus Pasta fork

Postby mihau92k » Mon Feb 26, 2024 11:56 am

sTinKNuGGeTs wrote:Does anyone know why opening the equipment manager (ctrl+e) would crash the client? The client is fine as long as I don't try and open the equipment manager, the instant I open it or look at new loot the client locks and I have to manually close it. Any help would be greatly appreciated. I have installed and re-installed Java numerous times as well as the Pasta client.


For me it also crashes when opening containers.

Problem seems to be that there is new version of ui/tt/slots (current version in src is 28 and haven resources is 30) and lib/tspec (current version in src is 4 and haven resources is 5). Affected files:
src/haven/res/ui/tt/slots/ISlots.java
src/haven/res/ui/tt/slots/Fac.java (no changes in this file but it's part of ui/tt/slots)
src/haven/res/lib/tspec/Spec.java

You either need to replace files and build yourself or wait for a fix.

You can download resource files with source code inside here:
http://game.havenandhearth.com/res/ui/tt/slots.res
http://game.havenandhearth.com/res/lib/tspec
mihau92k
 
Posts: 3
Joined: Mon Dec 02, 2019 7:26 pm

Re: Yoink Pasta - Purus Pasta fork

Postby Hickupp » Wed Mar 13, 2024 7:30 pm

General occurring lockup shortly after entering Valhalla.
- CPU also going into overdrive after this.
- ... (seems limited to particular character ...)
Code: Select all
Exception in thread "Haven UI thread" java.lang.NoClassDefFoundError: Could not initialize class haven.res.ui.tt.slots.ISlots
   at haven.res.ui.tt.slots.Fac.build(Fac.java:22)
   at haven.ItemInfo.buildinfo(ItemInfo.java:383)
   at haven.GItem.info(GItem.java:192)
   at haven.WItem.info(WItem.java:122)
   at haven.ItemInfo$AttrCache.get(ItemInfo.java:432)
   at haven.WItem.draw(WItem.java:201)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.Inventory.draw(Inventory.java:94)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.GameUI.draw(GameUI.java:1094)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.RootWidget.draw(RootWidget.java:85)
   at haven.UI.draw(UI.java:230)
   at haven.GLPanel$Loop.display(GLPanel.java:305)
   at haven.GLPanel$Loop.run(GLPanel.java:404)
   at haven.JOGLPanel.run(JOGLPanel.java:252)
   at java.base/java.lang.Thread.run(Thread.java:833)
Hickupp
 
Posts: 151
Joined: Thu Oct 15, 2020 6:33 am

Re: Yoink Pasta - Purus Pasta fork

Postby Hickupp » Wed Mar 13, 2024 9:50 pm

Using "hourglass = self.sess.PBotUtils.wait_for_hourglass(timeout)" to wait for hourglass. (returns True)
But than at "hourglass_value_now = self.sess.PBotUtils.get_hourglass()" I get ...

Code: Select all
py4j.protocol.Py4JJavaError: An error occurred while calling o756.getHourglass.
: java.lang.NullPointerException: Cannot read field "prog" because "this.pBotSession.gui.prog" is null
   at haven.purus.pbot.api.PBotUtils.getHourglass(PBotUtils.java:234)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:568)
   at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
   at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:374)
   at py4j.Gateway.invoke(Gateway.java:282)
   at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
   at py4j.commands.CallCommand.execute(CallCommand.java:79)
   at py4j.GatewayConnection.run(GatewayConnection.java:238)
   at java.base/java.lang.Thread.run(Thread.java:833)

:(

...

Seems unfinished. :(
Hickupp
 
Posts: 151
Joined: Thu Oct 15, 2020 6:33 am

Re: Yoink Pasta - Purus Pasta fork

Postby Hickupp » Sun Mar 17, 2024 9:00 pm

In the "../scripts/__pbot/PBotItem.py" file there seems to be some odd/bad code.
As far as I can tell its never used by the client itself.

It will be triggered by using a compare like "some_inventory_item == 'some string'".
Resulting in a "AttributeError: 'str' object has no attribute '_item'" on line 12.

Related function: "__eq__" (is special python function name)
Related line(12): "return self.__item.equals(other._item)"

Not sure what the proper code for the "other._item" part should potentially be in this case.
Disabling the whole function would probably fix the error triggering. Without braking anything else ... Probably.

It also seems the ".equals" part is out of character here. As in: its not a general Python thing, but a general Java thing.
But that part did not trigger a error ... at least not yet.

... O yea. the file also contains two "def get_name(self) .." functions. (first one can be disabled/removed as far as I can tell)
Hickupp
 
Posts: 151
Joined: Thu Oct 15, 2020 6:33 am

Re: Yoink Pasta - Purus Pasta fork

Postby Hickupp » Thu Mar 21, 2024 7:54 pm

Bummer.

Equipment with pocket guiding crashes the client again.

In Cupboard:
Code: Select all
Exception in thread "Haven UI thread" java.lang.ExceptionInInitializerError
   at haven.res.ui.tt.slots.Fac.build(Fac.java:22)
   at haven.ItemInfo.buildinfo(ItemInfo.java:383)
   at haven.GItem.info(GItem.java:192)
   at haven.WItem.info(WItem.java:122)
   at haven.ItemInfo$AttrCache.get(ItemInfo.java:432)
   at haven.WItem.draw(WItem.java:201)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.Inventory.draw(Inventory.java:94)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.GameUI.draw(GameUI.java:1094)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.RootWidget.draw(RootWidget.java:85)
   at haven.UI.draw(UI.java:230)
   at haven.GLPanel$Loop.display(GLPanel.java:305)
   at haven.GLPanel$Loop.run(GLPanel.java:404)
   at haven.JOGLPanel.run(JOGLPanel.java:252)
   at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: haven.Resource$BadVersionException: Obsolete version 28 of ui/tt/slots requested, loaded version is 31, from cache source backed by haven.purus.database.DbCache@29a50957
   at haven.Resource$Pool.load(Resource.java:624)
   at haven.Resource$Pool.loadwait(Resource.java:812)
   at haven.Resource$3.run(Resource.java:1762)
   at haven.Resource$3.run(Resource.java:1751)
   at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
   at haven.Resource.classres(Resource.java:1751)
   at haven.res.ui.tt.slots.ISlots.<clinit>(ISlots.java:57)
   ... 22 more
With Equipment window:
Code: Select all
Exception in thread "Haven UI thread" java.lang.NoClassDefFoundError: Could not initialize class haven.res.ui.tt.slots.ISlots
   at haven.res.ui.tt.slots.Fac.build(Fac.java:22)
   at haven.ItemInfo.buildinfo(ItemInfo.java:383)
   at haven.GItem.info(GItem.java:192)
   at haven.WItem.info(WItem.java:122)
   at haven.ItemInfo$AttrCache.get(ItemInfo.java:432)
   at haven.WItem.draw(WItem.java:201)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.Equipory.draw(Equipory.java:241)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.GameUI.draw(GameUI.java:1094)
   at haven.Widget.draw(Widget.java:791)
   at haven.Widget.draw(Widget.java:796)
   at haven.RootWidget.draw(RootWidget.java:85)
   at haven.UI.draw(UI.java:230)
   at haven.GLPanel$Loop.display(GLPanel.java:305)
   at haven.GLPanel$Loop.run(GLPanel.java:404)
   at haven.JOGLPanel.run(JOGLPanel.java:252)
   at java.base/java.lang.Thread.run(Thread.java:833)
Hickupp
 
Posts: 151
Joined: Thu Oct 15, 2020 6:33 am

Re: Yoink Pasta - Purus Pasta fork

Postby Hickupp » Thu Apr 04, 2024 12:41 pm

Anyone knows a way to work with sqlite(db) from Groovy-script. (groovy.sql not included in last official build)
Hickupp
 
Posts: 151
Joined: Thu Oct 15, 2020 6:33 am

Previous

Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 71 guests