|
|
|
Main Menu: Home Installation Game Modes Weapons Features Grenades Angels Armour History Changelog Server: Windows Linux Server Cvars Entities: .ent file How-To OffWorld Transport |
||||||
|
ENT File How-To written by Deacon<WOS> This method uses the latest version of LOX mod at the time of writing (version 1.12.8 Dec. 9 2005 build) utilizing the LOX .ent structure coded by Phlem. .ENT files tested on a Linux Quake 2 LOX Server, all work done on a Windows XP machine. This should also work on a Windows Quake 2 LOX Server that is using the latest LOX version 1.12.8.
In the first step we will extract the entity list from the map using entdump.exe. entdump is an entity listing tool created by R1Ch at http://www.r1ch.net You can download entdump below: http://r-1.ch/entdump.exeNext, create a working directory somewhere and copy the map you want to create an .ent file for and the entdump executable and place them both in your working area. Open up a command prompt and navigate to your working directory with the map and entdump files. Using Win2K and XP the command is "cmd" to open up a command prompt, click Start -----> Run then type in "cmd" then click OK. then type change directory "cd" to your working area, ie: cd \Quake2\working\Now that get entdump working and pull the entity list out of the map file by typing the following command: entdump.exe mapname.bsp > mapname.entThe above command will output the entity list to the file mapname.ent. This will be the file you will edit for placing additional weapons, health packs, etc. On to step two...
Now we need to find coordinates to place all these new items. Before you start make sure you have “set logfile 2” or “set logfile 3” in your autoexec.cfg. This will create a logfile that you will use later on to copy all the coordinates and paste then into your .ent file. Next, open up Quake2 and pull up the map you are working on. Now you will want to find places you want to place items and once you’ve found a spot to place something issue the command: viewposThis will display the coordinates in a (x, y, z) format, such as -282 -3397 88. You will be placing these numbers into your .ent file later on. To make things a little easier, bind a key to “viewpos” so that you don’t have to pull down the console everytime you want to place coordinates, but what ever is easiest is my moto. Next, run around the map and find a spot to place something, then hit your “viewpos” bind, next LABEL what you want to place there by typing in a say message such as “RL” for rocketlauncher, or “HL1” for health kit large 1, etc. This makes it much easier, at least for me, when you open up your qconsole.log file later on for editing the .ent file. Onto the last step…Tally Hooo!!
In the last step you will be editing the mapname.ent file to your liking and put in some new stuff with the coordinates you just got. Open up mapname.ent with notepad.exe, the good ol' default windows text editor. If you still have the command prompt open you can issue the following command to start editing your file: notepad.exe mapname.entIn this example we will be adding Rocket Launchers and Heath packs, but there are many things that you can add with a little research The format to follow for adding an entity is the following:
{
"origin" "x1 y1 z1"
"angle" "degree"
"classname" "some_weapon"
}
For example, if you want to place a rocket launcher you would add the following:
{
"origin" "-986 -881 16"
"classname" "weapon_rocketlauncher"
}
For a Heath Pack you would add:
{
"origin" "-1944 -1304 -88"
"classname" "item_health_large"
}
Once you are finished adding items, check for spelling errors and proper code structure, then save the file. All that’s left is upload your new .ent file to your server and place it in a directory named “entfiles” in the main Quake2 directory. For example: /user/quake2/entfilesor C:\Quake2\entfilesThen pull up the map on the server and you should see something like this: ------- Server Initialization ------- Entity file santa.ent found 0 entities inhibited 0 teams with 0 entities ------------------------------------- | |
| Quake 2 LOX Docs. - http://www.clanwos.org |