Orkdec for Black Hole Studios games

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Orkdec for Black Hole Studios games

Post by aluigi »

I have just finished to update my orkdec and orkdec_files tools:
http://aluigi.org/papers.htm#orkdec
http://aluigi.org/papers.htm#orkdec_files

They are the command-line tools that I created in the (far) 2007 and are necessary to extract the files from the ORK and ORC archives of the following games:
  • Armies of Exigo (ORK)
  • Warhammer Mark of Chaos (ORK)
  • Warhammer Battle March (ORK)
  • Might & Magic Heroes VI (ORC)

The ORK archive doesn't contain filenames and the files are encrypted using the original name as key, so without the original filename you cannot extract the files.
This is why exists the orkdec_files tool that hooks the original game and collects all the possible filenames used by the game at runtime.
With the list of filenames generated by orkdec_files you can extract the ORK archives with orkdec, simple.
Note that probably the file generated by orkdec_files can be quite big moreover in the current version in which I have added an additional hook to get more names.

Instead the ORC archive is just an encrypted ZIP archive, nothing else.
So you can extract all the files without the annoying limitations of the ORK archive, "orkdec.exe archive.orc" and you get all the content extracted.

*edit*
Note that the ORC files you extract from Exigo and Warhammer are NOT the ORC archives used in M&M6. They are just game files and not archives.
orwasaker
Posts: 3
Joined: Thu Dec 24, 2015 12:38 pm

Re: Orkdec for Black Hole Studios games

Post by orwasaker »

Please tell me step by step how to use it specifically for Armies of Exgio
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Orkdec for Black Hole Studios games

Post by aluigi »

The ORK format can be described as 2 versions:
- AoE and WH require 2 tools: one to get the filenames and another one to extract them
- M&M6 requires only the extractor

In your case do the following:
- get orkdec_files http://aluigi.altervista.org/papers/orkdec_files.zip
- get orkdec http://aluigi.altervista.org/papers/orkdec.zip
- use a no-cd executable with AoE
- copy the orkdec_files* files in your AoE folder
- run orkdec_files_loader.exe
- it will run the game and will generate a txt file
- try to play a bit with the game for collecting more filenames
- quit the game
- run orkdec from the command-line using the following command
- orkdec.exe your_file.ork the_generated_file.txt

Let me know if you have any success.
orwasaker
Posts: 3
Joined: Thu Dec 24, 2015 12:38 pm

Re: Orkdec for Black Hole Studios games

Post by orwasaker »

Before I saw your reply i was at trouble figuring out what to type in cmd but i got it from another site
ok so I'm doing this to extract the campaign maps so i could edit them and play them as i want now the golden line you mentioned to me was "play around a little bit" which without it the campaign maps wouldn't have showed in the txt file
the problem is (and that is no longer have to do with your program) is that the editor doesn't load those levels and says "unknown error"
have you tried that before? if so is there a way to be able to edit those levels (just play them in skirmish not the real campaingn) ????
orwasaker
Posts: 3
Joined: Thu Dec 24, 2015 12:38 pm

Re: Orkdec for Black Hole Studios games

Post by orwasaker »

and if you don't know could you please give me the email of a pro AOE gamer?
Smith
Posts: 1
Joined: Sun Jan 03, 2016 1:22 pm

Re: Orkdec for Black Hole Studios games

Post by Smith »

Hi Aluigi,

Thanks a lot for making this tool. It's great to see older games still getting some modding support. I'm having some trouble with orkdec_files_loader.exe when using it with Warhammer: Mark of Chaos. It isn't launching the game properly when I drag and drop the .exe onto it (it's a cracked .exe), instead it's creating a process for the game which sits in the process tray without actually launching. Do you have any ideas what I might be doing wrong?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Orkdec for Black Hole Studios games

Post by aluigi »

Honestly I don't know what to suggest.
I remember to have updated the tool not long time ago and in my tests it worked with MoC although wasn't easy to grant compatibility over all the games.
OllyOrc
Posts: 2
Joined: Sat Feb 06, 2016 10:36 am

Re: Orkdec for Black Hole Studios games

Post by OllyOrc »

Hello Aluigi,

eternal thanks again, as you may remember I run the Warhammer Dark Omen fansite http://www.dark-omen.org and have used your excellent tools for many years. Your latest version of orkdec works perfectly on Win10 for Mark of Chaos & Battle March, so I thought I would post about my setup for Smith and others ->

1) Extract the orkdec files (ork_algo.h, orkdec.c, orkdec.exe) and orkdec_files (orkdec_files_loader.exe, orkdec_files.dll, src) into your MoC directory ->

C:\Program Files (x86)\NAMCO BANDAI Games\Warhammer Mark of Chaos

I use Warhammer.exe 1.72 cracked version for MoC or the Editor.exe (Run as Admin in compatibility Mode) to drag onto orkdec_files_loader.exe (Run as Admin) as usual, to generate a typical file such as 56b5dc9a_orkdec_files.txt that lists all the file paths and can later be used in a command prompt to run orkdec.exe and extract the resources.

2) Open a command prompt and CD\ & CD to navigate into your MoC folder and then type ->

orkdec.exe -d Extract data.ork 521b50fd_orkdec_files.txt

which will create a folder called Extract within your MoC directory (the default folder contains texture images to extract using ddswrapper.exe and other folders will contain music/sound files and other great stuff).

I then rename Extract to Extract_DataOrk and then repeat the whole procedure on Data1.ork

orkdec.exe -d Extract data1.ork 521b50fd_orkdec_files.txt

which will create a new Extract folder containing more resources, such as the high\default folder that contains all the 3d model files, to later convert from .gobj to Direct X files such as dwarflord.gobj

3) Make a copy of your entire NAMCO BANDAI folder

C:\Program Files (x86)\NAMCO BANDAI Games\Warhammer Mark of Chaos

and store it somewhere for later, as I now install the Battle March addon and use cracked version 2.14 of Warhammer.exe for BM and extract the new Data2.ork Data3.ork files by typically running a 6 player Skirmish map against the AI, so I can use all the available armies to create a long list of resources etc. I then rename this entire folder to NAMCO BANDAI GamesBM to allow me to copy my MoC NAMCO BANDAI folder back into C:\Program Files (x86)\ if I ever want to use the Editor.exe again as it sadly doesn't work for Battle March.

Ideally we need someone's game Saves so I can ultimately extract everything and share a full text file list of all resources.

:)

We have just completed all of our Dark Omen mod tools, so we can now create Dark Omen 2 by adding new 3d maps & scenery, 3d portrait heads and new Warhammer armies of sprites (using the 3d models from Total War mods -Call of Warhammer/Rage of Gods/Sundering and auto-rotating them in fragMotion to produce sprites). Everyone welcome!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Orkdec for Black Hole Studios games

Post by aluigi »

Great :D
thete
Posts: 1
Joined: Mon Feb 08, 2016 11:45 am

Re: Orkdec for Black Hole Studios games

Post by thete »

Great instructions for a great tool. Thanks.
At step 2, I had to make and name the 'Extract' folder as otherwise the command line would report no such directory found. (Win7)

OllyOrc wrote:... that contains all the 3d model files, to later convert from .gobj to Direct X files such as dwarflord.gobj


How do you convert the models?, I tried looking at them with 3D Object Converter but they failed to open and I haven't found much on GOBJ format.

Thanks!
OllyOrc
Posts: 2
Joined: Sat Feb 06, 2016 10:36 am

Re: Orkdec for Black Hole Studios games

Post by OllyOrc »

Zoinkity's MoC tools, sorry I can't find his original website that Aluigi and I used to visit, so have attached it here.

:)

I'm currently extracting all of the Warhammer Online resources (10,000 scenery/character models/textures), by using their community's great mod tools, like the modders of the Sundering Total War mod. Then combining it all into Dark Omen, along with the Mark of Chaos/ Battle March textures and models, the same way the Call of Warhammer/Rage of Gods Total War modders.