Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Smallest map EVERER
Smallest map EVERER
Dec 26 2008, 2:10 am
By: Heinermann  

Dec 26 2008, 2:10 am Heinermann Post #1

SDE, BWAPI owner, hacker.

!hehe.scm is a test map attempting to merge CHK and MPQ data together, as well as exploit bugs that make the map valid.

Currently, it is 1228 bytes in size.
Features:
- You can't open it as a valid MPQ archive outside of Starcraft(storm.dll).
- 2-players, multiplayer only (will be invalid in single player).
- Non-UMS only.
- No start locations. Proves that players without a start location do not crash the game(defaults top-left, instant defeat).
- Valid map. Goes in-game without crashing. Only required map sections are used.

[attach=2332]

TODO:
- Change the file start position to read from the MPQ header and save some 12 bytes or something.
- Figure out VCOD so that I can actually compress it inside the MPQ and save space.

Attachments:
!hehe.scm
Hits: 33 Size: 1.2kb




Dec 26 2008, 5:03 pm Falkoner Post #2



I must admit, it's impressive, but can you use it for anything truly useful?



None.

Dec 27 2008, 2:03 am Heinermann Post #3

SDE, BWAPI owner, hacker.

Hmm, not sure, use your imagination. :P

If I could manipulate the positions of files in the MPQ, then it may be possible to overlap data which can give you several opportunities, like making weird music from the MTXM section or putting small sounds in where data isn't used by the map(like PUNI and UNIx, if units are using their defaults), or define positions in a single WAV file to start playing from.

It may be possible to make any UMS map multi-player only without using the single player detection trick.

Cutting off data at the end of the CHK file still causes the section to be valid. For example, the size of the UPGx section is constant in UMS maps, but you can move the section to the end of the file, and delete some bytes. Starcraft will read the data as an overflow and consider it valid.




Dec 27 2008, 3:55 am Excalibur Post #4

The sword and the faith

I'd really rather you put your effort into a compression that helps UMS maps since melee usually has no size issues. Still, very impressive, a map under 2kb, I would've never thought it possible.

Edit: Read your reply. In that case, I do hope you manage to get to the point where this can help UMS. Good luck.




SEN Global Moderator and Resident Zealot
-------------------------
The sword and the faith.

:ex:
Sector 12
My stream, live PC building and tech discussion.

Dec 27 2008, 4:17 am Falkoner Post #5



Yeah, if you could put out a program to compress using these kinds of functions, it could help a ton.



None.

Dec 31 2008, 4:48 pm Joker47 Post #6



Quote from Falkoner
I must admit, it's impressive, but can you use it for anything truly useful?
Not sure about the "truly useful" part, but it definitely protects your maps against any automated unprotector.



None.

Dec 31 2008, 11:59 pm O)FaRTy1billion[MM] Post #7

👻 👾 👽 💪

I've made maps without start locations before... and it sometimes drops players randomly (unless that was something else in the map.)



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Aug 22 2009, 11:06 pm ShadowFlare Post #8



lol, I just found this old topic from Google, but I don't think anyone will mind if I bump it as long as it is relevant, considering there probably isn't another topic about it.

Quote from Heinermann
- You can't open it as a valid MPQ archive outside of Starcraft(storm.dll).
WinMPQ with the latest build of my MPQ library appears to be able to. ^^
(or probably anything with the latest build of my MPQ library)

By the way, does it get the correct staredit\scenario.chk extracted, or are there flaws in the output file?

Post has been edited 2 time(s), last time on Aug 22 2009, 11:12 pm by ShadowFlare.



None.

Aug 23 2009, 7:09 am Heinermann Post #9

SDE, BWAPI owner, hacker.

The only problem when it is extracted is the extra bytes appended to the file. EDIT: Actually I have no idea if that was supposed to be there or not.

Also note: This isn't the smallest size I can make it. This map has no VCOD compression. I will make a fully playable smallest map possible.

Thanks for bringing this back up.

EDIT: New map.
[attach=4376]

Map Size: 256x256
Players: 8
Suggested game setting: Greed (Or whatever game type gives you resources at the start).
File Size: 276 bytes

EDIT: It should be .scm, but whatever

EDIT: Updated map.
[attach=4377]
File size: 275 bytes

Tileset changed to Space. (increased by 1 byte)
STR section decreased to 1 byte. (No change)
VCOD section modified to contain a more uniform set of characters. (No change)
MTXM and ERA sections moved to the beginning of the file. (decreased by 2 bytes)

Attachments:
!hehe.scx
Hits: 4 Size: 0.27kb
!hehe.scm
Hits: 8 Size: 0.27kb

Post has been edited 5 time(s), last time on Aug 23 2009, 9:33 am by Heinermann.




Aug 23 2009, 2:45 pm Clokr_ Post #10



Wow, 275 bytes, now that's impressive.

Remembers me this: http://www.ioccc.org/years-spoiler.html#1994 look for the entry "smr".



?????

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
Please log in to shout.


Members Online: Vrael, C(a)HeK