Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
show ai speed/gear
09-04-2009, 06:21 AM
Post: #1
show ai speed/gear
hey,

is there a possibility to show not only the human drivers speed etc., but also the ai drivers actual speed and gear in the players window.

greetings
flo
Find all posts by this user
Quote this message in a reply
09-06-2009, 12:58 AM
Post: #2
 
So I understand properly... are you asking how to modify the VDrift code to make the AI driver info show on the HUD instead of the players?
Find all posts by this user
Quote this message in a reply
09-07-2009, 10:43 AM
Post: #3
 
Not to show it instead, to show it additionally (if that's possible).
I'm trying to set the AI drivers control with mathemtically optimized control data (see http//vdrift.net/Forum/viewtopic.php?t=970&start=0&postdays=0&postorder=asc&highlight= ) and I want to check if my input data arrives correctly.
Find all posts by this user
Quote this message in a reply
09-09-2009, 11:08 PM
Post: #4
 
Changing the HUD to display the AI data instead is pretty easy, you just need to move the hud.Update call in game.cpp out of the "if (carcontrols_local.first == &car)" block and put it in an "else" block for that if statement. Outputting AI data in addition to the player data would require more significant changes to hud.h and hud.cpp as well as how game.cpp calls hud.Update.
Find all posts by this user
Quote this message in a reply
09-14-2009, 07:21 AM
Post: #5
 
Thanks, changing the HUD display worked.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)