Citizen One
한국 공주
+338|7110|South Korea.
Today I made a copy of the BF2 folder to make unlocks primary weapons, like the L96A1 primary for the USMC so I could use it in single player, so then I thought, hmmmm, I wonder if I can change kits as well? Like for example, the MEC medic would carry an AK-47 rather than an AK-101, just for the hell of it, upon searching through the objetcs folder, I found a line in a random file that said "Spawn_Mec_Medic" kit, etc or something along those lines, I opend the chinese one as well, and started to replace all lines with "AK-101" to "AK-47" I was confident that in no time I would be holding a nice AK-47 in a mecs hand, like in specal forces, but alas, when I loaded a map the game crashed to the desktop, I realy want to do this simple change, so if anyone has experience in changing files in games, or even modding for that matter, or using the BF2 edditor, please help me out. Thanks.
Brikiin118
Member
+1|7082
Dude, don't mess with game files, I tried something like that once, and it messed up the game ect.

Try to uninstall the game, delete all bf2 files, then re-install it, if that dosn't work, take a hammerr and smash your bf2 disc, buy a new one and just do an account recovery.

It will do that always if you have the same disk, because the disc stores all those corrupt files, and puts them back if you reinstall them, so new disc=uncorrupt files

Try that, and see if it works, if not, tell me and I'll ask my brother, he's some sort of uber-hacker nerd guy
Citizen One
한국 공주
+338|7110|South Korea.

KoreanPrincess wrote:

Today I made a copy of the BF2 folder
It wont mess anything up, because the game thinks it's a mod.
_j5689_
Dreads & Bergers
+364|7178|Riva, MD
http://files.bf2s.com/details.php?file=261

Unlocks and EF weapons mod.
Citizen One
한국 공주
+338|7110|South Korea.
I dont want that, I want to swap the AK-101'S for AK-47'S

Last edited by Citizen One (2006-04-02 14:18:20)

Brikiin118
Member
+1|7082
Why? there is not that much difference...
_j5689_
Dreads & Bergers
+364|7178|Riva, MD
Wasn't there a file that allowed you to create your own mods or something?
Citizen One
한국 공주
+338|7110|South Korea.

_j5689_ wrote:

Wasn't there a file that allowed you to create your own mods or something?
BF2 Editor, I dont know how to use it...
FFOLKES
Member
+39|7223
Sure you can but you would be better off just adding the weapon to one of the open kit indexes.

For example, I edited the US_Sniper.con and each sniper rifle tweak index so I can play with all three rifles.

US_Sniper.con

ObjectTemplate.addTemplate USPIS_92FS_silencer
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate USMIN_Claymore
ObjectTemplate.addTemplate kni_knife
ObjectTemplate.addTemplate ussni_m95_barret
ObjectTemplate.addTemplate gbrif_l96a1
ObjectTemplate.addTemplate UnlockUSSniper
ObjectTemplate.addTemplate UnlockUSSniper2
ObjectTemplate.addTemplate ParachuteLauncher
ObjectTemplate.addTemplate USRIF_M24

In game here are my options now:
1 Knife
2 Pistol
3 M24 Sniper Rifle
4 Grenade
5 Claymore
6 M95 Sniper Rifle
7 L96A1 Sniper Rifle
8 Unassigned
9 Parachute

By default the M95 and L96A1 tweak files have an ObjectTemplate.itemIndex 3. You have to change the index to the open index file. So the M95 now is changed to ObjectTemplate.itemIndex 6 whereas the L96A1 is changed to ObjectTemplate.itemIndex 7

You can do this with all the kits/weapon tweak files. However, you are maxed out with a total of 9 indexes.
Citizen One
한국 공주
+338|7110|South Korea.

FFOLKES wrote:

Am I god?

Wow, im gona try that now, btw will this also work in the sence that I could add special forces only weapons to normal bf2? Like add template Scar H, or whatever.

Last edited by Citizen One (2006-04-02 15:01:03)

FFOLKES
Member
+39|7223

Citizen One wrote:

b]
Wow, im gona try that now, btw will this also work in the sence that I could add special forces only weapons to normal bf2? Like add template Scar H, or whatever.[/b][/color]
Correct.  My US_Assault.con kit has BF2, SF, and Euro Force assault rifles. 

I also added a 2nd zoom for each gun.
lord_tyler_486
Member
+54|7213|Upper Franconia
An easy way:

Go to  ...../EA GAMES/Battlefield 2/mods/bf2/Levels
Make a backup of Strike_at_Karkand or whatever

Then go to the original Strike_at_Karkand directory and open server.zip, in that archive, open init.con with the notepad.

Change the armies from MEC to CH

for example:



OLD:


rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor

run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\Strike_at_Karkand\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con

else

run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levels\Strike_at_Karkand\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con

endIf

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "US"

gameLogic.setTeamLanguage 1 "Mec"
gameLogic.setTeamLanguage 2 "English"

gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_mec"
gameLogic.setTeamFlag 2 "flag_us"

gameLogic.setKit 1 0 "MEC_Specops" "mec_light_soldier"
gameLogic.setKit 2 0 "US_Specops" "us_light_soldier"

gameLogic.setKit 1 1 "MEC_Sniper" "mec_light_soldier"
gameLogic.setKit 2 1 "US_Sniper" "us_light_soldier"

gameLogic.setKit 1 2 "MEC_Assault" "mec_heavy_soldier"
gameLogic.setKit 2 2 "US_Assault" "us_heavy_soldier"

gameLogic.setKit 1 3 "MEC_Support" "mec_heavy_soldier"
gameLogic.setKit 2 3 "US_Support" "us_heavy_soldier"

gameLogic.setKit 1 4 "MEC_Engineer" "mec_light_soldier"
gameLogic.setKit 2 4 "US_Engineer" "us_light_soldier"

gameLogic.setKit 1 5 "MEC_Medic" "mec_light_soldier"
gameLogic.setKit 2 5 "US_Medic" "us_light_soldier"

gameLogic.setKit 1 6 "MEC_AT" "mec_heavy_soldier"
gameLogic.setKit 2 6 "US_AT" "us_heavy_soldier"

rem -----------------------------------------------------------------------------

gameLogic.setBeforeSpawnCamera -203/157/-27 -28/-12/0

if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------

GameLogic.MaximumLevelViewDistance 140

rem -----------------------------------------------------------------------------

gameLogic.setDefaultNumberOfTicketsEx 16 1 100
gameLogic.setDefaultNumberOfTicketsEx 16 2 110
gameLogic.setDefaultNumberOfTicketsEx 32 1 200
gameLogic.setDefaultNumberOfTicketsEx 32 2 220
gameLogic.setDefaultNumberOfTicketsEx 64 1 300
gameLogic.setDefaultNumberOfTicketsEx 64 2 330
gameLogic.setDefaultNumberOfTicketsEx 128 1 150
gameLogic.setDefaultNumberOfTicketsEx 128 2 250
gameLogic.setDefaultTimeToNextAIWave 0
gameLogic.setTicketLossAtEndPerMin 200
gameLogic.setTicketLossPerMin 1 12
gameLogic.setTicketLossPerMin 2 6

rem -----------------------------------------------------------------------------

rem -----------------------------------------------------------------------------

renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1





NEW:

rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor

run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\Strike_at_Karkand\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con

else

run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levels\Strike_at_Karkand\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con

endIf

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "US"

gameLogic.setTeamLanguage 1 "Mec"
gameLogic.setTeamLanguage 2 "English"

gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_mec"
gameLogic.setTeamFlag 2 "flag_us"

gameLogic.setKit 1 0 "MEC_Specops" "mec_light_soldier"
gameLogic.setKit 2 0 "US_Specops" "us_light_soldier"

gameLogic.setKit 1 1 "MEC_Sniper" "mec_light_soldier"
gameLogic.setKit 2 1 "US_Sniper" "us_light_soldier"

gameLogic.setKit 1 2 "CH_Assault" "mec_heavy_soldier"
gameLogic.setKit 2 2 "US_Assault" "us_heavy_soldier"

gameLogic.setKit 1 3 "MEC_Support" "mec_heavy_soldier"
gameLogic.setKit 2 3 "US_Support" "us_heavy_soldier"

gameLogic.setKit 1 4 "MEC_Engineer" "mec_light_soldier"
gameLogic.setKit 2 4 "US_Engineer" "us_light_soldier"

gameLogic.setKit 1 5 "CH_Medic" "mec_light_soldier"
gameLogic.setKit 2 5 "US_Medic" "us_light_soldier"

gameLogic.setKit 1 6 "MEC_AT" "mec_heavy_soldier"
gameLogic.setKit 2 6 "US_AT" "us_heavy_soldier"

rem -----------------------------------------------------------------------------

gameLogic.setBeforeSpawnCamera -203/157/-27 -28/-12/0

if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------

GameLogic.MaximumLevelViewDistance 140

rem -----------------------------------------------------------------------------

gameLogic.setDefaultNumberOfTicketsEx 16 1 100
gameLogic.setDefaultNumberOfTicketsEx 16 2 110
gameLogic.setDefaultNumberOfTicketsEx 32 1 200
gameLogic.setDefaultNumberOfTicketsEx 32 2 220
gameLogic.setDefaultNumberOfTicketsEx 64 1 300
gameLogic.setDefaultNumberOfTicketsEx 64 2 330
gameLogic.setDefaultNumberOfTicketsEx 128 1 150
gameLogic.setDefaultNumberOfTicketsEx 128 2 250
gameLogic.setDefaultTimeToNextAIWave 0
gameLogic.setTicketLossAtEndPerMin 200
gameLogic.setTicketLossPerMin 1 12
gameLogic.setTicketLossPerMin 2 6

rem -----------------------------------------------------------------------------

rem -----------------------------------------------------------------------------

renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1




https://img88.imageshack.us/img88/9736/screen0064et.th.png
this is an AK47 in the hand of an heavy mec soldier on karkand.


This does also allow you to use SF armies on other maps; you could make a NAVY SEAL vs INSURGENT war on Karkand for example.

Last edited by lord_tyler_486 (2006-04-02 23:47:23)

stryyker
bad touch
+1,682|7181|California

Citizen One wrote:

I dont want that, I want to swap the AK-101'S for AK-47'S
if the weapon isnt coded for that map, i dont think it will work
FFOLKES
Member
+39|7223

stryyker wrote:

Citizen One wrote:

I dont want that, I want to swap the AK-101'S for AK-47'S
if the weapon isnt coded for that map, i dont think it will work
Yes it does. 

I played Strike at Karkand using EF weapons along with my BF2 standard & unlocked weapons.  Each kit has 3 choices for primary gun. 

My suggestion allows you to add/swap equipment in a kit even if you don't have SF or EF

Board footer

Privacy Policy - © 2025 Jeff Minard