Yes it is possible. GlobarVars.ini is where you would control this from, but it is not the only file you need to edit. The things in a mod that "create" a driver are:
1) Their helmet texture in the Data\Helmets folder
2) The driver's TeamArt picture in Data\TeamArt\Drivers folder
3) Their name and performance numbers in the performance file (location of this file depends on the mod author).
So we need to make CSM aware that we want a different driver helmet texture, teamart picture and performance file depending on whether we choose Massa, Badoer or Fisichella. The helmet and teamart parts are easy, the performance file part is more complicated, so let's start with the easy ones first
Driver helmet and teamartIn GlobalVars.ini there is a section called
[Vars]. In this section you will find some variables called driver01, driver02, driver03, ... etc etc. These variables tell CSM what
filename / folder to look for when loading files for that driver from Data\Helmets and Data\TeamArt\Drivers. In your example (2009 Ferrari driver), we want to edit the
driver03 variable because that is
Massa's car that year.
For example, if driver03 =
massa then CSM will load helmets from Data\Helmets\
massa\ and teamart from Data\TeamArt\
massa.gpi
But if we change driver03 =
badoer then CSM will load helmets from Data\Helmets\
badoer\ and teamart from Data\TeamArt\
badoer.gpi
And finally if driver03 =
fisichella then CSM will load helmets from Data\Helmets\
fisichella\ and teamart from Data\TeamArt\
fisichella.gpi
Still understanding?
Note: you need to put these files (helmet tex and teamart gpi) in the above folders so CSM can find them.
But we don't want to edit GlobalVars.ini every time to change driver03, right? Of course not!...
CSM allows you to change the variables in GlobalVars.ini from the CSM menu. To do this, add this to the end of your GlobalVars.ini:
[driver03]
AllowChange =1
Name =Ferrari driver?
VarCount =3
Var1 =massa
Var2 =badoer
Var3 =fisichella
So let's look at this line-by-line to see what it does:
[driver03] <-- this line tells CSM: "Hey CSM, I want to change the value of the variable named between the [ ] brackets". In this case we're changing the value of driver03.
Allowchange = 1 <-- this line tells CSM to make the choice appear in CSM "The mod's configurables" section.
Name = Ferrari driver? <-- this is the text that will appear in the CSM menu
VarCount = 3 <-- how many different values are we going to get the choice of?
Var1 = massa <-- choice 1
Var2 = badoer <-- choice 2
Var3 = fisichella <-- choice 3
When you make a choice in the menu, CSM will update driver03 in the [Vars] section accordingly. Try it out!
I'll do another post to explain how to change the performance files when I get back from work (this took a bit longer than I thought it would!!).
=====================================================
Intel NUC 8i3, 8GB RAM, MS Sidewinder Wheel