Stale resources

The worst monsters in the Hearthlands warp the fabric of space and time...
User avatar
loftar
Posts: 9093
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Stale resources

Post by loftar »

It has come to my attention that several users are having trouble with their resource cache having been polluted with resources intended for the old (pre-render-system-rewrite) client. This usually takes the form of a NoSuchMethodError exception on the class haven.TexGL, which indeed does not exist in the new client. There are other expressions of this problem in addition to that, but that's by far the most common one.

I don't yet have any idea how these users have gotten old resources into their caches, but theories include:
  • Perhaps there is some misconfigured custom client that uses the wrong cache?
  • I've seen rumors of people using semi-custom .bat files to launch their clients; perhaps this is causing configuration issues, especially if they're being made from outdated sources?
I'm making this thread to let it stand as general information on the issue and to link people to it when they're having this problem, but if you have some more information on the issue -- for example, might be causing it, or helpful information for those in need -- then feel free to post it.

The most straightforward way to fix this problem if you are having it is to remove your cache directory. On Windows, this is located in your AppData directory, under the Haven and Hearth\data subdirectory. Doing so should fix the problem, but keep in mind that the in-game map is also stored there, so it is recommended that you, if possible, export the map before you remove the cache so that you can reimport afterward. If you cannot log in on your character due to the problem, it might help to go and create a new character instead and export the map from there (all characters on the same account share the same in-game map).

In the future, if the cause hasn't been found, this problem should be permanently fixed once the old clients are deprecated entirely and their resources deleted.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
Nightdawg
Posts: 2632
Joined: Fri Feb 28, 2020 12:31 am

Re: Stale resources

Post by Nightdawg »

loftar wrote:In the future, if the cause hasn't been found, this problem should be permanently fixed once the old clients are deprecated entirely and their resources deleted.
Please consider pulling the plug on the old render branch, it's only causing problems.

Public clients are already using the new render:
- Ender's client is already working
- shubla's probably already working on his new render.

Amber/Ardennes are full of band-aids applied by several different people each time, and those said bandaids will just break on every new update anyway.
jorb wrote: I do not want to over-promise or hype up stuff that could be months out.
"Our primary development direction is toward object-controlled-objects"
jianpanxia1
Posts: 9
Joined: Tue Nov 10, 2020 1:39 pm

Re: Stale resources

Post by jianpanxia1 »

Thank you very much. My problem has been solved
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Stale resources

Post by shubla »

Drop support and/or forcibly clean caches on world reset! I will release my new client before w13 so dont worry people will have an option to still use custom client.

People will be more motivated to make new clients on world start etc.
By supporting old clients people have to suffer from miserable fps on world start.

You should take chain to your own hands and not let players cuckold you! Show the place of cabin!
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
iamahh
Posts: 1806
Joined: Sat Dec 12, 2015 8:23 pm

Re: Stale resources

Post by iamahh »

I had these problems when I still tried to use Amber, mixing with default and whatnot

now I use only default with small changes, works fine, sometimes I launch default to fetch stuff missing

I had a christmas star crash on me once, but launching vanilla fixed
User avatar
Undefined
Posts: 322
Joined: Tue May 18, 2010 12:22 pm
Location: United Kingdom

Re: Stale resources

Post by Undefined »

+1 to dropping support entirely for old render clients, fresh world, fresh clients - People have had plenty of time to migrate.
jock
Posts: 733
Joined: Thu Mar 08, 2012 7:27 am

Re: Stale resources

Post by jock »

Undefined wrote:+1 to dropping support entirely for old render clients, fresh world, fresh clients - People have had plenty of time to migrate.
User avatar
Ardennesss
Posts: 1171
Joined: Sun Oct 06, 2013 4:22 pm

Re: Stale resources

Post by Ardennesss »

jock wrote:
Undefined wrote:+1 to dropping support entirely for old render clients, fresh world, fresh clients - People have had plenty of time to migrate.
User avatar
wafflecat
Posts: 260
Joined: Thu Dec 15, 2011 7:46 pm

Re: Stale resources

Post by wafflecat »

If you cleared your cache and this keeps happening, you're probably using the old res URL in the run.bat script or whatever batch file you're using.
Replace https://game.havenandhearth.com/hres/ with https://game.havenandhearth.com/res/
User avatar
vatas
Posts: 5252
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: Stale resources

Post by vatas »

Deleted all cache folders I could find, Default still fails to properly launch and links to this topic.

EDIT: This was an old laptop that had been used all the way back during 2D Haven and turned out if had it's real (hafen) appdata folder was hidden while I scoured through handful of red herrings (possibly from 2D Haven).
Haven and Hearth Wiki (Maintained by volunteers - test/verify when practical. Forum thread

Basic Claim Safety (And what you’re doing wrong
TL:;DR: Build a Palisade with only Visitor gates.)

Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)

Return to “Bugs”