What do i need to open/edit dll files?

Gydrik

New member
Joined
Apr 22, 2008
Messages
4
Reaction score
0
Points
0
When I try to open them with the Microsoft Visual C++ 2008 it tells me i need to use a different editor... :sorry:
 

Bj

Addon Developer
Addon Developer
Donator
Joined
Oct 16, 2007
Messages
1,886
Reaction score
11
Points
0
Location
USA-WA
Website
www.orbiter-forum.com
When I try to open them with the Microsoft Visual C++ 2008 it tells me i need to use a different editor... :sorry:

Unless I am mistaken, you cannot open .dll files. You can however open the source code to view/edit it.

What .dll are you trying to open? The SDK comes with a few examples.

Edit, there are some programs that hack into the .dll file available on the internet, but is unrecommended because you may corrupt the file.
 

Gydrik

New member
Joined
Apr 22, 2008
Messages
4
Reaction score
0
Points
0
Ah! lol that would explain it.....

Actually i wanted to see if it would be possible to change/add keyboard commands that arent in the keyboard config file.... and thanks for the quick response :)
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,635
Reaction score
2,352
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
You can open DLLs with any PE viewer, which deal with Microsofts COFF file format.

But you can't edit them that way. You need the source code for that.
 

Gydrik

New member
Joined
Apr 22, 2008
Messages
4
Reaction score
0
Points
0
Awesome thanks. i dont suppose you might know where to look as far as editing keyboard commands goes? :D
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,635
Reaction score
2,352
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
Inside the source code, in the function clbkConsumeBufferedKey for vessels.

Otherwise, you might have to look on Martins development PC for getting the sources of Orbiter. Of course you will have to get the access rights out of his pale cold dead hands.

(Yes, that means no. With your limited skills, you shouldn't attempt reverse engineering)
 

Bj

Addon Developer
Addon Developer
Donator
Joined
Oct 16, 2007
Messages
1,886
Reaction score
11
Points
0
Location
USA-WA
Website
www.orbiter-forum.com
Awesome thanks. i dont suppose you might know where to look as far as editing keyboard commands goes? :D


under root directory

keymap.cfg


I would back up your .cfg first though ;)

Edit,
Oh did you mean for ships? or for editing the general keyboard commands for orbiter?
 

Gydrik

New member
Joined
Apr 22, 2008
Messages
4
Reaction score
0
Points
0
Inside the source code, in the function clbkConsumeBufferedKey for vessels.

Otherwise, you might have to look on Martins development PC for getting the sources of Orbiter. Of course you will have to get the access rights out of his pale cold dead hands.

(Yes, that means no. With your limited skills, you shouldn't attempt reverse engineering)

Alrighty... thanks again :) :axehead:
 

led4blue

New member
Joined
Apr 20, 2008
Messages
3
Reaction score
0
Points
0
I'm also interested in change general keyboard commands, but couldn't find keymap.cfg in Orbiter directory and sub-folders.
Any clue?
 

James.Denholm

Addon ponderer
Joined
Feb 8, 2008
Messages
811
Reaction score
0
Points
0
Location
Victoria, Australia
You can open DLLs with any PE viewer, which deal with Microsofts COFF file format.

But you can't edit them that way. You need the source code for that.

If you can't edit them with a PE viewer, can you use the PE viewer to view the code and re-make the DLL?

Suddenly no-one wants me to do beta-testing... ;)
 

Ursus

Rocket Tinker
Addon Developer
Joined
Oct 20, 2007
Messages
176
Reaction score
2
Points
18
Location
46N 123W
(keymap.cfg)

You mean, this one right here?
attachment.php


It should be there.

I'm kind of wary of changing my general key commands, however, since add-on authors will choose vessel-specific key commands to not conflict with the general ones.

(Aack... gotta dissociate .bin files with the media player.)
 

Attachments

  • keymapcfg.png
    keymapcfg.png
    53.8 KB · Views: 128

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,635
Reaction score
2,352
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
If you can't edit them with a PE viewer, can you use the PE viewer to view the code and re-make the DLL?

Suddenly no-one wants me to do beta-testing... ;)

Only if you are skilled in assembler and have lot of time (which knowing assembler already implies). The pretty comfortable viewer I have here, has a useful disassembler.

But you can get information about the public functions inside a DLL and their parameters.
 

James.Denholm

Addon ponderer
Joined
Feb 8, 2008
Messages
811
Reaction score
0
Points
0
Location
Victoria, Australia
He has a viewer with a disasembler thingy... which I assume is something used to reverse engineer dlls or something...

Let me think. The average mass of a bread-crumb is 0.0002 grams, so if I just run that through the system...

Urwumpe's favorite colour is blue!

Seriously, any chance of telling us what this viewer / dissasembler is called?
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,635
Reaction score
2,352
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
http://www.smidgeonsoft.prohosting.com/

PS: All other answers are wrong. And if you don't understand what I was talking about, you should not use it - you might only use it once and break down in despair afterwards. The Portable Executable file format has more complex terminology as Orbiter...
 

led4blue

New member
Joined
Apr 20, 2008
Messages
3
Reaction score
0
Points
0
Should be, but it is not there.
Comparing with your install, I don't have the orbiter.cfg, device.dat and orbiter.log either.
This is my install from "orbiter060929_base.zip"! (I've checked the contents of the zip file, but no keymap inside)
What now?
 

Bj

Addon Developer
Addon Developer
Donator
Joined
Oct 16, 2007
Messages
1,886
Reaction score
11
Points
0
Location
USA-WA
Website
www.orbiter-forum.com
Should be, but it is not there.
Comparing with your install, I don't have the orbiter.cfg, device.dat and orbiter.log either.
This is my install from "orbiter060929_base.zip"! (I've checked the contents of the zip file, but no keymap inside)
What now?

run orbiter once, just to make sure, if you cannot do anything with your keys then you missing it :p

otherwise, Ursus posted a really nice pic of where it should be.
 

Ursus

Rocket Tinker
Addon Developer
Joined
Oct 20, 2007
Messages
176
Reaction score
2
Points
18
Location
46N 123W
Aah... it's created the first time you run the Orbiter Launch Pad. (So if you do what Bj said, you'll find that you're not missing it; it will have "magically" appeared.)

attachment.php
 

Attachments

  • NowItIs.png
    NowItIs.png
    95.3 KB · Views: 56

led4blue

New member
Joined
Apr 20, 2008
Messages
3
Reaction score
0
Points
0
Fellows, thanks for the help
Actually I had run Orbiter several times, without any problem.
But I'm running Vista, and after a few tests, I found out that even granting all kind of permissions to the Orbiter folder the files were not created because my Orbiter folder was inside the Program Files directory.
I did a new unzip to another Orbiter folder placed in "Documents", launched Orbiter Launch Pad and voila ... the magic worked.
Conclusion: In Vista never put your Orbiter folder inside "Program Files"
 
Top