Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 17:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



.hdr pack file help

Discussion on .hdr pack file help within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 29
Received Thanks: 8
.hdr pack file help

This is for the newer pack file .hdr and .d##

I am in the process of re creating the game to further my skills in C# (I already have half the game done in C++ (so don't bash me for choosing c#) but I am stuck on what the first 400 bytes (100 32-bit ints) are in the pack file header.

I know some of you have done repackers and was wondering if anyone has figured this out.

The rest of the file format I have figured out and I have included it here for anyone that is interested.

Thanks to anyone that can point me in the right direction!

Code:
// 400 bytes
read 100 32-bit ints of unknown information

read number of pack files (32-bit int)
for number of pack files
{
	read pack file name length (32-bit int)
	read pack file name (read the number of characters using the length above)

	read the number of directories that file inside of the pack file has  (32-bit int)
	for number of directories
	{
		read directory name length  (32-bit int)
		read directory name (read the number of characters using the length above)
	}

	read pack file size (32-bit int)
	read not used (32-bit int)
	read number of files in pack file (32-bit int)
	read number of free spaces (32-bit int)

	for number of free spaces
	{
		read free space size (32-bit int)
		read pack file offset (32-bit int)
		read not used (32-bit int)
	}

	for number of files in pack file
	{
		read file path name length (32-bit int)
		read file path name (read the number of characters using the length above)
		read file offset in pack file (32-bit int)
		read not used (32-bit int)
		read file size (32-bit int)
		read not used (32-bit int)
		read not used (32-bit int)
	}
}
FattyB is offline  
Old 07/02/2013, 10:18   #2
 
HellSpider's Avatar
 
elite*gold: 20
Join Date: Aug 2008
Posts: 2,763
Received Thanks: 4,397
I'm not sure about this at all but I assume it's just junk. The client executable adjusts the file pointer to +0x190 before reading from the file handle.
HellSpider is offline  
Thanks
1 User
Old 07/02/2013, 10:36   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 29
Received Thanks: 8
Quote:
Originally Posted by HellSpider View Post
I'm not sure about this at all but I assume it's just junk. The client executable adjusts the file pointer to +0x190 before reading from the file handle.
Sweet, thank you for the info. I was hoping to not resort to looking at the assembly language to figure this out since my assembly is rusty. Not to mention the exe is packed and I have not looked to see if anyone has a new one for the latest exe.

I figured it might be an unused area since there are other unused areas in the header. The only thing that got me was the fact that some of that data changes from update to update.

Ill just have to run a test by unpacking the existing client and repack it with my program to see if Dekaron will run it. Once I get my packer done Ill post back here with my results.
FattyB is offline  
Old 07/04/2013, 07:45   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 29
Received Thanks: 8
So I wrote my unpacker/packer and it works with the game. I unpacked the game, then repacked it, attached it to the Nexons game and it seems to work. I set the first 400 bytes to 0, however after an update the launcher put some random data in there. At this point I am happy, I just ran into an issue with a couple of files that has multi byte characters that C# does not have a standard encoding for. Thanks again for the help!

data\texture\effect\skill\vitaldrain\»çº» - eff_vital_symbol01#.dds
FattyB is offline  
Old 07/04/2013, 10:20   #5
 
HellSpider's Avatar
 
elite*gold: 20
Join Date: Aug 2008
Posts: 2,763
Received Thanks: 4,397
Quote:
Originally Posted by FattyB View Post
So I wrote my unpacker/packer and it works with the game. I unpacked the game, then repacked it, attached it to the Nexons game and it seems to work. I set the first 400 bytes to 0, however after an update the launcher put some random data in there. At this point I am happy, I just ran into an issue with a couple of files that has multi byte characters that C# does not have a standard encoding for. Thanks again for the help!

data\texture\effect\skill\vitaldrain\»çº» - eff_vital_symbol01#.dds
Good work! It's nice to see that someone has some serious developing going on around this game.

Btw, offtopic, but did you create some model viewer in the past? I recall I saw some posts about it.
HellSpider is offline  
Old 07/04/2013, 12:49   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 29
Received Thanks: 8
Thanks for the compliment! I am in between jobs so we will see how far I get with this, but here is the list of things I have done so far. I am still learning WPF so the UIs are crude, but everything works.

Packer
Unpacker
Div Packer (found out the compression uses zlib)
Div Unpacker (used by the launcher)

Mini Launcher
Launcher (the div updater works, I just need to pack the updates into the game file. Ill work on that tomorrow)

The things on my list to do...
The game of course
Model viewer (I have the mesh data file figured out)
Model creator(This one will be a pain in the *** since I really don't want to recreate a model creator, so this will probably never get done)
Map creator (I have the map data file figured out, but the same as above, it will probably never get done)

So to answer your question, I had a model viewer done, and I had the game written in C++ so that you can run around the map (all buildings and objects placed), see the monsters, and see the NPCs. I had the ground texture tiles placed, but it was not blended. The thing that stopped me was the animation files. Figuring those out is going to take a lot of time.

I am hoping to get further with this project than I did before!

Here are some photos of the previous project and these were probably in the post that you saw 2 years ago.




FattyB is offline  
Thanks
1 User
Old 07/04/2013, 14:10   #7
 
HellSpider's Avatar
 
elite*gold: 20
Join Date: Aug 2008
Posts: 2,763
Received Thanks: 4,397
That's impressive!

I thought about making a converter for the MESH files to some general model files used by 3ds max or maya. That way custom models could be made and converted back to the game format. Though, I'd need to find time for a project like that.
HellSpider is offline  
Thanks
2 Users
Old 07/04/2013, 17:53   #8
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,227
Received Thanks: 568
Quote:
Originally Posted by HellSpider View Post
That's impressive!

I thought about making a converter for the MESH files to some general model files used by 3ds max or maya. That way custom models could be made and converted back to the game format. Though, I'd need to find time for a project like that.
that would be cool hope u are gonna do this project ! thers already something like 3ds but we need an exporter for it. maybe u could fix that ^^
conquer93 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
kom v.0.4. file pack
04/29/2013 - Grand Chase - 2 Replies
I'm come form HK English is not good I want a program what can pack the file to kom v.0.4. file because some files is not working if I pack to 0.2 or 0.3 if it can be 0.4 and working,everything is easy equip attribute drop thing get exp. (not sure) char. run/jump/walking speed/height practice mode char. equip
[QUESTION] encrypt file folder pack/Datei-Ordner verschlüsseln Pack
04/18/2012 - Metin2 Private Server - 0 Replies
Hallo an alle ... Inzwischen DaRealFreak danken Ihnen für Ihre Hilfe und für seine große Führer!!!! ( Extractor für jeden Client):handsdown: Dank der Anleitung konnte ich die wichtigsten lzo Dateien in dem Ordner mit den Extension Packs und xxxxxx.ext xxxxxxx.exs (anders als die üblichen EPK eix) extrahieren .... und ich es geschafft die Dateien zu entschlüsseln wollte ich ... Stunden, nachdem sie alles verändert und wie kann ich die Dateien neu zu erstellen ricriptare pc.ext und...
Selling Pack.d04 File
02/18/2009 - Trading - 2 Replies
Selling my files. I have python/cursemaze vack file. I have skill hack for all skills. I have non-aggro for dungeons and df. and others. Hit me up i want dil/coins



All times are GMT +1. The time now is 17:44.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.