I have a game where players can change their icons in-game to whatever they like, which is all fine and dandy. Savefiles get extremely bloated though when you save icons, and since we change icons a lot the savefiles tend to get massive.
While I'm aware you can use Write() to not include the icon, this causes the player to have to change their icon again if they load their file. Is there a way to somehow reference their icon without saving the icon itself in the savefile?
ID:154711
Jan 13 2012, 10:27 am
|
|
If the address returned by fcopy_rsc was actually a hexadecimal or other numerical address that you could use as an index into the rsc's cache then you could just do that without the need for an associative list by saving the address itself and accessing the entry at that address, but unfortunately it's not.
tl;dr Saving the addresses returned by fcopy_rsc seems to save the file itself instead of an index into the cache meaning you'll have to save the icons yourself anyways either when the player logs off or the server goes down.
EDIT: On that note, I have found this recent feature request that you might like to upvote.