WEC overlay
 
Notifications
Clear all

WEC overlay

8 Posts
5 Users
0 Likes
490 Views
(@peti30)
Active Member
Joined: 4 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 4 months ago by Peti30

   
Quote
(@suzume)
Active Member
Joined: 5 months ago
Posts: 6
 

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: 4 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
(@bettyking)
New Member
Joined: 2 months ago
Posts: 1
 

I just wanted to let you know that I just looked at your website and found it to be very interesting and helpful <a href=" removed link " target="_blank" rel="noopener">io games

 


   
ReplyQuote
(@peti30)
Active Member
Joined: 4 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: 1 month 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: 4 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: 1 month 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 1 month ago 2 times by WiisardNic

   
ReplyQuote
Share: