Log in

View Full Version : Using unpacked files?



s_tabikha
05-31-2007, 21:59
III. BASICS OF USING THE UNPACKER
______________________________________________________________________


- The Unpacker should be placed in the 'tools\unpacker' folder of your
Medieval II: Total War installation folder

- To unpack all files and place them in your 'data' directory run
the batch file 'unpack_all.bat'

NOTE: To use this batch file the Unpacker and the batch file must
be in the 'tools\unpacker' folder for Medieval II: Total War

- To create a text file with a list of all files within the packs
run the batch file 'list_contents.bat'. This will create a file
'pack_contents.txt' in the 'tools\unpacker' folder;

NOTE: To use this batch file the Unpacker and the batch file must
be in the 'tools\unpacker' folder for Medieval II: Total War

______________________________________________________________________

IV. ADVANCED UNPACKING
______________________________________________________________________


- The Unpacker can be used manually from a commmand prompt. The
Unpacker is called by typing:

unpacker [options]

Where [options] is one or more of the command line options
described in the next section.

- The following command line options are required:

--source=[pack file(s)]

Where [pack file(s)] is the path to one or more pack files.

--destination=[file/folder]

Where [file/folder] is the path to the folder to extract the pack
contents or the file to write the list of pack file contents to.

- The following command line options are optional:

--filter=[filter]

Where [filter] describes which files to extract from the packs.
The default is *.* which will extract all files;

NOTE: The & character cannot be used in the filter. If you use
a ? instead it will extract the file. Alternatively wrap the
filename in quotation marks.

--verbosity=[verbosity]

Where [verbosity] is either 0 (low) or 1 (high) for the amount
of information that will be displayed on screen during unpacking.

--mode=[mode]

Where [mode] configures the Unpacker to either extract files. Set
this to 0 to extract files from the packs, or set to 1 to list the
contents of the packs.

- Example command lines:

This will extract all .txt files from the packs to the c:\packs folder
unpacker --source=..\packs\*.pack --destination=c:\packs\ --filter=*.txt

This will extract a list of all files in the packs to list.txt
unpacker --source=..\packs\*.pack --destination=list.txt --mode=1

______________________________________________________________________

V. USING MODIFIED FILES
______________________________________________________________________


- To use the modified files create a batch file in your
Medieval II: Total War folder

- In the batch file add the following line

medieval2.exe --io.file_first

- NOTE: Due to a timestamp check, the following unpacked files will
cause the game to crash and must be deleted before the game is
launched:

data\descr_geography_new.txt
data\descr_geography_new.db

- Save the batch file and then launch Medieval II: Total War using the
newly created batch file.

^
1. How do I batch file?
2. Do need to if I just want to mod the stats?

Kobal2fr
05-31-2007, 22:32
1. How do I batch file?
2. Do need to if I just want to mod the stats?

1. Create a Windows shortcut to Medieval2.exe. Right click on it, open Properties. Open the "Shortcut" tab. Find the "Target" line. Should read "Whatever:\Medieval2\Medieval2.exe". Change it to "Whatever:\Medieval2\Medieval2.exe --io.file_first". Apply and close the window. Then use that shortcut to launch the game.

2. No, you can just extract the export_descr_units.txt file, mod it to your leasure, put it in your Medieval\data folder, and run with your 1. shortcut.

Only I have no idea about the command to enter to do this (dunno which packed file it is in), I just extracted all, picked the files I wanted, then uninstalled/reinstalled :sweatdrop:

Yeah, well, brute force ain't so bad once you get used to it :sweatdrop:

alpaca
06-01-2007, 16:37
I changed the thread title. Please don't use swearwords in thread titles (or at all for that matter)

To create a batch file, right-click into your explorer window, select new, text document and name it somename.bat
You can then right-click the file (it should have an MS-DOS icon) and select edit to write your commands into it.

s_tabikha
06-05-2007, 01:46
alright which one?
kobal it told me i couldnt because it was in specified or somthing and pathname somthing

and alpaca you make no sense at all
what explorer?
what kind if moderator are you

alpaca
06-05-2007, 18:50
alright which one?
kobal it told me i couldnt because it was in specified or somthing and pathname somthing

and alpaca you make no sense at all
what explorer?
what kind if moderator are you
Windows explorer...
I'll just memorize your nick and stop answering to your questions anyways...

A last warning though, you're dangerously close to trolling, and I've been very patient with you. I won't tolerate the next comment on those lines, or any more aggressive attack.

s_tabikha
06-05-2007, 20:07
dont even man
its not my fault your a horribile morderator
LOL!

s_tabikha
06-06-2007, 18:32
BTW
I like how you say DANGEROUSLY
haha





queer

Bwian
06-07-2007, 18:25
I am slightly less tolerant than Alpaca.

The fact that you did not understand the advice, have not searched the forum for the tutorials that explain the subject, and haven't been able to work it out doesn't give you the right to Troll.

Thread Locked.