XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Oct 17, 2017 12:42 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Executable file modification.
PostPosted: Mon Jun 05, 2017 8:22 am 
Offline
ultra-n00b

Joined: Wed Apr 05, 2017 9:01 pm
Posts: 8
Has thanked: 1 time
Have thanks: 1 time

I'm working on making an editor for an old PC game. I have a import / exporter working, so I can create / modify the custom files to my liking, but I am now realizing a hole in my plan. The executable has a file inside of it with information on each file in the game. I figured since I could open the executable in 7zip I could just edit the file and drop the new file in there. Turns out, when I try to do that I get an "Unsupported Operation" error. I figure I can just have my editor modify the executable itself and replace the old data.

I have a few questions:
a) What potential problems could I come into doing this? I don't have any experience meddling with executables before.
b) Are there any better ways / tools of doing this?

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Executable file modification.
PostPosted: Mon Jun 05, 2017 5:36 pm 
Offline
Moderator

Joined: Mon Jul 05, 2010 8:55 pm
Posts: 588
Has thanked: 19 times
Have thanks: 215 times
You have to be more clear.

The data that is contained within the exe contains what exactly? Offsets into the main archive file hardcoded? checksums?

_________________
Click the thanks button if I helped!


Top
 Profile  
 
 Post subject: Re: Executable file modification.
PostPosted: Mon Jun 05, 2017 7:07 pm 
Offline
ultra-n00b

Joined: Wed Apr 05, 2017 9:01 pm
Posts: 8
Has thanked: 1 time
Have thanks: 1 time
Gh0stBlade wrote:
You have to be more clear.

The data that is contained within the exe contains what exactly? Offsets into the main archive file hardcoded? checksums?


The file "104" in the exe (file in question) is structured like this:

For each file in the game archive,

int - nameOffset (Points below, to the name of this file.)
int - fileCategory (Unsure what the purpose of this is, but it appears to categorize file types.)
int - fileType (Determines what type of file this is)
int - offset (The offset in the main game archive where the file is found.)
int - zero
int - zero
int - Raw Size
int - Uncompressed Size (If applicable)

Then after all of this it has the filename of each file in the archive.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group