Justin Martin
05-02-2002, 06:15 PM
I decided a few weeks ago to write this program when BluEyes brought up the topic of the Opponent Data tables. I'd been messing around with the physics of car acceleration with the idea of writing a program to calculate acceleration, (yes, I have a copy of CarTest, but I wanted to do it myself) so I thought it would be easy to adapt what I had been messing with to a more practical NFSHS application. ;)
So here's the result. It's not much, and it is extremely user intensive; it requires alot of user input to run. And it's very userunfriendly. But it does do the very repetitive task of calculating the opponent data tables fairly quickly. I've tested it on a few of the cars I made estimated tables for, and the results seem to be pretty close to those tables, and they give the opponents pretty accurate acceleration.
I'm working on making it more userfriendly, i'm going to set it up so that you enter the torque curve in either 500rpm or 1000rpm increments up front, then the program will automatically calculate how much torque the engine is putting out at a specific rpm based on that. I'm also going to make it work so that the outputed data is in the proper format to be put right into the carp.txt, right now it requires a bit of formating.
So without further ado, here it is: http://pitstop.totalnfs.net/pics/accel.zip
Make sure that you read the readme.txt first. The QBASIC source is also included for those of you who want to see how it works, though i'm warning you, it's very, very messy. ^_^
So here's the result. It's not much, and it is extremely user intensive; it requires alot of user input to run. And it's very userunfriendly. But it does do the very repetitive task of calculating the opponent data tables fairly quickly. I've tested it on a few of the cars I made estimated tables for, and the results seem to be pretty close to those tables, and they give the opponents pretty accurate acceleration.
I'm working on making it more userfriendly, i'm going to set it up so that you enter the torque curve in either 500rpm or 1000rpm increments up front, then the program will automatically calculate how much torque the engine is putting out at a specific rpm based on that. I'm also going to make it work so that the outputed data is in the proper format to be put right into the carp.txt, right now it requires a bit of formating.
So without further ado, here it is: http://pitstop.totalnfs.net/pics/accel.zip
Make sure that you read the readme.txt first. The QBASIC source is also included for those of you who want to see how it works, though i'm warning you, it's very, very messy. ^_^