Quick way to check number of items in a saved list without actually loading them

Discussion and help for Easy Save 3
Post Reply
JordanCW97
Posts: 12
Joined: Thu May 12, 2022 11:00 pm

Quick way to check number of items in a saved list without actually loading them

Post by JordanCW97 »

Hi there, just wondered if there is a way to query a save file key to return the amount of items in that key without actually loading them? For instance if I have a List of saved game objects under a key savedObjects I just need to know how many items exist in that key? I have ways around it like manually saving the number in another key but in the interest of preventing save file bloat is there a way to get this info from easy save itself?

Thanks

Jordan
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Quick way to check number of items in a saved list without actually loading them

Post by Joel »

Hi Jordan,

In this situation you would need to store the length separately as you’ve described.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply