Quake3World.com Forums
     Level Editing & Modeling
        -fixaas ...


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: -fixaas ...

Beggar@Q3W
Beggar@Q3W
Joined: 09 Feb 2005
Posts: 1086
PostPosted: 06-25-2007 11:51 PM           Profile Send private message  E-mail  Edit post Reply with quote


Since q3map 2.5.16, aas file can be reattached to different bsp.
Below is a step by step procedure to make it work.

1. create an original map file(let's call it "original.map") and fully bake it(bsp,vis and light)
2. copy the "original.map", open it in radiant then remove unnecessary geometry, adding spoofing brushes and uncheck autoclipping for mapobjects, etc... then save as "orignal_b1.map"
3. bake "original_b1.map" (only bsp, no need to append "-meta")
4. create bot file("original_b1.aas") for "original_b1.bsp" with the switch "-bsp2aas", no need to append "-forcesidesvisible"
*warning* DO NOT OPTIMIZE HERE!
5. rename "original_b1.aas" to "original.aas"
5. run q3map2 with the switch -fixaas "PATH_TO_original.bsp" (now "original.aas" has been fixed and broken again)
7. download aasfix2 then fix the aas again.
8. now run bspc again for "original.bsp" with the switch "-reach"
9. finally optimize the aas with the switch "-aasopt"
10. play with heavily optimized bots




Last edited by a13n on 06-28-2007 01:48 AM, edited 3 times in total.

Top
                 

Beggar@Q3W
Beggar@Q3W
Joined: 09 Feb 2005
Posts: 1086
PostPosted: 06-26-2007 05:08 AM           Profile Send private message  E-mail  Edit post Reply with quote


I prepared a quick sample map for -fixaas.
This is a rough cut, so more sophiscated version may come later.
Sample map for -fixaas

What I've noticed so far(might be wrong):
1. Botclip doesn't necessarily have to be aligned to the geometry for human players; it can go both below and above as long as they won't exceed excessively.
.
2. Map runs faster with this fixed aas!

3. Some entities need to be "suspended" depending on the place where they are laid.




Top
                 

Veteran
Veteran
Joined: 09 Feb 2005
Posts: 167
PostPosted: 06-26-2007 05:19 AM           Profile Send private message  E-mail  Edit post Reply with quote


Nice post, several people have had trouble getting this working so it's good to have a step by step guide and some pointers!




Top
                 

The Illuminated
The Illuminated
Joined: 08 Sep 2000
Posts: 1085
PostPosted: 06-26-2007 06:42 AM           Profile Send private message  E-mail  Edit post Reply with quote


Cool :D I will have to test this, I could not get it working before.

Back later with results.
Sims



_________________
Well he was evil, but he did build alot of roads. - Gogglor
My Website & Twitter


Top
                 

I'm the dude!
I'm the dude!
Joined: 04 Feb 2002
Posts: 12263
PostPosted: 06-26-2007 08:09 AM           Profile Send private message  E-mail  Edit post Reply with quote


Great write up and great timing too since a lot of people have been asking about this. Much better than some of your more "elaborate" topics. :)

a13n wrote:
2. Map runs faster with this fixed aas!


It's not specifically faster because of reattaching the AAS file. It runs "faster" because the AAS is optimized better so when loading bots, there is less information to process. You could theoretically do the same in the original map. What -fixaas solves is it allows you to compile an AAS for a map that could normally cause BSPC compile errors.

a13n wrote:
7. open original.aas in a hex editor and change the first 4 byte to 45 41 41 53, namely "EAAS", overwrite the file


Curious, why is this step necessary? What exactly is going on here? What happens when you skip this step?




Top
                 

Beggar@Q3W
Beggar@Q3W
Joined: 09 Feb 2005
Posts: 1086
PostPosted: 06-26-2007 05:22 PM           Profile Send private message  E-mail  Edit post Reply with quote


@everyone
Thank you.

@Shallow
If only the readme file of q3map2 had told us more and q3map2 itself had done a little more.
More than 2.5 years of waste since the release of 2.5.16.

@sock
from http://splashdamage.com/forums/viewtopic.php?t=10278
ydnar wrote:
Q3Map 2.5.16

Some stuff for Sock mainly.

:icon22:

@obsidian
Without "EAAS" bspc and quake3 don't recognize it as an aas.
It's apparently possible to automate from step 3 to 9 if q3map2 stops kidding or other small apps dare to have the trouble to write it instead.




Top
                 

True Nightmare
True Nightmare
Joined: 06 May 2000
Posts: 4373
PostPosted: 06-26-2007 07:24 PM           Profile Send private message  E-mail  Edit post Reply with quote


a13n wrote:
If only the readme file of q3map2 had told us more and q3map2 itself had done a little more.
More than 2.5 years of waste since the release of 2.5.16.


I'm not quite sure what that means, I guess.

What exactly has been "wasted" in the last couple of years? And what's with the rolleyes?




Top
                 

Beggar@Q3W
Beggar@Q3W
Joined: 09 Feb 2005
Posts: 1086
PostPosted: 06-26-2007 11:45 PM           Profile Send private message  E-mail  Edit post Reply with quote


@pjw
Never mind, please. :p

By the way I succeeded to reduce the size of aas for q3dm6 and q3dm17 by about 150kb with quick hand work.(much more would be possible and there seems to be a lot of fun possibilities(such as spoofing cluster portals) with trial and error)
Bots seem to love it. :icon25:




Top
                 

Beggar@Q3W
Beggar@Q3W
Joined: 09 Feb 2005
Posts: 1086
PostPosted: 06-28-2007 01:39 AM           Profile Send private message  E-mail  Edit post Reply with quote


Image
I prepared a much more excessively optimized sample map for q3dm17.
The file contains "q3dm17_bot.map" and "q3dm17.aas".
The aas file is smaller than the official one by 1/2, so is the CPU/Memory usage.
Now bots don't go for porn/poker anymore. :icon25:

bots jump at the edge like human players where they had never!
Image

experimental cluster spoofing for space maps(works like a way point)
Image




Top
                 

The Illuminated
The Illuminated
Joined: 08 Sep 2000
Posts: 1085
PostPosted: 06-30-2007 05:25 PM           Profile Send private message  E-mail  Edit post Reply with quote


Sorry for the delay getting back to this thread but have been busy testing the process and making sure what I got works. The original reason for this feature was so that I could create a bot file for Pyramid of the Magician but 2 years I could not get the process to work. At the time lots of things kept breaking and Pom was not a good example map to be testing with.

I found a slightly different approach to a13n and used 2 batch files to automate the process. These batch files could be merged into 1 batch file but I wanted to see the results of the bspc.exe process half way through.

Batch File 1:

@echo off
@set Q3_PATH="C:/Program Files/Quake iii arena"
@set COMP_PATH="C:/Program Files/Quake iii arena/q3map2/q3map2.exe"
@set BOT_PATH="C:/Program Files/Quake iii arena/q3map2/bspc.exe"
@set MAP_PATH="C:/Program Files/Quake iii arena/baseq3/maps/%1.map"

@set GEN_OPTIONS=-fs_basepath %Q3_PATH%

%COMP_PATH% -meta %GEN_OPTIONS% %MAP_PATH%
%COMP_PATH% -vis %GEN_OPTIONS% %MAP_PATH%

%BOT_PATH% -forcesidesvisible -bsp2aas %MAP_PATH%

This batch file is run on the bot only version of the map. It does a basic q3map2 compile (In theory could skip the -vis stage but it was so quick it did not really matter) and then does a normal BSPC compile. I had to use the -forcesidesvisible because all of the floor in my original map was terrain. I experimented with flat bot clip floors but the bots just spent most of their time floating above the terrain.

This first batch file should produce a working bot file but it is attached to the wrong map file. I manually renamed the AAS file to match the original map file but this process could be automated. I paused at this point because I wanted to see what cluster portal area's had been created and decide if I need to do anymore tweaks to geometry.

If the cluster portal arrangement was bad I would go back to the bot map file and tweak things a bit more. I removed all lights, terrain blending textures, non solid patches and models from the bot map file. I even removed all wall and floor detail and turned most rooms / corridors into huge flat caulk faces. Textures in a bot map file don't really mean much so most of my work was done with caulk.

One thing I did find with testing was the final AAS file was merged with original map geometry in game so you can force the bots to do certain things. When I removed all the wall brushes I thought the bots would just fall out of the map or fall into original map space but they did not. They would often beat themselves senseless against corners because they did not believe they existed but they did in game.

One problem I had with the bots was they would pull back while in the air after hitting a jump pads. In the original map file the brushwork in front of the jump pads was gradually sloped but the brushwork in the bot file was flat and the edge was a lot further back. This had an interesting effect because the bots then used the air control of the jump pad to move forward instead of back and then landed correctly. If they missed for some reason, the original map geometry was still there so they did not fall into the gap, but fell down and tried again.

Batch File 2:

@echo off
@set Q3_PATH="C:/Program Files/Quake iii arena"
@set COMP_PATH="C:/Program Files/Quake iii arena/q3map2/q3map2.exe"
@set BOT_PATH="C:/Program Files/Quake iii arena/q3map2/bspc.exe"
@set MAP_PATH="C:/Program Files/Quake iii arena/baseq3/maps/%1.map"

@set GEN_OPTIONS=-fs_basepath %Q3_PATH%

%COMP_PATH% -fixaas %GEN_OPTIONS% %MAP_PATH%
%COMP_PATH% -meta %GEN_OPTIONS% %MAP_PATH%
%COMP_PATH% -vis %GEN_OPTIONS% %MAP_PATH%
%COMP_PATH% -light -fast -samples 2 -pointscale 1.4 -patchshadows %GEN_OPTIONS% %MAP_PATH%

%BOT_PATH% -optimize -reach %MAP_PATH%

There are 3 problems with the -fixaas parameter as follows:

1. The compiler says the parameter is invalid, but yet still seems to work!
2. The -fixaas parameter trashes the light map (most of the time) in the original bsp file so you have to re-compile the original map again.
3. The bot AAS file has to have a newer date than the original bsp file so you have to end the process by optimizing the bot file so that it is regenerated and work correctly with the original bsp.

This is the part of the process which really is wierd, and was the main reason I gave up 2 years ago trying to get it working.

After a week of creating a new brushwork and pulling my hair out at stupid feckin-bot feckin-cluster feckin-portals, I do have a bot file for my original map Pyramid of the Magician. Once I hear back from some friends who are testing it, I will release the source files so people can see what I did.

Hope that helps
Sims



_________________
Well he was evil, but he did build alot of roads. - Gogglor
My Website & Twitter


Top
                 

Beggar@Q3W
Beggar@Q3W
Joined: 09 Feb 2005
Posts: 1086
PostPosted: 06-30-2007 10:37 PM           Profile Send private message  E-mail  Edit post Reply with quote


@sock
Your method looks different from mine in that you bake the genuine bsp afterwards.
With my method mappers don't have to re-bake the time-consuming genuine bsp again and again.
Instead they can devote themselves to create the fake bsp with trial and error once the genuine bsp has "gone gold".
You know which is better. :icon26:

But your method, if it works at all, could be an alibi that there was no such malicious inteintion of its implementation as mena666 complained at forum damage. :icon25:




Top
                 

True Nightmare
True Nightmare
Joined: 06 May 2000
Posts: 4373
PostPosted: 07-01-2007 09:54 AM           Profile Send private message  E-mail  Edit post Reply with quote


sock, your new upgraded POM seems to work just fine--the bots were kicking my ass quite well. :)

a13n wrote:
@sock
Your method looks different from mine in that you bake the genuine bsp afterwards.
With my method mappers don't have to re-bake the time-consuming genuine bsp again and again.


This is true. However, you can always have the bsp compiling while you do other things. Some people might be more comfortable simply recompiling it again, rather than messing around with a hex editor. Of course, there might be confusion with two different .bsps floating around...I guess(?) you could just release the new .aas by itself in a stand-alone pk3 and it would work? Both methods seem valid, so it's down to personal preference on this, I suppose. On the other hand:

a13n wrote:
But your method, if it works at all, could be an alibi that there was no such malicious inteintion of its implementation as mena666 complained at forum damage. :icon25:


I'm starting to think that you have some sort of serious mental/social issues. What you seem to be attempting to do here is to create some sort of cross-forum drama, by posting under two different nicks. You posted the above comment here, and then this at the SD forums:

mena666 (who is actually a13n) wrote:
BTW, guessing from the report@q3w, I can't help but imagine a sort of malicious intention of its implementation.


Sooo...hmmn. No one anywhere actually complained about any malicious intent (that I can find), but you refer to such posts on "the other forum" in order to...well...I'm not quite sure, and it doesn't really matter--it's not my job to figure it out. I got out of that line of work quite a few years ago.

Short form: Please stop doing weird shit like this. Please? You're obviously an intelligent individual, but behavior like this does nothing but tend to invalidate (by simple association) anything legitimate. People tend to ignore good ideas and contributions when they're overshadowed by general weirdness.




Top
                 

Grunt
Grunt
Joined: 22 Jun 2007
Posts: 58
PostPosted: 07-01-2007 02:02 PM           Profile Send private message  E-mail  Edit post Reply with quote


a13n wrote:
But your method, if it works at all, could be an alibi that there was no such malicious inteintion of its implementation as mena666 complained at forum damage. :icon25:


Sorry just skimming through this.. errm. what? LOL..

hold on a minute here, what kind of malicious intentions? hehehe
I know I shouldn't encourage him but I am just wondering.

As far as all of this optimizing your AAS.. really now the best method is to make a clean level, cluster portal, clip, and bot clip. If you do those correctly you win on all fronts right?

Am I suddenly eligible for being malicious on some other forum now? lol...



_________________
-The Castle


Top
                 

True Nightmare
True Nightmare
Joined: 06 May 2000
Posts: 4373
PostPosted: 07-01-2007 02:25 PM           Profile Send private message  E-mail  Edit post Reply with quote


zZCastleZz wrote:
As far as all of this optimizing your AAS.. really now the best method is to make a clean level, cluster portal, clip, and bot clip. If you do those correctly you win on all fronts right?


The point is that the .aas is no longer directly dependent on the .map/.bsp using these methods.

This allows you to make various simplifications of, and improvements to, the .aas file, independently of the level geometry.




Top
                 

Grunt
Grunt
Joined: 22 Jun 2007
Posts: 58
PostPosted: 07-01-2007 03:30 PM           Profile Send private message  E-mail  Edit post Reply with quote


pjw wrote:
zZCastleZz wrote:
As far as all of this optimizing your AAS.. really now the best method is to make a clean level, cluster portal, clip, and bot clip. If you do those correctly you win on all fronts right?


The point is that the .aas is no longer directly dependent on the .map/.bsp using these methods.

This allows you to make various simplifications of, and improvements to, the .aas file, independently of the level geometry.


Ah yes I see..

I like the idea because then you can make bot paths by clipping a level more extensively in the aas level than the actual level. Questions seem to come up though. Like how easy is it to confuse the bot navigation AI with this method. I can see possible advantages for doing this yet at the same time im wondering if it is really necessary.

You can do a couple things with this that I can see off the top of my head.

1. Removing extraneous geometry.

2. Add geometry that doesn't exist to further enhance bot navigation.

3. no need to compile your AAS for your current level as often as you compile BSP/VIS/RAD ect???

4. Smaller file size for your AAS???

====================================

1. hmm.. doesn't the compile process already do this? I am pretty sure although I can be very wrong about this but as far as I know when you compile a level with AAS it goes through and does this stuff for you via automated process. I can think of many examples where automated processes aren't as smart as a person but how big of a difference does this make?

2. I see this as being a double edged sword. Adding additional bot clip to make it so bots navigate more effectively. While it will simplify things for the bots it has me wondering if it is really a good idea since it would be very easy to knock bots in locations on the level that are normally deemed as null and void or even possibly solid geometry according to the AAS file. How does a bot react when it is inside of null space?

And the real kicker to this concept that has me scratching my head is that all of the things you can do in a different level that is referenced for AAS compile can also be done in your main level with the added advantage that you only need to deal with one level.. I'm kind of confused about how this idea offers a real reward for the effort.

3. I can see this as being an advantage.. However when it comes to compile times I'm more concerned with VIS and Lights. the AAS practically compiles instantly compared to those two. to each his own though right?

4. Potentially smaller AAS file??/ I'm not even sure if this is true since what I pointed out with point 1. If the AAS file is able to be truly smaller with out negatively effecting bot AI then I am might be wrong about the AAS file pruning extraneous geometry from the level at compile time.. However if the compiler does prune the levels extraneous geometry at compile time then its possible that your not going to gain much from using a separate level for your AAS in regards to your AAS file size.

What about Potentially smaller AAS file in regards to game performance? Well if the file size of the AAS is reduced then it would take less time to load the file when loading the level and take less system ram. However this doesn't necessarily guarantee less processing power is needed for bots to navigate your level.

What I can tell you is that I am pretty sure that AAS files small or large are used as optimally as possible. If this is true then even a AAS file with extraneous level geometry stored with in the file would take nearly the same processing power for bot AI when compared to an AAS file that was created with the same basic navigation space with little or no extraneous geometry. So if you are seeing a difference in performance there is a very high chance of it just being Placebo..

Maybe I have just been out of the loop for awhile. lol obviously too long right?



_________________
-The Castle


Top
                 

The Illuminated
The Illuminated
Joined: 08 Sep 2000
Posts: 1085
PostPosted: 07-01-2007 04:48 PM           Profile Send private message  E-mail  Edit post Reply with quote


zZCastleZz wrote:
Maybe I have just been out of the loop for awhile. lol obviously too long right?


Yes you have and here is brief history of events and why this feature existed in the first place...

I was creating a map 2.5yrs ago called Pyramid of the Magician and it had terrain/tri-souped brushwork everywhere, floors, walls and ceilings. It had far too much crazy odd angle brushwork and to be honest, it was never designed for bots. It started life as an experiment for alpha terrain blending and q3map2.

When it came to creating a bot file for the map it had a lot of problems. Firstly the bspc.exe is very old and was never designed to work with the way I created the map. Sure you are thinking why not just bot clip the map off, well bspc still reads in all the other brushwork buried in botclip and eventually runs out of memory. I needed to create a special "light" version for the bot file, that had all the excessive detail removed.

Then after speaking to Mr Elusive and Ydnar we came up with the idea of creating a separate bot map and re-attaching it to another BSP. This parameter was never created for general optimization, no one in their right mind would maintain two copies of a map. As Ydnar stated this was a feature I pestered him to add to q3map2.

ydnar wrote:
Q3Map 2.5.16
Some stuff for Sock mainly.


Well after a lot of discussion and testing I could not get the feature to work right and left it. I published the map, wrote an article on alpha terrain blending and moved on.

Roll on 2.5 yrs ...

A13n looked at this feature and found a way to get it to work, which was very good news. Once I had a working example of the process I could maybe see where I was going wrong with the original map and try and fix it.

I spend a week working out a procedure I was happy with and then created a bot file for a map, which I released 2.5 yrs ago. There is no conspiracy or internet drama just the end to a map journey I started a very long time ago.

Sims



_________________
Well he was evil, but he did build alot of roads. - Gogglor
My Website & Twitter


Top
                 

Grunt
Grunt
Joined: 22 Jun 2007
Posts: 58
PostPosted: 07-01-2007 05:03 PM           Profile Send private message  E-mail  Edit post Reply with quote


AH!

I see!
its something that can be used to get around AAS compiler limitations.
I wasn't even thinking about it from that angle.. :icon32:

I remember reading in other locations on the net where people mentioned this method of AAS optimization over the years. I suppose up until now I never really stopped and asked why. Context I suppose was always in respect to improving performance/AI navigation and never really about circumventing compile limitations.

I totally understand now. Thanks!



_________________
-The Castle


Top
                 

clueless
clueless
Joined: 02 Feb 2006
Posts: 571
PostPosted: 07-02-2007 05:03 AM           Profile Send private message  E-mail  Edit post Reply with quote


sock wrote:
I [...] used 2 batch files to automate the process.


I've rewritten them for the UNIX bash(1) shell. They are available here for people mapping under linux/unix:

==> http://maps.sp1r1t.org/stuff/tools/fixaas-unix.zip

Documentation is included in the script files.



_________________
my FPS maps


Top
                 

Beggar@Q3W
Beggar@Q3W
Joined: 09 Feb 2005
Posts: 1086
PostPosted: 07-10-2007 04:24 AM           Profile Send private message  E-mail  Edit post Reply with quote


By the way I found a curious fact on the size of aas.
I believed that my optimized aas of q3dm17 was the smallest ever.
But dc_q3dm17(q3dm17 for dreamcast) tured out to be smaller!
So I decompiled dc_q3dm17 to see if what's going on down there.
Surprisingly the geometry there was far much complicated than mine.
Yet smaller aas it has.
This doesn't make sense unless dc_q3dm17 used special version of bspc.exe to overcome the restriction of the non-PC hardware.




Top
                 

I'm the dude!
I'm the dude!
Joined: 04 Feb 2002
Posts: 12263
PostPosted: 07-10-2007 08:04 AM           Profile Send private message  E-mail  Edit post Reply with quote


Since AAS files tend to be relatively small in the first place and yields very good compression rates, I don't see how smaller AAS files necessarily co-relates as being "better". As long as the bots don't do stupid things, that's as much as you need to worry about.




Top
                 

Trainee
Trainee
Joined: 27 Apr 2007
Posts: 48
PostPosted: 07-10-2007 11:55 AM           Profile Send private message  E-mail  Edit post Reply with quote


tru dat



_________________
OILDM1 is BETA5!


Top
                 

Insane Quaker
Insane Quaker
Joined: 19 Feb 2006
Posts: 375
PostPosted: 07-10-2007 09:31 PM           Profile Send private message  E-mail  Edit post Reply with quote


-fixaaspwned!




Top
                 

Beggar@Q3W
Beggar@Q3W
Joined: 09 Feb 2005
Posts: 1086
PostPosted: 07-13-2007 03:03 AM           Profile Send private message  E-mail  Edit post Reply with quote


CSP for q3dm6 is ready!
This community service pack contains refined aas files for q3dm6.
There are total 2 aases, one for vq3 and another for cpma.
Image

Any comment will be appreciated. :)




Top
                 

Veteran
Veteran
Joined: 28 May 2010
Posts: 194
PostPosted: 05-15-2011 03:24 PM           Profile Send private message  E-mail  Edit post Reply with quote


I'm sorry for digging out this ancient thread, but the cluster spoofing a13n wrote about could be of great use for me. I can't figure out what to do to make bots use these shortcuts, and the example map is no longer available. What can be seen on the screenshot looks like he just bridged the corner with some clusterportal brushes, but when I use them to fill gaps between simple angled platforms, bots still manage to fall down the edge with ease instead of jumping across. Can this map still be downloaded anywhere or can someone explain what to do in detail?



_________________
Portfolio - My German Quake 3 Tutorials - My Quake 3 maps


Top
                 

Cool #9
Cool #9
Joined: 01 Dec 2000
Posts: 42302
PostPosted: 05-15-2011 10:09 PM           Profile   Send private message  E-mail  Edit post Reply with quote


Looks to me like he's using clip brushes, not cluster portals.




Top
                 

Veteran
Veteran
Joined: 28 May 2010
Posts: 194
PostPosted: 05-15-2011 10:26 PM           Profile Send private message  E-mail  Edit post Reply with quote


I meant the purple brushes on the left. But you are right, there are clip brushes and I have no idea what he did with them. It looks like they are enclosed areas with two doors, each made of one clusterportal brush.



_________________
Portfolio - My German Quake 3 Tutorials - My Quake 3 maps


Top
                 

Veteran
Veteran
Joined: 28 May 2010
Posts: 194
PostPosted: 05-18-2011 08:13 AM           Profile Send private message  E-mail  Edit post Reply with quote


Looks like I need some more help. I tried to get this fixaas stuff working, but neither Sock's tutorial nor a13n's description work for me. The compiled aas's are always invalid. That's what I did:

1. I ran this batch file:

    @echo off
    @set Q3_PATH="D:/Quake III Arena/"
    @set Q3MAP2_PATH="C:\Programme\GtkRadiant 1.5.0/q3map2.exe"
    @set MAP_PATH="D:/Quake III Arena/baseq3/maps/modeltest_bot.map"
    @set BSPC_PATH="C:\Programme\GtkRadiant 1.5.0/bspc.exe"
    @set GEN_OPTIONS=-fs_basepath %Q3_PATH%

    %Q3MAP2_PATH% -meta %GEN_OPTIONS% %MAP_PATH%
    %BSPC_PATH% -forcesidesvisible -bsp2aas %MAP_PATH%

That's the simplified map I want to merge with the complex map

2. I renamed the created modeltest_bot.aas to modeltest.aas - the same name, the complex map has

3. I ran this batch file:

    @echo off
    @set Q3_PATH="D:/Quake III Arena/"
    @set Q3MAP2_PATH="C:\Programme\GtkRadiant 1.5.0/q3map2.exe"
    @set MAP_PATH="D:/Quake III Arena/baseq3/maps/modeltest.map"
    @set BSPC_PATH="C:\Programme\GtkRadiant 1.5.0/bspc.exe"
    @set GEN_OPTIONS=-fs_basepath %Q3_PATH%

    %Q3MAP2_PATH% -fixaas %GEN_OPTIONS% %MAP_PATH%
    %Q3MAP2_PATH% -meta %GEN_OPTIONS% %MAP_PATH%
    %Q3MAP2_PATH% -vis %GEN_OPTIONS% %MAP_PATH%

    %BSPC% -optimize -reach %MAP_PATH%

That's the complex map


This is exactly what Sock wrote here in his article about the bots for Pyramid of the Magician. The only differences are the names used for @set and the left out light phase.

I use the most recent version of q3map2 (2.5.16) and don't understand what I'm doing wrong and why this doesn't work. Any ideas?



_________________
Portfolio - My German Quake 3 Tutorials - My Quake 3 maps


Top
                 

The Afflicted
The Afflicted
Joined: 14 Oct 2001
Posts: 561
PostPosted: 05-18-2011 09:18 PM           Profile Send private message  E-mail  Edit post Reply with quote


Are you doing the hex edit of the aas file?
I never got this process to work without doing that.
Either Sock did something different to the process I went through or I don't know why he missed that out; but for me every time I used -fixaas I've had to edit the first four entries in my aas file back to 45 41 41 53 before I can complete the process.




Top
                 

Veteran
Veteran
Joined: 28 May 2010
Posts: 194
PostPosted: 05-19-2011 09:51 AM           Profile Send private message  E-mail  Edit post Reply with quote


You know about the "You made my day" award? You just won it. Finally I can get some sleep tonight. Sock didn't include the hex editing part indeed.
I'll sum the whole process up for those who stumble across this thread, have the same problem and don't now what do do with all this fragmentary information. I'll write a German version somewhere else too, I guess a lot of people will be interested in this.


A quick fixaas tutorial
1. Let's pretend your map is called "q3level". This is the final map you want to play later on. Create a second version of it, with all unnecessary details removed. You can remove lights and sound effects too, bots don't need them. Keep it as simple as possible. Let's call this second version "q3level_botversion". This is the map that will be used to create an optimized aas file for bots.

2. Compile q3level_botversion with the -meta switch and run a BSPC compile with the switches -forcesidesvisible and -bsp2aas. You can use the following batch file to do so. Don't forget to change the paths to fit your own folder structure.

    "C:/Program Files/GtkRadiant 1.5.0/q3map2.exe" -meta "D:/Quake III Arena/baseq3/maps/q3level.map"
    "C:/Program Files/GtkRadiant 1.5.0/q3map2.exe" -meta "D:/Quake III Arena/baseq3/maps/q3level_botversion.map"
    "C:/Program Files/GtkRadiant 1.5.0/bspc.exe" -forcesidesvisible -bsp2aas "D:/Quake III Arena/baseq3/maps/q3level_botversion.map"

3. Rename the compiled aas file (q3level_botversion.aas) to "q3level.aas"

4. Now the .aas file needs to be connected to the q3level.bsp, because solely renaming it won't do the trick. First, q3map2 needs to fix the .aas. Then, you'll need to recompile your q3level.map. You should do the final compile for your q3level.map at this point, because you won't be able to do so later. You can use this batch file:

    "C:/Program Files/GtkRadiant 1.5.0/q3map2.exe" -fixaas "D:/Quake III Arena/baseq3/maps/q3level.map"
    "C:/Program Files/GtkRadiant 1.5.0/q3map2.exe" -meta "D:/Quake III Arena/baseq3/maps/q3level.map"
    "C:/Program Files/GtkRadiant 1.5.0/q3map2.exe" -vis "D:/Quake III Arena/baseq3/maps/q3level.map"
    "C:/Program Files/GtkRadiant 1.5.0/q3map2.exe" -light [add your own light parameters] "D:/Quake III Arena/baseq3/maps/q3level.map"

5. Once the compiler is done you'll need a hex editor. Don't panic, there are free ones available. Open the q3level.aas with the hex editor and change the first 8 digits to "45 41 41 53". Save the edited file.

6 Just one last compile left. We'll need to optimize the aas and recompile reachability with the commands -optimize and -reach. The batch looks like this:

    "C:/Program Files/GtkRadiant 1.5.0/bspc.exe" -optimize -reach "D:/Quake III Arena/baseq3/maps/q3level.aas"


And that's it. Have fun with your new simplified aas!



_________________
Portfolio - My German Quake 3 Tutorials - My Quake 3 maps


Top
                 
Quake3World.com | Forum Index | Level Editing & Modeling


Post new topic Reply to topic


cron
Quake3World.com
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group