arx-tools / arx-level-generator

A tool for creating Arx Fatalis maps
MIT License
6 stars 0 forks source link

allow control over assets that automatically land in the cache folder (like EntityModels and Textures) #8

Closed meszaros-lajos-gyorgy closed 4 months ago

meszaros-lajos-gyorgy commented 6 months ago

When working with ftl files they need to be generated over and over again so caching them doesn't seem practical. Would be nice if it could be temporarily disabled from code or more like an explicit "store in cache" function would be better

meszaros-lajos-gyorgy commented 4 months ago

It would be nice to also have the possibility to have this done seamlessly, like create a checksum of a json before compiling it or comparing the last modification date of a binary asset to see if it changed.

meszaros-lajos-gyorgy commented 4 months ago

I've ended up creating a hash based cache invalidation for the ftl files in https://github.com/arx-tools/arx-level-generator/releases/tag/v14.0.0 which works perfectly. For now I don't know if this is needed for the textures, so I'll close down the ticket.

meszaros-lajos-gyorgy commented 4 months ago

Extra info: Textures are now also getting their cache invalidated based on the hash -> got released with 14.1.0