So I made these two command line utilities, UNPACK and PACK. As the name might suggest, UNPACK will extract all the files from a .DAT file and PACK will take a directory and make a .DAT file of all the files inside of the directory.
They both come with the single .CPP (C++ Source File), incase anyone is skeptical of keyloggers or something, or maybe curious of how it works. Feel free to modify the code to your needs if you want, just be wary that any person who sends you their UNPACK/PACK executables has had access to the source most likely and could have added something malicious that I did not originally put there.
So, if you want the 100% clean version, here it is (thanks to Eru for initial webspace, and now Chris):
PACK Command Line Utility
UNPACK Command Line Utility
So, "Command Line Utility" might sound a little intimidating to some people. What does it mean? It means the program does not have a user-interface, it is a console window.
The best way to use this program is to extract both the .EXEs to your Windows\System32 folder. Then go to Start->Run and type "cmd" and press enter (no quotes). Command line will come up and you can simply type unpack or pack in the command line and it will run those programs.
So, how do they work? Each have command line arguments like so:
unpack (source file) (destination folder)
pack (source folder) (new archive file)
Updated PACK.exe uploaded, fixed the underscore issue.
Any path that contains spaces, such as "My Documents" should be typed as "My_Documents". Don't worry, it converts it to the spaced version, it just needs the underscores to help it seperate command line arguments.
NOTE: For Unpack, the destination folder has to exist otherwise it will complain and not work properly. Sorry, blame Windows, not me! :D
Basically, you can unpack the contents of SEO.DAT into a folder, "SEO" for example. You modify a few files in the SEO folder and then use pack to recompile the SEO.DAT using the files in SEO folder. You have just edited the .DAT file! :)
unpack C:\program_files\kru\dark_ages\seo.dat C:\data_files\seo
pack C:\data_files\seo c:\program_files\kru\dark_ages\new_seo.dat
This is probably against the ToS, but somethings might help people (replacing new spell effects with old ones, etc), so whatever.
BACK UP YOUR FILES IF YOU DECIDE TO REPLACE THEM.
EDIT: Fixed links.
This post has been edited by SiLo: 17 March 2007 - 03:34 PM