- 1 How do I keep bots from using a vehicle?
- 2 How would I get bots to man and stay on stationary weapons? -
- 3 How to get bots to use Landing Zones?
- 4 How to stop Commander Spam?
- 5 How to stop Bot's grenade spam?
- 6 How can I generate just the infantry, or vehicle navmesh?
- 7 How can I disable bots attacking with defibrillator?
- 8 The AI commander won't use the arty or supply drop
- 9 I have added some stationary weapons to my map, I am able to enter them, but not exit them
- 10 How do I open an existing map in the editor? I get a "can't find init.con" error!
- 11 I see text in the water.
- 12 How can I make a flag have multiple spawn locations?
- 13 How do I add a custom sky to my map?
- 14 How to increase the view distance?
- 15 How do I change where the 3rd person camera is?
- 16 I moved a weapon/vehicle from one mod to another, and the HUD files
- 17 What are the proper file format settings for HUD pics?
- 18 How do I change which camera views are available in a vehicle?
- 19 How do I convert music/sounds to BF2's .ogg file format? / my .ogg files wont work!
- 20 Weapon sound not playing or looping correctly?
- 21 How do I increase the distance that a gunshot can be heard?
- 22 I edited a skin, and now it's very shiny
- 23 What are the proper file format settings for ground textures?
- 24 I edited a weapon/vehicle, and now there are no projectiles/it won't fire
- 25 How do you edit the rate of fire of a weapon?
- 26 How can I make it take longer to make a weapon overheat?
- 27 The dummy projectiles on my vehicle don't reappear after the weapon reloads
- 28 I went to fire my weapon and got an error "No barrels configured for this firearm"
- 29 How do I get the ejected shells to stay longer?
- 30 How do I make dead bodies/vehicle wrecks stay longer?
- 31 How do I remove the "Need Players to start" message?
- 32 How do I make soldiers walk/run faster?
- 33 I've added more than 9 weapons/items to a kit, and now I get random CTD?
- 34 I'm seeing black flickering on the textures of weapons/buildings/etc!
How do I keep bots from using a vehicle?
You'll need to edit the "objects/vehicles/(air,land,sea)/(name-of-vehicle)/objects.ai" file for the vehicle, and edit the line "aiTemplate.basicTemp #", and change the number to 0. Some times there's a spawn point that spawns the bot into the vehicle, you'll need to edit the map to get rid of those.
How would I get bots to man and stay on stationary weapons? -
Try increasing the temperature for the weapon in the "aiTemplate.basicTemp #" line in the object.ai file.
How to get bots to use Landing Zones? 
Landing Zone AI in BF1942 was removed from the Refractor game engine for BF2. The only option is to set up Strategic Areas at Beaches. BF2 bots can exit a vehicle when they get to a strategic area, but they are not capable of using the landing craft door like in BF1942.
How to stop Commander Spam? 
One of the uncapable flags in the map was 2-way neighbored. The rule for neighboring uncapable flags is you 1 way neighbor the other flag to the uncap. It's useful to remember, "My neighbor comes to me" when neighboring SA.
How to stop Bot's grenade spam? 
go into the "objects/weapons/handheld/(name of weapon)/AI/weapons.ai file", and change the line"weaponTemplate.setStrength Infantry #". Set the number to 0, and they wont spam grenades again.
In the /battlefield2/navmesh/navmeshControl.py file, Change the "modes = [ "Infantry", "Vehicle"]" line, and delete either the "infantry", or "vehicle" part, depending on which mesh you want gened.
How can I disable bots attacking with defibrillator?
To stop or decrease the Medic bots from attacking the enemy with the defibrillator versus using their knife during a melee you need to do the following: 1. Edit the weapons.ai file for both the knife and the defibrillator, 2. Reverse the weaponTemplate.setStrengths from the defibrillator to the knife. For example: weaponTemplate.setStrength Infantry 5.0 (Knife) weaponTemplate.setStrength Infantry 3.0 (Defibrillator).
The AI commander won't use the arty or supply drop 
This is caused by a bug in the 1.5 patch for BF2. Only way to fix it is to go back to v1.41, there is nothing else you can do.
I have added some stationary weapons to my map, I am able to enter them, but not exit them 
You need to move the weapon higher up, it's probably too low.….the exit for the weapon is blocked by something.
How do I open an existing map in the editor? I get a "can't find init.con" error!
You Need to unzip the client.zip and server.zip for the map, into the map's folder. You should end up with a path like this, ".…/levels/(map name)/init.con" NOT ".…/levels/(map name)/server/init.con"
I see text in the water. 
You need to disable the autoload of the singleplayer plugin and quit/restart the editor. Then re-do your envmaps.
How can I make a flag have multiple spawn locations? 
in the editor, select a spawn point, then in the tweaker bar change the group number.
How do I add a custom sky to my map?
You need to put the sky texture, saved as a 2048x512 .dds file, into the client.zip, then in the sky.con, change the line "Skydome.skyTexture levels/(name-of-map)/(name-of-sky-texture)" to point to your new sky. Then go and change the other sky settings to match your new sky.
How to increase the view distance?
To change the view distance in a map, there are 2 main controls. The "GameLogic.MaximumLevelViewDistance ###" in the init.con in the map's server.zip, and the "Renderer.fogStartEndAndBase #/#/#/#" line in the sky.con, which is also in the map's server.zip.
How do I change where the 3rd person camera is? 
you need to change the settings in the lines, "ObjectTemplate.chaseDistance #", "ObjectTemplate.chaseAngle #", and "ObjectTemplate.chaseOffset #/#/#" in the camera's template in the vehicle's .tweak file.
I moved a weapon/vehicle from one mod to another, and the HUD files
You need to save the HUD pics as .DDS files, the game will not read .tga files. Also, see below.…
What are the proper file format settings for HUD pics? 
You need to save the HUD pics as an "ARGB 184.108.40.206 with no mipmaps".DDS file. You could also rename the file from .tga to .DDS, however this can cause problems.
How do I change which camera views are available in a vehicle? 
In the camera's template in the vehicle's .tweak file, you can use the lines, "ObjectTemplate.CVMNose #, ObjectTemplate.CVMChase #, ObjectTemplate.CVMFrontChase #, ObjectTemplate.CVMFlyBy #" to turn on/off the different camera views. 1 = on, 0 = off.
How do I convert music/sounds to BF2's .ogg file format? / my .ogg files wont work! 
you need to download the BF2 Sound Tools. Then save your sound as a .wav file, and drag/drop your sound file onto the "oggenc.exe". That will create a .ogg file that BF2 can use.
Weapon sound not playing or looping correctly? 
you need to set region markers in the sound file and make sure the sound template is setup correctly
How do I increase the distance that a gunshot can be heard?
you will find the 2 lines in the 3p firing sound area of the weapon's .tweak file. "ObjectTemplate.minDistance #" and "ObjectTemplate.halfVolumeDistance #" Change those numbers to what you want, like, min 15, max 30.
I edited a skin, and now it's very shiny 
You lost the alpha channel for the texture. The alpha channel controls how shiny a texture is, white = shiny, black = dull. You'll have to put the original alpha back into the texture, or make a new one, and resave the texture as "DTX5, ARGB, 8 bpp, | interpolated alpha", with mipmaps set to "all".
What are the proper file format settings for ground textures? 
For colormap textures, you need to create a "512x512, 220.127.116.11 ARGB with no MIP-maps".DDS texture. For detail texture, you need to create a "512x512, DXT1 RGB no alpha, with MIP-maps set to "all".DDS texture.(I'm not sure about the detail texture settings. If I'm wrong, correct me!)
I edited a weapon/vehicle, and now there are no projectiles/it won't fire 
You need to make sure the weapon is properly setup to use a projectile that exists.
How do you edit the rate of fire of a weapon? 
In the weapon's template in the .tweak file for the weapon or vehicle, this line "ObjectTemplate.fire.roundsPerMinute #" controls the ROF. *note* the RPM MUST be divisible by 1800(the frames per min the physics engine runs at). If it's not, the game will automatically round the number up. Example, if you try to use 550 RPM, the game will use 600 instead.
How can I make it take longer to make a weapon overheat? 
the 2 lines, "ObjectTemplate.heatAddWhenFire #" and "ObjectTemplate.coolDownPerSec #" control the overheating.
The dummy projectiles on my vehicle don't reappear after the weapon reloads 
You need to give the weapon 2 or more mags for the dummy projectiles to reappear.
I went to fire my weapon and got an error "No barrels configured for this firearm" 
Check the Weapon's TWEAK file in the SinglefireComp section. Make sure it says ObjectTemplate.createComponent SingleFireComp If it's set up for MultifireComp be sure you have both inputs (standard fire and alt fire) properly setup for the weapon. Most weapons should use SinglefireComp and not MultifireComp.
How do I get the ejected shells to stay longer? 
the empty shell effects are in "objects_server.zip/effects/weapons/shellejections/geometry/" folder. Open one of them, and change the line "ObjectTemplate.timeToLive CRD_UNIFORM/#/#/#" to change how long it lives.
How do I make dead bodies/vehicle wrecks stay longer? 
Edit the "TimeStayAsWreck #" in the .tweak file for what ever it is. -1 will make it stay forever.
How do I remove the "Need Players to start" message? 
Edit the "My Documents/Battlefield2/Profiles/(profile)/ServerSettings.con". Edit the line "sv.numPlayersNeededToStart #" line to have a 1. It might be a good idea to mark the file as "read only" when your done.
How do I make soldiers walk/run faster? 
edit the file, "Objects\soldiers\Common\Common.con". The "phy-soldier-speed-factor #" line controls the walk/run speed. You can change jump height, and several other things in this file. There are other movement related settings in the "objects/soldiers/(team-name)/(soldier-name).con"
I've added more than 9 weapons/items to a kit, and now I get random CTD?
There is no known fix.
I'm seeing black flickering on the textures of weapons/buildings/etc! 
This is called the "Z-fighting bug" and there is currently no known 100% fix. Best current remedy is "You could try "renderer.tweakNearPlane1p 0.1" and "renderer.tweakFarPlane1p 5" just add these to the Init.con of the mod. The default values are "renderer.tweakNearPlane1p 0.04" and "renderer.tweakFarPlane1p 15". Higher values for the near plane will allow better Z buffer precision (-> less Z-fighting) but too high will cause near culling and for the far plane lower values are better but too low will cause far culling."