Arma 3
156 ratings
m3mory
4
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
78.213 KB
7 Nov, 2021 @ 5:48am
8 Nov, 2021 @ 7:24am
4 Change Notes ( view )

Subscribe to download
m3mory

Description
Reduce the size of your save files
M3mory is a tiny mod that will keep the size of your save files in check and ensure they remain usable for as long as you want. It doesn't require any configuration : simply load the mod whenever you're playing in single player, and it will automatically do its job anytime the engine saves your progress. Works with all types of engine saving event (mid-game, save & exit, autosaves - including during Alt+F4), in any mode (campaigns, scenarios - official or custom).


Why?
The engine indiscriminately saves any change made to terrain objects, amongst many other things : any opened door, any damage to any structure, any broken tree, wall or fence, ends up in the file. This means that no matter what, the size of your saves will increase - either gradually over time or dramatically depending on several factors. It can take some time in a "quiet" and well designed scenario, or it can happen very quickly in more intense, all out war scenarios. Loading or saving takes more and more time as this happens, and, on the bigger or denser terrains, this will cause the engine to crash eventually... While it may not be problematic for the most typical mission designs, it can potentially cause game-breaking issues for "endless" type or very long scenarios.

M3mory is designed to solve this problem by excluding unnecessary terrain-related data from the save system. Every inconsequential object that is not in the player's vicinity is reverted to its original state whenever progress is saved, with the exclusion of destroyed structures (avoiding any potential conflict with mission critical objectives). This effectively puts a hard limit on the maximum size of your saves, or rather, it limits the impact of terrain objects interactions on your save files. Keep in mind that the mod doesn't interact with scripts or variables, which also have a direct influence on the volume of data that is saved.



A few considerations
  • In order to work, m3mory has to be loaded the first time a mission is started : it cannot be used on already existing saves.
  • A file saved with m3mory creates a dependency, and cannot be loaded without it. This is how the engine works, there is no workaround as far as I know.
  • Considering the dependency problem, don't use m3mory if you aren't sure you will benefit from it, or when playing short scenarios.
  • Depending on the size and density of the terrain you're playing on, the game may appear to freeze for a few seconds before saving.
  • Better safe than sorry! M3mory should be safe to use, but it doesn't hurt to backup your saves first, those are located under “Documents/Arma 3/Saved”.
  • If necessary, mission makers can force m3mory to ignore their mission by defining a simple variable :
    m3mory_skip = true;
  • The m3mory process can be turned back on at any time by destroying the “m3mory_skip” variable :
    m3mory_skip = nil;
  • M3mory updates won't break your saves : the code can detect newer versions and seamlessly update itself from an existing m3mory save.



Initial Test Results
Altis, empty map, single player in Kavala :
  • initial save : 11372 kb

  • with partial damage to all terrain objects in a 1000m radius : 15 198 kb
  • after m3mory clean up : 13 052 kb
     
  • with partial damage to all terrain objects in a 5000m radius : crash
  • after m3mory clean up : 13 565 kb
     
  • with partial damage to all terrain objects in a 7000m radius : crash
  • after m3mory clean up : 13 612 kb



Want to support my work?

[www.patreon.com]

[paypal.me]
12 Comments
Markusaw 25 Jun, 2024 @ 10:58am 
Amazing mod. Any way to make the zeus module rememeber to keep all assets from mods enabled?
Godis 22 Mar, 2022 @ 9:27pm 
Ok, this works great with Old Man and all other scenarios / missions I've tested it with. We really needed a solution for the savegames trouble - espcially with such missions that collect a lot of data over time.
OxyZEN 3 Mar, 2022 @ 12:03am 
pretty cool ! How can i apply it on Multiplay?:steamthumbsup:
Black-Jack 23 Feb, 2022 @ 3:15pm 
Perfect for the Extraction scenario. Currently a week into it.
Haleks  [author] 22 Dec, 2021 @ 2:33am 
@Slay No More : Untested, but yeah it should work along just fine. The only conflicts I can think of would be with scripts that apply partial damage to structures in order to alter their appearance. Light sources are excluded from m3mory, by the way.
Slay No More 21 Dec, 2021 @ 11:41pm 
Interesting. Does this work with even things like Grad's Persistence?
󠀡󠀡󠀡󠀡󠀡󠀡Marc🦈 9 Dec, 2021 @ 8:52pm 
Thanks for this mod. Makes saving games much more quicker and reliable. Had even made performance better. :aquaman:
1 Dec, 2021 @ 2:00am 
brilliant
ALIAScartoons 15 Nov, 2021 @ 3:35am 
Thank you for sharing mate!
Predator14 14 Nov, 2021 @ 4:07am 
A wonder ! I've been waiting for it for years! ;) thank you ! ;)