Skip to content

Instantly share code, notes, and snippets.

@mikota
Last active September 24, 2023 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikota/5b0b562ae603712c25cc444b6e260678 to your computer and use it in GitHub Desktop.
Save mikota/5b0b562ae603712c25cc444b6e260678 to your computer and use it in GitHub Desktop.
AQtion mapping with Trenchbroom

AQtion mapping with Trenchbroom! Wow!

Getting Trenchbroom

Get the latest release. Good to watch this tutorial for basics of the tool: https://www.youtube.com/watch?v=gONePWocbqA

Configuring Trenchbroom

First, set the Quake 2 game path to the base AQtion folder in steam. Then go Configure engines -> Path, set that to the q2pro.exe executable in the base AQtion folder. Tux, the Linux mascot

In Trenchbroom, create a new Quake 2 map. In the bottom-right corner, under mods, double click on action to make it enabled.

After that it should work!

HD-Textures (OPTIONAL)

By default, Trenchbroom will use/show WAL textures. If you want your HD/external textures(png/jpg/tga) to show up in Trenchbroom, find the folder where Trenchbroom is installed. Go into \That-TrenchBroom-Install-Folder\games\Quake2\ and open GameConfig.cfg. Change line 15 in that file to:

"format": { "extensions": ["jpg","jpeg","png","tga"], "format": "image" },

Texture pack

Download here: https://files.aq2world.com/mirror/textures-hd.zip and extract into your Base AQtion\action\textures\ folder

Compiling with ericw-tools

Link to download: https://github.com/ericwa/ericw-tools/releases/tag/2.0.0-alpha2 It's important to pass the -q2bsp cmdline flag to qbsp. These are my buildscripts, configure them as you want:

FAST VIS, FAST LIGHT:

.\qbsp.exe -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -gamedir Aqtion\action -q2bsp .\%1.map
.\vis.exe -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -gamedir Aqtion\action -fast .\%1.bsp
.\light.exe -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -bounce 0 -gamedir Aqtion\action .\%1.bsp

FAST VIS, OK LIGHT:

.\qbsp.exe -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -gamedir Aqtion\action -q2bsp .\%1.map
.\vis.exe -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -gamedir Aqtion\action -fast .\%1.bsp
.\light.exe -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -gamedir Aqtion\action .\%1.bsp

RELEASE:

.\qbsp.exe -forcegoodtree -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -gamedir Aqtion\action -q2bsp %1.map
.\vis.exe -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -gamedir Aqtion\action %1.bsp
.\light.exe -basedir "C:\Program Files (x86)\Steam\steamapps\common\AQtion" -extra -soft -gamedir Aqtion\action %1.bsp

Compiling with q2tools220

Get the from here: https://github.com/qbism/q2tools-220 In Trenchbroom, go to Run -> Compile map. Set your shit up like this: That's it.

Specifics

Sunlight with q2tools220

"The best way i found is to add light as surface property with a fitting value in trenchbloom. The color of the light will be the same color as the color of the texture. So for instance, i added the light surface property with a pretty high value on the side skybox, and a lower value on the top skybox." -FreeBase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment