Changing CP color on a minimap?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
TheRevanchist
Private Recruit
Posts: 15
Joined: Mon Jun 26, 2017 4:56 pm
Projects :: No Mod project currently.
Games I'm Playing :: BF2
xbox live or psn: No gamertag set

Changing CP color on a minimap?

Post by TheRevanchist »

I have three factions in my mod since one is a local team. Can I change the minimap so their captured CPs appear yellow? I know you can in-game, but how about the minimap?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Changing CP color on a minimap?

Post by Teancum »

Nope, unfortunately not. It worked in the Battlefront 1, but in SWBF2 it's just red/blue.
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Changing CP color on a minimap?

Post by LitFam »

Can't you just edit the tga file and color the command post to the designated color?
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Changing CP color on a minimap?

Post by Marth8880 »

LitFam wrote:Can't you just edit the tga file and color the command post to the designated color?
Unfortunately not, no. You can edit the TGA file to make the icon look however you want but it'll be recolored by the engine when it's drawn on the map display.
TheRevanchist
Private Recruit
Posts: 15
Joined: Mon Jun 26, 2017 4:56 pm
Projects :: No Mod project currently.
Games I'm Playing :: BF2
xbox live or psn: No gamertag set

Re: Changing CP color on a minimap?

Post by TheRevanchist »

Ah, darn, okay. Thanks.

Also, I'm having issues renaming my classes with editlocalize.bat. I went to the tutorial in the sticky (http://www.gametoast.com/viewtopic.php?t=971), but my editlocalize looks a lot different. I can't find my units in it. I provided a picture below:
Hidden/Spoiler:
Image
LitFam
Sergeant Major
Sergeant Major
Posts: 234
Joined: Sat Feb 04, 2017 5:52 pm
Games I'm Playing :: SWBF II 2005
xbox live or psn: No gamertag set
Location: Milky Way, Solar System, Earth, Antarctica

Re: Changing CP color on a minimap?

Post by LitFam »

If its new entities, they won't be in the editlocalize.bat. You have to go to the entity to add your new troop.
TheRevanchist
Private Recruit
Posts: 15
Joined: Mon Jun 26, 2017 4:56 pm
Projects :: No Mod project currently.
Games I'm Playing :: BF2
xbox live or psn: No gamertag set

Re: Changing CP color on a minimap?

Post by TheRevanchist »

Thanks.

Also, hate to spam with questions / issues, but everytime I switch to my secondary on two specific classes, the game freezes. I've checked many times to make sure all the .msh files and .odf files are there, which they are. These aren't even custom weapons - this is the standard pistol on the standard clone rifleman. However, when I place the pistol as the primary, it does work. I have no clue what this issue is and my error logs aren't reporting it, as far as I can tell.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Changing CP color on a minimap?

Post by ARCTroopaNate »

I think it's an issue with award weapons, can you post your units odf??
TheRevanchist
Private Recruit
Posts: 15
Joined: Mon Jun 26, 2017 4:56 pm
Projects :: No Mod project currently.
Games I'm Playing :: BF2
xbox live or psn: No gamertag set

Re: Changing CP color on a minimap?

Post by TheRevanchist »

Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]
WEAPONSECTION = 1
WeaponName = "rep_weap_inf_rifle"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 4
WeaponChannel = 1

VOUnitType = 121
However, I also tried the stock .odf with the award weapons, and it still didn't work. When spawned, I only had the rifle and the award rifle. The pistols were absent, although they were present in the .odf. Thoughts?
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Changing CP color on a minimap?

Post by CT108 »

Can you post your odf with the award weapons please?
TheRevanchist
Private Recruit
Posts: 15
Joined: Mon Jun 26, 2017 4:56 pm
Projects :: No Mod project currently.
Games I'm Playing :: BF2
xbox live or psn: No gamertag set

Re: Changing CP color on a minimap?

Post by TheRevanchist »

Award rifle:
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"

[Properties]
MedalsTypeToUnlock = 1
ScoreForMedalsType = 1

AnimationBank = "rifle"

//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"

MinRange = "0"
OptimalRange = "24"
MaxRange = "64"

LockOnRange = "40.0"
LockTime = "0.4"
lockOnAngle = "1.0"

ZoomMin = "2.5"
ZoomMax = "2.5"
ZoomRate = "0.0"

YawSpread = "0.25"
PitchSpread = "0.25"

SpreadPerShot = "1.2"
SpreadRecoverRate = "4.8"
SpreadThreshold = "1.6"
SpreadLimit = "5.0"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "36"
ReloadTime = "1.5"
ShotDelay = "0.75"
TriggerSingle = "0"

DisplayRefire = "0"

SalvoCount = "3"
SalvoDelay = "0.08"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"


//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashColor = "255 100 100 255"
FlashLength = 0.025
FlashLightColor = "255 220 220 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

RecoilLengthLight = "0.1"
RecoilLengthHeavy = "0.1"
RecoilStrengthLight = "1.0"
RecoilStrengthHeavy = "0.2"
RecoilDecayLight = "0.0"
RecoilDecayHeavy = "0.0"
Award pistol:
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"

[Properties]
MedalsTypeToUnlock = 0
ScoreForMedalsType = 0

AnimationBank = "pistol"

//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"

AITargetPerson = "1"
AITargetAnimal = "1"
AITargetDroid = "1"
AITargetVehicle = "0"
AITargetBuilding = "0"

MinRange = "0"
OptimalRange = "40"
MaxRange = "80"

LockOnRange = "40.0"
LockTime = "0.4"
LockOnAngle = "1.0"

SniperScope = 1
ZoomFirstPerson = 1
ZoomMin = "3.0"
ZoomMax = "3.0"
ZoomRate = "0.0"

YawSpread = "0.1"
PitchSpread = "0.1"

SpreadPerShot = "1.1"
SpreadRecoverRate = "4.8"
SpreadThreshold = "1.6"
SpreadLimit = "6.0"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

HeatPerShot = "0.0"
HeatRecoverRate = "0.3"
HeatThreshold = "0.25"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "16"
ReloadTime = "2.0"
ShotDelay = "0.1"
TriggerSingle = "1"
MaxPressedTime = "0.0"

DisplayRefire = "0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

FirePointName = "hp_fire"

SecondaryOrdnanceName = "com_weap_award_pistol_tracer"
SecondaryOrdnancePeriod = 1
//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashLightColor = "255 192 192 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Changing CP color on a minimap?

Post by ARCTroopaNate »

The problem is that your weapons call for award weapons but the unit doesn't have them. You either need to edit your rifle and pistol odf to not call for award weapons or edit your unit odf to add them.
Post Reply