How to Mod PR Co-op Game Mode (Unsupported)

Information and tutorials related to modding BF2.
Post Reply
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

Sorry to hear, Cya.
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

I ran into a promblem while editing whathappen was I changed a certain weapon to the way I wanted, but when I get ingame my changes don't apply, so I go back to the file to check if the changes I made are still there and they are. So why do my changes not apply?

Promblem NO.2

This is a realy irratating promblem that makes me not able to edit alot of weapons and stuff.
Whenver I edit certain objects I save them afterwards so the effects will come about, but it dosn't work and this sign pops up....

Cannot create the C:\DOCUME~1\Dad\LOCALS~1\Temp\Rar$DI31.1016\c4_explosives.tweakfile.

Make sure the path and filename are correct.

First of all this message does not make any sence to me, heres why... The game is in drive E not drive C nothing to do with the game is in drive C, so why would this message show and what does it mean?
RAW HOMICIDAL
Posts: 350
Joined: 2008-09-08 22:51

Re: How to begin Modding your PR_SP

Post by RAW HOMICIDAL »

post the files up in code format.

and ill take a look
Image

[CENTER]"Just let'm Bleed" - Homicidal PRSP Tester

Click Here [thread=55667]Image[/thread] Click Here

[/CENTER]
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

NVM I just fixed it, thanks!

Question about kit tweaking:

This is on original BF2 unlocks 123 mod(I am making my own mod) I use your tutorial to edit unlocks123 or BF2 not PR, anyways here's my promblem(question), I try to edit kits in Unlocks123 like this...

Unlock123 medic kit

rem -------------------------------------
ObjectTemplate.addTemplate usrif_sa801
ObjectTemplate.addTemplate eurif_famas1
ObjectTemplate.addTemplate sasrif_g36e
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate medikit
ObjectTemplate.addTemplate defibrillator
ObjectTemplate.addTemplate RUPIS_Baghira
ObjectTemplate.addTemplate RURIF_AK101
ObjectTemplate.addTemplate ParachuteLauncher
ObjectTemplate.addTemplate UnlockMECMedic
ObjectTemplate.addTemplate UnlockMECMedic2
rem -------------------------------------

So I want to edit this kit by taking away all the guns and adding the ak47, but when I add a gun from another kit or another faction the game will crash during the loading of a map, here's what it looks like after I edit it...


rem -------------------------------------
ObjectTemplate.addTemplate RURIF_AK47
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate medikit
ObjectTemplate.addTemplate defibrillator
ObjectTemplate.addTemplate RUPIS_Baghira
ObjectTemplate.addTemplate ParachuteLauncher
ObjectTemplate.addTemplate UnlockMECMedic
ObjectTemplate.addTemplate UnlockMECMedic2
rem -------------------------------------

Is there something I am leaving out? Or is it just immpossible to edit kits using weapons from other kits?
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

But it works If I edit it like this...

rem -------------------------------------
ObjectTemplate.addTemplate usrif_sa801
ObjectTemplate.addTemplate eurif_famas1
ObjectTemplate.addTemplate sasrif_g36e
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate medikit
ObjectTemplate.addTemplate defibrillator
ObjectTemplate.addTemplate RUPIS_Baghira
ObjectTemplate.addTemplate RURIF_AK101
ObjectTemplate.addTemplate ParachuteLauncher
ObjectTemplate.addTemplate UnlockMECMedic
ObjectTemplate.addTemplate UnlockMECMedic2
rem -------------------------------------

and just take away the guns...

rem -------------------------------------
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate medikit
ObjectTemplate.addTemplate defibrillator
ObjectTemplate.addTemplate RUPIS_Baghira
ObjectTemplate.addTemplate RURIF_AK101
ObjectTemplate.addTemplate ParachuteLauncher
ObjectTemplate.addTemplate UnlockMECMedic
ObjectTemplate.addTemplate UnlockMECMedic2
rem -------------------------------------

If I do that then it dosn't crash during loading and I get the kit like it is without all the unlocks.
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

Never mind I figured out how... Whew! I need too do this myself before I post it...
ballard_44
Retired PR Developer
Posts: 1204
Joined: 2007-05-30 22:47

Re: How to begin Modding your PR_SP

Post by ballard_44 »

Whew! I need too do this myself before I post it
Yes, you do...You are starting to annoy me :p
kirby2315
Posts: 7
Joined: 2009-02-23 23:52

How do you get scimitar at firebase?

Post by kirby2315 »

OK, I have one. I have tried to mod the deployable firebase to spawn a scimitar. Whenever the time comes for vehicle spawn I get a CTD. I verified that I replaced the spawn object with the appropriate name in the realitconfiglocal.py but still CTD. I have no idea. Anyone?

Thanks.
RAW HOMICIDAL
Posts: 350
Joined: 2008-09-08 22:51

Re: How to begin Modding your PR_SP

Post by RAW HOMICIDAL »

well, ive never tried that.

but i really like the general idea of what your trying to do.

i will try to look into that tomorrow. in the mean time good luck!

@666planer

I know this is a thread for editing, but it really isnt for bf2 V.

Basically Im saying im not going to help when it comes to BF2 V. Only PR


and and Hopefully new updates tomorrow.
Image

[CENTER]"Just let'm Bleed" - Homicidal PRSP Tester

Click Here [thread=55667]Image[/thread] Click Here

[/CENTER]
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

I know raw, but I have just been using PR's edit tutatorial for BF2 because they are the same, when it comes to editing.
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

Yaaa! I finished my Mod.
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

By the way, Here's a promblem I can't solve that I've been working on ever since I started editing...

I edit Certain weapons and when I get ingame the changes I made don't apply and the weapon is its old crumy self. So I go, "Hmmm? I wonder why that didn't work" and I exit the game and check the file to see if the weapon file includes the changes, when I see the file is the exact way I edit it, but it dosn't apply ingame, it confuses me.... Anybody have an answer?

Note: For those of you who say, "Oh this person edits Bf2 not PR!, we aren't gonna help him!" Well this is PR and BF2 that this happens.
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

I know I posted a similar promblem like this, but that one had a simple answer this one dosn't and has a different solution.
RAW HOMICIDAL
Posts: 350
Joined: 2008-09-08 22:51

Re: How to begin Modding your PR_SP

Post by RAW HOMICIDAL »

@666planer are you trying to mess with C4?

edit: @ kirby, could you plz let me see your file.
just throw it up as a post.
Image

[CENTER]"Just let'm Bleed" - Homicidal PRSP Tester

Click Here [thread=55667]Image[/thread] Click Here

[/CENTER]
666planer
Posts: 218
Joined: 2009-03-06 01:56

Re: How to begin Modding your PR_SP

Post by 666planer »

Yeah raw the C4 is one of the items it won't let me edit because when ever I save it it says it can't find some file..., but thats not the main Promblem I am focusing on.
Darkcloak2
Posts: 533
Joined: 2009-01-20 20:45

Re: How to begin Modding your PR_SP

Post by Darkcloak2 »

For altering index numbers, iif the .con files like the Type 88 doesn't exist, will altering index numbers still work? For example, I'm trying to give the Type 88 an index number of 2 and give that to the US_officer_para but the game CTD's while loading objects.

Code: Select all

rem *** Generated with Bf2Editor.exe [created: 2005/4/5 15:44]
GeometryTemplate.setMaterialReflectionScale 0 0 1 2
GeometryTemplate.setMaterialReflectionScale 1 0 0 0.25
GeometryTemplate.setMaterialReflectionScale 1 0 1 2
GeometryTemplate.setMaterialReflectionScale 1 1 1 2
GeometryTemplate.compressVertexData 1
GeometryTemplate.maxTextureRepeat 8
ObjectTemplate.activeSafe GenericFireArm chsni_type88_idx2
ObjectTemplate.creator MBA-1:mba
ObjectTemplate.modifiedByUser dsu
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.castsDynamicShadow 1
ObjectTemplate.cullRadiusScale 10
.
.
.
rem -------------------------------------
ObjectTemplate.animationSystem1P Objects/Weapons/Handheld/chsni_type88/AnimationSystem1p.inc
ObjectTemplate.animationSystem3P Objects/Weapons/Handheld/chsni_type88/AnimationSystem3p.inc
ObjectTemplate.projectileTemplate 580_42
ObjectTemplate.velocity 970
ObjectTemplate.itemIndex 2
ObjectTemplate.delayToUse 2.9

ObjectTemplate.activeSafe Sound S_chsni_type88_Fire1P
ObjectTemplate.modifiedByUser dsu
ObjectTemplate.soundFilename "objects/weapons/handheld/chsni_type88/sounds/type88_fire_1p_outdoor.wav"
ObjectTemplate.loopCount 0
ObjectTemplate.is3dSound 0
ObjectTemplate.stopType 1
ObjectTemplate.volume 1
ObjectTemplate.pitch 1
ObjectTemplate.pan 0.5
ObjectTemplate.reverbLevel 1
ObjectTemplate.position -0.00022652/0.013967/0.524617
EDIT : Should I put Chsni_type88_idx2.tweak into a new folder by itself?
Last edited by Darkcloak2 on 2009-03-29 11:20, edited 1 time in total.
RAW HOMICIDAL
Posts: 350
Joined: 2008-09-08 22:51

Re: How to begin Modding your PR_SP

Post by RAW HOMICIDAL »

i would retry that but instead of the type 88 sniper, use the russian sv98 sniper.

(they are the same rifle).

also ive noticed some odd things happen, it seems like some weapons will not go into the second weapon slot, and dont even waste your time trying to replace the knife with something else other than a knife. idk why but ive never had anyluck.
Image

[CENTER]"Just let'm Bleed" - Homicidal PRSP Tester

Click Here [thread=55667]Image[/thread] Click Here

[/CENTER]
RAW HOMICIDAL
Posts: 350
Joined: 2008-09-08 22:51

Re: How to begin Modding your PR_SP

Post by RAW HOMICIDAL »

darkcloak2 wrote:EDIT : Should I put Chsni_type88_idx2.tweak into a new folder by itself?
No, you should never do that unless you want to go in and change the directory for the weapon. (The way i showed you is much easyier and you have less folders in the weapons subfolder.)
Image

[CENTER]"Just let'm Bleed" - Homicidal PRSP Tester

Click Here [thread=55667]Image[/thread] Click Here

[/CENTER]
kirby2315
Posts: 7
Joined: 2009-02-23 23:52

Re: How to begin Modding your PR_SP

Post by kirby2315 »

RAW HOMICIDAL wrote:and dont even waste your time trying to replace the knife with something else other than a knife. idk why but ive never had anyluck.
I did get the MP5 to work in index slot 1 without any problems.

Below is the section from realitconfiglocal.py that I tried to replace to get a scimitar to spawn at forward outposts. CTD everytime.

#
# The vehicle templates to be spawned at the forward outposts
# Default is usjep_hmmwvm2, gb_jeep_landrover, jep_nanjing, jep_vodnik and mil_jeep_technical
OUTPOST_VEHICLES = {
'us': 'gb_tnk_scimitar_cage',
'usa': 'usjep_hmmwvm2',
'gb': 'gb_jeep_landrover',
'ch': 'jep_nanjing',
'mec': 'jep_vodnik',
'chinsurgent': 'mil_jeep_technical'
}
#
#
# Spawn time for forward outpost vehicles
# Default is 600 seconds
OUTPOST_VEHICLES_INTERVAL = 20
Carlez_1
Posts: 33
Joined: 2008-09-03 16:56

Re: How to begin Modding your PR_SP

Post by Carlez_1 »

new question:
How would i go about editing the area attack data? I would like to change the artillery reloading times in order to use the area attack more often. What should be altered in what files?
Post Reply

Return to “Modding Tutorials”