Battlezone Universe

Battlezone Universe => Battlezone 2 => Topic started by: xSSx Grizzly on May 01, 2009, 06:22:25 PM

Title: How do I??
Post by: xSSx Grizzly on May 01, 2009, 06:22:25 PM
Make the teams on MPI the colour I want them, I used to do it but i'm buggered if I can remember how.
Title: Re: How do I??
Post by: General BlackDragon on May 01, 2009, 06:37:37 PM
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.
Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 06:39:01 PM
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?
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 06: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:
Title: Re: How do I??
Post by: General BlackDragon on May 01, 2009, 06:50:15 PM
:-/

is it read only?
Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 06:51:29 PM
Quote from: xSSx Grizzly on May 01, 2009, 06: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 ?
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 06:54:45 PM
Edited the localprefs_bzone file the other local prefs one (localprefs) did the same now this file does it too. :?
Title: Re: How do I??
Post by: General BlackDragon on May 01, 2009, 06:55:19 PM
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.
Title: Re: How do I??
Post by: TheJamsh on May 01, 2009, 06: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.
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 07:01:52 PM
Quote from: TheJamsh on May 01, 2009, 06: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
Title: Re: How do I??
Post by: TheJamsh on May 01, 2009, 07:04:13 PM
odd... really odd.

run notepad as admin? shouldnt have to though...
Title: Re: How do I??
Post by: General BlackDragon on May 01, 2009, 07:05:12 PM
vista? ew
Title: Re: How do I??
Post by: TheJamsh on May 01, 2009, 07:07:19 PM
yeh... i have to run 2 PC's with it :P
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 07:15:41 PM
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??
Title: Re: How do I??
Post by: TheJamsh on May 01, 2009, 07:17:03 PM
Not sure... very odd case.

Now i remember, notepad cant be run in admin mode. Shouldn't need to be...
Title: Re: How do I??
Post by: GSH on May 01, 2009, 07:27:35 PM
If you're running vista, C:\program files\... is protected against changes. As it should be.

Try installing BZ2 to c:\users\<LOGINNAME>\Documents , i.e. the root of your MyDocs folder. Then you can modify things all day long. Doing that helps w/ broken mods, too -- ones that assume they can write to the BZ2 folder.

-- GSH
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 07:36:33 PM
Well I saved them outside of that folder then replaced the files that wouldn't save with the ones that are edited and now my teams are still Red and Blue in MPI  :x
Title: Re: How do I??
Post by: General BlackDragon on May 01, 2009, 07:49:43 PM
well fungleberries... :|
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 08:04:07 PM
I honestly have not got a clue.
Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 08:31:58 PM
Quote from: TheJamsh on May 01, 2009, 06: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.

only if you put .txt behind the name, if you put .ini or .odf or .[....] than it will be a different format. I'm sure about it as thats how I edit 1/2 the files, edit the original, save under a different name with the same extention.


Griz, your are running Vista arent you, do you try to edit those files in the programs file folder ? <- Didnt see GSHs reply ... :)
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 08:45:57 PM
Quote from: Red Spot on May 01, 2009, 08:31:58 PM
only if you put .txt behind the name, if you put .ini or .odf or .[....] than it will be a different format. I'm sure about it as thats how I edit 1/2 the files, edit the original, save under a different name with the same extention.


Griz, your are running Vista arent you, do you try to edit those files in the programs file folder ? <- Didnt see GSHs reply ... :)
Yeah did that m8 saved onto desktop and then removed old files replace with others can you tell me if this is right?
(http://i260.photobucket.com/albums/ii38/GrizzlyLiam/BZ2.jpg)
(http://i260.photobucket.com/albums/ii38/GrizzlyLiam/bz2localprefs.jpg)
Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 08:50:42 PM
What I find strange in that screenshot is that the .odf file has its extention shown, the .ini files do not ... are you sure they are still .ini's?

Is that the only edit you made there as I will do the edit for you and post the file on my server, so you could try that ...
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 08:52:10 PM
Quote from: Red Spot on May 01, 2009, 08:50:42 PM
What I find strange in that screenshot is that the .odf file has its extention shown, the .ini files do not ... are you sure they are still .ini's?

Is that the only edit you made there as I will do the edit for you and post the file on my server, so you could try that ...
If you would that'd be very cool cheers m8. Yeah they are defo .ini cos when I put .ini at the end it says this already exisits would you like to replace.
Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 08:54:04 PM
try this: http://members.ziggo.nl/red_spot/LocalPrefs.ini
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 08:56:13 PM
got this now:
---- Battlezone II Log File ----
//=====================================================
App version: Patch 1.3TechAlpha5 Apr 23 2009 13:36:08
Windows version: Windows Version: 5.1.2600 'Service Pack 2' PlatformID=2

Last few battlezone.log lines (may or may not be relevant):




(done)

Exception code: C0000417 An invalid parameter was passed to a C runtime function.

Message :  Unhandled Exception
Error occurred at 5/1/2009 21:55:48.
C:\Program Files\Battlezone II\bzone.exe, run by StewartLiam.
C:\Program Files\Battlezone II\bzone.exe, run by StewartLiam.
CPU: 4 processor(s), AMD Phenom(tm) 9750 Quad-Core Processor
     x86 Family 16 Model 2 Stepping 3
Process Memory :   1701 MB free out of   2048 MB total
Physical memory:   2096 MB free out of   3326 MB total
Page(swap) file:   5496 MB free out of   6848 MB total
This exe is using 67 MB, peak use 67 MB

Fault address:  6AB8FEF2 01:0002EEF2 C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_e163563597edeada\MSVCR90.dll

Registers:
EAX:004CF3A0
EBX:00000000
ECX:00000000
EDX:00000000
ESI:00000000
EDI:00AF91FC
CS:EIP:001B:6AB8FEF2
SS:ESP:0023:004CF674  EBP:004CF6B8
DS:0023  ES:0023  FS:003B  GS:0000
Flags:00200216

Call stack:
Address   Return    Function            SourceFile
6AB8FEF2  00000000  009AC90A  fprintf+0x00000034
009AC90A  00000000  009971AF  NetManager::GetChatLogfile+0x000000C2
009971AF  00000000  009AB462  NetManager::ChatManager::FlushThreadMessage+0x000000CC
009AB462  00000000  00918392  NetManager::Process+0x0000007C
00918392  00000000  00A8D53F  ShellHandler::Process+0x0000001E
00A8D53F  00000000  00A8D9D4  RunCodes::Process+0x000001BF
00A8D9D4  00000000  00909644  Main::MessagePump+0x00000064
00909644  00000000  00909343  HandledMain+0x000003F6
00909343  00000000  00906BDF  HandledMain+0x000000F5
00906BDF  00000000  00A3B90F  WinMain+0x00000059
00A3B90F  00000000  760D4911  fabs+0x00000191
760D4911  00000000  779CE4B6  BaseThreadInitThunk+0x00000012
779CE4B6  00000000  779CE489  RtlInitializeExceptionChain+0x00000063
779CE489  00000000  00000000  RtlInitializeExceptionChain+0x00000036

Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 08:59:14 PM
well this is the entire file what I posted on my server ... dont know why that would cause a crash ...

// The following are settable by the user. They are assigned to the
// default values, as if this file was empty. Comments above them
// should indicate what possible settings are available.

// Note that only things that cannot affect game synchronization are
// in here (views, etc).

// User's changes should be placed in this file, below the
// [UserPrefs] line below.

[UserPrefs]

// 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 = "235 100 121 255" // Griz-black
TeamColorTeamB = "108 108 228 255" // Griz-green


edit: try setting the 'read only' option, perhaps Vista doesnt like it if you can actually edit a file ...(%$!@^$$^VISTA!!! :))
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 09:05:58 PM
Causes crash but, the one you show on here look much larger (lot more words) in notepad ???
Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 09:06:19 PM
Ok, just tried your colors and they work for me. I'll show you a screenshot in a moment, but it surelly isnt black and green, more like washed out red and blue .... ;)

edit: try again, I uploaded my own file, sorry ... :s (changed now)
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 09:12:43 PM
Here look still red  :x Damn game  :lol:

(http://i260.photobucket.com/albums/ii38/GrizzlyLiam/Stillred.jpg)
Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 09:21:40 PM
Like I already mentioned, the colors you chose are just a bit more washed out that the original colors.

For really black, try 0 0 0 255 and see the difference :)
(I would try something in between, like 150 50 60 255 for a much darker red-ish color)

Not sure if you know this but this is the RGB-code, basicly just means the first entry is Red, 2nd Green, 3rd Blue - RGB
255 = white/full color
0 = black/no color

255 255 255 255 would give you pretty bright ships
0 0 0 255 would give you pretty dark ships

Go into word or excel or whatever other program you have on your system that allows you to select colors, pick a custom color and check its RGB values. Its a lot easier than rebooting the game 10 times.
Title: Re: How do I??
Post by: xSSx Grizzly on May 01, 2009, 09:28:39 PM
Quote from: Red Spot on May 01, 2009, 09:21:40 PM
Like I already mentioned, the colors you chose are just a bit more washed out that the original colors.

For really black, try 0 0 0 255 and see the difference :)
(I would try something in between, like 150 50 60 255 for a much darker red-ish color)

Not sure if you know this but this is the RGB-code, basicly just means the first entry is Red, 2nd Green, 3rd Blue - RGB
255 = white/full color
0 = black/no color

255 255 255 255 would give you pretty bright ships
0 0 0 255 would give you pretty dark ships

Go into word or excel or whatever other program you have on your system that allows you to select colors, pick a custom color and check its RGB values. Its a lot easier than rebooting the game 10 times.


Just changed it to 0 0 0 255 and it's exactly the same Red :x
Title: Re: How do I??
Post by: Red Spot on May 01, 2009, 09:39:22 PM
Try again: http://members.ziggo.nl/red_spot/LocalPrefs.ini

These colors:
TeamColorTeamA = "60 10 20 255" // Griz-black
TeamColorTeamB = "60 120 20 255" // Griz-green

Looks like:
(http://members.ziggo.nl/red_spot/colors.jpg)
Title: Re: How do I??
Post by: Nielk1 on May 02, 2009, 02:42:17 AM
0 0 0  will not work, try 1 1 1
0 0 0 counts as not set.
Title: Re: How do I??
Post by: xSSx Grizzly on May 02, 2009, 07:31:06 AM
Real odd as using 1 1 1 still red and still blue even though RS's is green enemy.
Title: Re: How do I??
Post by: Red Spot on May 02, 2009, 01:03:57 PM
Quote from: xSSx Grizzly on May 02, 2009, 07:31:06 AM
Real odd as using 1 1 1 still red and still blue even though RS's is green enemy.

I used these colors yesterday on MPIFire, us scion vs isdf ... pretty cool green on that map, sort of camouflages the isdf :)
(and makes the scions pretty dark overall ...)

FYI, for the mod I'm working on I'm planning to set up a few netvars to allow the host to set map-specific teamcolors or leave it up to the *prefs.ini files to do teamcolors. That should make it possible for the host to set different teamcolors based on the maps-settings, or settings he sets before launching the game, or selecting 'default *prefs.ini colors'. That should make it a lot easier to set map-specific teamcolors, however does possibly allow the host to override the others teamcolor settings, if he/she wishes.

Basicly it will look like this:

Set map specific teamcolors:
[no] [yes]
Map specific teamcolors:
teamA: [120] [120] [120] [255] (will be read in from the maps .inf file but can be overriden)
teamB: [20] [20] [20] [255] (will be read in from the maps .inf file but can be overriden)
Title: Re: How do I??
Post by: xSSx Grizzly on May 02, 2009, 01:11:25 PM
I dunno, stupid machine.
Title: Re: How do I??
Post by: Red Spot on May 02, 2009, 01:46:37 PM
Quote from: xSSx Grizzly on May 02, 2009, 07:31:06 AM
Real odd as using 1 1 1 still red and still blue even though RS's is green enemy.

Just to make sure griz, you used my *prefs.ini file and it still doesnt work .. have you looked at "LocalPrefs_bzone.ini" to see if you also specified teamcolors in there? I'm not sure but I think the *bzone.ini may override the *prefs.ini, so if you do have the colors specified in bzone.ini than that could be the whole problem ...
Title: Re: How do I??
Post by: General BlackDragon on May 02, 2009, 01:47:44 PM
Do note, localprefs_bzone will overwrite localprefs
Title: Re: How do I??
Post by: xSSx Grizzly on May 02, 2009, 01:55:09 PM
IT WORKED HAHAHA!!!!!!!!!!!!!! Shame i'm not gonna be able to play until next week after 4pm GMT  :x
Title: Re: How do I??
Post by: xSSx Grizzly on May 02, 2009, 02:08:04 PM
Decided against the black now, got these colours now

(http://i260.photobucket.com/albums/ii38/GrizzlyLiam/Newcolours.jpg)
Title: Re: How do I??
Post by: Red Devil on May 02, 2009, 08:25:31 PM
Here's a good link for picking colors:

http://www.help4web.net/webmaster/Color/RGB-Values.html
Title: Re: How do I??
Post by: Red Spot on May 02, 2009, 08:57:48 PM
lol, here is an other .. :P
C:\Program Files\Microsoft Office\OFFICE11\winword.exe :D
Title: Re: How do I??
Post by: Steeveeo on May 02, 2009, 09:01:14 PM
Eh, paint is better at picking colors than WORD.
Title: Re: How do I??
Post by: Red Spot on May 02, 2009, 09:04:45 PM
Ok than, for you:
C:\WINDOWS\system32\paint.exe :D
Title: Re: How do I??
Post by: Nielk1 on May 03, 2009, 10:11:24 PM
Quote from: xSSx Grizzly on May 02, 2009, 02:08:04 PM
Decided against the black now, got these colours now

(http://i260.photobucket.com/albums/ii38/GrizzlyLiam/Newcolours.jpg)

I use something like those since the day the feature came out for the private 1.3
Slightly darker though. Not Darker shade, I mean hue. More blue and more dark-green.
Title: Re: How do I??
Post by: TheJamsh on May 03, 2009, 10:22:00 PM
i really liked nielk1's green..

care to share the secret :P?
Title: Re: How do I??
Post by: Red Spot on May 03, 2009, 10:25:37 PM
Yeah, post some RGB values ;)
Title: Re: How do I??
Post by: Feared_1 on May 04, 2009, 03:02:46 AM
It's just a deep green... (0 200 0) or (0 150 0) maybe?
Title: Re: How do I??
Post by: AHadley on May 04, 2009, 09:37:57 AM
Quote from: TheJamsh on May 03, 2009, 10:22:00 PM
i really liked nielk1's green..

care to share the secret :P?

Hold on, NK1 changed his team's colour and it showed up on your PC?
Title: Re: How do I??
Post by: TheJamsh on May 04, 2009, 11:17:30 AM
Yep, team colors are inherited from the host when you start a game. :)

Hence i made a pretty looking sandy colour
Title: Re: How do I??
Post by: bigbadbogie on May 04, 2009, 11:20:16 AM
I like that feature...  :-D THANKYOU GSH!!
Title: Re: How do I??
Post by: Red Spot on May 04, 2009, 11:22:05 AM
Quote from: TheJamsh on May 04, 2009, 11:17:30 AM
Yep, team colors are inherited from the host when you start a game. :)

Hence i made a pretty looking sandy colour

And again .. Thanks!
I didnt know about that, I assumed with new settings in the prefs.ini files they where player independend unless set by dll.
Title: Re: How do I??
Post by: Nielk1 on May 04, 2009, 07:15:50 PM
You can set yourself to use the server's, default, or gameprefs colors. I think gameprefs is the default if you change it (via local prefs).