Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: TinyMap Compressor
TinyMap Compressor
Jul 30 2008, 3:17 am
By: O)FaRTy1billion[MM]
Pages: < 1 2 3 45 >
 

Aug 1 2008, 5:34 am O)FaRTy1billion[MM] Post #21

👻 👾 👽 💪

This is what it does (but with a few more details):
- Count strings that are read in StarCraft (excluding never trigger strings and disabled triggers.)
- Load strings.
- If melee, remove non-p12 resources/critters and non-p12 unitsprites.
- ONLY write sections SC reads (depending on Melee or UMS modes.)
- Recycle strings.
- Write string sections with new indeces.
- Ignore Never trigger blocks.
- Create new MPQ and load all files in the map (with inputted compression for WAVs.)
- Compact MPQ.



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 1 2008, 5:35 am O)FaRTy1billion[MM] Post #22

👻 👾 👽 💪

WTF. I replied and couldn't see my reply, so I replied again and then both appeared.



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 1 2008, 1:39 pm The_z0r Post #23



Probably because you needed to clear your cache or wait a moment if the forum database is going slow or something. ;)



None.

Aug 1 2008, 4:50 pm O)FaRTy1billion[MM] Post #24

👻 👾 👽 💪

I use F5.



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 2 2008, 2:35 pm The_z0r Post #25



My refresh cache button is CTRL+F5 (and I got Firefox). Does just F5 work? Also, it couldn't been just slow-time for the database.



None.

Aug 2 2008, 6:23 pm O)FaRTy1billion[MM] Post #26

👻 👾 👽 💪

F5 reloads the page, Ctrl+F5 reloads everything. I think it had to do with the pages.



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 2 2008, 6:50 pm LegacyWeapon Post #27



Quote from O)FaRTy1billion[MM]
This is what it does (but with a few more details):
- Count strings that are read in StarCraft (excluding never trigger strings and disabled triggers.)
- Load strings.
- If melee, remove non-p12 resources/critters and non-p12 unitsprites.
- ONLY write sections SC reads (depending on Melee or UMS modes.)
- Recycle strings.
- Write string sections with new indeces.
- Ignore Never trigger blocks.
- Create new MPQ and load all files in the map (with inputted compression for WAVs.)
- Compact MPQ.
Make sure you create the MPQ with a smaller table size.



None.

Aug 2 2008, 8:33 pm O)FaRTy1billion[MM] Post #28

👻 👾 👽 💪

Quote from O)FaRTy1billion[MM]
... (but with a few more details)
I already have. If you compress a map that ONLY has the CHK, you can't see it at all in WinMPQ. :P



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 2 2008, 9:50 pm Heinermann Post #29

SDE, BWAPI owner, hacker.

Perhaps I should completely remake SECompress(being incomplete and all).

Only thing is the UMS portion would take some time to code properly.




Aug 2 2008, 11:18 pm O)FaRTy1billion[MM] Post #30

👻 👾 👽 💪

No, help me make tiny map tinier. :P



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 3 2008, 12:53 am LegacyWeapon Post #31



Did you resize the STR section? You don't need the table to be 1024 strings large.

I'm just trying to help so don't take anything I say negatively.



None.

Aug 3 2008, 6:26 am O)FaRTy1billion[MM] Post #32

👻 👾 👽 💪

Yes, I did resize the table. Do you want detailed things that I do?
I could just crack open an OSMap-compressed map and look at the differences. Maybe when I get bored I'll do that... Compression is just not my friend.



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



Quote from O)FaRTy1billion[MM]
Yes, I did resize the table. Do you want detailed things that I do?
Yes please.



None.

Aug 3 2008, 6:41 am O)FaRTy1billion[MM] Post #34

👻 👾 👽 💪

If I get remotivated I'll add more and make the compressed data cleaner... that'd probably help it compress further too.
Collapsable Box
lol, are you going to try to optimize OSM2's compression or something? What sort of deeds do you plan to do? : P ... Apparently I'm not very trusting, even though I mean this as somewhat of a joke... I hope you realize that if I was really worried I'd probably not put any detail or I'd put a lot less.
Str section is just a more-than-normal retarded tbl file... Not a hard format. :P I have no idea why editors have so many issues with str section... Because of issues editors have I thought TinyMap'd have the most trouble with str, when infact the opposite was true (other than sections that are static data, of course.)

Post has been edited 8 time(s), last time on Aug 3 2008, 6:50 am by FaRTy1billion.



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 3 2008, 7:03 am LegacyWeapon Post #35



Collapsable Box


Some of these methods may be theoretical so test them pleeease!



None.

Aug 3 2008, 7:07 am O)FaRTy1billion[MM] Post #36

👻 👾 👽 💪

Checklist:
Remove TRIG for melee? - Already does.
Remove MBRF for melee? - Already does.

Remove UPGS for Brood War scenario? - Already does.
Remove UPGx for Vanilla scenario? - Already does.

Remove UPGR for Brood War scenario? - Already does.
Remove PUPx for Vanilla scenario? - Already does.

Remove PTEC for Brood War scenario? - Already does.
Remove PTEx for Vanilla scenario? - Already does.

Remove TECS for Brood War scenario? - Already does.
Remove TECx for Vanilla scenario? - Already does.

Remove UNIS for Brood War scenario? - Already does.
Remove UNIx for Vanilla scenario? - Already does.

Null UNIS/UNIx for melee? - Already removes.
Null TECS/TECx for melee? - Already removes.
Null PTEC/PTEx for melee? - Already removes.
Null UPGR/PUPx for melee? - Already removes.
Null UPGS/UPGx for melee? - Already removes.

Delete unowned triggers? - I could do that...
Null unused sections of triggers? - Part of me being lazy. I thought of that. :P CHK already compresses really well, don't know how necessary it would be.
Null players who cannot own triggers from trigger ownership? - Oh? Why not just remove?
Delete improper conditions/actions? - TrigPlug will explode. :P Unless strings of 0s compress better than anything else, this would be mostly useless.

Remove hyper triggers if more than 4? Lol OSMAP doesn't even do this. - I don't even use that method of hts. ><

Null SIDE for Melee? - Does to some degree.

Remove TYPE for vanilla? - I don't even write type.


Melee only has like 12 sections after TinyMap does its thing. :P



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 3 2008, 7:12 am LegacyWeapon Post #37



MPQ compresses nulls better than anything I think.

Don't forget to remove MBRF or TRIG if there's nothing in them for UMS.



None.

Aug 3 2008, 7:13 am O)FaRTy1billion[MM] Post #38

👻 👾 👽 💪

It doesn't compress it better than nothing! :D

Eh. I was too lazy. I could write a list of things to add if I feel like it...
I'd like to avoid rewriting the CHK compression function. There is nothing I hate more than rewriting a long function (And I've already done it for TinyMap.. maybe even twice. My original string recycling took like 5 minutes.)

As I said/implied in my first post, there is a lot more I could do to make this much better. I just got lazy...



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 3 2008, 7:16 am LegacyWeapon Post #39



Wait, do you mean rewrite as opposed to edit?

I'm just trying to help ;p



None.

Aug 3 2008, 7:17 am O)FaRTy1billion[MM] Post #40

👻 👾 👽 💪

I mean if I have to change the way I handle compressing the CHK, it will really bother me. If it is something that I can just throw in the middle of the function it is better... but then it looks messy and isn't optimized well. I guess if I work with sections on the individual scale that'd be ok... TRIG is annoying to deal with because it is too much crammed around... MBRF is better because it doesn't have NEVER or conditions at all (other than that one..)



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
Pages: < 1 2 3 45 >
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 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" 🎵
Please log in to shout.


Members Online: Roy