How to decompile maps?

How to decompile maps?

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

How to decompile maps?

Post by TradeMark »

I wanna "steal" some textures, so how to decompile maps?

Do i need to create own tool for that?
Or is there already a tool for it?
User avatar
RogerN
Posts: 238
Joined: 24 Jul 2006, 23:29

Post by RogerN »

I don't think we have a tool for decompiling maps. At least, I haven't ever heard of one.

Your best bet is to ask the author of the map for the texture. I'm sure most of the mappers probably keep their textures lying around, or at least the tools to render it again.
User avatar
LathanStanley
Posts: 1429
Joined: 20 Jun 2005, 05:16

Post by LathanStanley »

definately ask, most guys will say: "sure..."

but if you don't ask, and you just take...

most guys are like: "KILL!!! KILL KILL KILL!!!"

just an fyi.
User avatar
Runecrafter
Posts: 148
Joined: 30 Oct 2005, 00:23

Post by Runecrafter »

I agree it is always best to ask.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

So i need to make that program myself...
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10382
Joined: 24 Jan 2006, 21:12

Post by PicassoCT »

AF has made a Tool to extract some things... but i don`t know which Maps it could get... i think it was Metall & Heightmap...
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

AI's (both global and group) have access to the internal representations of the height- , slope-, LOS-, radar-, jammer-, and metalmaps, so you can extract those and write them to an image fairly easily. If you want textures though you're out of luck. ;)
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Though Spring decompiles the texture like everytime you play the map *hint*

But I agree with other people, just ask the creator: if he allows you to use it & can give it to you it's easier anyway; and if he doesn't allow then you cannot use it, whether you can extract it or not.
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

what if the creator disappeared :S
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Then you're out of luck.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

And/or take my advice.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

Tobi wrote:Though Spring decompiles the texture like everytime you play the map *hint*
And where are those images located at? Just in the RAM? And how i can access that? o_O

Couldnt find anything in the spring folders.
User avatar
Ling_Lover
Posts: 100
Joined: 26 Sep 2006, 11:50

Post by Ling_Lover »

TradeMark wrote:
Tobi wrote:Though Spring decompiles the texture like everytime you play the map *hint*
And where are those images located at? Just in the RAM? And how i can access that? o_O

Couldnt find anything in the spring folders.
look in the source files and find where it does it? :P
it'd save it in video memory i'd think... but i dunno
if you don't know C++ either learn, or get someone else to do it for you :P

ok... this post was probably kinda useless... but meh
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

when you compile a map it is broken into several dds tiles.. even if you can reconstruct from the tiles you will lose a lot.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

Why i would lose anything if i just put the pieces together? wtf.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

TradeMark wrote:Why i would lose anything if i just put the pieces together? wtf.
The tiling algorithm replaces some details with "like" tiles... The higher the compression the less tiles it uses. When you restore the texture, you will see the tiles on the texture.. when you go to compile it again.. you lose even more detail because of the tiling compression.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

Well, then i just use the placing data to place them to right places :)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

You are not understanding me

imagine a sentence like this that has repetitive characters.

then I run it through map converter which thinks 'i' and 'l' are similiar as are 'e' and 'c'

so we get:

lmaglnc a scntcncc llkc thls that has rcpctltlvc charactcrs.

then you restore the texture it will look like the above and now 't' and 'l' look similar as does 'a' and 'c'

so you compile and get something like:

lmcglnc c scnlcncc llkc lhls lhcl hcs rcpcllllvc chcrcclcrs.


do you understand?
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

So you mean it is impossible to get the textures?

Spring uses some magic wand to get them? :shock: thats so cool.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

no trade mark, I am saying that the compression degrades the texture and that decompressing it and restoring it to one image will result in some loss and then to run the same texture through that again will result in more loss.

so I am telling you that the texture while restored will be degraded further when you use it again.
Post Reply

Return to “Map Creation”