Staredit Network > Forums > SC1 Mapping Tools > Topic: The best protector
The best protector
Oct 10 2010, 10:08 pm
By: DrZygote214
Pages: < 1 2 3 >
 

May 29 2011, 10:31 pm Heinermann Post #21

SDE, BWAPI owner, hacker.

TM2 can still be improved too. Regarding the Preserve Trigger thing I found, another small section trim (FORC I think), and probably a couple of other things I'm forgetting.

EDIT: String merging, string color control.

Example:

"Holy damn that Ultralisk is a major piece of crap!"
and
"piece of crap!"

can be considered part of one string and merged.

"<red>Some fading text."
and "<grey>Some fading text."

can merge and become "<grey><red>Some fading text."

Post has been edited 1 time(s), last time on May 29 2011, 10:45 pm by Heinermann.




May 30 2011, 12:12 am Lanthanide Post #22



Frankly those enhancements would be very marginal savings in most cases. The preserve trigger one could be useful, from the perspective of slightly reducing the processing when it iterates through the actions, as it'd no longer be an action.

Fiddling with the strings, though, is getting into functionally altering how the map actually behaves, rather than stripping out un-needed data as it currently does now. It seems like this could potentially cause bugs in unexpected corner-cases. If this was done, it should be an enhanced mode that wasn't enabled by default. I probably wouldn't use it for my map, unless there was a significant size saving - not worth the risk of introduced bugs that are very hard to track down (since it's not something you've specifically done in the map that broke it, but an external tool which you don't understand what it's doing).



None.

May 30 2011, 2:04 am Heinermann Post #23

SDE, BWAPI owner, hacker.

I don't see how string merging could introduce bugs when no functionality is altered in any way.

The small things add up, which was the philosophy of TM2 in the first place.




May 30 2011, 2:24 am iCCup.xboi209 Post #24



Fix tm2 for vista first!



None.

May 30 2011, 3:14 am Lanthanide Post #25



Quote from Heinermann
I don't see how string merging could introduce bugs when no functionality is altered in any way.

The small things add up, which was the philosophy of TM2 in the first place.
There's a clear difference in what's happening, though:
  • One is simply removing data that is unused / isn't needed
  • The other is taking data that is used, chopping it up and changing references to save space

In terms of risk analysis, the 2nd is clearly more bug-prone. Whether it actually results in bugs is another matter - obviously any piece of buggy code can be written without bugs - and yet bugs still exist.



None.

May 30 2011, 8:09 pm O)FaRTy1billion[MM] Post #26

👻 👾 👽 💪

Quote from name:xboi209
Fix tm2 for vista first!
I don't have access to vista or windows 7 to figure out what is wrong. :\

Quote from Lanthanide
Quote from Heinermann
I don't see how string merging could introduce bugs when no functionality is altered in any way.

The small things add up, which was the philosophy of TM2 in the first place.
There's a clear difference in what's happening, though:
  • One is simply removing data that is unused / isn't needed
  • The other is taking data that is used, chopping it up and changing references to save space

In terms of risk analysis, the 2nd is clearly more bug-prone. Whether it actually results in bugs is another matter - obviously any piece of buggy code can be written without bugs - and yet bugs still exist.
If implemented I think it would be safe ... it is a few extremely specific cases that it would change at all. It already recycles strings (and thus rebuilds the string section), so it is already doing that second one ... The only difference here is the algorithm'd find redundant parts of strings and merge those if possible.



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!

May 30 2011, 8:40 pm Wormer Post #27



Quote from Heinermann
TM2 can still be improved too. Regarding the Preserve Trigger thing I found, another small section trim (FORC I think), and probably a couple of other things I'm forgetting.

EDIT: String merging, string color control.

Example:

"Holy damn that Ultralisk is a major piece of crap!"
and
"piece of crap!"

can be considered part of one string and merged.

"<red>Some fading text."
and "<grey>Some fading text."

can merge and become "<grey><red>Some fading text."
I like these. The Preserve Trigger trim will also result in a protection side effect which will make all preserve triggers in the map unpreserved since editors can't handle the flag yet.

Then, the second one may be kept in mind, while making a map. For example if I want to make an ingame menu which shows current line in white and all the rest in gray it will save half of my string space! (Or as another example with menu where I want to put '>' before the current item.) With this thing one may do right/left text alignment using almost 0 additional string space. Also maybe one may think of some tricks with <remove beyond> char. And... it's even possible to use one string for 3 same strings of the same color: gray, maker's choice and cyan.

Conclusion: :farty:, it's time to update TM2 and make it Win7 friendly! :P

Post has been edited 6 time(s), last time on May 30 2011, 8:53 pm by Wormer.



Some.

May 30 2011, 9:14 pm iCCup.xboi209 Post #28



Quote from O)FaRTy1billion[MM]
Quote from name:xboi209
Fix tm2 for vista first!
I don't have access to vista or windows 7 to figure out what is wrong. :\

We can do teamviewer and you could use my computer :0

Post has been edited 1 time(s), last time on May 31 2011, 3:02 pm by xboi209.



None.

May 30 2011, 9:50 pm Roy Post #29

An artist's depiction of an Extended Unit Death

Quote from name:xboi209
Quote from O)FaRTy1billion[MM]
Quote from name:xboi209
Fix tm2 for vista first!
I don't have access to vista or windows 7 to figure out what is wrong. :\

We can do teamviewer and you could use my computer :0
That's not how that works... It's like trying to help your friend find their lost wallet through a phone call.

Fixed the quote for you, by the way.




May 30 2011, 10:24 pm Lanthanide Post #30



Quote from O)FaRTy1billion[MM]
If implemented I think it would be safe ... it is a few extremely specific cases that it would change at all. It already recycles strings (and thus rebuilds the string section), so it is already doing that second one ... The only difference here is the algorithm'd find redundant parts of strings and merge those if possible.
Right, but doesn't scmdraft 2 recycle strings anyway? So your string optimizations may not actually be achieving much, in many cases?



None.

May 31 2011, 12:01 am O)FaRTy1billion[MM] Post #31

👻 👾 👽 💪

SCMDraft sucks at strings. There is no editor that is good at them.



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!

May 31 2011, 5:50 pm Zhuinden Post #32



Can't you just get Win7 and fix it? :P
It's annoying how I had to use TinyMap1 whenever I wanted to protect a map merely because TM2 is dead.
Of course, I know it's not that easy, but the program is kinda hard to use with it crashing out.



None.

May 31 2011, 8:17 pm O)FaRTy1billion[MM] Post #33

👻 👾 👽 💪

How am I supposed to just "get" Win7? I don't have money for a new computer, and I couldn't even pirate it because my laptop can't handle much more than XP. :\

I can ask around and see if anyone'll let me use their computer for an extended period ..



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!

Jun 1 2011, 12:20 am Lanthanide Post #34



I can get TM2 to work on both Vista and W7, I've posted about it several times. It's frustrating, but it does eventually work.

I think it actually might have something to do with the custom map having sound files in it. My latest attempts seem to be that changing the options to prevent wav file compression makes it work without crashing, although it still doesn't work 100% correctly - the slide-out box doesn't slide out with the compression results, and when the program is first loaded it expands very slowly instead of quickly like it does on XP.



None.

Jun 1 2011, 3:16 am jjf28 Post #35

Cartography Artisan

I would love to see some kind of string concencration, anyone have details on manually putting this in your map?



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Jun 1 2011, 4:36 am Heinermann Post #36

SDE, BWAPI owner, hacker.

Let's make tinymap3.




Jun 1 2011, 4:54 am O)FaRTy1billion[MM] Post #37

👻 👾 👽 💪

I'll help. xD



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!

Jun 1 2011, 4:55 am iCCup.xboi209 Post #38



Make it Vista/7 compatible :P



None.

Jun 1 2011, 5:12 am O)FaRTy1billion[MM] Post #39

👻 👾 👽 💪

I can just update TinyMap2 ... I'll see if anyone will let me borrow their computer this weekend.



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!

Jun 22 2011, 10:57 pm Lanthanide Post #40



Also Farty, since I've started up development on DSNight again, I've been using Tinymap more in Windows 7. It appears to be the wav file compression that is crashing it. When I individually select the wav files and tell it not to compress them, I never get any crashes (still get other weird visual glitches in the program, but it does work).

Note that this is fine for my map, because I actually used Tinymap to compress the wav files a long time ago, and then used an MPQ extractor to extract the compressed wav and added it back into my map, so I don't actually need Tinymap to do any compression on them anyway because they're already compressed. And no, I don't believe that is contributing to the crashes at all, because I was using the same system back in WinXP and never had any crashes, and I can take the current version of my map and compress it with Tinymap on an XP machine with compress wavs enabled with no crashes.

This would also explain why compressing Blizzard melee maps doesn't crash - because they're no wavs included. Still doesn't explain why that workaround would sometimes allow your map to be compressed immediately after, though.



None.

Options
Pages: < 1 2 3 >
  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, Moose, Ghoster, Oh_Man