Key binder program (javascript)

A forum for the discussion and development of programs to assist working on or playing with the Vegastrike engine and data sets.
Benison
Merchant
Merchant
Posts: 42
Joined: Wed May 25, 2011 3:50 pm

Re: Key binder program (javascript)

Post by Benison »

except for the excel sheet none of the downloads seem to work...
Gungnir
Mercenary
Mercenary
Posts: 98
Joined: Thu May 06, 2010 5:57 am

Re: Key binder program (javascript)

Post by Gungnir »

Benison wrote:except for the excel sheet none of the downloads seem to work...
Most likely because this thread is almost three years old...
~Gungnir
segfault wrote:if I was actually in space I'd totally be throwing on autopilot and relaxing in the back during the trip, sipping space wine and listening (rlaan?) jazz.
Rig: i5 2500k @ 5ghz, 2x OCZ Agility 3 120gb SSD boot drives, AMD Radeon HD 7950 @ 1100/1575 (Catalyst 12.1 Linux and 12.3 Windows), dual-boot Fedora 16 KDE and Windows 7 Pro
Benison
Merchant
Merchant
Posts: 42
Joined: Wed May 25, 2011 3:50 pm

Re: Key binder program (javascript)

Post by Benison »

wich raises the question why it isnt allready included in the svn since a long time... ;o
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: Key binder program (javascript)

Post by loki1950 »

Because it's really just a trivial java script app and I do have a copy of it on my HD give me some time to setup my main box and I will be posting it. everything can't be done RFN.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
PhaethonH
Star Pilot
Star Pilot
Posts: 6
Joined: Sat Jul 07, 2007 8:14 am
Location: Los Angeles-ish, California, USA
Contact:

Re: Key binder program (javascript)

Post by PhaethonH »

The original host I had the files on basically died and was never restored to its former glory (loss of personal pages and e-mail service). I've restored the javascript pages on another host which is more game-oriented anyway.

Google already picked up my restored pages, but through a torturously convoluted chain of symlinks. So I'm posting with the new url, and embedded the new canonical url in the program page itself. First post was also edited to reflect the new url.

New url: http://www.icculus.org/~phaethon/vegast ... ebind.html

Also, I'm working on a python+wxWidgets version which is showing better promise than javascript+html4.
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: Key binder program (javascript)

Post by loki1950 »

Thx for the updated link PhaethonH.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
travists
Expert Mercenary
Expert Mercenary
Posts: 893
Joined: Thu Jul 08, 2010 11:43 pm
Location: Sol III North American Continent

Re: Key binder program (javascript)

Post by travists »

PhaethonH, do you happen to have the ability to compile this so that it can be used outside of the browser? Also, I think in the feature requests an in-game key binder has been proposed, if the python version works well it just might be worth including as part of the game...
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: Key binder program (javascript)

Post by loki1950 »

This particular version is browser tied travists but the python version will not be so bound all that is needed really is a XML aware editor I have used Notepad ++ windows side and most editors Linux side have syntax highlighting built in but XML is not that user friendly :shock: so a stand alone or built into the game option would indeed be preferred.As is though you would need to restart the game for any edit to take effect because of the way console apps initialize and certain decisions made at the beginning of the project so we are kinda stuck with this legacy code :roll: till some genius rewrites it :mrgreen:

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
travists
Expert Mercenary
Expert Mercenary
Posts: 893
Joined: Thu Jul 08, 2010 11:43 pm
Location: Sol III North American Continent

Re: Key binder program (javascript)

Post by travists »

Launch the key-mapper from the main menu, quit and restart is not that bad. If the code could restart automatically would be better. Ideally one would be able to do this on the fly, but it would still be a great feature without that ability.
PhaethonH
Star Pilot
Star Pilot
Posts: 6
Joined: Sat Jul 07, 2007 8:14 am
Location: Los Angeles-ish, California, USA
Contact:

Re: Key binder program (javascript)

Post by PhaethonH »

Python version packaged. It's still a little rough around the edges, but usable for my purposes (e.g. setting all number keys to SuicideKey :D). Backup your vegastrike.config first!

http://www.icculus.org/~phaethon/vegast ... .20.tar.gz

Dependencies are python-2.6 and wxPython-2.8.

Developed on Python 2.6.5 using wxPython 2.8.10.1 (in turn using gtk 2.20.1), although I tried sticking to python 2.5 dialect.
Optional is pygame 1.9.1 (using SDL 1.2.14), for joystick-related operations. The app should still run without pygame, using a "dummy" joystick setting. Regardless, still only utilizes one joystick for now.

I don't know if I should make another thread for this version.
Post Reply