Sign in to follow this  
{cool.G} ingre

generator > Init & Exec CFG Files

Recommended Posts

Hello ICEops

somebody knows of whether there is generator.exe for cfg files, for execute every maprotation

I have created color.cfg, for change the color of the teams and team name.

But he work just first start server ;first map work good but next map no

must give comand in console execute color.cfg

thx for answer

Share this post


Link to post
Share on other sites

Sorry, not related to your question at all, but what are the commands to change the scoreboard color server-side?

I see the IceOps servers do it (red and blue), but I have no clue how to do this myself.

On-topic: if you execute the color.cfg from the startup options (so like +set dedicated 2 +exec color.cfg), doesn't it enable it for every map?

Share this post


Link to post
Share on other sites
Sorry, not related to your question at all, but what are the commands to change the scoreboard color server-side?

I see the IceOps servers do it (red and blue), but I have no clue how to do this myself.

No, you can change your scoreboard colour, size, shape, team-names for yourself. They are client side dvars.

Just open console and enter the word "scoreboard" and you will see a lot of commands int he dropdown you can use to customize yours.

But, as you join other servers, they will change the settings according to their mod. Those settings are in most cases saved into your cfg, so you lose your settings.

To prevent this, make config_mp.cfg file as read-only (I hope you know how to do that).

I also suggest making a bind to execute all the scoreboard commands to apply your settings on such servers.

Hope it helps :)

Share this post


Link to post
Share on other sites

Thought it was a mod/plugin thing and not some commands ran, a shame. I found the commands client-side but I hoped it would somehow work server-side too.

And I know how to do something as basic as making a file read-only lol, thanks anyway. I don't know any servers changing my scoreboard though.

Share this post


Link to post
Share on other sites
Thought it was a mod/plugin thing and not some commands ran, a shame. I found the commands client-side but I hoped it would somehow work server-side too.

And I know how to do something as basic as making a file read-only lol, thanks anyway. I don't know any servers changing my scoreboard though.

Our obscurity server changes scoreboard width, height, rank font scale etc. Very noticeable.

Share this post


Link to post
Share on other sites
just use the exec function in the patch to execuate cfgs randomly?(in gsc code ofc)

thx for answear

but can you explian or show screenshot wher i can execut this patch

From the custom patch

exec

==========================

Executes the given command on server as console command

Usage: void = exec(string );

You have to execute it in a GSC file, if you know how to script for CoD it can easily be done

Thought it was a mod/plugin thing and not some commands ran, a shame. I found the commands client-side but I hoped it would somehow work server-side too.

And I know how to do something as basic as making a file read-only lol, thanks anyway. I don't know any servers changing my scoreboard though.

You can find the screboard dvars in the _scoreboard.gsc, clients can change it if they wish but it will only effect them and not the whole server

An example on my server


{
switch(game["allies"])
{
case "sas":
setdvar("g_TeamName_Allies", "^1[Raid]^3SAS");

precacheShader("faction_128_sas");
setdvar("g_TeamIcon_Allies", "faction_128_sas");
setdvar("g_TeamColor_Allies", ".5 .5 .5");
setdvar("g_ScoresColor_Allies", "0.023 0.008 0 ");

break;

case "marines":
setdvar("g_TeamName_Allies", "^1[Raid]^3Marines");

precacheShader("faction_128_usmc");
setdvar("g_TeamIcon_Allies", "faction_128_usmc");
setdvar("g_TeamColor_Allies", "0.6 0.64 0.69");
setdvar("g_ScoresColor_Allies", "0.023 0.008 0 ");
break;
}

switch(game["axis"])
{
case "opfor":
case "arab":
setdvar("g_TeamName_Axis", "^1[Raid]^3Opfor");

precacheShader("faction_128_arab");
setdvar("g_TeamIcon_Axis", "faction_128_arab");
setdvar("g_TeamColor_Axis", "0.65 0.57 0.41");
setdvar("g_ScoresColor_Axis", "0.133 0.980 0 1");
break;

default:
setdvar("g_TeamName_Axis", "^1[Raid]^3Specsnaz");

precacheShader("faction_128_ussr");
setdvar("g_TeamIcon_Axis", "faction_128_ussr");
setdvar("g_TeamColor_Axis", "0.52 0.28 0.28");
setdvar("g_ScoresColor_Axis", "0.133 0.980 0 1");
break;
}
setdvar("g_ScoresColor_Spectator", "0.906 0.969 0 1");
setdvar("g_ScoresColor_Free", "1 0.016 0.016 1");
setdvar("g_teamColor_MyTeam", ".6 .8 .6" );
setdvar("g_teamColor_EnemyTeam", "1 .45 .5" );
}
init()

so techincally you can just select random colours everytime a player connects or what ever if you wish instead of having a cfg file.

Share this post


Link to post
Share on other sites
You can find the screboard dvars in the _scoreboard.gsc, clients can change it if they wish but it will only effect them and not the whole server

Well I changed some color values there (it's RGB right?), added it to localized_english_iw07.iwd uploaded to the server, but it didn't change anything.

I'll try again later, thanks for your help anyway!

Share this post


Link to post
Share on other sites
You can find the screboard dvars in the _scoreboard.gsc, clients can change it if they wish but it will only effect them and not the whole server

Well I changed some color values there (it's RGB right?), added it to localized_english_iw07.iwd uploaded to the server, but it didn't change anything.

I'll try again later, thanks for your help anyway!

Yes, it's R, G, B colours, make sure it's in maps/mp/gametypes directory and you haven't edited it client side and it will work.

Share this post


Link to post
Share on other sites
just use the exec function in the patch to execuate cfgs randomly?(in gsc code ofc)

thx for answear

but can you explian or show screenshot wher i can execut this patch

From the custom patch

exec

==========================

Executes the given command on server as console command

Usage: void = exec(string );

You have to execute it in a GSC file, if you know how to script for CoD it can easily be done

Thought it was a mod/plugin thing and not some commands ran, a shame. I found the commands client-side but I hoped it would somehow work server-side too.

And I know how to do something as basic as making a file read-only lol, thanks anyway. I don't know any servers changing my scoreboard though.

You can find the screboard dvars in the _scoreboard.gsc, clients can change it if they wish but it will only effect them and not the whole server

An example on my server


{
switch(game["allies"])
{
case "sas":
setdvar("g_TeamName_Allies", "^1[Raid]^3SAS");

precacheShader("faction_128_sas");
setdvar("g_TeamIcon_Allies", "faction_128_sas");
setdvar("g_TeamColor_Allies", ".5 .5 .5");
setdvar("g_ScoresColor_Allies", "0.023 0.008 0 ");

break;

case "marines":
setdvar("g_TeamName_Allies", "^1[Raid]^3Marines");

precacheShader("faction_128_usmc");
setdvar("g_TeamIcon_Allies", "faction_128_usmc");
setdvar("g_TeamColor_Allies", "0.6 0.64 0.69");
setdvar("g_ScoresColor_Allies", "0.023 0.008 0 ");
break;
}

switch(game["axis"])
{
case "opfor":
case "arab":
setdvar("g_TeamName_Axis", "^1[Raid]^3Opfor");

precacheShader("faction_128_arab");
setdvar("g_TeamIcon_Axis", "faction_128_arab");
setdvar("g_TeamColor_Axis", "0.65 0.57 0.41");
setdvar("g_ScoresColor_Axis", "0.133 0.980 0 1");
break;

default:
setdvar("g_TeamName_Axis", "^1[Raid]^3Specsnaz");

precacheShader("faction_128_ussr");
setdvar("g_TeamIcon_Axis", "faction_128_ussr");
setdvar("g_TeamColor_Axis", "0.52 0.28 0.28");
setdvar("g_ScoresColor_Axis", "0.133 0.980 0 1");
break;
}
setdvar("g_ScoresColor_Spectator", "0.906 0.969 0 1");
setdvar("g_ScoresColor_Free", "1 0.016 0.016 1");
setdvar("g_teamColor_MyTeam", ".6 .8 .6" );
setdvar("g_teamColor_EnemyTeam", "1 .45 .5" );
}
init()

so techincally you can just select random colours everytime a player connects or what ever if you wish instead of having a cfg file.

hello dude thx for answear

but tell me pls wher i must put this config.cfg

in main folder server?

// Init & Exec CFG Files

exec teamcontrol.cfg

Share this post


Link to post
Share on other sites
.cfg files getting read from main dir.

first time when i launch server

// Init & Exec CFG Files

exec teamcontrol.cfg

this comand work

team name and colors change ,but next map is OFF

normal original CoD4 colors back

because i ask here help me for it

maybe anyone know how make config color.cfg reload every maprotate

thx for help

Share this post


Link to post
Share on other sites
With a Quake3 style map rotation you can exec for each map a different configfile if you want so.

It works with the nextmap cvar. When the nextmap cvar is set sv_maprotation(current) cvars get ignored.

thx for answear but i dont know Quake3 how work

you know video TUTO?

or you have alredy ?

if you have can you send me?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this