need help with mod editing

Suggestions and feedback pertaining to Project Reality Single Player.
Locked
666planer
Posts: 218
Joined: 2009-03-06 01:56

need help with mod editing

Post by 666planer »

NOTE: This is BF2 unlocks123 mod, not PR that I am editing, but I get the same promblems when I edit PR. BF2 and PR are also the same when it comes to editing just to let you know...

If you have read past that first couple sentance and still show some intrest I am surprised, heres the promblem(at least one of them)

Promblem 1. Kit editing:
Intro: I am editing alot of different kits from different factions, mainly the MEC, giving them the AK 47, I this section I will be editing the medic of the MEC of the Ffolkes Unlocks123... follow closley...

Procedure:

__________________________________________________________________________

ObjectTemplate.create Kit CH_Medic
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.kitType Medic
ObjectTemplate.aiTemplate Medic
ObjectTemplate.geometry CH_Kits
ObjectTemplate.geometry.kit 4
ObjectTemplate.geometry.dropGeom 11
ObjectTemplate.setNetworkableInfo KitInfo
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.abilityRestoreRate 0.05
ObjectTemplate.abilityInVehicleRadius 7
ObjectTemplate.abilityInVehicleStrength 0.25
ObjectTemplate.abilityInVehicleMaterial 73
ObjectTemplate.unlockIndex 3
ObjectTemplate.cullRadiusScale 2.4

rem -------------------------------------
ObjectTemplate.addTemplate eurif_famas1 <------I took out the sa80 and the g36e
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate medikit
ObjectTemplate.addTemplate defibrillator
ObjectTemplate.addTemplate chpis_qsz92
ObjectTemplate.addTemplate RURIF_AK47 <------I took out the AK101 and added the AK47, which worked fine...
ObjectTemplate.addTemplate ParachuteLauncher
ObjectTemplate.addTemplate UnlockCHMedic
ObjectTemplate.addTemplate UnlockCHMedic2
rem -------------------------------------

ObjectTemplate.createComponent Ability
ObjectTemplate.ability.hasHealingAbility 1

ObjectTemplate.createComponent AbilityHud
ObjectTemplate.abilityHud.healingSound S_Heal
ObjectTemplate.abilityHud.repairingSound S_Repair
ObjectTemplate.abilityHud.ammoSound S_Resupply

ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName "HUD_TEXT_MENU_SPAWN_KIT_MEDIC"
ObjectTemplate.vehicleHud.miniMapIcon "Ingame\Kits\Icons\kit_Medic_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon "Ingame\Kits\Icons\kit_Medic.tga"
ObjectTemplate.vehicleHud.spottedIcon "Ingame\Player\Icons\Minimap\mini_Soldier.dds"
ObjectTemplate.vehicleHud.pantingSound S_SprintBreath
ObjectTemplate.vehicleHud.injurySound S_Injury
ObjectTemplate.vehicleHud.vehicleType 7

ObjectTemplate.sprintStaminaDissipationFactor 0.2

rem ---BeginComp:HelpHud ---
ObjectTemplate.createComponent HelpHud
ObjectTemplate.HelpHud.helpStringKey "HUD_HELP_KIT_MEDIC_inVehicle"
ObjectTemplate.HelpHud.helpSoundKey "HUD_HELP_KIT_MEDIC_inVehicle"
rem ---EndComp ---

rem ---BeginComp:Radio ---
ObjectTemplate.createComponent Radio
ObjectTemplate.Radio.spottedMessage "infantry_spotted"
rem ---EndComp ---

ObjectTemplate.create ItemContainer UnlockCHMedic
ObjectTemplate.addTemplate usrif_sa80
ObjectTemplate.unlockLevel 1

ObjectTemplate.create ItemContainer UnlockCHMedic2
ObjectTemplate.addTemplate sasrif_g36e
ObjectTemplate.replaceItem RURIF_AK47 <-------Not to sure if I had to add this or not. (it replaced the AK101)
ObjectTemplate.replaceItem usrif_sa80
ObjectTemplate.unlockLevel 2

_________________________________________________________________________
Now that you have seen what I have done, let me show what I want to do and can't do...



ObjectTemplate.create Kit CH_Medic
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.kitType Medic
ObjectTemplate.aiTemplate Medic
ObjectTemplate.geometry CH_Kits
ObjectTemplate.geometry.kit 4
ObjectTemplate.geometry.dropGeom 11
ObjectTemplate.setNetworkableInfo KitInfo
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.abilityRestoreRate 0.05
ObjectTemplate.abilityInVehicleRadius 7
ObjectTemplate.abilityInVehicleStrength 0.25
ObjectTemplate.abilityInVehicleMaterial 73
ObjectTemplate.unlockIndex 3
ObjectTemplate.cullRadiusScale 2.4

rem -------------------------------------
ObjectTemplate.addTemplate eurif_famas1 <----- Can I take this gun away and put, say the Ak101 here so I have the AK101 and AK47?
ObjectTemplate.addTemplate USHGR_M67
ObjectTemplate.addTemplate medikit
ObjectTemplate.addTemplate defibrillator
ObjectTemplate.addTemplate chpis_qsz92
ObjectTemplate.addTemplate RURIF_AK47
ObjectTemplate.addTemplate ParachuteLauncher
ObjectTemplate.addTemplate UnlockCHMedic
ObjectTemplate.addTemplate UnlockCHMedic2
rem -------------------------------------

ObjectTemplate.createComponent Ability
ObjectTemplate.ability.hasHealingAbility 1

ObjectTemplate.createComponent AbilityHud
ObjectTemplate.abilityHud.healingSound S_Heal
ObjectTemplate.abilityHud.repairingSound S_Repair
ObjectTemplate.abilityHud.ammoSound S_Resupply

ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName "HUD_TEXT_MENU_SPAWN_KIT_MEDIC"
ObjectTemplate.vehicleHud.miniMapIcon "Ingame\Kits\Icons\kit_Medic_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon "Ingame\Kits\Icons\kit_Medic.tga"
ObjectTemplate.vehicleHud.spottedIcon "Ingame\Player\Icons\Minimap\mini_Soldier.dds"
ObjectTemplate.vehicleHud.pantingSound S_SprintBreath
ObjectTemplate.vehicleHud.injurySound S_Injury
ObjectTemplate.vehicleHud.vehicleType 7

ObjectTemplate.sprintStaminaDissipationFactor 0.2

rem ---BeginComp:HelpHud ---
ObjectTemplate.createComponent HelpHud
ObjectTemplate.HelpHud.helpStringKey "HUD_HELP_KIT_MEDIC_inVehicle"
ObjectTemplate.HelpHud.helpSoundKey "HUD_HELP_KIT_MEDIC_inVehicle"
rem ---EndComp ---

rem ---BeginComp:Radio ---
ObjectTemplate.createComponent Radio
ObjectTemplate.Radio.spottedMessage "infantry_spotted"
rem ---EndComp ---

ObjectTemplate.create ItemContainer UnlockCHMedic
ObjectTemplate.addTemplate usrif_sa80
ObjectTemplate.unlockLevel 1

ObjectTemplate.create ItemContainer UnlockCHMedic2
ObjectTemplate.addTemplate sasrif_g36e
ObjectTemplate.replaceItem RURIF_AK47 <The famas is not listed down here so if I do put the AK101 in the kit will it not have to go here?
ObjectTemplate.replaceItem usrif_sa80
ObjectTemplate.unlockLevel 2

________________________________________________________________________

Unfortunatly I did the above and the game crashed so is there a way I can do it without the result of a CTD?

Now that you have a pretty good idea of whats goin on I come to my conclusion...



_________________________________________________________________________



Well, apparently the game will let me replace the main gun(the gun default to the kit and faction) and add another gun in its place and werever else it has it listed, but it won't let me add new guns or replace things such as the unlocks of the kit or the pistol and knife...

So am I just doing it wrong or is it impossible?
Hope I've covered everything, and I have more issues that should be more simple than this one, but I will bring them up later...

Thanks for you time!
ballard_44
Retired PR Developer
Posts: 1204
Joined: 2007-05-30 22:47

Re: need help with mod editing

Post by ballard_44 »

Don't treat this forum as your own personal Q&A section, 666planer.
Ask your questions at the forum below, especially when it deals with someone else mod.

Battlefield SinglePlayer Forum (Powered by Invision Power Board)
Locked

Return to “Coop & Singleplayer”