Return to “Games”


Re: XCom 2

I have created a few of those 4 Kilobyte Games. (after it was crunshed using fancy compression though)
(3D rendering, terrain generation, simple flight mechanics in one,
voxel terrain in another, an Isometric RTS, a platform shooter with dynamic AI enemies etc..)
Its quite interesting what can be crunshed into the 4KB limit.

Anyhow. Its certainly possible to make gamesaves much smaller (If they wanted to)

For example:

a generated map could be represented by just 1 to 2 bytes for the seed.
One byte for the mision type / objective, and maybe one byte for the seed that places the object.
-> that can represent the map to generate. (the actual templates for the structure are in the client-data)

A soldier can be represented from between 32 bytes up to 288 bytes (when customizing)

-skin/headprop/patterns/colors/etc, each not requiering more than a byte (256 variations)
-4 bytes for the weapon type, 4 bytes for the upgrades etc.
-1 byte for the whole skill tree choice (bitwise: 0 = left, 1=right)
-1 byte for the unlocked rank
-maybe a few for bytes for the personal stats (aim, health, will etc..)

when naming the character it goes up,
-a humongous 10 to 255 bytes, +1 lenght bytes for the name string(s)
-OR, just a single byte or two for the library name / template

ok, not naming all variations, it can be compressed very small,

But I dont see any complex event data to save that is "nessecary" to represent the game state.

What I have read, is that XCOM actually saves ALL previous events in and outside combat.
And thats probably the reason why the gamesaves bloat up so much.
But there is (outside of testing) no real requirement to do so.
At least no for battles that where already won.

Re: XCom 2

I think you may have missed the part where the game needs to be moddable, and therefore saving everything (and in strings where possible) is preferable. :ghost: Regardless, it's not really that much. Skyrim saves are around 5 MB. Fallout 3 saves are around 6 MB. Witcher 3 saves manage to keep it down to less than 2 MB, but still over 1. Witcher 2 had > 2 MB save files. Factorio saves can be over 8 MB in a "normal" game. KSP has saves over 5 MB even a short ways through the game.

Modding makes things balloon somewhat. The games that are more moddable tend to have a lot more data in their files, but really, 2 MB is on the low side. While you can feasibly compress it more, what's the point? You lose a lot of moddability, and more importantly, 2 MB of data takes almost no time to load on a standard machine today. I'd say they did just fine.

To give you an idea of a mod that might make use of that data, consider a simple "statistics" mod. Now you suddenly have a use for all the trivial things that have occurred in your game. There's no harm in including that. :) Another example is that an event is triggered after exactly three missions occur where two soldiers panic from seeing a high-HP enemy. Where do you decide that such information is "no longer useful" and draw the line? Better to just include everything you can, just in case modders can find a use for it. Which brings me back to my original point... 2 MB is no big deal, as far as I see it.
Have a question? Send me a PM! || People talking in IRC over the past two hours: Image

Online Now

Users browsing this forum: No registered users and 1 guest