SimHub icon indicating copy to clipboard operation
SimHub copied to clipboard

Automobilista starts to work only after the first trip to the track

Open rprediger opened this issue 4 years ago • 2 comments

In the game "Automobilista" the data only begins to be read after the first trip to the track. This is a problem for spectator mode where data does not work and for creating HUD for stream transmission

As a player (before going to the track) 01

In spectator mode 02

rprediger avatar Jul 09 '20 18:07 rprediger

Hi ! Indeed automobilista/pcars2 has no explicit spectator support. I will look to add it in the future.

SHWotever avatar Jul 09 '20 18:07 SHWotever

Hello @SHWotever I am happy to be able to contribute to this great project. I developed a pluggin (dll) for the 'Automobilista' just using the "rFactorSharedMemoryMap" and it worked without problems in both situations. I believe it must be some lock that you put in before you actually started looking for data in the 'Automobilista'. Although my solution worked I think it is a waste of the software to search twice for the same data in addition to limiting the development of the HUD to a single simulator. If you want I can give you all the code I made although I believe that, in addition to not being necessary, you are much more capable than me!

rprediger avatar Jul 10 '20 00:07 rprediger