Race Sim Central
Rec.Autos.Simulators Archive

N4 AI Parameter Editing

6 posts by 4 people · 09 Apr 2001 22:45 UTC - 10 Apr 2001 06:33 UTC

BearMtn 09 Apr 2001 22:45 UTC#191464
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
Tim 09 Apr 2001 23:57 UTC↳ reply to BearMtn#191484
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 > > >
Tex 10 Apr 2001 01:50 UTC↳ reply to Mike White#191558
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]...
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 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 thefile,
Quoted 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 > > > > > > > > >
Mike White 10 Apr 2001 03:10 UTC↳ reply to Tex#191575
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]...
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 why
this
Quoted text (12 lines)> > > happens, or how to alter the AI params outside of the game? > > > Thanks in advance... > > > Ken > > > > > > > > > > > > > > > > > >
Tim 10 Apr 2001 06:33 UTC↳ reply to Tex#191585
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!

Sponsors

Affiliate Links

Sim Gaming Expo MOZA Racing Sim-Lab Fanatec TrakRacer Asetek Internet Privacy From NordVPN Dreamhost Capital One Credit Card Application Fanatical CDKeys Amazon Amazon UK Project Motor Racing iRacing Get your racing gloves, boots and more from Demon Tweeks. Enlist at Roberts Space Industries, developers of Star Citizen and Squadron 42


Back from the ashes since July, 2019. First created in 2001 with the merger of Legends Central (founded 1999) and simracing.dk.

A site by a sort of sim racer, for sim racers, about racing sims. News and information on both modern and historic sim racing software titles.

All products and licenses property of their respective owners.


Facebook Threads Bluesky Twitter Mastodon Instagram YouTube Tiktok Twitch Reddit Google News Apple News Subscribe via WordPress Flipboard eBay

Race Sim Central © 1999-2026 | Some links pay RSC a commission. Advertising does not equal endorsement.Cookie Policy