Battlezone Universe

Battlezone Universe => Battlezone 2 => Maps and Modding => Topic started by: Shephren on March 30, 2009, 02:26:15 PM

Title: Change Colors in MP
Post by: Shephren on March 30, 2009, 02:26:15 PM
Hey folks,
don't know if Maps and Mods is the right direction,but could be.
My question is,is it possible to change the color of a player in an MP-game,for example strategy maps,first player is alway pink.
Is there something in the config or perhaps somwhere else,which is responsible for the color of a player?
Title: Re: Change Colors in MP
Post by: OvermindDL1 on March 30, 2009, 03:24:11 PM
Driven by DLL.  Simple as that.
(http://www.overminddl1.com/image_scripts/image_sig.php?type=ODL1signitures&image/sig.gif)
Generated by OvermindDL1's Signature Auto-Add Script (http://overminddl1.com) via GreaseMonkey (http://greasemonkey.mozdev.org/)

Title: Re: Change Colors in MP
Post by: Shephren on March 30, 2009, 04:40:00 PM
Well...means exacly what?I can change it/cannot change it?
If i can,how do i change it?I know odf's,but not how to modify something related to DDL
Title: Re: Change Colors in MP
Post by: anomaly on March 30, 2009, 04:46:53 PM
You need to know C++ in order to code dll for multiplayer.  I'm pretty sure some people have done this before; they might be willing to share some specifics with you.
Title: Re: Change Colors in MP
Post by: Red Spot on March 30, 2009, 04:53:44 PM
If you have access to C++ its simple. Just check the source-code which you can download and go thru it in detail, you'll find it.
If you have no knowledge of coding and no interest in learning it, dont bother ... :)
Title: Re: Change Colors in MP
Post by: Feared_1 on March 30, 2009, 05:35:18 PM
You can change it for YOURSELF in the console, but no one else will be able to see. Can't remember what it is, though. game.teamcolors maybe?

The starting scout isn't pink. You have P3 Optimization on. The scout will be red if you turn that off.
Title: Re: Change Colors in MP
Post by: Nielk1 on March 30, 2009, 07:33:03 PM
game.teamcolors 0 = off
game.teamcolors 1 = STRAT
game.teamcolors 2 = FFA/DM (many more colors, but still fixed to ugly ones)

The DLL can set the RBG of a team color, so, a custom DLL set to allow you to pick can be made. It can even be set so each person selects their color (and the commander's choice is what is used) or that everyone sets the colors how they want them on their local machine for all teams (colors are not asset checked).

I was toying with this in DLL one day. Made units that glowed between red and white.
Title: Re: Change Colors in MP
Post by: AHadley on March 30, 2009, 09:11:29 PM
I know it has been said before, and I know that whoever says it gets nagged about how busy those guys are, but this really should be added to the next 1.3 release.
Title: Re: Change Colors in MP
Post by: Zero Angel on March 31, 2009, 09:36:34 AM
It shouldnt technically be that difficult. The 1.2 ZST DLL uses special teamcolor presets (orange vs black, black vs white, jungle vs desert) which can be set by an ivar within the map's INF file. However, if you wanted to pursuade a 1.3 dev to put time and effort into this, its another matter entirely.
Title: Re: Change Colors in MP
Post by: Red Spot on March 31, 2009, 09:45:24 AM
If you'd ask me the only thing that really could use a tweak is the actual RBG settings, I dont mean the colors themself are bad, its just that red for instance isnt really a cool red, making the teamcolors a bit darker and they already look a lot beter, IMO.

Also, perhaps the following setting can be made to also work for teamcolors in MPI/Team-Strat games, which I think would be nice.

// If this is true, the Free For All (i.e. non-teamplay) colors will
// be scrambled by each session's server so that there's a little more
// variety in their use. If false, the 1.0-1.2 teamcolor list is used.
ScrambleTeamplayColors = true
Title: Re: Change Colors in MP
Post by: AHadley on March 31, 2009, 04:01:53 PM
Could the ZST DLL be adapted in some way to work with 1.3?
Title: Re: Change Colors in MP
Post by: Nielk1 on March 31, 2009, 04:14:26 PM
Quote from: AHadley on March 31, 2009, 04:01:53 PM
Could the ZST DLL be adapted in some way to work with 1.3?

No point. ZST is all about making fliers hittable. It would be much better to make your own colors. A dll can be set to scan in cvars for team colors thought the hole game (though at start of a game is the only time the cvars go to the server, so changes would only be local). Any DLL I make will likely have team color features.
Title: Re: Change Colors in MP
Post by: AHadley on March 31, 2009, 07:03:58 PM
All this makes me wish I could write C++...  :roll:
Title: Re: Change Colors in MP
Post by: Red Spot on April 04, 2009, 03:41:10 PM
Quote from: AHadley on March 31, 2009, 07:03:58 PM
All this makes me wish I could write C++...  :roll:

The 'basics' arent that difficult. When the MP-dll's source files where released, a long long time ago, I played around with C++ as a complete n00b to programming (I didnt even knew what an "If-statement" was). In a matter of weeks I had changed the colors, difficulty and made the AI use more 'stuff'. (like following patrolpaths, setting up AA-defences, changing when the AIPs where called, etc)

You just need to spend some time with it, have access to google and possibly a forum where people who know programming visit.

Like I commented before ...
Quote from: Red Spot on March 30, 2009, 04:53:44 PM
If you have access to C++ its simple. Just check the source-code which you can download and go thru it in detail, you'll find it.
If you have no knowledge of coding and no interest in learning it, dont bother ... :)
The most importants aspect is the "interested in learning" bit ;)