IPB

Welcome Guest ( Log In | Register )

Need help with kits customisation system on BF2142
Sgt_Prof
post Feb 19 2017, 03:19 PM
Post #1


CryEngine 3 environment designer, novel writer,dude who love art
****

Group: Soldiers
Posts: 967
Joined: 12-September 11
From: Dystopian world
Member No.: 8,214



I managed to edit ffolkes kits customisation and assault class can have linked shotgun/rocket together with primary as it required just few lines. And BOTS SPAWN WITH RIGHT rocket/shotgun setup which depends on primary gun choice. However, despite this amazing luck, menu doesn't let me to choose primaries for assault class (which I modded)... But it works. IT WORKS. So it's possible to attach double/triple item in customization!

Now I need some help. I see kits_server doesn't like any changes and throws menu bugs into my face every time I edit customization lines.



after some tweaks hud turned into this: but I then I was unable to choose kits for other classes!



There's code. Bold code is what I updated.


ObjectTemplate.create Kit Pac_Assault
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.kitType Assault
ObjectTemplate.aiTemplate Assault
ObjectTemplate.geometry Pac_Kits
ObjectTemplate.geometry.kit 0
ObjectTemplate.geometry.dropGeom 8
ObjectTemplate.setNetworkableInfo KitInfo
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.abilityRestoreRate 0.033
ObjectTemplate.abilityInVehicleRadius 7
ObjectTemplate.abilityInVehicleStrength 0.35
ObjectTemplate.abilityInVehicleMaterial 73
ObjectTemplate.unlockIndex 1
ObjectTemplate.cullRadiusScale 2.4
ObjectTemplate.dogTagRewardTemplate knife_unlock
ObjectTemplate.dogTagExchangeTemplate knife

rem -------------------------------------
ObjectTemplate.addTemplate Knife_unlock
ObjectTemplate.addTemplate as_handgun
ObjectTemplate.addTemplate as_ar_rifle
ObjectTemplate.addTemplate unl_hub_medic
ObjectTemplate.addTemplate as_ar_rocket
ObjectTemplate.addTemplate Unl_Defibrillator
ObjectTemplate.addTemplate Unl_Grenade_Smoke
ObjectTemplate.addTemplate Beacon
ObjectTemplate.addTemplate ParachuteLauncher
ObjectTemplate.addTemplate AS_ASSAULT1
ObjectTemplate.addTemplate AS_ASSAULT2
ObjectTemplate.addTemplate AS_ASSAULT3
ObjectTemplate.addTemplate AS_ASSAULT4
ObjectTemplate.addTemplate Hud_As_Assault
ObjectTemplate.addTemplate unl_medic_upgrade
ObjectTemplate.addTemplate Ability_Sprint_Amount
ObjectTemplate.addTemplate Ability_Sprint_Recharge
ObjectTemplate.addTemplate Ability_Extra_Sidearm_Clip
ObjectTemplate.addTemplate Ability_Extra_Grenade
ObjectTemplate.addTemplate Ability_Ammo_Rocket_Shotgun
ObjectTemplate.addTemplate Ability_Reduced_Spawntime
ObjectTemplate.addTemplate Ability_Super_Boot
rem -------------------------------------

ObjectTemplate.createComponent Ability
ObjectTemplate.ability.hasHealingAbility 1

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


ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName "HUD_TEXT_MENU_SPAWN_KIT_ASSAULT"
ObjectTemplate.vehicleHud.miniMapIcon "Ingame\Kits\Icons\kit_Assault_outline.tga"
ObjectTemplate.vehicleHud.vehicleIcon "Ingame\Kits\Icons\kit_Assault.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.4

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

ObjectTemplate.create ItemContainer AS_ASSAULT1
ObjectTemplate.addTemplate unl_har_rifle
ObjectTemplate.replaceItem as_ar_rifle
ObjectTemplate.addTemplate unl_har_rocket
ObjectTemplate.replaceItem as_ar_rocket

ObjectTemplate.unlockLevel 0

ObjectTemplate.create ItemContainer AS_ASSAULT2
ObjectTemplate.addTemplate unl_lar_rifle
ObjectTemplate.replaceItem as_ar_rifle
ObjectTemplate.addTemplate unl_lar_rocket
ObjectTemplate.replaceItem as_ar_rocket

ObjectTemplate.unlockLevel 0
ObjectTemplate.unlockBranch UB_Second

ObjectTemplate.create ItemContainer AS_ASSAULT3
ObjectTemplate.addTemplate Unl_Drone_Sentry_Detonator
ObjectTemplate.unlockLevel 0
ObjectTemplate.unlockBranch UB_SquadLeader

ObjectTemplate.create ItemContainer AS_ASSAULT4
ObjectTemplate.addTemplate Bp1_Grenade_Radar
ObjectTemplate.replaceItem Unl_Grenade_Smoke
ObjectTemplate.unlockLevel 0
ObjectTemplate.unlockBranch UB_Player






I removed all customization HUD elements from rocket in order to avoid menu bugs, BUT it's STILL HAPPENING and makes me wanna cry. I have theory to rename rocket items just in case it's hardcoded but I have doubts.

Please, Dear Lord, Send me help! send me some help!

This post has been edited by Sgt_Prof: Feb 20 2017, 10:07 AM


--------------------
It's hard to beat a person who never gives up
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 6)
Dnamro
post Feb 19 2017, 07:33 PM
Post #2


CinC (for now)
Group Icon

Group: Mr. Admin
Posts: 6,968
Joined: 28-December 03
From: Fort Hood, TX
Member No.: 46



SGT Prof,

There is an issue with BF2142 offline accounts that interferes with the weapon customization menu. Revive for 2142 is the only way that I have found that solve the problem by using an online account, where other solutions use an offline account online. If you haven't, be sure to play a game of BF2142 online to activate the online account.


--------------------
No, my Avatar is not my dog.
Go to the top of the page
 
+Quote Post
Sgt_Prof
post Feb 20 2017, 03:05 AM
Post #3


CryEngine 3 environment designer, novel writer,dude who love art
****

Group: Soldiers
Posts: 967
Joined: 12-September 11
From: Dystopian world
Member No.: 8,214



QUOTE (Dnamro @ Feb 19 2017, 08:33 PM) *
SGT Prof,

There is an issue with BF2142 offline accounts that interferes with the weapon customization menu. Revive for 2142 is the only way that I have found that solve the problem by using an online account, where other solutions use an offline account online. If you haven't, be sure to play a game of BF2142 online to activate the online account.


I'm using online account. Yes, unlocks work in coop, but you need to play multiplayer to unlock stuff. And it would require more then 100 hours to unlock every item. Sad.

This post has been edited by Sgt_Prof: Feb 20 2017, 05:05 AM


--------------------
It's hard to beat a person who never gives up
Go to the top of the page
 
+Quote Post
Dnamro
post Feb 20 2017, 08:46 AM
Post #4


CinC (for now)
Group Icon

Group: Mr. Admin
Posts: 6,968
Joined: 28-December 03
From: Fort Hood, TX
Member No.: 46



Now that I have gone back and reread your message I can see that your account appears to be working. What I was talking about is that when a player first signs up for a Revive account that it might act like an offline account until they go online and play a round. The Menu customization does not work at all on offline accounts.

Looking at your code, first of all, it looks like you have too many addtemplate lines in your itemcontainers. Add template is the the weapon your are replacing, so there should only be one Addtemplate line in an itemcontainer. It also looks like you are mixing up your rifles and rockets. First do you rifles like this:

ObjectTemplate.create ItemContainer AS_ASSAULT_RIFLES1
ObjectTemplate.addTemplate unl_har_rifle
ObjectTemplate.replaceItem as_ar_rifle
ObjectTemplate.unlockLevel 0

ObjectTemplate.create ItemContainer AS_ASSAULT_RIFLES2
ObjectTemplate.addTemplate unl_lar_rifle
ObjectTemplate.replaceItem as_ar_rifle
ObjectTemplate.unlockLevel 0
ObjectTemplate.unlockBranch UB_Second

Then do your rockets, which needs special code which appears to match the rocket to the weapon. Try with the rifles first to make sure you get those right and then test with the rocket unlocks.

ObjectTemplate.create ItemContainer AS_ASSAULT_ROCKETS1
ObjectTemplate.addTemplate unl_har_rocket
ObjectTemplate.isFirearmReplacement 1
ObjectTemplate.firearmReplacement unl_har_rifle
ObjectTemplate.replaceItem eu_ar_rocket
ObjectTemplate.unlockLevel 0
ObjectTemplate.unlockBranch UB_Player

ObjectTemplate.create ItemContainer AS_ASSAULT_ROCKETS2
ObjectTemplate.addTemplate unl_lar_rocket
ObjectTemplate.isFirearmReplacement 1
ObjectTemplate.firearmReplacement unl_lar_rifle
ObjectTemplate.replaceItem eu_ar_rocket
ObjectTemplate.unlockLevel 0
ObjectTemplate.unlockBranch UB_Player




--------------------
No, my Avatar is not my dog.
Go to the top of the page
 
+Quote Post
Sgt_Prof
post Feb 20 2017, 10:02 AM
Post #5


CryEngine 3 environment designer, novel writer,dude who love art
****

Group: Soldiers
Posts: 967
Joined: 12-September 11
From: Dystopian world
Member No.: 8,214



Edit: GOT IT TO WORK! This is hella amazing smile.gif



I also added drone/squad leader unlock so basically this system is PURE GOLD now. Gotta work with EU side tomorrow.

This post has been edited by Sgt_Prof: Feb 20 2017, 03:35 PM


--------------------
It's hard to beat a person who never gives up
Go to the top of the page
 
+Quote Post
Sgt_Prof
post Feb 22 2017, 10:34 AM
Post #6


CryEngine 3 environment designer, novel writer,dude who love art
****

Group: Soldiers
Posts: 967
Joined: 12-September 11
From: Dystopian world
Member No.: 8,214



EU kit screenshot:



--------------------
It's hard to beat a person who never gives up
Go to the top of the page
 
+Quote Post
Bubbles
post Feb 22 2017, 12:56 PM
Post #7


General
*****

Group: Soldiers
Posts: 1,466
Joined: 13-February 06
From: Earth
Member No.: 1,539



FFolkes unlock mod 1.5 now works with the revive account. You can fully select numerous different weapons for all kits.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th November 2017 - 04:17 PM