Changing colors automatically.

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
The Wall
On Lightcycle Grid
Posts: 14
Joined: Mon Feb 13, 2006 7:04 pm
Location: REIMS (Champagne (Hummm!))

Changing colors automatically.

Post by The Wall »

Hi everyone,

Sorry for my English translated, I only speak french. (Yet!)

First, I am void in programming, I used examples that I found
On the internet to do my script.

I change the colors of the walls and bike regularly.
This script modifies the values B1, G1 and R1 file user.cfg
With random values between 0 and 255, every 3 minutes.

The script works very well. When I do not play!
But by playing nothing this product. Whether local or on the Internet.
Yet by playing when I manually change these values, they are taken into account at the next round.

My question is: Where are the values stored during the game?
I modify the values in the file user.cfg in "C: \ Documents and Settings \ name assignment \ Application Data \ Armagetron \ var

Thank you.

In french :
Changer les couleurs automatiquement

Salut tout le monde,

Désolé pour mon anglais traduit, je ne parle que français. (encore !)

D'abord, je suis nul en programmation, j'ai utilisé des exemples que j'ai trouvé
sur internet pour faire mon script.

J'aime changer les couleurs de la moto et des murs régulièrement.
Ce script modifie les valeurs B1, G1 et R1 du fichier user.cfg
avec des valeurs aléatoires entre 0 et 255, toutes les 3 minutes.

Le script fonctionne très bien. Quand je ne joue pas !
Mais en jouant, rien ne ce produit. Que ce soit en local ou sur internet.
Pourtant, en jouant, quand je change ces valeurs manuellement, elles sont prises en compte au round suivant.

Ma question est : où sont stockées les valeurs pendant le jeu ?
Je modifie les valeurs du fichier user.cfg dans
"C:\Documents and Settings\nom de cession\Application Data\Armagetron\var

Merci.
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

During the game, the values are stored in memory only. If you write your values into the file "var/everytime.cfg", they will be read from there between rounds, however, so I suggest you try that.
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

The values are stored in the game's memory, not in a file. The file just keeps track of values for the game when it's not running. To change the color during gameplay you still have to use the console. It's also possible to modify the game so it does what you want, but you need at least some programming ability to do that.

z-man: everytime.cfg didn't do anything on my Mac 0.2.8.2.1 client. Too lazy to check the code.
ˌɑrməˈɡɛˌtrɑn
The Wall
On Lightcycle Grid
Posts: 14
Joined: Mon Feb 13, 2006 7:04 pm
Location: REIMS (Champagne (Hummm!))

Post by The Wall »

Hi Z-Man, and thank you,

I have no everytime.cfg in var.
I made a copy of user.cfg, I moved to everytime.cfg,
The values are changed, but not in the game
The Wall
On Lightcycle Grid
Posts: 14
Joined: Mon Feb 13, 2006 7:04 pm
Location: REIMS (Champagne (Hummm!))

Post by The Wall »

Hi Jonathan,

Finally, there is no solution for me! :oops:
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

just put the settings you want to change in everytime.cfg, not the whole user.cfg :)

ne mets pas tous les params dans everytime.cfg, mets sulement ce que tu veux changer(en l'occurence les couleurs)
The Wall
On Lightcycle Grid
Posts: 14
Joined: Mon Feb 13, 2006 7:04 pm
Location: REIMS (Champagne (Hummm!))

Post by The Wall »

Hi Epsy,

I did what you said, but it does not work!

J'ai fait ce que tu as dit, mais ça ne fonctionne pas !
User avatar
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Oh, sorry, I only looked at the code and didn't see that the everytime.cfg loading only applies to the dedicated server. So sorry, no way to get what you want. On Unix and with a bleeding edge arma version, you could send your client a SIGHUP signal, which would trigger a configuration file reload; such a thing does not exist in Windows, however.
The Wall
On Lightcycle Grid
Posts: 14
Joined: Mon Feb 13, 2006 7:04 pm
Location: REIMS (Champagne (Hummm!))

Post by The Wall »

Too bad, I will continue to manually change my colors!
Post Reply