Jump to content


- - - - -

Car Files And Car Numbers


  • Please log in to reply
9 replies to this topic

#1 kunc

kunc

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 101 posts
  • Sim interest:GPL

Posted Nov 24 2020 - 10:41 AM

I'm fiddling around with the 1966 mod, where I'm trying to get Mike Parkes into the Ferrari 246.

Currently he is in the Ferrari 312 66A (team_number = 9, team_order = 2 in the driv66.ini).
Lorenzo Bandini is in the Ferrari 312 66B (team_number = 9, team_order = 1 in the driv66.ini).

Both sets of graphics are in the cars/cars66/ferrari folder.
First Question: What parameter in the driv66.ini determines which Ferrari is assigned to the drivers?
Note: I tried making Parkes drive the Ferrari 312 66B by changing team_order = 1, but that did not change his car.

Next, I tried making Parkes drive the Ferrari 246 by changing team_number = 10.
The graphics for the 246 are in the cars/cars66/c11 folder.
That worked, but the car has no number (despite having the 22 skin in the c11 folder).
Second Question: Why doesn't the car display the number?

Thanks in advance for any insight you can provide!

Attached Files



#2 paul skingley

paul skingley

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 753 posts
  • Gender:Male
  • Sim interest:GPL

Posted Nov 24 2020 - 12:16 PM

The 66 mod uses track specific driver ini. When the mod was installed these would have been installed to the championship season tracks. If you edit the driver file in the gpl folder you will not see any change if there is a driv66.ini in whatever track you are testing.

If you check the driv66.ini in your monza track you can see Parkes data has a line "graphics = 1" =  he will drive the B car. If it were set to graphics = 0 he will drive the A car.


312A graphics = c16
312B graphics = ferrari
246 graphics = c11


If you check the track specific driver ini for 1969xtra mod you can see more graphic options in the track specific driver ini.


Paul

Edited by paul skingley, Nov 26 2020 - 01:23 PM.


#3 kunc

kunc

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 101 posts
  • Sim interest:GPL

Posted Nov 24 2020 - 02:52 PM

I'm making up my own "season", and prefer to use the same 19 AI drivers throughout.
Therefore, I've renamed/removed all of the track-specific driv66.ini files from their respective track folders.
GPL will then pull the drivers from the driv66.ini file in the root GPL directory.
I've modified the root driv66.ini file to include the drivers that I prefer by pulling their information from track-specific driv66.ini files.
So far, everything is working out as planned, but I've been puzzled by the Ferrari.
I do see in the monza-specific driv66.ini the "graphics = " line you mentioned.
I suspect if I add that line in the root driv66.ini, I'll be able to choose which 312 Parkes drives (will test later - now confirmed).
By changing the Team number from 9 to 10, I was able to place Parkes in the 246 (albeit without a car number).

Thanks for taking the time to respond, I'll play around with information that you've provide and see what I get!

Edited by kunc, Nov 25 2020 - 01:58 PM.


#4 paul skingley

paul skingley

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 753 posts
  • Gender:Male
  • Sim interest:GPL

Posted Nov 25 2020 - 04:31 PM

View Postkunc, on Nov 24 2020 - 02:52 PM, said:

By changing the Team number from 9 to 10, I was able to place Parkes in the 246 (albeit without a car number).

So you need to make a Parkes driver.3do with whatever number you choose and a skin with that number to match and place them in the 246 folder ( c10 )

#5 kunc

kunc

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 101 posts
  • Sim interest:GPL

Posted Nov 26 2020 - 12:52 PM

Okay ... here's what I did (Note that the Ferrari 246 files are in the c11 folder. The c10 folder contains the Eagle T1G variant).

1. unpacked "c11" to access c1122.mip (#22 skin)
2. unpacked "ferrari" to access parhelm.mip parface.mip par22a.3do
3. renamed c1122.mip to par22a.mip
4. copied those files into the "c11" folder

Result: Mike Parkes is in the 246 with car number 22 (image attached).
However, there missing skin panels, no interior parts, or dash components.
Evidently I would have to copy over and rename additional body parts.
Although I have a better understanding of the file structure now, it is getting too complicated for me!
Paul, thanks for your help!

Attached Files



#6 paul skingley

paul skingley

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 753 posts
  • Gender:Male
  • Sim interest:GPL

Posted Nov 26 2020 - 01:17 PM

Yes sorry c11 not C10.

If you use the c1122.3do renamed to Par22a.3do you should get all the parts and the c1122.mip skin.

You will still have the player face and helmet etc...
To change that use a binary HEX editor like Frhed


Tip - If after your edits you see the default car ( no number ) instead of your new car, it normally means you screwed up somewhere.


Paul

Edited by paul skingley, Nov 26 2020 - 01:24 PM.


#7 kunc

kunc

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 101 posts
  • Sim interest:GPL

Posted Nov 27 2020 - 11:38 AM

Paul, that last directive from you did the trick ... Thanks!

Revised work instruction:
1. unpack cars66/c11/c11.dat file to access c1122.3do (#22 car 3do)
2. unpack cars66/ferrari/ferrari.dat" file to access parhelm.mip parface.mip
3. rename c1122.3do to par22a.3do (to override the default 3do in the c11.dat)
4. rename parhelm.mip to 622helm.mip (to override the default helmet in the c11.dat)
5. rename parface.mip to 622face.mip (to override the default face in the c11.dat)
6. copy the renamed files into the "c11" folder
7. change Michael Parkes "team_number = 9" to "team_number = 10" in the relevant driv66.ini
8. delete Michael Parkes "graphics = 0" line in the relevant drive66.ini (if present)
Result: Mike Parkes in the Ferrari 246 with car number 22 and appropriate helmet and face.

#8 webfoot

webfoot

    Denny Hulme

  • Supporter
  • PipPipPipPipPipPipPipPipPipPip
  • 379 posts
  • Gender:Male
  • Location:Birmingham England
  • Interests:.
  • Sim interest:GPL

Posted Nov 27 2020 - 02:28 PM

In steps 4 & 5 you could  have updated the par22a.3do to use parhelm.mip and parface.mip.

The easy way to do this is to use the Racecon utility.

http://srmz.net/inde...?showtopic=3114

#9 paul skingley

paul skingley

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 753 posts
  • Gender:Male
  • Sim interest:GPL

Posted Nov 27 2020 - 03:43 PM

Agreed, better to edit the Par22a. 3do.

You can use racecon as webfoot says or any Hexadecimal editor like Frhed.
Sounds complicated but actually very easy to do if the amount of letters or numbers in the data remains the same.


Paul

Edited by paul skingley, Nov 27 2020 - 10:49 PM.


#10 kunc

kunc

    Denny Hulme

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 101 posts
  • Sim interest:GPL

Posted Nov 27 2020 - 04:17 PM

Racecon is new to me (although I downloaded it years ago, and have it in my GPL Utilities folder).
I poked around and right-clicked on some things in the file string and think I see where and how to edit the .3do file.
Interesting stuff!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Sim Racing Links