Staredit Network > Forums > SC2 General Discussion > Topic: SC2 Map Texture Mask Importer/Exporter
SC2 Map Texture Mask Importer/Exporter
Jun 4 2010, 10:37 pm
By: O)FaRTy1billion[MM]  

Jul 11 2010, 10:02 pm payne Post #21

:payne:

Quote from DevliN
Quote from payne
I'll probably use this for the Credits of my Impossible-map project.
Thanks for creating :awesome:

EDIT: It says a component is missing or inexistent when I try to launch it. D:
SomethingGL32.ocx

Quote from Corbo
Quote from Swampfox
Error when starting the exe:
"Component 'COMDLG32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid"

Huh?
You're missing that file. Try googling it and dling it. When you do that put it in your mask importer folder (along with the exe), if that doesn't work then put it in c:\windows\system32 if THAT doesn't work then you need to register the file. To do this, while on your desktop press winkey + r and type in the box "regsvr32 COMDLG32.OCX" without the quotes. If you're on Windows 7 then you need to run the command with admin rights.
Lol, I feel like a bad member now :/
Well, that quite unmotivated me :(



None.

Jul 12 2010, 12:03 am UnholyUrine Post #22



HAWTNESS

JUU ARE AWESOME!



None.

Jul 14 2010, 6:36 pm payne Post #23

:payne:

Quote from Corbo
Quote from Swampfox
Error when starting the exe:
"Component 'COMDLG32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid"

Huh?
You're missing that file. Try googling it and dling it. When you do that put it in your mask importer folder (along with the exe), if that doesn't work then put it in c:\windows\system32 if THAT doesn't work then you need to register the file. To do this, while on your desktop press winkey + r and type in the box "regsvr32 COMDLG32.OCX" without the quotes. If you're on Windows 7 then you need to run the command with admin rights.
It says that the module may not be compatible with my x86 or x64 thingy.
What the fux? :(
I tried the three solutions there.
D:



None.

Jul 14 2010, 8:57 pm O)FaRTy1billion[MM] Post #24

👻 👾 👽 💪

Figure out what operating system you have and what architecture (32-bit, 64-bit) and google comdlg32.ocx and your OS.



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!

Jul 14 2010, 10:06 pm payne Post #25

:payne:

64 bit.
I have downloaded comdlg32.ocx and tried to put in every folder Corbo said to.
I registered it too.
Nothing works. :(



None.

Jul 15 2010, 4:56 am O)FaRTy1billion[MM] Post #26

👻 👾 👽 💪

... Which is why I said google it.



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!

Sep 9 2010, 5:10 am O)FaRTy1billion[MM] Post #27

👻 👾 👽 💪

Updated for SC2 retail ... finally.



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!

Sep 11 2010, 5:30 pm Syphon Post #28



OH DEAR GOD FINALLY.



None.

Oct 16 2011, 5:13 am BossGT10 Post #29



I have a few questions,

What's the ordering of the layers themselves? Does it just go like Layer 1 = base Layer 2 = first texture added, layer 3 = second texture added... and so on? or does the engine have different textures assigned to each layer?

Would it be possible for you to add a "make unused" button and completely delete the mask... meaning making it unused. I've found out that even if you "mistakenly" add a texture and even if you undo to complete deletion of it it will still keep the layer, completely black, of course, but that should increase the filesize, right? Which is a bad thing for something we're not actually using.

If the "t3texturemap" determines the layers order, would it be possible for you to make this program also able to "order" the layers? Meaning that I want certain layer to be on top of another, for that matter, meaning like this I've painted a dirt spot (Layer 2) then I painted a grass on top of it with a lower strenght on the editor so I could still see the dirt (layer 3) then on top of that I painted a rocky texture, with not complete opacity, meaning I could still see the grass, but not the dirt. (layer 4) Would it be possible for you to make this program such that you could rearrange that order, meaning, I want the layer 2(dirt) to now be "on top" of the grass and grass (layer 3) inmidiately after the default base (layer one). Meaning that I want to make layer 2 into 3 and 3 into 2 or are the texture references to each layer not pointed by the t3texturemask? It wouldn't be much of a mask swapping but rather a "assign the other one's texture to another layer" kind of thing.

Is 2048 by default the max size of the layers? Can you make them bigger for much more detailing?

What happens if I give a mask to one of these unuseds? what texture does it use?

Would it be possible to use more than 8 textures, in theory, if you could assign more layers and assign those layers to a texture reference? Where are the textures for each layer referenced anyway?

EDIT: I just realised that the masks aren't really building an opacity mask but rather all 8 masks seem to be of an "absolute" value meaning that if I merged all textures together I'd get a completely white mask, right? That kinda invalidates questions 1 and 3 but I'll wait for your answer.
I thought the masks all had values sorta like an opacity mask in which all of them can have ranges from black to white but this seems to be more of a if you have 100% ammount (white) in a mask you will NOT have 100% in another mask, but rather in all other layer masks it'll be 0%, however you can have mixed values like 50% in one and 50% in another mask so the two masks "blend" and build up to a total of 100% but never 100% in more than one mask. Which simply sucks completely makes what I'm doing almost impossible, if not impossible already and quite honestly this is just simply innefficient :P This means that you don't actually have 8 textures blended but rather you just have one...

Upon actually testing it it seems that you CAN actually have more than one mask with 100% "ammount" except that they'll act as 50% opaque which is just funny :P disregard my first edit, questions still remain.

Figured as much it was easier for me to post rather than ask you as they were long questions and you weren't online anyway :P

Post has been edited 2 time(s), last time on Oct 16 2011, 6:08 am by BossGT10.



None.

Oct 16 2011, 7:16 am O)FaRTy1billion[MM] Post #30

👻 👾 👽 💪

I haven't really tested the limits and variability of the format ...

Quote from BossGT10
What's the ordering of the layers themselves? Does it just go like Layer 1 = base Layer 2 = first texture added, layer 3 = second texture added... and so on? or does the engine have different textures assigned to each layer?
I haven't used the sc2 editor in a while and I haven't updated SC2 recently so I can't really look at specifically where, but wherever you define what textures the map uses is the order that these exist in. (also see a couple blocks down...)

Quote from BossGT10
Would it be possible for you to add a "make unused" button and completely delete the mask... meaning making it unused. I've found out that even if you "mistakenly" add a texture and even if you undo to complete deletion of it it will still keep the layer, completely black, of course, but that should increase the filesize, right? Which is a bad thing for something we're not actually using.
All 8 layers always exist in the file. I haven't played around to see what happens if some don't exist.

Quote from BossGT10
If the "t3texturemap" determines the layers order, would it be possible for you to make this program also able to "order" the layers? Meaning that I want certain layer to be on top of another, for that matter, meaning like this I've painted a dirt spot (Layer 2) then I painted a grass on top of it with a lower strenght on the editor so I could still see the dirt (layer 3) then on top of that I painted a rocky texture, with not complete opacity, meaning I could still see the grass, but not the dirt. (layer 4) Would it be possible for you to make this program such that you could rearrange that order, meaning, I want the layer 2(dirt) to now be "on top" of the grass and grass (layer 3) inmidiately after the default base (layer one). Meaning that I want to make layer 2 into 3 and 3 into 2 or are the texture references to each layer not pointed by the t3texturemask? It wouldn't be much of a mask swapping but rather a "assign the other one's texture to another layer" kind of thing.
t3texturemasks (or whatever, the name is a variable) does not. t3terrain does, and t3texturemasks uses this order:
Code
       <textureList num="8">
           <texture i="0" name="BraxisAlphaMetal"/>
           <texture i="1" name="BraxisAlphaRock"/>
           <texture i="2" name=""/>
           <texture i="3" name=""/>
           <texture i="4" name=""/>
           <texture i="5" name=""/>
           <texture i="6" name=""/>
           <texture i="7" name=""/>
       </textureList>


Quote from BossGT10
Is 2048 by default the max size of the layers? Can you make them bigger for much more detailing?
I don't think so, but I haven't tried loading wrong-sized images.

Quote from BossGT10
What happens if I give a mask to one of these unuseds? what texture does it use?
None.

Quote from BossGT10
Would it be possible to use more than 8 textures, in theory, if you could assign more layers and assign those layers to a texture reference? Where are the textures for each layer referenced anyway?
8 textures is hardcoded. I've tried playing with this (adding entries to textureList, etc.) and t3texturemasks seems to always (and only) have 8 textures.



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!

Oct 16 2011, 8:05 am BossGT10 Post #31



Quote
I don't think so, but I haven't tried loading wrong-sized images.
Should I just... try? or do I need to be a god and change something so I can import an oddly sized mask?

Quote
8 textures is hardcoded. I've tried playing with this (adding entries to textureList, etc.) and t3texturemasks seems to always (and only) have 8 textures.
Sucks.

Thanks :P



None.

Oct 20 2011, 10:10 pm Tempz Post #32



Only problem with it is that some pictures don't translate well to the map epically pictures that are intricate.



None.

Feb 27 2013, 6:02 am Malin Post #33



Did you ever update this to newer formats?

Any chance of you making it for t3heightmap too?



None.

Feb 27 2013, 10:21 am O)FaRTy1billion[MM] Post #34

👻 👾 👽 💪

I haven't played with the sc2 data files in a long time ... xD I could check them out again.

I think the problem I had with t3heightmap was that each value is a 16-bit number, which creates either depth problem (limiting to an 8-bit number) or makes it more difficult to edit (image editors that support 16-bit greyscale).



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.
[05:37 am]
Pr0nogo -- just open a game sound and compare it to your waveform, normalize/amplify as necessary
[05:00 am]
SiKiN -- :wob:
[05:00 am]
SiKiN -- than*
[05:00 am]
SiKiN -- nvm someone just told me most sound files ingame are 20d higher volume then most recordings you import.
[04:35 am]
SiKiN -- I meant 80% quieter
[04:35 am]
SiKiN -- /wIs there a guide on .wav files on here? The ones I implemented are like 20% quieter than the originals. The game sounds make them impossible to hear.
[02:05 am]
Moose -- :wob:
[01:54 am]
lil-Inferno -- :wob:
[01:04 am]
O)FaRTy1billion[MM] -- :wob:
[12:54 am]
Wing Zero -- :wob:
Please log in to shout.


Members Online: Roy, slovka, NudeRaider, lil-Inferno