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.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Ultraviolet