Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Using saved game files (.snx / .mlx) to create modified units.
Using saved game files (.snx / .mlx) to create modified units.
Apr 14 2017, 11:09 pm
By: ihjel  

Apr 14 2017, 11:09 pm ihjel Post #1



Long ago I noticed that if you saved a game in a mod and then opened it in normal starcraft the units would still retain some of the stats from the mod. It seems the whole unit table is stored in the save file, so anything you can do by modifying the unit table with EUDs you should be able to do by editing a save file.

I'm sure someone must have looked into this in the 19 years of Starcraft but I haven't been able to find anything about it, much less a file spec for save files. So I've played around a bit with saving games from a mods.

Loading hydras and infested Duran into bunker: https://my.mixtape.moe/gojick.png Also showing return of Infested Duran wireframe bug in 1.18
Cloaked Torrasque: https://my.mixtape.moe/idpbtd.png
Uncloaked Dark Templar: https://my.mixtape.moe/iyjhpv.png
"Starport" Command Center and "Marine" SCVs: https://my.mixtape.moe/sawegs.png Notice CC's max hp
CC needs gas to be repaired: https://my.mixtape.moe/fhenxb.png
DL link for my test map and save file: https://my.mixtape.moe/omyygn.zip

Some disadvantages with this method:
*Need to have both save file and map located in their respective folders.
*Single player saves don't work for multiplayer and vice verca
*Multiplayer saves can only be hosted privately/passworded on B.net. (I'm also not sure if they can be downloaded from other players?)
*Map must have the right file name.
*Replays can't be saved from loaded saved games (but they are quite broken for UMS anyway.)

Post has been edited 1 time(s), last time on Apr 15 2017, 9:56 am by ihjel.



None.

Apr 15 2017, 2:53 am Oh_Man Post #2

Find Me On Discord (Brood War UMS Community & Staredit Network)

Wow, that is actually pretty cool! I wonder what sort of things you could sneak into the map. Make your map, give people the save file download to start from - and then get to have a bunch of custom features.

This is an amazing find!




Apr 15 2017, 6:34 am Heinermann Post #3

SDE, BWAPI owner, hacker.

Yeah save game files are super powerful. You can basically edit the memory of units/sprites/images (but not the graphics themselves). There are likely some buffer overflows that can be abused as well if you were persistent.




Apr 15 2017, 11:54 am Oh_Man Post #4

Find Me On Discord (Brood War UMS Community & Staredit Network)

I guess the main downside would be no multiplayer, right?




Apr 15 2017, 1:24 pm Dem0n Post #5

ᕕ( ᐛ )ᕗ

Aren't save files tied directly to the computer on which the game was saved? Whenever I've tried using someone else's save file, it never works.



Memes gather, and now my watch begins. It shall not end until my death. I shall take no wife, hold no lands, father no children. I shall wear no crowns and win no glory. I shall live and die at my post. I am the sword in the darkness. I am the memer on the walls. I am the shield that guards the realms of memes. I pledge my life and honor to the Meme's Watch, for this meme and all the memes to come.

Apr 15 2017, 3:02 pm LoveLess Post #6

Let me show you how to hump without making love.

Basically if we were able to manipulate the saves to make them host-able on multiplayer regardless of which players are in each slots, we could easily do some pretty crazy stuff. Where is the farty at.



None.

Apr 21 2017, 11:43 am ViperSRT3g Post #7



This is fascinating, and I need to do some experimentation now. 🤔



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:54 pm]
Suicidal Insanity -- thekian
thekian shouted: This is interesting... Blizzard is adding the ramps you need SCMDraft to make into the default game.
I know they mentioned that in march or so, have they mentioned it since?
[06:48 pm]
thekian -- Dem0n
Dem0n shouted: Broflamingo mad Broflamingo madder Broflamingo maddest Vrael madden 17 Broflamingo madden 18 Broflamingo madden 19 lil-Inferno madden 20 Broflamingo madden 21 Broflamingo madden 22 Vrael madden 23 Vrael madden 24 rockz madden 25 jjf28 madden 26 Broflamingo madden 27 Broflamingo madden 28 Broflamingo madden 29 rockz madden 30 Vrael madden 31 Broflamingo madden 32 Vrael madden 33 Broflamingo madden 34 Vrael madden 35 Broflamingo madden 36 Broflamingo madden 37 Vrael madden 38 Vrael madden 39 Broflamingo madden 40 rockz madden 41 Broflamingo madden 42 jjf28 madden 43 jjf28 madden 44 Broflamingo madden 45 jjf28 madden 46 jjf28 madden 47 lil-Inferno madden 48 Broflamingo madden 49 Broflamingo madden 50 Broflamingo madden 51 KrayZee madden 52 KrayZee madden 53 Broflamingo madden 54
Meskest
[06:41 pm]
thekian -- How about Starcraft in Dwarf Fortress, and then making a map in that that does Dwarf Fortress?
[06:35 pm]
IskatuMesk -- without major ASM work anyway
[06:35 pm]
IskatuMesk -- unpossible
[06:35 pm]
thekian -- Also, map challenge: Dwarf Fortress in Starcraft.
[06:34 pm]
thekian -- "don't ******** change this code"
[06:31 pm]
Ahli -- they said ramps of any size in the inverview, but I somehow doubt that :D
[06:26 pm]
thekian -- This is interesting... Blizzard is adding the ramps you need SCMDraft to make into the default game.
[06:04 pm]
lil-Inferno -- If you lose a single drone early on you're fucced cuz Zerg fragile AF LMAO
Please log in to shout.


Members Online: NudeRaider, Suicidal Insanity, KYSXD, Roy, thekian, poiuy_qwert, Soul Filcher, Dem0n