WEC overlay
 
Notifications
Clear all

WEC overlay

7 Posts
4 Users
0 Reactions
1,366 Views
(@peti30)
Active Member
Joined: 11 months ago
Posts: 4
Topic starter  

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

This topic was modified 11 months ago by Peti30

   
Quote
(@suzume)
Active Member
Joined: 12 months ago
Posts: 8
 

Indeed. You can use the gear property in SimHub to control the color of an object based on the current contexto gear.


   
ReplyQuote
(@peti30)
Active Member
Joined: 11 months ago
Posts: 4
Topic starter  

@suzume Hi, can you tell me exactly how to do it?

Sorry i'm just a beginner in this...


   
ReplyQuote
(@peti30)
Active Member
Joined: 11 months ago
Posts: 4
Topic starter  

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?


   
ReplyQuote
(@grase73)
Active Member
Joined: 8 months ago
Posts: 6
 

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.


   
ReplyQuote
(@peti30)
Active Member
Joined: 11 months ago
Posts: 4
Topic starter  

@grase73 

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?


   
ReplyQuote
(@wiisardnic)
New Member
Joined: 8 months ago
Posts: 1
 

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

This post was modified 8 months ago 2 times by WiisardNic

   
ReplyQuote
Share: