Question How to edit moduls?

HAL9001

super-ninja-orbinaut
Joined
Jun 4, 2010
Messages
1,107
Reaction score
11
Points
38
Location
Stuttgart, Germany
How can I make, open, view, edit and save modules (.dll-files)?
When I open them in the Editor I only see things, but no text (something like that:
MZ�   ÿÿ ¸ @ ð º ´ Í!¸LÍ!This program cannot be run in DOS mode.

$ ¥
¿éákѺákѺákѺÿ9BºãkѺ\$GºâkѺÿ9DºâkѺÿ9RºïkѺÆ*¿ºàkѺÆ*ªºækѺákкRkѺÿ9UºëkѺÿ9CºàkѺÿ9@ºàkѺRichákѺ PE L —œ*L à !  d X �l  €      ð  àC       ¶ ‹ › d Ð ° à à – @ € Ü .text jb  d  `.rdata ‹> € @ h @ @.data @ À  ¨ @ À.rsrc ° Ð  ° @ @.reloc †
à ´ @ B ‹Á‹L$Ç ,ƒ ‹Q‰P ÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$‹Q‰P ÌSŠ\$V‹ñöÃt+‹FüWh¬` �~üPjVèVW öÃt WèçV ƒÄ‹Ç_^[ è?P öÃt VèÆV ƒÄ‹Æ^[ ÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹AÃÌÌÌÌÌÌÌÌÌÌÌÌÝAÃÌÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$Ç Hƒ ‹Q‰PÝAÝX ÌÌÌÌÌ‹Á‹L$‹Q‰PÝAÝX ÌÌÌÌÌÌÌÌÌÌÌ3ÀÃÌÌÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$Ç Hƒ ‹Q‰PÝAÝXÇ \ƒ  ÌÌÌÌÌÌÌÌÌÌÌÌÌÌ̸ ÃÌÌÌÌÌÌÌÌÌÌ‹A8ÃÌÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$Ç Hƒ ‹Q‰PÝAÝXÇ pƒ ‹Q‰PÝA ÝX ÝA(ÝX(ÝA0ÝX0‹I8‰H8 ̋Á‹L$‹Q‰PÝAÝX‹Q‰PÝA ÝX ÝA(ÝX(ÝA0ÝX0‹I8‰H8 ÌÌÌÌÌÌÌÌÌÌÌÌ̸ ÃÌÌÌÌÌÌÌÌÌÌŠAHÃÌÌÌÌÌÌÌÌÌÌÌÌ‹AÃÌÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$Ç Hƒ ‹Q‰PÝAÝXÇ „ƒ ‹Q‰PÝA ÝX ÝA(ÝX(ÝA0ÝX0ÝA8ÝX8ÝA@ÝX@ŠIHˆHH ÌÌÌÌÌ‹Á‹L$‹Q‰PÝAÝX‹Q‰PÝA ÝX ÝA(ÝX(ÝA0ÝX0ÝA8ÝX8ÝA@ÝX@ŠIHˆHH ̿AÃÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$Ç ˜ƒ f‹Qf‰P ÌÌÌÌÌÌÌÌÌ‹Á‹L$f‹Qf‰P ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ¿AÃÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$‹‰‹I‰H ÌÌÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$…Ét‹QƒÁ‰P‹I‰HÇ ´ƒ  3É‹‰P‹I‰HÇ ´ƒ  ÌÌÌÌÌÌÌÌ‹Á‹L$…Ét�Q‹
‰H‹R‰PÂ 3Ò‹
‰H‹R‰P ÌÌÌÌÌ2À ÌÌÌÌÌÌÌÌÌÌÌ2À ÌÌÌÌÌÌÌÌÌÌÌ3À ÌÌÌÌÌÌÌÌÌÌÌ ÌÌÌÌÌÌÌÌÌÌÌÌÌÃÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$Ç („ ‹Q‰P‹Q‰P‹Q ‰P ‹Q‰P‹Q‰P‹I‰H ÌÌÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$‹Q‰P‹Q‰P‹Q ‰P ‹Q‰P‹Q‰P‹I‰H ÌÌÌSŠ\$V‹ñöÃt+‹FüWh¨a �~üPjVèFS öÃt Wè×R ƒÄ‹Ç_^[ è+M öÃt Vè¶R ƒÄ‹Æ^[ ÌÌÌÌÌÌÌÌÌÌÌÌÌÌ‹Á‹L$Ç („ ‹Q‰P

:facepalm:
 
You can't. DLL's are COMPILED CODE, just like .exe files. They are not the sort of files you can just open in a text editor and change.

You CAN recompile a DLL if you have access to the original source code, a C++ compiler and some C knowledge.
 
I have a bitsome C-knowledge, but not enough forthose mosdules, so I willl be unable to develope them.
 
but not enough forthose mosdules, so I willl be unable to develope them.

What modules? Someone might be able to help if you explain what you are trying to do rather than how.
 
I won't be able to make cool Add-Ons by myself.
( I just want to make things lke a DG )

How do you know that? have a look at the orbiter SDK and experiment.
 
I have a bitsome C-knowledge, but not enough forthose mosdules, so I willl be unable to develope them.


For the love of...

http://www.cplusplus.com/doc/tutorial/
Orbiter\Orbitersdk\doc\API_Guide.pdf
Orbiter\Orbitersdk\doc\API_Reference.pdf

If you wanna make modifications to the standard DG or a few other ships, the source code is even available in
Orbiter\Orbitersdk\Samples


It'll take all of three seconds to navigate to those files.
 
Hal - A DLL is compiled code. You cannot open it with notepad to modify it. Typically you modify the dlls by recompiling their sources with your modifications. However sometimes you don't have access to the code, in that case you have to resort to using some debugger. I recommend OllyDbg.

It'll take all of three seconds to navigate to those files.

Psh. You must be using Windows Explorer :thumbup:
 
Important rule for anybody who does not want to be victim of any stupid virus:

A file that begins with "MZ" and then contains gibberish, is most likely an PE-format executable. ".rsrc" is an hint that it is a windows 32/64 executable. You can open it with tools like "PEBrowse" for getting information about its internals.

http://www.smidgeonsoft.prohosting.com/pebrowse-pro-interactive-debugger.html

You can edit such files if you have in-deep knowledge about the binary codes and structure, but the only really working way is to be able to produce new versions of such executables, by compiling and linking the source code of the files...which means you need the source code for it.
 
Important rule for anybody who does not want to be victim of any stupid virus:

A file that begins with "MZ" and then contains gibberish, is most likely an PE-format executable. ".rsrc" is an hint that it is a windows 32/64 executable.

The ".rsrc" section most likely wouldn't be present in a virus/similar malware executable, and even if resources are present, the section doesn't need to by named by ".rsrc" at all. Two things are always present though in any PE-format executables: the MZ signature at the very beginning, and PE signature somewhere below (the exact location doesn't need to be constant).

Sections don't need to have a name (it can be empty, and there can be multiple sections with the same name), so checking if a file is PE-executable by searching for either ".text", ".data", ".rsrc", ".UPX1", "CODE", etc. doesn't need to return any result.
 
You'll need VC++2008. You can downloading for free. I was at the same point as you when I started. Now I'm having fun with it. And I never had a single programming class in my life.
 
VC++ 2008 or indeed 2010 will work fine.
 
Hi guys, I trying to setup the compiler v c++ 2010 but after i added the orbiter.lib and orbitersdk.lib i can't compile anything because i get the following
error C3861: 'oapidebugstring': identifier not found
error C3861: 'oapigetsimtime': identifier not found

It seems the compiler doesn't understand the API's ? Strange because the .lib are in the compiler.

 
That's because it's not
Code:
oapidebugstring()
it's
Code:
oapiDebugString()
.

C++ is case sensitive. "THIS" does not equal "this".

Also, you need to
Code:
#include "OrbiterAPI.h"
if you have not done so already.
 
yes , I know now, sorry It's case sensetive

---------- Post added at 10:54 PM ---------- Previous post was at 10:29 PM ----------

Now, I get this

LINK : fatal error LNK1104: cannot open file 'msvcirt.lib'

I thought that this lib must be ignored ?
 
Yea, you need to add it to the ignore list under Properties->Linker->Input->Ignore specific default libraries.
Also make sure that your VC is in Release mode, not Debug. If it's in Debug, you'll need to do all the settings (libs, additional include paths) for the Release mode too.
 
I am still getting :

LINK : fatal error LNK1104: cannot open file 'msvcirt.lib

:hmm:


 
I am still getting :

LINK : fatal error LNK1104: cannot open file 'msvcirt.lib

:hmm:
Can you post the .vcproj file? (Either compressed as a .zip file and attached to post, or opened by notepad, and then copied and pasted its contents into [code] tags into this thread.)
 
I am still getting :

LINK : fatal error LNK1104: cannot open file 'msvcirt.lib

:hmm:


You included all the right folders and libraries right? I used to get errors like that just because I simply forgot a folder path when I am setting a project up.
 
you gotta add both msvcrt.lib and msvcirt.lib to the "ignore specific libraries" option under linker/input in the properties panel :thumbup:
 
Back
Top