Post tutorial RSS Adding and editing your Quake 2 engine based game mod with the editor Quake Army Knife

This tutorial is made by my brother and me for those who want to understand better how to use the editor Quake Army Knife and modify her/his or an existing game mod.

Posted by on - Intermediate Starting a mod

Visit the site and forum of Quake Army Knife (Quark) for more info and downloads :

Hi all. In this text, the important programs, besides the editor, are highlighted with Bold blue text. If i don't explain all the things, that means that either i don't know all or Quark doesn't explain it all. Quark (Quake army knife) editor is beta and it is a good program nevertheless, so look further in their .htlm help file. Be sure to always give credit when credit is due and don't make profit from a mod.

Get used to Ctrl + C (Copy) and Ctr + V (Paste) and clicking and holding right and then the left mouse buttons and holding them together for zooming in and out in the editor windows. Than, right click again with the right mouse button, or your zoom will move forward and backward in the editor window.

The player model, in the 3d view of the editor will not be like in your mod, it will look like the ones in Quake 2.
Doesn't matter, because in "Quark - Options - Configuration - Quake 2 - Quake 2 command-line", you put Quake2.EXE +set game CTF, for example and when you run the map in game, the player will have the mod skin + weapons and such.

In the above image you can see the editor configuration, game path, txqbsp, timvis and arghrad are small programs which compile the map (light, models etc.). You can get them from Quark site. Quark only gets the information from your new mod, a virtual info of your models and textures.

When you extract your models and textures with Quark (from an existing mod) or change/save the modified .qrk file, it will be saved without pause between letters or you will give a temporary name (as QuArK is trying to overwrite it, but can't since it is still in use).

But if you want to use the editor, with your mod, get rid of the pauses ("Mymod" will be "My mod"), when you test and work with the editor further (because when the editor extracted the files from the mod and made the .qrk file, you made the mod "My mod"). When you can, choose "Save all" or save in another place.

The .qrk will have to be saved in "QuArK 6.6.0 Beta 6\addons", for example, but there should be anyway. When making a map you click "insert" using your keyboard, in the editor, the window with "New map items" will appear and you being able to see the extracted models and other info (like your prefabs).

You can add in this your own prefabs and/or entities. Don't worry if sometimes your textures folders will not show up sometimes by accessing "Face-view - choose texture" in Quark editor.

When you are done running your map with the editor, transform the map to bsp, with WinBSPC (if an error "parse entity", use Quark). Or better choose "Quake 2- Complete rebuild" in Quark, putting it then in a PAK file (a sort of a archive) made with Qped and running the folder of the mod with the "+set game CTF", for example, in the game shortcut.

If you have for example pak0 and pak1, you can mod them directly, but better make a pak2 and respecting the files and folders paths like in pak0 and pak1, put the new files in pak2 and the game will use those, which are modded.

Example :pak1 contains the path "Models-animals-crow.md2, crow.pcx". You now make a new .pak file, which will be pak2, which has only the files and folders you want to be modified, so that the game, using the new added modified files, will choose those, over pak1. So it will be "Models-animals-crownew.md2, crownew.pcx". All pak files have the extension PAK, so, pak1.PAK.

For editing many lines for a mod or your modified or new mod (some .qrk files may be very small in KB and we will talk later about maps and bsp files lines), in "My mod".qrk, opened with Quake army knife, click "+" in "Entity forms", click a model name (but don't, for now, click its "+"). On the right you will have :"General form options", "Point entity specific", "Brush entity specific".

Always hover with your mouse over a thing in "Entity forms" and a hint will appear (in the editor too). In the editor, you enter a entity for example and hover over the little book and you will get a text or when click on it. Put a text in "Help".

When you are working in a map and adding a "light" for example, click its book icon or hover above it to get info.

Let us see what every line does, by opening "Q2Entities.qrk" from "QuArK 6.6.0 Beta 6\addons" Quark folder :"General form options".

"General form options"
Put here, in your language, your little book text from Quark editor.

"Point entity specific"
Bounding box -4 -4 -4 4 4 4 4
The above line means that a blue box surrounds the model in the editor with a given "minimum X, minimum Y, minimum Z, maximum X, maximum Y, maximum Z" numbers, with a pause between the numbers. Some mods use 7 numbers instead of 6. The above number is such an example for a mod, in Quake 2 they are others. In "Bounding box", a number is formed from 2 numbers. Put a default numbers for all models, because you can't know what the developer used for every models. And than, watch in the level editor, that the model doesn't get stuck in the walls or somewhere else. Use the above numbers, which are about a quarter as the player model is.

The model that you see in 3d view, in the Quark editor. Leave this blank and you will not see anything in the editor 3d view. If you give a model path in here, when you put a model in the map, you will see the model.
Example (without the quotes): "models/items/ammo/bullets/medium/tris.md2"
You will find the path in the pak (a sort of a archive with the game files) file from your mod. You can use Qped to open pak files. I know that you must modify every model path, but in other mods, the paths are not that long.

Model Skin
Example (without the quotes):"models/npcs/girl2.pcx" This is for a mod. If the model has many skins you must modify your bsp file. But we will talk again later. If the model has only one skin, leave it blank.

"Brush entity specific"
Not implemented yet.

Saving your work in the editor by given it a name, as a qkm file, the files will remain the same. If you save as a map, two categores in the map will appear : "Entities" and "Map structure". All your prefabs, rooms, walls etc. will turn into many "poly" inside "Map structure". So do your work in a qkm file.

Upon doing "Complete rebuild" in Quark, the qkm or map file will be compiled as a bsp. See the windows end text in the editor to see where the bsp file has being saved. The bsp file lines can be modified further, because some texts will disappear (like skinum) when you enter the bsp file and check your entities. So, enter bsp file, do not click "Open in map editor". In the left you will see "entities" text.
Click it and modify further and than save the file. Because there, you will see other things (like skinum numbers).

Adding a custom model or editing an existing one :
Using a model that works in your mod and you have in a pak file a model that is not found and extracted by Quark, add in your Quark map, a Quake 2 target_spawner. At "target" give the path to your model from pak file (models/monsters/yourname.md2). Put any argument that you want, but fill them with something for example an argument "angles" -2.82 175.29 0 , by clicking the plus button, or the argument will dissapear (angles without quotes).

Than, rename it to your entity name, for example : monster_yourname. It will change its entity icon. Than, delete the argument "target" and "speed" if you have them. If the model has no sound, try and add some if you want in the pack file. Because if you just rename a existing monster, without using and renaming target_spawner to your model, it will lose its arguments and you will have to add them again.

Than, click "insert" on your keyboard to bring up "new map items" window and copy and paste your monster_yourname in your existing "monster_*entities". The sign * is always put by default. Leave it that way. So, now you have a new model, mannualy helping the editor to find the model he couldn't find. If everything works okay for a model, for the next one, just rename its title.

If you do not see the models in the editor 3d view, that is because they are not in your mod's .qrk file. Open the your mod's .qrk file, click + Entity forms, and copy a existing entity (closely related), paste it in the list, rename it to the correct new name.

Then, like above, write in the Bounding Box, Model with needed paths. Enjoy seeing them in the 3d view.
Be sure to ask permission and give credit to those who made the models if you work on an existing model !

If i helped you, just give me and my bro, credit. In the mean time, i will end for now the tutorial, stay tuned for more in the future.
This tutorial was corrected by my bro.

Roarkes Author
Roarkes - - 213 comments

Updated "Adding a custom model or editing an existing one"

Reply Good karma+1 vote
Roarkes Author
Roarkes - - 213 comments

If you do not see the models in the editor 3d view, that is because they are not in your mod's .qrk file. Open the your mod's .qrk file, click + Entity forms, and copy a existing entity (closely related), paste it in the list, rename it to the correct new name. Then, like above, write in the Bounding Box, Model with needed paths. Enjoy seeing them in the 3d view.

Reply Good karma+1 vote
Roarkes Author
Roarkes - - 213 comments

I have update it in the tutorial also.

Reply Good karma+1 vote
Guest - - 694,937 comments

Is there a chance to convert Clive Barkers Undying maps into GtkRadiant (Q3) any tools?

Reply Good karma Bad karma+1 vote
Roarkes Author
Roarkes - - 213 comments

Sorry, i don't make Unreal map levels, but this may help you. Just remember to give them credit and to the original map designer.

Reply Good karma+1 vote
Guest - - 694,937 comments

Hi folks....I've always wanted to join a bunch of the already made maps out there into one pak file. I'd like to know if this is possible with Quark. I understand I'd have to tell the pak( I assume) that when I leave one level, I want to end up in another. Can you point me in the right direction? IF Quark can't do this, I would imagine there is a program out there that can. Any help would be most welcome.



Reply Good karma Bad karma+1 vote
Roarkes Author
Roarkes - - 213 comments

Ask permission first. The game should read all the bsp from pak.

Reply Good karma+1 vote
Roarkes Author
Roarkes - - 213 comments

Depending on your mod, this may not work.

Reply Good karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.