Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Compressing Code
Compressing Code
Aug 8 2008, 8:54 am
By: Kaias  

Aug 8 2008, 8:54 am Kaias Post #1



In a map I'm developing, I intend on creating a system where you can save and load settings by generating and entering a code. Currently I have digit for each individual setting, but ultimately this could generate a number of up to 144 digits (or 144 individual settings).

Nobody wants to input 144 numbers to get their specific settings, they'd probably be better off setting them by the normal menu.

Essentially, I need a more efficient system.



None.

Aug 8 2008, 9:23 am O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

Hmm. If each value has a (reasonable) max, you could use binary... store it in as few bits as possible. Also, using a higher base than 10 should help. Hex should be nice (especially when working with binary) because binary math systems could easily convert it.

Here is a handly little table for how many bits you'd need for a given value (I'm bored. :P)
Collapsable Box


Post has been edited 2 time(s), last time on Aug 8 2008, 9:31 am by FaRTy1billion. Reason: Added a table!



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 9 2008, 6:30 am LegacyWeapon Post #3



Drop some crap settings.



None.

Aug 9 2008, 6:33 am O)FaRTy1billion[MM] Post #4

👻 👾 👽 💪

With what we were discussing I got it to fit into 15 characters.



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!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06: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?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: Roy