• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

How do I??

Started by xSSx Grizzly, May 01, 2009, 12:22:25 PM

Previous topic - Next topic

xSSx Grizzly

Make the teams on MPI the colour I want them, I used to do it but i'm buggered if I can remember how.

General BlackDragon

in 1.3TA5 you simply edit the color settings from gameprefs into the localprefs ini files. the files are in addon/config/ copy the segments for team colors from gameprefs and paste them in localprefs for editing.



*****General BlackDragon*****

Red Spot

Hey Griz, check the GamePrefs.ini file, this part:
// Default teamcolors for DM/FFA. These will be pushed from the server
// to clients. If you don't like what the server pushed to you as a
// client, look at the console commands game.setdefaultcolors,
// game.setgameprefscolors, game.setservercolors,
// game.swapteamcolors. There are also network chat commands
// "/setdefaultcolors", "/setgameprefscolors", "/setservercolors", and
// "/swapteamcolors" , which do the same thing.
//
// If a teamcolor is all zeroes for the first 3 values (e.g. red,
// green & blue), then it's treated as not used -- the default skin
// for a unit is used. If any of r/g/b is not zero, then it's used,
// and the alpha value is set to 255.
//
// Further notes on use -- these colors are a *multiplier* on the
// current colors. You should treat them as having an implicit
// divide-by-255 when they're used -- i.e. setting a channel to 255
// means multiplying by 255/255, i.e. multiplying by 1.0. If you set a
// channel to 127, you're multiplying by 127/255, i.e. multiplying by
// 0.5. Thus, there's no way to brighten up the current colors, only
// darken. The 'current color' referred to above is what DX9
// calculated from various things, including the vertex color in the
// model, base texture (skin), and any lighting applied.

// FFA & DM colors, one per team.
TeamColorFFA0 = "  0   0   0   0" // no special color
TeamColorFFA1 = "255  31  31 255" // red
TeamColorFFA2 = "255 255  31 255" // yellow
TeamColorFFA3 = " 31 255  31 255" // green
TeamColorFFA4 = " 31  31 255 255" // blue
TeamColorFFA5 = " 31 255 255 255" // cyan
TeamColorFFA6 = "255  31 255 255" // violet
TeamColorFFA7 = "255 255 255 255" // white
TeamColorFFA8 = " 31  31  31 255" // black
TeamColorFFA9 = "  0   0   0   0" // no special color
TeamColorFFA10= "  0   0   0   0" // no special color
TeamColorFFA11= "  0   0   0   0" // no special color
TeamColorFFA12= "  0   0   0   0" // no special color
TeamColorFFA13= "  0   0   0   0" // no special color
TeamColorFFA14= "  0   0   0   0" // no special color
TeamColorFFA15= "  0   0   0   0" // no special color

// And, for teamplay (i.e. team strat or MPI) games, the teamcolors.
// TeamA is used for teams 1..5, and TeamB is for teams 6..10
TeamColorTeamA = "255 31 31 255" // red
TeamColorTeamB = "31 31 255 255" // blue

// Commando says that these values for teamplay team colors look
// pretty close to 1.0-1.3pb4a's P3 optimization colors. To use these,
// copy the lines into localprefs.ini, and remove the two slashes
// (comment) from the start of the line:

//TeamColorTeamA = "235 100 121 255" // red
//TeamColorTeamB = "108 108 228 255" // blue


edit: are you online now?
*Something intelligent, yet funny*

xSSx Grizzly

Will be online once I done this lol, after I do this in local prefs and try to save it says, cannot create the C://programfiles/Battlezone2/addon/config/localprefs.ini file
Make sure path & file name are correct.
Whats that mean lol :lol:

General BlackDragon

:-/

is it read only?



*****General BlackDragon*****

Red Spot

Quote from: xSSx Grizzly on May 01, 2009, 12:48:16 PM
Will be online once I done this lol, after I do this in local prefs and try to save it says, cannot create the C://programfiles/Battlezone2/addon/config/localprefs.ini file
Make sure path & file name are correct.
Whats that mean lol :lol:

It means you do NOT edit that file itself, but copy the settings over to the "local*" files and edit the settings from there ...
I'll start up a server and see you in a moment than ;)

edit:GBD keeps beating me :P
edit2: are you sure you didnt edit the incorrect file ?
*Something intelligent, yet funny*

xSSx Grizzly

Edited the localprefs_bzone file the other local prefs one (localprefs) did the same now this file does it too. :?

General BlackDragon

im slightly confused as to what the issue is. Try right clicking it and going to properties, if "read only" is checked, uncheck it and hit apply. Then try saving.

I am uncertian as to if localprefs is read only, it shouldn't be. It should also be the one with almost nothing in it. You are ment to add things from gameprefs that you want to change into it, because the game looks in localprefs before it looks in gameprefs, but you can technically change gameprefs. You'd just have to copy over each individual change each time a patch is released that updates gameprefs.



*****General BlackDragon*****

TheJamsh

when you edit localprefs files, DONT use 'save as'.

open it in notepad, make the changes, the close without clicking save. A dialog box will appear, click 'save changes'. Notepad tries to create a .txt type file if you use save as, and it cant write to a read-only directory.


BZII Expansion Pack Development Leader. Coming Soon.

xSSx Grizzly

Quote from: TheJamsh on May 01, 2009, 12:56:39 PM
when you edit localprefs files, DONT use 'save as'.

open it in notepad, make the changes, the close without clicking save. A dialog box will appear, click 'save changes'. Notepad tries to create a .txt type file if you use save as, and it cant write to a read-only directory.
Tried that not working still  :x

TheJamsh

odd... really odd.

run notepad as admin? shouldnt have to though...


BZII Expansion Pack Development Leader. Coming Soon.

General BlackDragon




*****General BlackDragon*****

TheJamsh

yeh... i have to run 2 PC's with it :P


BZII Expansion Pack Development Leader. Coming Soon.

xSSx Grizzly

Nope still nothing, when I right click it should say run as admin but it doesn't then again I already have all permissions to edit stuff so??

TheJamsh

Not sure... very odd case.

Now i remember, notepad cant be run in admin mode. Shouldn't need to be...


BZII Expansion Pack Development Leader. Coming Soon.