Jump to content

What's the purpose of the .cached.xmb files ?


Manimal
 Share

Recommended Posts

For every .xml there is a .cached.xmb file within public.zip, which one is stored in binaries\data\mods\public .

What's the purpose of such files like the one below ?

.\0 A.D. alpha 0.0.25\binaries\data\mods\public\public.zip->\simulation\templates\template_structure_civic_civil_centre.xml.cached.xmb

Thanks for your enlightments. :thank_you2:

Link to comment
Share on other sites

Hi Stan,

Thanks for your quick reply. :thumbsup:

I just took a look at the file sizes and I found no noticeable difference except for a few files.
And what I see is contradictory :  xml files are slightly bigger than xml ones. (the few exceptions mentioned above)

Now my question is :

Would/Could those XMB files interfere with my modified XML ?
If yes, then how could I edit those XMBs ?

Edited by Manimal
Link to comment
Share on other sites

Thanks you guys for your enlightments. :thumbsup::thank_you2:

I'm curious (by nature) : what are those optimizations about ?
(if this is not a manufacturing secret, and not too early to ask)

EDIT : I'm looking forward (eagerly) to the release of Alpha XXVI :cheers:

Edited by Manimal
Link to comment
Share on other sites

5 hours ago, Manimal said:

I'm curious (by nature) : what are those optimizations about ?
(if this is not a manufacturing secret, and not too early to ask)

Parsing xml isn't very fast, also you have a whole inheritance chain of xml files for a template. Once you have done all work you have an in memory representation which you could just dump bit by bit to disk and read back which is much faster. Well, it's not exactly as easy but explains the basic idea quite well.

The code is open, for the gory details I suggest you start digging into it.

  • Like 1
Link to comment
Share on other sites

On 13/08/2022 at 8:31 AM, hyperion said:

The code is open, for the gory details I suggest you start digging into it.

Thank you hyperion.

I have to dig into some details in order to make a mod that's as much as possible functionnal and reliable.
Reading and understanding the code in the JS files will take me a while given my little coding skills are rusty...

Keep up the good work :wink2:
Bon courage during this warm summer. (Sorry I still didn't find a satisfying translation for this french expression)

Link to comment
Share on other sites

2 hours ago, Manimal said:

Thank you hyperion.

I have to dig into some details in order to make a mod that's as much as possible functionnal and reliable.
Reading and understanding the code in the JS files will take me a while given my little coding skills are rusty...

Keep up the good work :wink2:
Bon courage during this warm summer. (Sorry I still didn't find a satisfying translation for this french expression)

Don't forget to read the modding documentation. :) https://trac.wildfiregames.com/#Formodders:

Stay safe too :) 28 degrees in my flat right now.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...