Opened 3 years ago

Last modified 2 years ago

#6311 new defect

VFS bug with cached mods on SVN

Reported by: Stan Owned by:
Priority: Must Have Milestone: Backlog
Component: Core engine Keywords:
Cc: wraitii Patch:

Description

When using a cached mod and the SVN version incorrect texture is loaded.

mod
|_fonts
|__texture.png
language_mod
|_mod.json
|_fonts
|__texture.png.cached.dds

cache
|_fonts
|__texture.png.6275ee4cfaf46189.dds <- cached version of mod not language_mod

Ideally the vfs would know that the highest mod loaded has cached files and use that.

Change History (2)

comment:1 by wraitii, 3 years ago

Per IRC today

think you might fail at the "If source file is more recent than the archive cache (i.e. the user has edited it), don't use the old cache" step of CanUseArchivedPath
you could try removing that last 'if' and checking what happens
I guess it's missing a check if the archive file is higher priority than the non-archive path, regardless of timestamp?
I guess in a dev version, you could have the source file be higher priority yeah, which would then mean higher-priority-archived-files would be skipped incorrectly

comment:2 by Freagarach, 2 years ago

Milestone: Alpha 26Backlog
Note: See TracTickets for help on using tickets.