Hi all...
While trying to develop a program to randomize driver ratings in AI, I came
across a problem...hopefully someone out there knows how to get around it.
I traced the problem down to this...when I open a .car file with
notepad/wordpad, and change one of the AI Parameters, then save the file, it
will no longer appear on the opponent screen. Does anyone know why this
happens, or how to alter the AI params outside of the game?
Thanks in advance...
Ken
When you save the file in a text editor your adding a character at the end
of the file, thus corrupting it
No way to get around that
Try using Visual Basic or Visual C, open the file as a binary and read it
into an array of some sort, edit it then write it back out as a binary
BearMtn <[email hidden]> wrote in message
news:9ate2s$4sh$[email hidden]...
> Hi all...
> While trying to develop a program to randomize driver ratings in AI, Icame
> across a problem...hopefully someone out there knows how to get around it.
> I traced the problem down to this...when I open a .car file with
> notepad/wordpad, and change one of the AI Parameters, then save the file,it
> will no longer appear on the opponent screen. Does anyone know why this
> happens, or how to alter the AI params outside of the game?
> Thanks in advance...
> Ken
>
>
Probably because the .car file is not plain text and notepad/wordpad is
screwing up the file or file name.
"BearMtn" <[email hidden]> wrote in message
news:9ate2s$4sh$[email hidden]...
> Hi all...
> While trying to develop a program to randomize driver ratings in AI, Icame
> across a problem...hopefully someone out there knows how to get around it.
> I traced the problem down to this...when I open a .car file with
> notepad/wordpad, and change one of the AI Parameters, then save the file,it
Quoted text (7 lines)
> will no longer appear on the opponent screen. Does anyone know why this > happens, or how to alter the AI params outside of the game? > Thanks in advance... > Ken > > >Yeah. Often when opening a text file in NP/WP, a .txt extension will get
tagged onto the end of the filename when saving, so ai.ini becomes
ai.ini.txt. You should be able to fix this by re-naming the file in
explorer and removing the erroneous extension info. At least that's what
happened to me with GPL's core.ini. Good luck!
Mike White <[email hidden]> wrote in message
news:DrsA6.3243$[email hidden]...
it.
> > I traced the problem down to this...when I open a .car file with
> > notepad/wordpad, and change one of the AI Parameters, then save thefile,
Quoted text (10 lines)
> Probably because the .car file is not plain text and notepad/wordpad is > screwing up the file or file name. > > > "BearMtn" <[email hidden]> wrote in message > news:9ate2s$4sh$[email hidden]... > > Hi all... > > While trying to develop a program to randomize driver ratings in AI, I > came > > across a problem...hopefully someone out there knows how to get aroundQuoted text (11 lines)
> it > > will no longer appear on the opponent screen. Does anyone know why this > > happens, or how to alter the AI params outside of the game? > > Thanks in advance... > > Ken > > > > > > > > >But that is only part of the problem. Most likely there are "characters" in
the .car file that NP/WP will either change, or ignore while loading.
"Tex" <[email hidden]> wrote in message
news:kFtA6.3672$[email hidden]...
this
Quoted text (24 lines)
> Yeah. Often when opening a text file in NP/WP, a .txt extension will get > tagged onto the end of the filename when saving, so ai.ini becomes > ai.ini.txt. You should be able to fix this by re-naming the file in > explorer and removing the erroneous extension info. At least that's what > happened to me with GPL's core.ini. Good luck! > > Mike White <[email hidden]> wrote in message > news:DrsA6.3243$[email hidden]... > > Probably because the .car file is not plain text and notepad/wordpad is > > screwing up the file or file name. > > > > > > "BearMtn" <[email hidden]> wrote in message > > news:9ate2s$4sh$[email hidden]... > > > Hi all... > > > While trying to develop a program to randomize driver ratings in AI, I > > came > > > across a problem...hopefully someone out there knows how to get around > it. > > > I traced the problem down to this...when I open a .car file with > > > notepad/wordpad, and change one of the AI Parameters, then save the > file, > > it > > > will no longer appear on the opponent screen. Does anyone know whyQuoted text (12 lines)
> > > happens, or how to alter the AI params outside of the game? > > > Thanks in advance... > > > Ken > > > > > > > > > > > > > > > > > >Windows .ini files are, by definition, text files
.car files need some sort of ascii file editor
There are several shareware pgms out there if you want to edit them manually
otherwise you'll need a programming language
Tex <[email hidden]> wrote in message
news:kFtA6.3672$[email hidden]...
> Yeah. Often when opening a text file in NP/WP, a .txt extension will get
> tagged onto the end of the filename when saving, so ai.ini becomes
> ai.ini.txt. You should be able to fix this by re-naming the file in
> explorer and removing the erroneous extension info. At least that's what
> happened to me with GPL's core.ini. Good luck!


































