The Official Saitek Forum  

Go Back   The Official Saitek Forum > General > X52 Pro MFD Plug-in/SDK discussion
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 15th June 2010, 17:02
ellF ellF is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
Updated C# .dll Wrapper

Hi all,

I am currently working on a plugin for Evochron Legends, and in doing so have updated the AstroMech wrapper class that Spksh originally provided in 2007.

Main changes in my version are:
  • Support for all SDK functions aside from SetImage (which does not work on the x52 Pro)
  • XML-style C# comments, resulting in better IntelliSense support when coding in Visual Studio
  • Added full comment documentation for every argument and return type
  • Set a single const dllPath string, instead of respecifying the path manually in every call to DllImport
  • Reorganized function order to match their order in the SDK documentation
  • Changed delegates from returning int to returning void (per the SDK)

Hope that's helpful to some folks!
Attached Files
File Type: zip DirectOutputClass.zip (3.5 KB, 26 views)
Reply With Quote
  #2  
Old 16th June 2010, 01:49
Spksh's Avatar
Spksh Spksh is offline
Registered User
 
Join Date: Apr 2003
Location: The ass-end of space
Posts: 511
Nice work, ellF.
Reply With Quote
  #3  
Old 16th June 2010, 02:46
ellF ellF is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
Thank you! Really not a lot to do, just a quick update to reflect a few minor changes. You really made the whole thing possible.
Reply With Quote
  #4  
Old 16th June 2010, 03:09
Spksh's Avatar
Spksh Spksh is offline
Registered User
 
Join Date: Apr 2003
Location: The ass-end of space
Posts: 511
What's your plugin going to do?
Reply With Quote
  #5  
Old 16th June 2010, 03:38
ellF ellF is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
I'm displaying 5 or so pages of ship data, as well as changing/blinking various LEDs based on in-game conditions (such as being targeted by a missile, running low on fuel, etc., etc.). Basically done -- was about a day of work, once I had the wrapped working.
Reply With Quote
  #6  
Old 16th June 2010, 03:45
Spksh's Avatar
Spksh Spksh is offline
Registered User
 
Join Date: Apr 2003
Location: The ass-end of space
Posts: 511
Quote:
Originally Posted by ellF View Post
(such as being targeted by a missile, running low on fuel, etc., etc.).
Awesome, that's what I wanted to do for Star Wars Galaxies but I couldn't get to the data without some nasty memory scraping.

Got any pics of what it looks like?
Reply With Quote
  #7  
Old 16th June 2010, 03:47
ellF ellF is offline
Registered User
 
Join Date: Jun 2010
Posts: 4
I actually emailed the developer behind Evochron, and he thought it was a cool idea and provided me with a custom version of the game that periodically (every 500ms, by default) writes the data I'm showing out to a file. Trivial to pick it up from there and display it, really.

Still polishing up the output; once it's done, I'll upload some pictures.
Reply With Quote
  #8  
Old 16th June 2010, 03:56
Spksh's Avatar
Spksh Spksh is offline
Registered User
 
Join Date: Apr 2003
Location: The ass-end of space
Posts: 511
Quote:
Originally Posted by ellF View Post
I actually emailed the developer behind Evochron, and he thought it was a cool idea and provided me with a custom version of the game that periodically (every 500ms, by default) writes the data I'm showing out to a file. Trivial to pick it up from there and display it, really.

Still polishing up the output; once it's done, I'll upload some pictures.
Nice. I tried that with SOE and they ignored me
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 19:43.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) Saitek 2001