Jump to content

dmonds

Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by dmonds

  1. If you updated the drivers, did you also update TARGET? Did you update the firmware on the stick AND Throttle also?
  2. Unless I'm mistaken, this is normal...it is running your profile. The console message "main returned 0" is the indicator everything loaded and there were no errors. At this point it's waiting for input. dmonds
  3. It found your throttle, but not your joystick. This can happen if you’ve not loaded the drivers yet (or properly) or if your USB ports are playing up. As Sgt Coyle said, it may be a corrupted install if Windows is trying to enumerate a USB device it cannot find, or is having issues with.
  4. Hi @SGT_Coyle, I've not got anything in my script that deals specifically between MapAxis and KeyAxis, however, I do have a routine which can programmatically change the curves of an axis...not quite the same thing. Having said that...As part of the KeyAxis statement you can declare which level the statement takes effect (TARGET Script manual page 31 onwards) This would tend to indicate you can have different statements for the same axis and dependent on the level (shifted state). Have you tried using KeyAxis for both your flap axis lever (by sending keystrokes) and your gear/hook/kneel functions? dmonds
  5. Order #2129 just arrived today...yay. Flippin’ NZ Post took 3 times longer to deliver to me once it arrived in country than it took to post and RM to get to NZ. dmonds
  6. Thanks again Drakoz...you've gone above and beyond! The tweak you've provided works beautifully in game. I'm yet to read your replies or SimHQ in depth and no doubt I just may have a question or two once I have. Many thanks dmonds
  7. Hi again @Drakoz, Brilliant stuff! I've added... DefaultMapping(&Throttle, THR_FC); ... to my routine and it seems to do exactly what I was after (at least in device analyzer). I'll test it in game and report back the result. (Tomorrow as it's now quite late here and my better half won't take too kindly if I spin up a game at this hour!) Again...many thanks dmonds
  8. Ok, here's snippets of my code:- In my initialization routine I have... MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS, AXIS_NORMAL,MAP_ABSOLUTE); fnSetSliderCurve(1); ...my fnSetSliderCurve() routine... int fnSetSliderCurve(int x) { DXCurveSetting = x; if (x == 0) { SetSCurve(&Throttle, THR_FC, 0, 0, 0, 0, 0); } if (x == 1) { SliderCurve = LIST(0,0, 40,25, 75,50, 85,75, 100,100); SetCustomCurve(&Throttle, THR_FC, SliderCurve); } if (x == 2) { SliderCurve = LIST(0,0, 50,10, 75,30, 90,50, 100,100); SetCustomCurve(&Throttle, THR_FC, SliderCurve); } } I detect within the game (Elite Dangerous) when the flight mode changes then call fnSetSliderCurve() parsing the appropriate value (0, 1 or 2). These flight modes (for some inexplicable reason) use different scales for the HUD Radar. The above three modes approximate what's required as far as , when the slider is in the middle detent position, the radar range scale in game is also in the middle. Like I said, this works well with the only exception being that the new curve doesn't kick in until I move the slider. Thanks for the reply and the reference to what you've written at SimHQ. I will give these a read and try to get my head around it. Many thanks DMonds
  9. Thanks for the reply ivan, I'll likely keep plugging away for a short while and see if I can work it out. In the meantime, I'll just revert to moving the slider slightly each time I change the curves/sensitivity. Cheers
  10. Hi, I've been unable to work this out yet. Trying digital instead of analogue does not help. Looks like I need to somehow send the axis value of the current slider position to the game. Easy enough if I move the slider itself. I can perservere with this if I need to. However if there is a way to interrogate then send current value of slider without actually moving the slider, that'd be ideal. For what it's worth, Device Analyzer also won't update until I move the slider as well. Any help or suggestions would be gratefully received. dmonds
  11. Very old thread, but for anyone dropping in here and want to turn off all the LEDS... ActKey(PULSE+KEYON+LED(&Throttle, LED_ONOFF, LED_CURRENT-LED0)); dmonds
  12. OK...so, I'm already using these methods in my script...thanks anyway. However other posts in this thread have given me an idea.... that is use digital axes instead of analogue. I've never played with this but the game does have key bindings to increase/decrease as alternate for analogue axis, so worth a play. If successful, I'll post my solution. dmonds
  13. Ok, thanks Ivan...I’ll take a look at your code and see if I can decipher! Cheers
  14. Changing curves on the fly Hi, Next question... In my script I change the curves on the slider to vary the sensitivity depending on a game mode I'm in. Issue: As soon as I switch game modes (which require the new curve) I get unwanted axis values being sent to the game until I move the slider. In effect, the slider is sending an axis value based on the previous curve. Question: After changing the curves, is there a way to read/send (update) the new value of the slider without having to move the slider? Thanks dmonds
  15. Thanks so much Ivan for your reply. I'll load that up and have a play to get my head around it. I'm not that familiar with the complexities of C variables which is what I think has me tripped up. Thanks again, dmonds p.s. ummm... "exit(0);" ??? "return 0;" perhaps?
  16. New to this forum after stumbling across this thread. I am not a programmer but have taught myself TARGET over the last year or so through trial and error. During this time, I have been scouring the internet for decent TARGET scripts that I can learn from. I would consider myself "intermediate", so stumbling upon a forum where several people are advanced is a god send...AT LAST! I have many questions, however, I will restrain myself and try to ask only one or two at a time! The first one is this... I have managed to work out how most of the string function in sys.tmh work along with most of the file operation functions but for the life of me I have not been able to get the "strcat(alias dst, alias src){}" function to work. Can someone please confirm for me that this function (in sys.tmh) actually works and if so please post a working example? Next is "int input(alias s){}"...no idea how to get this working. I know that TARGET creates a virtual keyboard to send keystrokes, but how on earth would it capture same (from the keyboard presumably)? Again, if anyone knows how this works and could give me a working example, that'd be great. Cheers dmonds
×
×
  • Create New...