Giter Site home page Giter Site logo

touille / ed-warthog-target-script Goto Github PK

View Code? Open in Web Editor NEW
20.0 6.0 4.0 9.36 MB

Elite Dangerous Warthog Target Script (HCS Keys Binding)

License: MIT License

C++ 100.00%
elite-dangerous warthog thrustmaster target-script hcs-voicepacks hcs warthog-script hotas

ed-warthog-target-script's Introduction

Elite Dangerous Warthog Target Script (HCS Keys Binding) 3.3.01b 2018/12/24 : IF YOU USED PREVIOUS VERSION PLEASE READ BELOW

ED LOGO

Special thanks go out to Aussiedroid, DarKcyde0, WraithMG11235, Synkc, Solarfly and Farinhir


  • Complete
  • Implemented / Need More Test

INSTALATION:

  • All files from Thrustmaster Warthog Script folder need to be in the same folder. The Warthog Script can be run from any location.
  • Copy the Elite Dangerous Binds Profile ED+HCS V3.X.XX.XX.3.0.binds from Default Keybinds - Elite Dangerous Folder to:
\Users\<User>\AppData\Local\Frontier Developments\Elite Dangerous\Options\Bindings
  • Copy the ED-Warthog-Target-Script_Addon.exe from Send data over TCP to Target Folder to :
\Users\<User>\Saved Games\Frontier Developments\Elite Dangerous\
  • Right Click on the exe, Send to and select Desktop create shortcut

WHEN YOU WANT TO PLAY :

  • Launch the ED-Warthog-Target-Script_Addon.exe
    -First Option : With the shortcut previously created
    -Second Option : Let the script Start the exe for you -> Edit ED+HCS v3.3.tmc file, find the line below and replace with your Windows username and Uncomment the line (ex : Replace < USER > with martin and remove the // at the begining)
	//system("spawn -w \"C:\\Users\\< USER >\\Saved Games\\Frontier Developments\\Elite Dangerous\" \"C:\\Users\\< USER >\\Saved Games\\Frontier Developments\\Elite Dangerous\\ED-Warthog-Target-Script_Addon.exe\"");
  • Just Drag&Drop ED+HCS v3.3.tmc in TARGET Script Editor and Run. (Default script path can also be set in the options). Always make sure the script is running prior to starting Elite Dangerous.
  • Most commands can be tested prior to starting the game in Target Script Editor using the Debug Message, Event Tester and Device Analyzer.
  • Launch Elite Dangerous, Options, Controls and chose the correct Binds Profile ED+HCS V3.X.XX.XX.3.0.binds
  • Play :)

WARNING : If you want to change Bindings keys IN GAME, Make sure to use ENG(UK) Keyboard layout in Wndows. If you did not, your Bindings file will be unusable with the script. (ED change some keys inside the file to the current windows keyboard layout, even if you don't change them)




BEFORE FLYING:

First, I'm sorry for my English, as it is not my native language. You are Welcome to help me on my English Skill, and, obviously, with my Coding Skill (it is, also, not my native language) ;)

All the Settings are in the Settings File : ED+HCS v3.3_Settings.tmh

The Command's are on the Joystick and Throttle Chart : [S]ShortPress, [L]LongPress, [EL]ExtraLongPress, [S3]Modifier Key on Joystick (Joystick Nosewhell Steering Button)

This Script require you have Check this Files before you start to Fly, so, please, take some minutes to check them.

When you are in game, if, Throttle Switch are misaligned for Landing Gears, Cargo Scoop or Lights, Just toggle the Switch.

The Optimal PIP Mode, make Backup of Previous engaged PIP. By Default it will return to //2 SYS 2 ENG 2 WEP (0) if you don't make change before deploying Hardpoints or Fire after the game launch. I suggest, when you launch the game, to make one change to PIP before deploying hardpoints and another before fire, so the script can backup those value.

Almost ALL Optional Extra (OptimalPIPMode, Stop Fire Retract Hardpoints, Silent Runing OFF on Fire, SuperCruise on Throttle, ....) Can be switched ON/OFF on the Fly, Check Joystick and Throttle Chart's.

FEATURES:

  • Support MFD (2), Rudders and T.Flight rudders (NOT TESTED YET)
  • HMD / TrackIR Option for Some Function : Head Reset, Pause (TrackIr), Throttle Led Intensity.
  • Easy Debug Msg OFF (Debugmode OFF (0) Or ON (1) In Settings File)
  • Supercruise On Throttle when throttle > 99% (Can be switched ON/OFF On The Fly, Disable by default). If you use Hardware Afterburner Detent you need to pass detent to supercruise.
  • Game Menu Up on Idle Throttle states. (Off by Default)
  • Secure Retract Mode : Automatic Retract of Hardpoint Gear and cargo when engaging Escape Fight Mode, Supercruise, FrameshiftDrive,...
  • Dual stage trigger Combined Fire on Triger 1 to allow combined Primary & Secondary fire or for the trigger to be separated to Primary fire only. Can be switched ON/OFF On The Fly
  • Support [Toggle] & [Hold] mode for Game Settings : Reverse Throttle, Flight Assist & Silent Runing (Check Settings File : Default is Reverse Throttle [HOLD], Flight Assist [HOLD], Silent Runing [TOGGLE]. If you want to change this : Modify in ED AND in the Settings file xxxGameMode)
  • Enhanced Functions Like Game Menu (Set Speed to 0, put silence runing off, PIP to tank then open game menu...when game menu is closed, restore previous PIP Mode...), System jump (target next system in route, Retract hardpoint if needed, Frameshift drive, then in Warp, set speed to 0 (safe next system entrance) ...More advanced functions will come later
  • Rotate Joystick Axis to account for center Joystick mounting position (CenterJoystickMount & JoystickAngle)
  • Nvidia Shadowplay and AMD Relive Video Capture and Streaming Support. (By Default, they are Disable)
  • Steam Screenshot Support. (For Normal Screenshot only : Off by Default)
  • Possibility to swap Joystick and Throttle Maping in settings file (for now : SWAP SAME TYPE (Push, Toggle 2 positions, Toggle 3 positions or Hat) ONLY AND ON THE SAME DEVICE)

LED:

  • Support Toggle & Flashing Throttle LED's
  • Support Toggle & Flashing MFD LED's
  • Support Toggle & Flashing Throttle & MFD's Backlight
  • Easy Led Configuration : You can chose what you want to be assigned for each LED (5) (Check Settings file comments / LED SETTINGS to know more about How To ..)
  • Throttle Backlight intensity On The Fly (S3 (Joystick Nosewhell Steering Button) + Friction Control Axis)
  • Throttle Backlight Intensity on Idle Throttle states. (Setup In Settings File. Default is Backlight Throttle LED is OFF (ThrottleLEDOnIDLE in settings file))
  • Flash briefly the Throttle BackLight for Game Event : Over Heating, Is In Danger, Being Interdicted, Low Fuel (< 25%) and Shield Down : Option (WarningLED) can be Desactived in Settings file, ON by default

PIP:

  • Automatic PIP Mode (Backup & Restrore previous PIP Mode) when Fire, Escape Fight, Game Menu,... Can be switched ON/OFF On The Fly
  • PIP Management Joystick Hat Switch offering 12 different presets depending how long you hold down the Hat Button.

PTT:

  • Default PTT Mode (Toggle or Hold). Can be switched On The Fly (S3 (Joystick Nosewhell Steering Button) + Short Press Engine Operate Ign/Norm LEFT)
  • Default PTT (Internal or External). Can be switched On The Fly (S3 (Joystick Nosewhell Steering Button) + Long Press Engine Operate Ign/Norm LEFT)

HEAT SINK:

  • Automatic Heat Sink On Silent Runing. Can be switched On The Fly (Extra Long Data Management Switch UP)
  • Automatic Heat Sink when Over Heating ( > 100% ). You can Desactivate this option (HeatSinkOnOverHeat) in Settings file. ON by default
  • Automatic Silent Runing Off & On when Fire (if silent runing is up before fire) and for other functions. Can be switched On The Fly (Short Data Management Switch UP)

JOYSTICK & THROTTLE CURVE:

  • 3 Joystick Curve Switchable On The Fly (Slew stick is include in this function) Switch In Game With Throttle FLAPS
  • 2 Throttle Curve Switchable On The Fly (normal & precison). Can be switched On & Off On The Fly (S3 (Joystick Nosewhell Steering Button) + Press RED Button on Throttle Arm)
  • Enhanced Joystick Curves tailored for Flight Assist Off (Joystick Curve will return to previous state when FAON is release) Option You can also select the tailored curve (FAOffCurve)
  • Enhanced Joystick Curves tailored when Approching Planet (Joystick Curve will return to previous state when you will leave Planet) Option (HasLatLongAssist) can be Desactived in Settings file, ON by default. You can also select the tailored curve (HasLatLongCurve)
  • Support Joystick Axis trimming : memorize the X and Y axis position and calculate the difference to the center of the axis, and then apply it to the X and Y axis (Throttle Coolie Switch [S3]UP to engage, [S3]DOWN to reset : Check Chart) OR Trim Old Way with Offset you can chose in Setting (Trim_INC)(Check Throttle Chart)

AUTOPILOT MODE:

  • 3 Autopilot Mode : Easy Request and Cancel Docking procedure, Escape Fight and System Jump

ed-warthog-target-script's People

Contributors

clickernz avatar touille avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ed-warthog-target-script's Issues

ED_Warthog-Target-Script-Addon.exe sending too many messages

@Touille

Running the program with ED running.
I'm docked at Jameson Memorial and am getting flooded with updates even though the ‘Flags’ value is not changing.

This is due to the Lat/Lon (and therefore status.json) changing continuously as the station rotates.
Possibly a bug in ED as Lat/Lon shouldn't change when docked at a station in space (?)...surely!
Either way, when flying close to a planet, this same issue would be evident.

Not too sure if this was intended,however, it leads me to ask, if we are only interested in 'Flags' key value, why not test when ‘Flags’ changes instead of testing when anything in the entire string changes?

Clicker

Turning "High Beam" on in SRV throws a fatal error in ED_Warthog_Target_Script_Addon.exe

Recent addition of srvHighBeam (bit 31) in the Flags key value in status.json, when set, now causes the addon.exe program to throw a fatal error.

When bit 31 is set in the Flags key value, it causes the key value integer to exceed the maximum 32 bit signed integer value.

Changing the following to call for an unsigned integer return solves this issue;

// v_Flags = status["Flags"].GetInt();
v_Flags = status["Flags"].GetUint();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.