how to change local command post colour to white ?

Started by wsa30h, November 20, 2019, 09:49:02 AM

Previous topic - Next topic
how do i change the locals command post colour to be white ?
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

Command post colors in BF1 are hard-coded.
The "aligned" property defined for Holograms determines the color, which is in the exe.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

so i cant use a hard coded colour by renaming the com_bldg_controlzone to com_bldg_controlzone2 and the holo to 2 and changing the locals colour to white in the holo ? i know the colours were hard coded just trying to do what the maker of rumble conquest for battlefront2 did he has yellow command posts for team 4 and white command posts for team 3.
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

I don't know how they did it in BF2, only what I know about BF1 (and I've never tried it, only what I know from digging into the theory)-
You can put whatever color you want in the com_holo_controlzone1/2/3/4.odf, however, it will only work the way you want if you take "aligned" out and swap it with "build" which if I remember correctly is the only other option.  However, when you do this, you lose the changing command post colors when they swap sides.  The icons would still be ok I think.

The options NeutralColor/FriendlyColor/EnemyColor/LocalsColor do nothing, they aren't mentioned in the BF1 (or 2) case hex lists.  All of that functionality is in the exe, and thus would need changed there.  I've hunted for it in Cheat Engine, but haven't found it.

The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

how do i make team 3 and 4 have different icons i have cis and imperials as local teams cis are team 3 and imps are team 4 i named cis locals two in the lua to match the modified controlzone colours and changed the names like so HoloImageGeometry    = "locals com_icon_republic"
HoloImageGeometry    = "locals2 com_icon_CIS"
HoloImageGeometry    = "locals3 com_icon_imperial"
named imps as locals 3 in my luas but the command post always shows the imperial icon even if the seperatists capture it is there a way to have both icons ?
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

I know you're not going to like this, but here's your team choices:
BF1 Case hex lines - From SecretSociety
Team.cpp(84): case 0x8c4b1ad8: /* "neutral" */
Team.cpp(85): case 0x269992eb: /* "neu" */
Team.cpp(88): case 0x1d083cc0: /* "alliance" */
Team.cpp(89): case 0x13254bc4: /* "all" */
Team.cpp(92): case 0x2c5f5065: /* "empire" */
Team.cpp(93): case 0x93e73ca1: /* "imp" */
Team.cpp(96): case 0xc7836fe1: /* "republic" */
Team.cpp(97): case 0x2cf46160: /* "rep" */
Team.cpp(100): case 0xf387c5d6: /* "cis" */
Team.cpp(104): case 0x791be6a1: /* "locals" */


Your hard-coded choices are right there.  What does this mean?  Anything else will be ignored by the game- and I don't even know if icons will work for locals because I haven't tried. 
BF1 is not very forgiving in a lot of aspects.
edit: Neutral is team 0, for those keeping score at home.  Only team 0 can have white cps, but team 0 has no code to be able to spawn in.  Source: Actually have tried this.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

thanks dark icons seem to work to some extent  but only one local faction
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

Ok, well that's better than I expected - That's probably all it will take, unless you can trick the game into taking another one using one of the teams listed.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

yes team 4 name changed to imps lets say for example will give their icon to them but thye will appear red if only there was a way to turn them yellow and retain the team name and icon
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

An alternative solution that I found while I was working on my Kashyyyk: Village map is that, in your LUA files, if you change the relationship between 2 factions to where one is neutral, the CP will appear white.

So let's say you have teams X and Y. In your LUA you could set SetTeamAsNeutral(X, Y) so then, when playing as team X, command posts held by team Y will appear as white.

I don't really think this solves your problem but it is one way to get CP's to appear as white. In my experimentation the icons also held and looked fine. Hope this helps in some way.
"Birth, pain, fear, death; the cycle of existence." -Dread Master Calphayus.

SWBF1 Maps: Tatooine: Mos Anek, Kashyyyk: Village, Naboo: Province, Tatooine: Gulch.

SWBF2 Maps: Space Carida.

In SWBF2 Team 0 gets a white CP if I recall (early deathmatch mod had it, but DM was ultimately scrapped as it was terribly hacky)

Try setting to team 0? SWBF1 is much, much weaker LUA-code-wise.

thanks guys i will test it and report back
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

Team 0 can't spawn in.  There's no code to back it up, for player or AI.
If you hack yourself onto team 0, you can see the units, but they can't spawn.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

thanks guess they will both have to be yellow just wish there was a way to have mutiple local faction icons
mods and maps in progress:<br />--Bf1 expanded edition 3.0 version
-- bf1 tcw battles
-- bf1 seasons mod season 1
-- bf2 expanded edition tbh

Kind of related to this topic, but I assume the fact that there are no more colors than just yellow also means that it is still impossible to localize more than just one local faction? Meaning if say I wanted to have two local factions and call one "Geonosians" and one "Wookiees", I'd still be limited to only having one name or the other?

I'd been meaning to look into this again, but since this topic is right along those lines I figured I'd bring it up here.