Page 1 of 2

DARK [.darkpack]

Posted: Thu Jul 04, 2013 8:13 pm
by lostprophet
This game just released on Steam and I suspect the texts are in the "LocText_en.darkpack" ( http://rghost.net/47215158 ).
Could somebody take a look on it? Thank you :)

Re: DARK [.darkpack]

Posted: Thu Jul 04, 2013 9:27 pm
by swuforce
Quickbms script for unpack

Code: Select all

idstring "DARKPACK"
get tablesz long
get files long
for i = 0 < files
get offset long
get null long
get unk long
get null long
get size long
get namesz long
getdstring name namesz
log name offset size
next i

Re: DARK [.darkpack]

Posted: Fri Jul 05, 2013 9:55 am
by lostprophet
Thanks, the bms script works great, the game uses the texts when reimported with quickbms (however I have to watch out to not exceed the original filesize):)

Re: DARK [.darkpack]

Posted: Fri Jul 05, 2013 12:53 pm
by michalss
lostprophet wrote:Thanks, the bms script works great, the game uses the texts when reimported with quickbms (however I have to watch out to not exceed the original filesize):)

I was thinking to make repacker but i dont know someone allready working on it :)

Re: DARK [.darkpack]

Posted: Fri Jul 05, 2013 2:55 pm
by lostprophet
michalss wrote:
lostprophet wrote:Thanks, the bms script works great, the game uses the texts when reimported with quickbms (however I have to watch out to not exceed the original filesize):)

I was thinking to make repacker but i dont know someone allready working on it :)
Well, I would appreciate a repacker :D (since the reimport feature of Quickbms has the size limit).

Re: DARK [.darkpack]

Posted: Fri Jul 05, 2013 3:02 pm
by Vash
The format is pretty easy, If I have the time I'll try something

Re: DARK [.darkpack]

Posted: Sat Jul 06, 2013 7:32 am
by lostprophet
It looks like the reimport feature for Quickbms cuts some texts, so I'll wait for a proper repacker then.

Re: DARK [.darkpack]

Posted: Sat Jul 06, 2013 2:27 pm
by SileniusLegard
Vash wrote:The format is pretty easy, If I have the time I'll try something
Wow, that would be great, thank you very much.

Re: DARK [.darkpack]

Posted: Sat Jul 06, 2013 3:32 pm
by Vash
I'm on it..


[EDIT]
Ok, here a first version. At the moment it only unpacks, I'm sharing this because I only tried on this one file and I can't be sure it works with all of them.
https://www.dropbox.com/s/tbv2qhmk0o0e8 ... Packer.exe

I had to use Visual Studio 2012 to compile it, you might need the libraries

Re: DARK [.darkpack]

Posted: Sat Jul 06, 2013 10:45 pm
by Herdell
Vash wrote:...I'm sharing this because I only tried on this one file and I can't be sure it works with all of them.
I've tried your tool on a 2gb file (Data.darkpack) and it worked well extracting 11.000+ files with proper filenames and folders.

So, yes, your tool works fine with another files from DARK game than LocText_en.darkpack.

Re: DARK [.darkpack]

Posted: Sat Jul 06, 2013 11:39 pm
by OrangeC
Doesnt work for me on the data.darkpack. what libraries do i need?

Re: DARK [.darkpack]

Posted: Sun Jul 07, 2013 11:21 am
by Vash
These should do the trick:
http://www.microsoft.com/en-us/download ... x?id=30679

SOrry for taking my time, I'm just rusty with C and I'm kinda of experimenting on new stuff :D


[EDIT]
Here's the complete version. Once again, if you could test it on the biggest files would be better

http://www.mediafire.com/download/2n6bs ... Packer.exe

Re: DARK [.darkpack]

Posted: Sun Jul 07, 2013 4:16 pm
by lostprophet
So I think I'm doing something wrong.
1. I unpacked the LocText_en.darkpack with DarkUnPacker.exe
2. I modified the texts.csv file.
3. When I try to run the "DarkUnPack.exe -m LocText_en.darkpack", it says "Cannot open the file LocText_en.tbl".

The LocText_en.tbl is there, along with the "LocText_en" directory.

Re: DARK [.darkpack]

Posted: Sun Jul 07, 2013 4:46 pm
by Vash
Be sure to run the tool outside the LocText_en dir and be sure that the tbl file isn't somehow locked... I wouldn't know what else to say, I tried with that file and it came out correct

Re: DARK [.darkpack]

Posted: Sun Jul 07, 2013 4:55 pm
by lostprophet
Vash wrote:Be sure to run the tool outside the LocText_en dir and be sure that the tbl file isn't somehow locked... I wouldn't know what else to say, I tried with that file and it came out correct
I'm using Win8 x64, UAC is turned off, I tried it on C:, D:, E:, always the same trouble. I'll try it on a virtual Win7.