Giter Site home page Giter Site logo

edrefcard's People

Contributors

ajhewett avatar esabouraud avatar mwerle avatar richardbuckle avatar slion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

edrefcard's Issues

Running on DreamHost with default Python 2.7.6

I got it working on DreamHost with the default Python 2.7.6 but it was quite a bit of work.
I have to mention that I had managed to hardly ever touch a Python script before in 20+ years of software engineering. I'm more of a Perl guy. Doing the backport from 3.x to 2.x was rather funny.
I'm not sure if you are interested in getting those changes merged back here, nor if it will still run on 3.x.

I'll try clone and push the changes later today.

Feature request: Searchability

I often use my EDRefCard to try to find my binding for a certain feature, either

  1. Because I don't remember what section of Options → Controls the particular control is, or
  2. Because the game doesn't have a friendly display for the button involved, and I don't know where JOY29 or whatever is.

It's also often a somewhat frantic search because I'm actually playing when I realize I can't remember how to send a certain command without rebinding it.

So: a way to search the ref card would be great. I can think of at least two ways:

  1. Use SVG to draw the box elements so that the text is searchable in the browser right on the diagram
  2. Have a separate section (toggle-able in the main interface, I assume) that lists the bindings in text table form, so that at least if I search for something on JOY29, one of the other things on that button might jog my memory as to where it is.

Thanks, it's a great tool!

Support for other games

I'm considering adding support for MW5.
Would you be happy to merge those changes?
I guess we should just aim at supporting multiple games.
Any advise or opinion on how to got about implementing it?

I've implemented support for Virpil's VPC WarBRD Constellation Delta a while back.

Official Frontier T16000MHOTAS bindings show "invalid" for holo me controls

On my system, the file "T16000MHOTAS.binds" in Program Files (x86)\Steam\steamapps\common\Elite Dangerous\Products\elite-dangerous-64\ControlSchemes shows two "invalid" items under HoloMe when I upload it to edrefcard.

	<CommanderCreator_Undo>
		<Primary Device="Keyboard" key="Key_Z"/>
		<Secondary Device="{NoDevice}" key=""/>
	</CommanderCreator_Undo>
	<CommanderCreator_Redo>
		<Primary Device="Keyboard" key="Key_X"/>
		<Secondary Device="{NoDevice}" key=""/>
	</CommanderCreator_Redo>

Looks like maybe the default bindings file doesn't have a space between " and / and that's what edrefcard doesn't like?

X56 Throttle H3 and H4 assignments

Throttle H3 and H4 are opposite.
Following is shown to be on the upper hatswitch H3:

	<CycleNextPage>
		<Primary Device="SaitekX56Throttle" Key="Joy_21" />
		<Secondary Device="{NoDevice}" Key="" />
	</CycleNextPage>
	<CyclePreviousPage>
		<Primary Device="SaitekX56Throttle" Key="Joy_23" />
		<Secondary Device="{NoDevice}" Key="" />
	</CyclePreviousPage>

It should be shown on the lower hatswitch H4.

List Search

I couldn't wait, so I wrote a userscript for searching EdRefCard's list page. It's a very basic search for a "very basic" page, but hopefully it helps more people than just me. (Heck, maybe you can make use of it in lieu of a real search)

// ==UserScript==
// @name         EDRefCard Search
// @version      0.1
// @author       Liru Færs
// @match        *edrefcard.info/list*
// ==/UserScript==

document.addEventListener('keydown', function(e) {
    if (e.keyCode != 191) return;
    let search = prompt("Search for what?");
    for (let tr of document.getElementsByTagName('tr')) {
        tr.style.display = !search || tr.innerHTML.includes(search) ? "block" : "none";
    }
});

Simple how to use for those that can't read code:
Copy paste and save this as a new userscript in TamperMonkey/GreaseMonkey, refresh the list page to activate the script. Then navigate to the edrefcard list page.
Press ? or / to bring up a prompt for what to search for.
Type in what you want to search for (it is case sensitive).
To search for something else just press the key to bring up the prompt again.
To clear the search and show everything again just type nothing in the search prompt.

Anyway use it, don't use it, tear it apart, I leave it here for free use.

Fix slow algo in createHOTASImage

There's a horrible algo in bindings.py around line 465 and duplicated below:

hidden = False
# TODO: this is O(N^2), fix
for moreGeneralMatch in bind.get('Controls').keys():
    if moreGeneralMatch in control.get('HideIfSameAs'):
        hidden = True

DRY up and fix.

Response header name '<!--' contains invalid characters, aborting request

I might be missing something trivial, but with the service being down I've been trying to get this working on my local server as I just got a new HOTAS.

I can run bindings.py locally, and it runs, so I think i've got all the dependancies correct. However when run through apache, I keep getting an error 500, and all the log shows me is:

Fri Mar 12 12:30:38.009876 2021] [http:error] [pid 3377] [client 10.0.0.1:61610] AH02429: Response header name '<!--' contains invalid characters, aborting request, referer: http://loclhost/EDRefCard/

(I did copy the www to a directory EDRefCard directory off the main server, as I have other things running on that apache root).

I've tried turning on
import cgitb
cgitb.enable()

But haven't been able to get additional diagnostics to know what the problem is. Anyone have any ideas?

swapped modifiers not fully fixed

Parse bindings/testCases/two_modifiers_swapped.binds

The two expressions of the combo modifier are not correctly recognised as being the same.

Lacks Thrustmaster Cougar Hotas support

Hello I have problem with Thrustmaster Cougar Hotas, which I only have the stick (original throttle is missing from my set) which shows up as device: 044F0400

If I replace "044F0400" with "ThrustMasterWarthogJoystick" in the config file, I can get configs mapped on warthog stick which seems to be identical with this Cougar one.

Forum post.
New format forum post.

Support for Steam Controller

Tested an upload using the new .4.0 format for bindings file, and also one that I made for the Steam Controller. It seems EDRefCard doesn't have support for that controller; I got an error. "The error also suggested supplying the reference qyrnxs and we will attempt to add support for it."

Would it be possible to add support for the steam controller?

[T16000MFCS][ZAxis] Recognition on the Joystick is incorrect for key binds

Hi,

first off: Amazing project, loving this!

My issue: According to the 'default' card here: https://edrefcard.info/device/T16000MFCS you are working under the assumption that 'RZAxis' is the 'twist' axis on the Joystick.

My config would like to somewhat disagree with you on that. ;)

On my Joystick I mapped the (R)ZAxis to cycling the subsystems of my target, this is my config:

<CycleNextSubsystem>
		<Primary Device="T16000M" Key="Neg_Joy_ZAxis" />
		<Secondary Device="{NoDevice}" Key="" />
	</CycleNextSubsystem>
	<CyclePreviousSubsystem>
		<Primary Device="T16000M" Key="Pos_Joy_ZAxis" />
		<Secondary Device="{NoDevice}" Key="" />
	</CyclePreviousSubsystem>

For non-key inputs the same axis is recognized as 'RZAxis' as seen here

	<CommanderCreator_Rotation>
		<Binding Device="T16000M" Key="Joy_RZAxis" />
		<Inverted Value="1" />
		<Deadzone Value="0.00000000" />
	</CommanderCreator_Rotation>

The generated card looks like this:
adgvpu-t16000mfcs

add unit tests on the output side

Currently we have achieved decent test coverage on the parse side, but nothing on the output side.

Create meaningful unit tests in the output side.

Convert to open file formats

Edit: ImageMagick can now work entirely in the vector domain, this becomes:

  • 1. Convert all Reference sheets/*.afdesign to SVG.
  • 1. Rename all Reference sheets/*.SVG parallel to to www/res/*.PNG.
  • 1. Remove all www/res/*.PNG.
  • 1. Revise ImageMagick usage to work with SVG
  • 1. Revise HTML output to work with SVG.
  • 1. Revise all purge scripts to include SVG.

[T16000MFCS][V/UAxis] Recognition on the Thruster is incorrect

On the Thruster, I have the wheel mapped to zooming the radar

	<RadarRangeAxis>
		<Binding Device="T16000MTHROTTLE" Key="Joy_VAxis" />
		<Inverted Value="1" />
		<Deadzone Value="0.00000000" />
	</RadarRangeAxis>

According to the reference card, you believe this to be the UAxis. This is the default config provided by the game, I didn't touch that part and it is working.

Generated card shows nothing is mapped to the wheel.

adgvpu-t16000mfcs

[Device] Support using only throttle (or stick) on HOTAS setups

I have a Saitek (yes, earlier than Logitech's buyout) X-56 but have only been using the throttle of it for years now. Generating a bindings build for my setup thinks I'm also using the stick.

It would be good if you took into account all three variants (both, stick only, throttle only) that are possible with such devices. I realise this will entail fiddling with extra images etc :) .

ExplorationFSSRadioTuningAbsoluteX

With the latest beta release (week 3) there is a new setting added for fss: ExplorationFSSRadioTuningAbsoluteX.

e.g.

<ExplorationFSSRadioTuningAbsoluteX>
	<Binding Device="SaitekX56Throttle" Key="Joy_VAxis" />
	<Inverted Value="0" />
	<Deadzone Value="0.00000000" />
</ExplorationFSSRadioTuningAbsoluteX>

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.