Yoink Pasta - Purus Pasta fork

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

Re: Yoink Pasta - Purus Pasta fork

Postby Undercio » Sat Oct 14, 2023 5:15 am

undyingknightmare wrote:Found an error; not present in vanilla client.
Code: Select all
Exception in thread "Haven UI thread" java.lang.NullPointerException: Cannot read field "notify" because "conf" is null
        at haven.MiniMap$DisplayIcon.<init>(MiniMap.java:261)
        at haven.MiniMap.getCustomMapIcon(MiniMap.java:650)
        at haven.MiniMap.findicons(MiniMap.java:610)
        at haven.MiniMap.tick(MiniMap.java:228)
        at haven.Widget.tick(Widget.java:757)
        at haven.Widget.tick(Widget.java:757)
        at haven.GameUI.tick(GameUI.java:1244)
        at haven.Widget.tick(Widget.java:757)
        at haven.UI.tick(UI.java:217)
        at haven.GLPanel$Loop.run(GLPanel.java:384)
        at haven.JOGLPanel.run(JOGLPanel.java:252)
        at java.base/java.lang.Thread.run(Thread.java:833)


Only occurs when gobs enter UI range (sometimes). It wasn't occuring for a while, but it is now persisting. I've tried building it locally from source and it persists. Checking the included source, there is no null check for GobIcon.Setting passed to the class. Presumably there shouldn't be a case where a gobicon would have a null setting field.

Windows 11 AMD 64
java version "17.0.8" 2023-07-18 LTS
Java(TM) SE Runtime Environment (build 17.0.8+9-LTS-211)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)


Similiar error when playing with minimap icons... ive been trying to add some icons to display on minimap... now i cant play at all...

Exception in thread "Haven UI thread" java.lang.NullPointerException: Cannot read field "notify" because "conf" is null
at haven.MiniMap$DisplayIcon.<init>(MiniMap.java:261)
at haven.MiniMap.getCustomMapIcon(MiniMap.java:650)
at haven.MiniMap.findicons(MiniMap.java:610)
at haven.MiniMap.tick(MiniMap.java:228)
at haven.Widget.tick(Widget.java:757)
at haven.Widget.tick(Widget.java:757)
at haven.GameUI.tick(GameUI.java:1244)
at haven.Widget.tick(Widget.java:757)
at haven.UI.tick(UI.java:217)
at haven.GLPanel$Loop.run(GLPanel.java:384)
at haven.JOGLPanel.run(JOGLPanel.java:252)
at java.base/java.lang.Thread.run(Unknown Source)

Minimap Icons button from login menu -> options also crashes:

Exception in thread "Haven UI thread" java.lang.NullPointerException: Cannot read field "chrid" because "gameUI" is null
at haven.purus.map.MapOptionsWindow.<init>(MapOptionsWindow.java:15)
at haven.OptWnd.lambda$new$3(OptWnd.java:803)
at haven.Button.click(Button.java:163)
at haven.Button.mouseup(Button.java:220)
at haven.UI.mouseup(UI.java:535)
at haven.UIPanel$Dispatcher.dispatch(UIPanel.java:77)
at haven.GLPanel$Loop.run(GLPanel.java:365)
at haven.JOGLPanel.run(JOGLPanel.java:252)
at java.base/java.lang.Thread.run(Unknown Source)
Undercio
 
Posts: 37
Joined: Fri Sep 04, 2015 4:44 pm

Re: Yoink Pasta - Purus Pasta fork

Postby dor » Sat Oct 14, 2023 6:11 am

Hi.

Tried to make it work with automapper server but no luck. Any advice?
What I did:
- Installed server using this instructions: viewtopic.php?f=49&t=67298&start=10#p853436 (threre are some discrepancies, but I managed to make it work)
- in server admin added new user
- under this new user created new token
- added server address and token to client (see attachment, ip and token are edited, for obvious reasons)

There are two issues:
- most important one - no data in automapper server
- click on "Open" button leads to page with message "Client token not found", which is quite confusing, because token is correct.

There are not so many settings.. what could go wrong? :))
You do not have the required permissions to view the files attached to this post.
dor
 
Posts: 16
Joined: Sat Jan 21, 2023 7:24 am

Re: Yoink Pasta - Purus Pasta fork

Postby Bartekc8888 » Sat Oct 14, 2023 6:27 am

undyingknightmare wrote:Found an error; not present in vanilla client.
Only occurs when gobs enter UI range (sometimes). It wasn't occuring for a while, but it is now persisting. I've tried building it locally from source and it persists. Checking the included source, there is no null check for GobIcon.Setting passed to the class. Presumably there shouldn't be a case where a gobicon would have a null setting field.

Sorry about that, there was an old way to set up custom icons before vanilla added it. I removed it now in v1.1.1 in favor of vanilla icons.

Undercio wrote:Found an error; not present in vanilla client.
Minimap Icons button from login menu -> options also crashes:

The map settings needed scope of a user and before loggin in there were no user. But these settings shouldn't be needed anymore as I said above.


dor wrote:There are two issues:
- most important one - no data in automapper server
- click on "Open" button leads to page with message "Client token not found", which is quite confusing, because token is correct.

Try adding server port to the address. I know it works in browser automatically with port 80 but it needs it here
The open button is a leftover from previous implementation. This one does not validate token this way, i will probably change it to just open /map page
Bartekc8888
 
Posts: 63
Joined: Sat Jan 01, 2011 12:35 pm

Re: Yoink Pasta - Purus Pasta fork

Postby dor » Sat Oct 14, 2023 7:23 am

Thx! Adding port seems kinda helping. Now I see these kind of messages in client console on start(when I login to the world, to be precise):

Code: Select all
collected 5 markers
processing 5 markers
processing 5 markers
scheduling marker upload


But I don't see anything on the server. No map updates, no players added to tracking selector and no players themselves. Both tracking and mapping enabled in client and mapping and uploading enabled for used map user. Are there anything else I'm missing?
dor
 
Posts: 16
Joined: Sat Jan 21, 2023 7:24 am

Re: Yoink Pasta - Purus Pasta fork

Postby Bartekc8888 » Sat Oct 14, 2023 8:44 am

dor wrote:Are there anything else I'm missing?

hmm, why did you use 1.1.1.1? Its a dns address :D
If server is on the same computer try localhost instead.
Also there might be some issues if you use multiple characters, ender mapper wasn't adjusted for that, so it may for example only show position of last character.

I should probably also add some logging for connection errors
Bartekc8888
 
Posts: 63
Joined: Sat Jan 01, 2011 12:35 pm

Re: Yoink Pasta - Purus Pasta fork

Postby Noogia » Sat Oct 14, 2023 8:51 am

Anyone else getting a client freeze when they press the interface settings on the settings menu?
User avatar
Noogia
 
Posts: 215
Joined: Sat Jan 23, 2010 6:28 am

Re: Yoink Pasta - Purus Pasta fork

Postby dor » Sat Oct 14, 2023 9:00 am

Bartekc8888 wrote:
dor wrote:Are there anything else I'm missing?

hmm, why did you use 1.1.1.1? Its a dns address :D
If server is on the same computer try localhost instead.
Also there might be some issues if you use multiple characters, ender mapper wasn't adjusted for that, so it may for example only show position of last character.

I should probably also add some logging for connection errors


I'm using my real address, just for screenshot I replaced it. Same as a token was edited for the screeenshot. When I click "Open", it leads to correct address, so it's fine here. But data is not there, for some reason. If you need a server for testing I can give you access, just write PM.
Let me know if there are any kind of data you need to debug this.
dor
 
Posts: 16
Joined: Sat Jan 21, 2023 7:24 am

Re: Yoink Pasta - Purus Pasta fork

Postby khajios » Sat Oct 14, 2023 9:18 am

Mapping is working fine for me. I would guess there is some issue on the docker container side, but don't really know what you would need to look at there. I can cause a similar issue on my end by not mapping the /map directory, so that might be a place to look for an issue?

Wanted to bring up an issue I am running into along with my group.

Whenever we try and make a new character with the client, we get a black screen. We can either sign into a different character first, go back to character select, and then make a character successfully, or we can just make in the default client then change clients. Minor issue, but its happening to the 3 of us that I asked about it.
khajios
 
Posts: 48
Joined: Fri Aug 28, 2015 9:07 pm

Re: Yoink Pasta - Purus Pasta fork

Postby dor » Sat Oct 14, 2023 9:45 am

khajios wrote:Mapping is working fine for me. I would guess there is some issue on the docker container side, but don't really know what you would need to look at there. I can cause a similar issue on my end by not mapping the /map directory, so that might be a place to look for an issue?


What do you mean by "not mapping the /map directory"? Could you explain, please? It could be my issue, because I don't remember doing anything like that :)
dor
 
Posts: 16
Joined: Sat Jan 21, 2023 7:24 am

Re: Yoink Pasta - Purus Pasta fork

Postby Bartekc8888 » Sat Oct 14, 2023 10:24 am

1.1.2
Patched issue with mapper when creating new character
Add http code logging in mapper when it returns something else than 200
Add option to enable player marker upload
Corrupted markers are now skipped to fix an issue with marker upload

khajios wrote:Whenever we try and make a new character with the client, we get a black screen. We can either sign into a different character first, go back to character select, and then make a character successfully, or we can just make in the default client then change clients. Minor issue, but its happening to the 3 of us that I asked about it.

I found an issue with mapper on new character creation but it instead froze ui for me so I'm not sure if it is the same issue

dor wrote:What do you mean by "not mapping the /map directory"? Could you explain, please? It could be my issue, because I don't remember doing anything like that :)

He probably meant docker volume mounted on host. I don't think it would cause that not working at all, maybe maps would not be preserved between restarts.
I just used this command to launch server and it is working fine for me locally:
docker run -v C:/Users/myUser/folderWithMaps:/map -p 8080:8080 andyleap/hnh-auto-mapper:v-4
replace path with real path

I also added response code logging if there is an error, maybe it will somehow help to find issue.
Bartekc8888
 
Posts: 63
Joined: Sat Jan 01, 2011 12:35 pm

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 64 guests