Official Client: No Icons, Empty "Icon Settings" UI

The worst monsters in the Hearthlands warp the fabric of space and time...

Official Client: No Icons, Empty "Icon Settings" UI

Postby xyzzy57 » Sat Mar 16, 2024 2:30 am

I normally play using the Ender client, but from time to time I load the official client, generally to see whether it replicates some bug I've encountered with the Ender client.

I believe I last used the official client on Feb 19, to check whether it would replicate that day's Ender client bug. (It didn't.) I believe that icons appeared normally at that time.

Today I hit another bug in Ender's client. This one doesn't replicate with the official client either. It's a complete show stopper, so I attempted to actually play with the official client. From the moment I stepped outside, no icons have been visible on either the mini-map or the control-a map. I do have flags, and a red arrow indicating my hearthling's location. Nothing else.

Screenshot 2024-03-15 at 18.27.28.png
Screenshot 2024-03-15 at 18.27.28.png (171.27 KiB) Viewed 259 times


I brought up the icon settings menu, in case the two clients controlled icon settings separately, and large groups had been turned off.

It's blank. (My screenshot came out more than 256 KiB, so I cannot upload it.)
xyzzy57
 
Posts: 111
Joined: Thu Aug 19, 2021 9:41 pm

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby xyzzy57 » Sat Mar 16, 2024 2:32 am

I've seen something similar with ender. Icons disappear after I've been playing for some time. That can generally be fixed by switching characters. (I.e. log the character out, but not the account.)

But this is the first time I've seen it on first login with a freshly downloaded client.

Unsurprisingly, "switch character" plus selecting the same character again didn't fix it this time.

I got the same behaviour when I tried creating a new character.
xyzzy57
 
Posts: 111
Joined: Thu Aug 19, 2021 9:41 pm

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby loftar » Sat Mar 16, 2024 2:36 am

I'm not sure how to debug this without being able to reproduce it. Just as a wild guess, perhaps it's due to interference between the save formats between some custom client and the default client. If you remove the Haven and Hearth\data directory, does that restore the icons?

Note that removing that directory will also remove your client-side map data. Either export the map so that you can reimport it, or just rename the data directory instead of removing it, so that you can rename it back once you've tested.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby xyzzy57 » Sat Mar 16, 2024 2:47 am

The how to report bugs asks for details of the machine and the java used with it:

Mac mini, Ventura 13.5.2

Not sure what java I have or how to find out; I downloaded it ages ago.

But I haven't updated *anything* except the haven clients in months.
xyzzy57
 
Posts: 111
Joined: Thu Aug 19, 2021 9:41 pm

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby xyzzy57 » Sat Mar 16, 2024 2:51 am

loftar wrote:I'm not sure how to debug this without being able to reproduce it. Just as a wild guess, perhaps it's due to interference between the save formats between some custom client and the default client. If you remove the Haven and Hearth\data directory, does that restore the icons?

Note that removing that directory will also remove your client-side map data. Either export the map so that you can reimport it, or just rename the data directory instead of removing it, so that you can rename it back once you've tested.


Where would I find the haven and hearth data directory, if running on a Mac?
xyzzy57
 
Posts: 111
Joined: Thu Aug 19, 2021 9:41 pm

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby xyzzy57 » Sat Mar 16, 2024 2:59 am

xyzzy57 wrote:Where would I find the haven and hearth data directory, if running on a Mac?


I have the two clients in $HOME/haven/ender_client/ and $HOME/haven/offical_client/

$ cd $HOME
$ ls -F -1 haven/official_client/
autohaven-xyzzy57-6.jar
autohaven-xyzzy57-6_old.jar
autohaven-xyzzy57.jar

The official client must be downloading files *somewhere*, but unfortunately not in any way I can control, or even determine.

In contrast, the ender_client politely puts at least some of its files in the same directory location as the jar file.

$ ls -F -1 haven/ender_client/
cache/
launcher-hafen.jar
$ ls -F -1 haven/ender_client/cache
https/
$ ls -F -1 haven/ender_client/cache/https
enderwiggin.github.io/
game.havenandhearth.com/

If there's a directory named "Haven and Hearth", or even any unexpected (by me) directory with a name containing the text string "Haven", it's not in $HOME, and there aren't many other places the java process has permission to write.

$ find . -name \*Haven\* -type d -print 2>/dev/null
./HavenWorld14
./Haven15
./Documents/HavenCrops
xyzzy57
 
Posts: 111
Joined: Thu Aug 19, 2021 9:41 pm

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby xyzzy57 » Sat Mar 16, 2024 3:16 am

Aha. Many "find" executions later, and a bit of scripting, I found a directory called in $HOME called .haven

It contains a single directory .haven/data/

That directory was last updated today, probably while I was experimenting with the official client.

It's huge, with lots and lots of file names meaningless to me. Some date back as far as October of 2021, maybe earlier.

Here's a sample of file names:

fff41be6e7336e10.0
fff5062f8e264667.0
fff527610ad95662.0
fff56dd8ecb449d7.0
fff583af6b331777.0
fff591615d5e7245.0
fff5bbb6008aa8d0.0
fff5c67b293cd425.0
fff61552fe49c2a5.0
fff641fdf12ae7c1.0
fff677c66fb752e9.0
fff7322897004289.0
fff75fb4e6956713.0
fff7a976a70900a8.0
fff810bf276db49c.0
fff821555e68235a.0
fff85d8a1cef2194.0
fff87c26ae2a8c4d.0
xyzzy57
 
Posts: 111
Joined: Thu Aug 19, 2021 9:41 pm

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby xyzzy57 » Sat Mar 16, 2024 3:20 am

Nope. Renaming that directory got rid of my map (as advertised), and my flags, but didn't get my icons back.
xyzzy57
 
Posts: 111
Joined: Thu Aug 19, 2021 9:41 pm

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby loftar » Sat Mar 16, 2024 4:10 am

xyzzy57 wrote:Aha. Many "find" executions later, and a bit of scripting, I found a directory called in $HOME called .haven

Right. I assumed you were on Windows.

xyzzy57 wrote:Nope. Renaming that directory got rid of my map (as advertised), and my flags, but didn't get my icons back.

Hmm, weird. I'm looking at the HTTP request logs from your IP address, and it's requesting res/radar/squirrel-cache, which is certainly a custom-client resource. It's requesting it repeatedly, so I'm left assuming that its failure to find it is somehow responsible for being unable to load the icons, and if not left in the configuration in the data directory, I'm really not at all sure where it would come from.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Re: Official Client: No Icons, Empty "Icon Settings" UI

Postby loftar » Sat Mar 16, 2024 4:13 am

I can also see from the logs where you delete the data directory and started downloading all the resources from scratch again. It seems to have been taking several minutes, so perhaps it was simply still loading when you decided to give up? If you enable the debug output with the :stats on console command, you can see the "RQ depth" counter telling you if it's still loading, and how far it has come. Please wait until it is completely done.

If resource loading turns out to be able to take so long that it is confusing, I may have to add some "loading indication" to the Icons list.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 8926
Joined: Fri Apr 03, 2009 7:05 am

Next

Return to Bugs

Who is online

Users browsing this forum: No registered users and 50 guests