Author Topic: Support documentation for x-sim dll's?  (Read 26933 times)

RamjetR

  • Approved Newbie
  • *
  • Posts: 11
    • View Profile
Support documentation for x-sim dll's?
« on: May 30, 2012, 01:03:34 am »
Hi Christiano,

I've been playing with X-Sim with your plugin DLLs for the SPI-D.

I'm also looking to directly drive the SPI-D and Pro Shift from my program I'm writing to support the Model 2 Emulator. We'd discussed briefly about adding support to SimDash a while ago, but the need to separate the programs is due to the specific timing and PCB emulation I'm running within my script to generate the correct outputs for the original Daytona USA/Sega Rally/Sega Touring Car/Indy 500 etc...

Do you have any information on the DLL function calls to send data from within a script directly to a SPI-D and Proshift to allow users to make custom programs to use your X-Sim DLLs? I would love to include support for my entire dashboard :)

Here is what I've got running with X-Sim now, however I've had trouble finding the base pointer address to restore the values directly from the emulator whilst I caputure the data in X-Sim?

http://www.youtube.com/watch?v=IcL7lVOVsFA

Check out the my channel for more info on my race rig if you'd like also.

But I'd love to have some documentation on the commands needed to use the SPI-D DLL etc..

Ramjet :D

Cristiano

  • Administrator
  • Hero Member
  • *****
  • Posts: 1360
    • View Profile
    • SymProjects
    • Email
Re: Support documentation for x-sim dll's?
« Reply #1 on: May 30, 2012, 07:06:23 pm »
Hello.

From what I understand you don't have to create a x-sim plugin right?
do you want to know how to send data to the display from your own application?

Please tell me what language you use and I will send you some example code.

Regards
Cristiano

RamjetR

  • Approved Newbie
  • *
  • Posts: 11
    • View Profile
Re: Support documentation for x-sim dll's?
« Reply #2 on: May 30, 2012, 11:08:00 pm »
Thats right, I'm not creating a pluggin for X-Sim, but rather making my own utility to emulate the output drive PCB of Sega Model 2  Arcade machines.

I'm using autohotkey for my application. It has the ability to call dll's directly which is how I call the pacdrive dll for setting outputs for my cabinet lighting to match my output Pcb emulation.

Autohotkey scripting would be great! Is the dll calls the same for all your dll's? And is it possible to have a dll for the proshift too? I have a complete dashboard in 2 arcade cabinets, both have a proshift for rpm and indicators, and a spi-d for speed and shift light.

It's looking great and getting alot of attention in the arcade forums. :)
« Last Edit: May 31, 2012, 12:00:03 pm by RamjetR »

Cristiano

  • Administrator
  • Hero Member
  • *****
  • Posts: 1360
    • View Profile
    • SymProjects
    • Email
Re: Support documentation for x-sim dll's?
« Reply #3 on: May 31, 2012, 10:07:39 pm »
Thats right, I'm not creating a pluggin for X-Sim, but rather making my own utility to emulate the output drive PCB of Sega Model 2  Arcade machines.

I'm using autohotkey for my application. It has the ability to call dll's directly which is how I call the pacdrive dll for setting outputs for my cabinet lighting to match my output Pcb emulation.

Autohotkey scripting would be great! Is the dll calls the same for all your dll's? And is it possible to have a dll for the proshift too? I have a complete dashboard in 2 arcade cabinets, both have a proshift for rpm and indicators, and a spi-d for speed and shift light.

It's looking great and getting alot of attention in the arcade forums. :)

do you think you can call methods from a .NET assembly (.dll)? from a quick look at the forum it seems possible.
Because I am more familiar with .NET and would be easier to create a .NET dll instead of a native one

RamjetR

  • Approved Newbie
  • *
  • Posts: 11
    • View Profile
Re: Support documentation for x-sim dll's?
« Reply #4 on: May 31, 2012, 10:56:51 pm »
I'm not familiar with .NET calls at all, but very willing to learn how to use them in AHK. If it's a similar DllCall(x,x,x,x) function to how I use the PacDrive. Then I shouldn't have any problem with it.

Currently I address and call the PacDrive (LED Controller) with the following code (extracted from my code notes);

; Uses of the PacDrive.dll
; First, Load the Library with DllCall("LoadLibrary", "str", "PacDrive.dll")
; Then Initialize the PacDrive with DllCall("PacDrive.dll\PacInitialize")
; To set the LEDs as a whole use DllCall("PacDrive.dll\PacSetLEDStates",Int,0,UShort,0)   -  Note (integer, pacdrive ID, short integer, decimal value for LEDs)
; To set induvidual LEDs, use DllCall("PacDrive.dll\PacSetLEDState",Int,0,Int,0,Int,1)     -  Note (integer, pacdrive ID, integer, pin0, integer, 1 means ON)

If usage is similar to this, then I'm ready to rock :)


RamjetR

  • Approved Newbie
  • *
  • Posts: 11
    • View Profile
Re: Support documentation for x-sim dll's?
« Reply #5 on: July 13, 2012, 02:27:45 am »
Hi Cristiano,

Just wondering how you went with documenting what the syntax would be to call and use your DLL to directly send an update to the SPI-D and Pro Shift?

I know your busy, a quick example usage syntax would get me going nicely.

Thanks.

Ramjet :D

Cristiano

  • Administrator
  • Hero Member
  • *****
  • Posts: 1360
    • View Profile
    • SymProjects
    • Email
Re: Support documentation for x-sim dll's?
« Reply #6 on: July 13, 2012, 05:17:19 pm »
Hi Cristiano,

Just wondering how you went with documenting what the syntax would be to call and use your DLL to directly send an update to the SPI-D and Pro Shift?

I know your busy, a quick example usage syntax would get me going nicely.

Thanks.

Ramjet :D



Sorry the code above doen't work with .NET DLLs and support for .NET in autohotket is limited I would say.
What I would need is a "native" DLL that access the SPI-D and the GIMax and then I would tell you what parameter to pass to the mathod calls.

But I don't have such a DLL, sorry


 

hit counter