To fix this I edited the following entry in the file:
dll_path="C:\\Program Files (x86)\\Saitek\\DirectOutput\\DirectOutput.dll
to
dll_path="C:\\Program Files\\Saitek\\DirectOutput\\DirectOutput.dll
Any now it works.![]()
I'm working on removing the MS Access dependency right now (and then moving house tomorrow so there may be a short delay until I follow up again), but I'll do something about that - at least provide better feedback. Thanks for posting the detail.
Now I have couple of other questions.
Do you need to use --checklist to make useful in the MFD?
Short answer: Yes.
FYI - all of the commands can be abbreviated to their least-ambiguous abbreviation. "--cr" for credits, "--ch" for "checklist", "--x" for x52.
I'll make it tell you that you need to supply an interactive command, such as --checklist, for it to be useful.
If I dont use --checklist it shows something in MFD for a second and it disappears.
It's saying "TradeDangerous" "INITIALIZING" lol.
Only way its useful is if I run --checklist then it steps you through it but You have to ALT-TAB to go to the next step. I know you have contacted Saitek about it, have you had a response?
Yes. They said "I'll ask one of the developers". I'm in temporary housing right now, on my way to a shiny new job at Facebook, and I'm moving into my permanent housing tomorrow and Tuesday. When I'm done with that and the wife lets me near a computer again, I'll chase them.
is it possible to display something like below without using --checklist and --detail
I BOOTIS Chango Dock -> DAHAN Gateway:
>-> At I BOOTIS/Chango Dock, Buy: 16 x Fish,
+ At LP 98-132/Freeport, Buy: 16 x Coltan,
<-< DAHAN Gateway gaining 9,856cr => 29,856cr total
Im not sure if the MFD is big enough to display all this info, but if you can get it to dot it it will be very useful as it has all the info you need really on the screen and you don't need to alt + tab out.
I'm still churning ideas for displays; if I hadn't left my G19 at Blizz I would have added a driver for that too.
But the idea is that you'll be able to use the buttons on the stick below the MFD to go through steps. All I need is for Saitek to tell me why their driver isn't sending me those key presses. (I tried writing the app in C# and C++ to see if I could get it to work, and it didn't work there either, so it could just be that the X52 Pro drivers are shafted in perpetuity. Hopefully not, but brace yourself for the possibility)
If you get the latest TD version, you'll see I cleaned up the display yesterday (less of the frippery crap like which hop and step).
If you'd like to try out ideas on the stick itself, you can do the following (and, really, this is the reason I'm doing this project garage style like this instead of writing some super-pretty user-friendly app)
[note: I have git bash installed, so where you see '$' it's basically equivalent to the dos prompt]
Code:
$ cd WHERE_TRADE.PY_IS
$ python
>>> import trade
>>> mfd = trade.X52ProMFD()
>>> mfd.display("This is the first line", "This is the middle line", "This is the last line")
and you'll get a sense of what the constraints are.
The marquee scrolling is a bit annoying, and I'd only be able to display 2-3 hops, but that might not be terrible. I'm just not sure there's a good way to use it all for anything but the simpler routes:
Code:
$ ./trade.py --hops 2 --ship type9 --from Chango --credits 6434431 --check --x52 --compact
outputting
Code:
[Chango Dock 228 x Fish]
[Aulin Enterprise 228 x Dom.Appliances]
[Vonarburg Co-operative]
looks a bit weird, and you have to wait for the scrolling to see what you're supposed to buy or where you're supposed to be
Bear in mind: The next beta is likely to be introducing multiple stations per system (I'm incorporating that into the work I'm doing to move away from the access database right now)
So you probably want it to display system as well as station name:
Code:
[CHANGO/Chango Dock 228 x Fish]
[AULIN/Aulin Enterprise 228 x Dom.Appliances]
[WYRD/Vonarburg Co-operative. KERCHING!]
-Oliver