Save Files
May 12 2011, 2:24 am
By: LoveLess  

May 12 2011, 2:24 am LoveLess Post #1

Let me show you how to hump without making love.

What exactly do save states for the game NOT include? I've heard some hearsay and would like to know exactly what it entails. From this, it will help me determine if I need to employ a save system.



None.

May 12 2011, 11:42 am NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

I've read somewhere that it doesn't save the state of randomized switches and playing wavs and speaking portraits.




May 12 2011, 12:39 pm rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

Quote from NudeRaider
state of randomized switches
this seems like a really big oversight.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 12 2011, 3:09 pm LoveLess Post #4

Let me show you how to hump without making love.

So things like modified EUDs are all saved as well?



None.

May 12 2011, 3:50 pm NudeRaider Post #5

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

I'd say that depends on what part of the memory you're reading. The triggers are certainly untouched, wouldn't count on all variables though. If I were to guess I'd say currently active/blocked waits are also not saved.
My mentions were by no means comprehensive, and I'm not even sure because I never checked myself.
Probably Heinermann would know more of these things. Otherwise maybe you can just test the variables you need saved yourself?




May 12 2011, 3:59 pm Heinermann Post #6

SDE, BWAPI owner, hacker.

Depends what you're doing with the EUD.

Switch states ARE saved. They are in a 96000 byte block that Starcraft just copies(and compresses) to save file.

Included in that 96000 block are
  • Some map settings
  • Player resources, scores, supply, upgrades, tech
  • Message filter (chat)
  • Current music ID
  • Console index
  • Alliance/Vision
  • Timers
  • Player Colors
  • Next scenario name
  • Saved Screen and Start Location positions
  • Selections
  • Some palette references
  • Player settings/forces including names
  • Leaderboard state
  • Game pauses remaining
  • Switch States
  • Locations
  • Timer pause state
  • Upgrades/Tech in progress
  • Other things

The state of the randomizer is also saved individually in another block. Triggers and their execution states are all copied.
Things like the AI are also saved in complete detail (such as AI "Captains", "Towns", "Controller" etc).

Things not saved:
  • The timers for trigger loops and countdown timer (The timer itself is saved, just not the frame counter between each countdown).
  • Pylon aura and selection circle images.
  • All non-modifiable DAT file data.
  • The position/state of a currently playing WAV or talking portrait. (Both of these are reasonable since they're handled by Storm and not Starcraft)
  • The per-player global trigger flags and states.
  • Trigger waits and wait states. However, this will resume the current action and re-execute the wait from the beginning. (untested)

Fun fact: You don't actually need a map to load a save file.

Post has been edited 1 time(s), last time on May 12 2011, 4:04 pm by Heinermann.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[01:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[01:05 am]
Vrael -- that's better
[12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Oh_Man