Hi guys,
I have several questions. I'm making a wec oboard overlay for Assetto Corsa but i can't do some things.
1. I want an object to change color on shifting, like if i shift up it will be green but then it has to go back to white
2. How can I display the car brands logo and the race number?
I think that's all i need. Can you guys help me if it's even possible to do?
thanks, Peter
Indeed. You can use the gear property in SimHub to control the color of an object based on the current contexto gear.
@suzume Hi, can you tell me exactly how to do it?
Sorry i'm just a beginner in this...
Hi man,
I figured out how to change color when shifting but I couldn't do that to show different color when switching up or down. I mean if i shift up it will turn green than back white, but if i shift down it also turn green instead of red. Any help?
It sounds like you're working on a coding project where you're trying to change the color based on certain actions, like shifting up or down. To achieve the desired behavior of changing the color to green when shifting up and to red when shifting down, you'll need to implement logic to differentiate between these two actions.
And can you tell me like what should I write in the Ncalc code or if its too complicated, can you navigate me where can i get/learn that?
It's very tough, have been trying to do something similar for just a timing dash (trying to get it as close as I can to the TV layout)
<a href=" removed link " target="_blank" rel="noopener">Image
I'm doing this to work with Assetto Corsa, so not sure on how this will affect your project.
* Car number I was able to link to the car's skin name, but the car skin names will need to be formatted to fit this.
* Brand logo works off the variable $prop('GameRawData.Car.CarInfo.brand')
So, you'd need to set up a javascript if/else condition like below
if(a=='Ford') {
return 'Ford'}
* The main issue I'm having with mine is the timing sectors, mostly for when a lap ends. My understanding of the graphics (if you have a look at the template image above) is that the three sector boxes pick up the difference between the observed driver's current sector time, and the session best time only for that sector (with the number in the bottom middle being the overall lap delta). But, when finishing the lap (particularly if the observed driver beats the session best lap time, thus their lap time now being the session best) resets values and just shows up weird.
EDIT - ok, I can't get the image working or a link, that sucks