ThePlatoon.com
December 02, 2008, 01:22:09 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Look around and get acquainted to the new settings and features.
 
  Home   Forum   Help Search Calendar Login Register  
  Shop Gallery  
Pages: [1]   Go Down
  Print  
Author Topic: Here's one for you:  (Read 852 times)
0 Members and 1 Guest are viewing this topic.
SilentEdge
Administrator
Sr. Member
*****

Rep: 10
Offline Offline

Posts: 780
272.00 credits

View Inventory
Send Money to SilentEdge
thesilentedge@hotmail.com
View Profile
« on: January 30, 2007, 05:58:07 AM »

Alright, here's a riddle for the programers (Mike). My friend is running an old piece of flight simulator software, we know certain keyboard commands do certain functions eg: G lowers the landing gear, and shift+g raises them.

We know there are certain commands for other functions we are trying to get working but as of yet have been unable to find through the standard method (aka press every button and see what happens).

Since it's pretty old a lot of the stuff in it runs off .txt files, but a .txt file indicating keyboard functions to in game actions has eluded us. Is there any way I could trace these commands in order to find the missing key commands and have the chance to remap the controls we already know? I'm assuming they are hard coded into the .exe...
Logged

Ronin
Full Member
***

Rep: 0
Offline Offline

Posts: 445
584.00 credits

View Inventory
Send Money to Ronin

View Profile WWW
« Reply #1 on: January 30, 2007, 08:17:47 PM »

Quote from: TheSilentEdge;29146
Alright, here's a riddle for the programers (Mike). My friend is running an old piece of flight simulator software, we know certain keyboard commands do certain functions eg: G lowers the landing gear, and shift+g raises them.

We know there are certain commands for other functions we are trying to get working but as of yet have been unable to find through the standard method (aka press every button and see what happens).

Since it's pretty old a lot of the stuff in it runs off .txt files, but a .txt file indicating keyboard functions to in game actions has eluded us. Is there any way I could trace these commands in order to find the missing key commands and have the chance to remap the controls we already know? I'm assuming they are hard coded into the .exe...


Is there a "bin" or "cfg" file anywhere in the game directory?  What game is it?  Does it allow you to remap the controls in any way?  What about a setup or config program?
Logged

Just an average schmo.
    * Intel Core 2 Duo 2.4Ghz, 3GB DDR2-667 RAM
    * GeForce 8800GTX PCI-Express 16, 768MB
No XBox 360 :sad:
SilentEdge
Administrator
Sr. Member
*****

Rep: 10
Offline Offline

Posts: 780
272.00 credits

View Inventory
Send Money to SilentEdge
thesilentedge@hotmail.com
View Profile
« Reply #2 on: January 31, 2007, 06:05:43 AM »

Quote from: Ronin;29153
Is there a "bin" or "cfg" file anywhere in the game directory?  What game is it?  Does it allow you to remap the controls in any way?  What about a setup or config program?

loads of .bins and .cfgs

As mentioned, there is no ability to remap the controls. There are several sub programs that allow you to set aircraft with the ability to do certain things.

eg: F/A-18's can fold their wingtips, and F-14's can sweep their wings. We can set aircraft with the ability to do those things but do not know the key commands to do so.

As far as the name of the game - it doesn't really matter you wouldn't have heard of it as it was never publically released.

Edit: What could I use to open up the .bin files? I know i can just use notepad for the .cfg's, but haven't tried anything with bins yet.
Logged

Ronin
Full Member
***

Rep: 0
Offline Offline

Posts: 445
584.00 credits

View Inventory
Send Money to Ronin

View Profile WWW
« Reply #3 on: January 31, 2007, 06:47:21 AM »

Quote from: TheSilentEdge;29177
loads of .bins and .cfgs

As mentioned, there is no ability to remap the controls. There are several sub programs that allow you to set aircraft with the ability to do certain things.

eg: F/A-18's can fold their wingtips, and F-14's can sweep their wings. We can set aircraft with the ability to do those things but do not know the key commands to do so.

As far as the name of the game - it doesn't really matter you wouldn't have heard of it as it was never publically released.

Edit: What could I use to open up the .bin files? I know i can just use notepad for the .cfg's, but haven't tried anything with bins yet.


You can open the BIN files with a Hex editor. It will show the hexadecimal (binary) data on the left and the characters (except for unprintable ones) on the right.  There will also be an offset in hexadecimal on the far left so you can tell the position of data you find in the file.  Those would probably be useful if you knew what the commands already do.  The CFG files would be the place to look.  But since you can't remap the keys, they are probably hard coded.

I would try the + and - keys for the throttle.  The "F" keys are also sometimes used:
F1 = kill throttle
F3 = bump throttle up
F2 = bump down throttle
F4 = full throttle
I would also try the pageup and pagedown keys for that.
The F key is often the flaps.
The B key is often the air-brakes.  But the space bar is sometimes used for that, too.
A is usually used for auto-pilot.
But P is also used for that.

The keyboard controls are often mnemonic for the first letter or a letter in the word for the action you want.

I've seen targeting done with the R and T keys (previous and next target).  Or just the T when you have your target in view.

R is sometimes used for Radar.

I've seen G used for Guns. And M used for missiles/rockets.  The space bar is sometimes used to fire the guns/drop the bomb/fire the missile, too. Depends on the simulator.

With a hex editor you might be able to find the command map in the executable.  It would be in the data section along with the strings (text) used in the game.  It probably won't tell you what they do but it would at least give a list to work from.

It's also possible that they used the keyboard scan codes rather than the actual keyboard keys.  In which case you need to look for those instead of actual letters.

Is this a combat simulator?  Does it use the mouse?  Or does it use a joystick? (pretty common).  The arrow keys on the right side of the keyboard probably control the stick.

If you want I can look at the executable to see if I can find a command map (I wouldn't need the whole thing, just the executable).

Does the mouse cursor appear on the screen?  Is the control panel "active" meaning you can select controls and operate them with the mouse?

If you're in the air, I'd probably stay away from the 'E' key. It's often the ejection seat... Cheesy

What era is this simulator from?  DOS, Win16, Win32?

If this simulator is from Northrop Grumman, I know someone who is an avionics programmer for them.  He might know what the control scheme is.  Or could possibly find out.  I know a couple of programmers at Boeing, too.

Oh, and I've seen the "<" and ">" keys used for sweeping the wings on the B1 and the F14.  I've also seen the {} set used for that.
Logged

Just an average schmo.
    * Intel Core 2 Duo 2.4Ghz, 3GB DDR2-667 RAM
    * GeForce 8800GTX PCI-Express 16, 768MB
No XBox 360 :sad:
SilentEdge
Administrator
Sr. Member
*****

Rep: 10
Offline Offline

Posts: 780
272.00 credits

View Inventory
Send Money to SilentEdge
thesilentedge@hotmail.com
View Profile
« Reply #4 on: January 31, 2007, 08:07:14 AM »

Some of the controls:

1,2,3,4 - Start respective engines.
F2 - autopilot
F1 - disengage autopilot

{ - Fold Wings
} - Unfold wings
 - Wing tilt
f and shift f - flaps up/down
g and shift g - gear "
k and shift k - fuel probe
L - spoilers
insert, home, pgup, del, end, pgdwn - change tacan, ils, and uhf frequency

there's more.

Check your PM's tomorrow night.
Logged

MindlessOath
Sr. Member
****

Rep: 4
Offline Offline

Posts: 884
220.00 credits

View Inventory
Send Money to MindlessOath

View Profile
« Reply #5 on: January 31, 2007, 01:50:13 PM »

mabe try looking on the internet? www.gamefaqs.com might help, or something like that.
Logged

specs: AMD k7 2.0Ghz; 512mb 3400DDR Mushkin!; X800XT PE; 36GB Raptor
website: http://www.tacticalcenter.net
specialist: board level laptop/pc repair
SilentEdge
Administrator
Sr. Member
*****

Rep: 10
Offline Offline

Posts: 780
272.00 credits

View Inventory
Send Money to SilentEdge
thesilentedge@hotmail.com
View Profile
« Reply #6 on: February 01, 2007, 03:08:08 AM »

Quote from: TheSilentEdge;29177
As far as the name of the game - it doesn't really matter you wouldn't have heard of it as it was never publically released.


...
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
SMF Theme © Gaia
Valid XHTML 1.0! Valid CSS!