Decompiling maps

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
Lenard
Posts: 737
Joined: Mon Aug 04, 2003 7:00 am

Decompiling maps

Post by Lenard »

How do I ecompile a bsp into a .map?
User avatar
Survivor
Posts: 4202
Joined: Fri Dec 27, 2002 8:00 am

Post by Survivor »

Will lose patches or curves iirc
User avatar
Survivor
Posts: 4202
Joined: Fri Dec 27, 2002 8:00 am

Post by Survivor »

Ah nice
SonicClang
Posts: 209
Joined: Sun Mar 28, 2004 8:00 am

Post by SonicClang »

Decompiling has never really worked very well. I don't know how much has changed since I tried it last, but when I tried, it made a brush for every visible face, which mean there were WAY more brushes than what was needed. Has it gotten better now?
The number 1 cause of death in games is panic.
[img]http://webpages.charter.net/sonicclang/small.jpg[/img]
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Funny you should mention it, but I'm currently working on a map decompiler that does not suck (a regular of the CPMA forums requested one). It should be finished in a couple of days.
a13n
Posts: 1672
Joined: Thu Feb 10, 2005 2:08 am

Post by a13n »

I bet it is intended textures are not aligned originally to prevent easy stealing while a few brushes lost is not. :icon30:
Last edited by a13n on Sun Jul 31, 2005 7:23 am, edited 1 time in total.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Post by obsidian »

To clarify the facts about decompiling maps.... seems as if some of you are a bit hazy as to what kinds of results are created depending on method.

Back in the "old" days, bspc.exe was used to decompile maps. This caused patches to turn into brushes and all texture data was lost.

ydnar added better decompiling support with Q3Map2. Patches are preserved, as well as texture and shader information. Works quite well, the only issue is with UV texture co-ordinates which are irretrivably lost. It has nothing to do with preventing people from actually copying maps (though copying other people's maps is lame and boring - make something original is much more fun).

You may also lose misc_model's (and possibly some other entities - lights?) in some maps depending on whether the original map was compiled with Q3Map2 or not.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Lenard
Posts: 737
Joined: Mon Aug 04, 2003 7:00 am

Post by Lenard »

Could you keep us posted in this thread mis?
SonicClang
Posts: 209
Joined: Sun Mar 28, 2004 8:00 am

Post by SonicClang »

Haha. :) You think the "old days" refers to a time when we had patches. That's funny. :P
The number 1 cause of death in games is panic.
[img]http://webpages.charter.net/sonicclang/small.jpg[/img]
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Lenard wrote:Could you keep us posted in this thread mis?
Will do.
krekits
Posts: 19
Joined: Wed Aug 08, 2001 7:00 am

Post by krekits »

@^misantropia^

It's been a couple of days now. Where's the decompiler?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

Your humble servant reports for duty.

Some RL issues (a new job and a burglary, to name a few) kept me from working on it. I'll pick it up in a couple of days and let you lot know when it is finished.

A word of warning: thanks to q3map2 stripping out light entities during the final stage of a compile, all lighting (safe shaders) will be lost. Maps compiled with the original q3map don't suffer from this.
krekits
Posts: 19
Joined: Wed Aug 08, 2001 7:00 am

Post by krekits »

NP. RL can be a biatch sometimes. Thumbs up for the job. Too bad about the burglary tho...
Lenard
Posts: 737
Joined: Mon Aug 04, 2003 7:00 am

Post by Lenard »

Agreed. I am not worried about the shaders btw.
[img]http://myspace-001.vo.llnwd.net/00555/10/05/555355001_l.gif[/img]
Post Reply