Author Topic: Output plugins  (Read 7646 times)

HornetMaX

  • Hero Member
  • *****
  • Posts: 5616
    • View Profile
Re: Output plugins
« Reply #15 on: August 09, 2015, 10:11:28 AM »
@h106frp: if you're compiling c++ you have to put extern "C" before all __declspec(dllexport)
Should be like this:

Code: [Select]
extern "C" __declspec(dllexport) int Startup(char *_szSavePath)
{
 ... ...

MaX.

h106frp

  • Hero Member
  • *****
  • Posts: 1651
    • View Profile
Re: Output plugins
« Reply #16 on: August 09, 2015, 10:17:42 AM »
Thanks, i will recompile,still getting to grip with C++

HornetMaX

  • Hero Member
  • *****
  • Posts: 5616
    • View Profile
Re: Output plugins
« Reply #17 on: August 09, 2015, 10:20:57 AM »
If you only want to use C you won't need the "extern" declaration. But you need to tell your compiler that you want to compile C-style :)

MaX.

h106frp

  • Hero Member
  • *****
  • Posts: 1651
    • View Profile
Re: Output plugins
« Reply #18 on: August 09, 2015, 10:53:33 AM »
All good now  :) Acceleration outputs looking more like i was hoping for at 100Hz rate :)

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2237
    • View Profile
Re: Output plugins
« Reply #19 on: October 27, 2015, 11:33:25 PM »

Example source code updated to the latest interface.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5616
    • View Profile
Re: Output plugins
« Reply #20 on: October 27, 2015, 11:45:12 PM »
Oh damn, more work :)

Thanks !

MaX.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2237
    • View Profile
Re: Output plugins
« Reply #21 on: February 18, 2016, 04:21:28 PM »

Example source code updated to the latest interface.

The only change is the addition of m_fTrackPos to SPluginsRaceTrackPosition_t
Since this structure was probably still unused, no changes have been made to version checking, to preserve compatibility.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5616
    • View Profile
Re: Output plugins
« Reply #22 on: February 18, 2016, 08:19:22 PM »

Example source code updated to the latest interface.

The only change is the addition of m_fTrackPos to SPluginsRaceTrackPosition_t
Since this structure was probably still unused, no changes have been made to version checking, to preserve compatibility.
Thx (and no problem for me about the ninja change).

One question however: it seems to me that the issue discussed here (client not being able to know his own race number, or the number of the bike being watched, if in replay mode on a bike-attached camera) is still not solved.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2237
    • View Profile
Re: Output plugins
« Reply #23 on: February 18, 2016, 08:38:42 PM »

Example source code updated to the latest interface.

The only change is the addition of m_fTrackPos to SPluginsRaceTrackPosition_t
Since this structure was probably still unused, no changes have been made to version checking, to preserve compatibility.
Thx (and no problem for me about the ninja change).

One question however: it seems to me that the issue discussed here (client not being able to know his own race number, or the number of the bike being watched, if in replay mode on a bike-attached camera) is still not solved.

RaceVehicleData should receive the data you need, using the SPluginsRaceVehicleData_t structure.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5616
    • View Profile
Re: Output plugins
« Reply #24 on: February 18, 2016, 09:18:52 PM »
RaceVehicleData should receive the data you need, using the SPluginsRaceVehicleData_t structure.
Embarassing, I dind't even notice it  :-[

Thx !

asic_designer

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Encephalon Nand Logic Smart Helmet
Re: Output plugins
« Reply #25 on: March 09, 2016, 07:55:59 PM »
Hi All

  This is a great post!!! I want to use this simulator for a few projects that I have in the works, and I was wondering if I could get real time data, this is great, now I know I can.  One question what about GPS, can I have the simulator output a NMEA sentence, or perhaps simply the GPS coordinates?
Encephalon Nand Logic Smart Helmet
http://www.nandlogic.com/promo-smarthelmet.php

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2237
    • View Profile
Re: Output plugins
« Reply #26 on: October 01, 2016, 02:06:04 PM »

Example source code updated to the latest interface.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2237
    • View Profile
Re: Output plugins
« Reply #27 on: November 20, 2016, 10:35:09 PM »

Example source code updated to the latest interface.
Removed the "semaphore" session state only.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5616
    • View Profile
Re: Output plugins
« Reply #28 on: November 22, 2016, 07:55:21 PM »
Totally minor, but I still see the "semaphore" state in the comments of the example.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2237
    • View Profile
Re: Output plugins
« Reply #29 on: February 16, 2017, 10:50:39 PM »

Example source code updated to the latest interface.