You must be logged in to post messages.
Please login or register

Mod Design and Discussion
Moderated by Sebastien, John the Late

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: How to add SLPs to the Graphics.drs using DRS Explorer
posted 12-19-07 01:24 AM CT (US)   
Since I am probably the only person who knows how to do this, I really should spread my knowledge to all of you guys since nowadays this is my preferred method of adding SLPs to the graphics.drs. And it should be for everybody else, since in contrast to this method, using AoMED is like picking cotton without using a cotton gin.

First off, let me tell all you people that I did not recently come across this method. In fact, it actually has resurfaced in my memory from many years back in '99 when I was a newbie trying to learn how to mod AoE. DRS Explorer is a pretty old-ass program dating back to '98 as it says in the readme. Back in my newbie days, I remember downloading DRS Explorer and messing with it a bit as well as with the old SLP Studio program. Well anyway I remember using SLP Studio to extract an SLP from AoE's graphics.drs, renaming said SLP to a number that is directly after the number of the last SLP in the .drs file, and successfully using DRS Explorer to add the SLP.

And now several years later around two months back when I was working on my expansion and using AoMED to add SLPs, I suddenly remembered that time when I messed with DRS Explorer and thought "hmm, could what I did back then work in AoK and up to this day?" So therefore, I downloaded DRS Explorer and experimented with much success. The SLPs that I imported worked rather well and the process worked like a charm. No more decompiling and recompiling and text editing crap with AoMED for me anymore.

You can download DRS Explorer here.

So now, let me show you how to add SLPs with DRS Explorer. It's rather easy really. But in order to successfully add an SLP with this tool, the SLP has to be named according to a specific format.

This format is an eight-character format that begins with the prefix "Gra." This prefix is followed by five digits representing the SLP number. If anyone has ever used SLP Studio, then you would know that this is the format the SLPs are listed as.

For instance, an SLP file that is named 100 according to the standard format SLPs are named in MPS, then it should be renamed Gra00100 so that it would work with DRS Explorer. And an SLP that is numbered 5 should be renamed Gra00005 in order for it to work.

Now on to using DRS Explorer.

If you want to add an SLP, you first have to name/rename it not only according to the aforementioned format, but also according to a number that is bigger than the number of the last SLP in the graphics.drs.

For example, since the number of the last SLP is 5312(or Gra05312 if you see it in SLP Studio), you have to name the SLP you are going to import Gra05313.

Now go to DRS Explorer and click the "Select DRS File" button. This will bring up a window where you can browse through your folders to find the graphics.drs file you want to import, preferably in your AoK data folder. While in your Data folder, select the "graphics.drs" and click "open." You will then see the graphics.drs's path written to the right of the "Select DRS File" button.

Once you've done this, click the "Select File to Import" button and browse for your Gra05313.slp file. Select the SLP and click "open." You will then see the Gra05313.slp's path displayed to the right of the "Select File to Import" button.

Now we're ready to roll. Once you've done the aforementioned steps above, click the "Add/Replace file" button and now DRS Explorer will run and add the Gra05313.slp to your graphics.drs. Wait for the program to finish running and then close DRS Explorer.

Then to see if your Gra05313.slp got successfully imported, use the program DRS_aok, which you can get here to look into your graphics.drs. If you can see your file listed with the number 5313 as well as view its contest, then all is right.

Keep repeating these steps to import SLPs with the names Gra05314, Gra05315, Gra05316, and so on.

Sure hope I gave clear instructions on this. If I did, then this thread should be annexed to the ModPack Guidance Center thread.
Replies:
posted 12-19-07 03:44 AM CT (US)     1 / 4  
DRS explorer is good but I use drsbuild. That can change multiple slp files with a single command:

drsbuild /r graphics.drs *.slp

Instead of point, click, open etc. etc.

Thanks for the DRS_aok utility that seems a very useful one.

I am trying to find out all the utilities which can mod unit graphics independent of modpack studio ( reason being MPS does not work on my comp. even after multiple reinstallations.)

Here's what I got so far..

DRS build
DRS explorer
SLP studio
AOMED
DRS_aok

If there are any other tools I would like to know.

Btw nice tutorial, but not really needed. DRS explorer is a simple tool and it's readme provides all the description you need.

,
Jatayu O===|¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯/
`
Battle of Saraighat, 1671|Atlantis, the Lost Realm|AOE Roman Modpack|My profile
ि
StormWind Studios
posted 12-19-07 10:55 AM CT (US)     2 / 4  
Btw nice tutorial, but not really needed
I strongly disagree.
posted 12-19-07 11:20 AM CT (US)     3 / 4  
very interesting, I have to try this. Is there any way to do say five at once?

"And Matt is a prolific lurker, watching over the forum from afar in silence, like Batman. He's the president TC needs, and possibly also the one it deserves." - trebuchet king
posted 12-19-07 12:09 PM CT (US)     4 / 4  
matty: use drsbuild. With one command you can do as many slp's you like say 50. That would be hell with DRS explorer.

Cesar: I disagree with your disagreement.

From DRS explorer's readme:
DRS Explorer is a utility to allow people to use Windows, but access the func-
tionality of DRSBUILD, a DOS program.

To start this application, click Start...Programs...DRS Explorer and click the
DRS Explorer shortcut you will find there. You can launch this readme file by
clicking "Readme" in the aforementioned group, or by selecting "View Readme" from
the Help menu of DRS Explorer.

First, click the "Select DRS File" button to select the .drs file you want to
perform transactions upon. A classic Windows Open dialog box will appear. The
default folder is "C:\Program Files\Age of Empires\data". Use the normal steps
for selecting a file in Windows '95, and click "Open". If you have selected the
wrong DRS file, or after the current transaction you wish to do another with a
different DRS file, you can click the button at any time.

Second, if you wish to add or replace a file within the DRS file from a file that
is located outside of the DRS file, you have previously selected, click the "Select
File" button below the "Select DRS File" button. Select the file you wish to add
or replace. Make sure this file has a name following the customary guidelines for
DRS files like gra00002.slp (see "drsbuild.txt" in the folder you installed Data
Explorer in for more detail or click "View DRSBUILD Readme" on the Help menu of Data
Explorer). Then, simply click "Add/Replace File" or "Replace File", and the duty
corresponding to each respective button will be carried out.

To extract or delete a file that is already within the DRS file, click your mouse
inside the "File Name:" text box. Then type in the filename (such as
"gra00023.slp"). Such a filename may include the "?" character and the "*" char-
acter. "?" represents one character of any kind, and "*" represents any number of
characters of any kind. Then you can click delete to delete it from within the DRS
file. To extract the file into the directory containing Data Explorer and DRSBUILD,
click "Extract File" with nothing in the "Extract to folder:" text box. If you wish
to extract to a specific folder on your hard drive, type it in the "Extract to
folder:" box and then click "Extract File".
It says much more than the tutorial and anyway DRS explorer is a simple point and click utility.

no offense to you Agamemmnon

,
Jatayu O===|¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯/
`
Battle of Saraighat, 1671|Atlantis, the Lost Realm|AOE Roman Modpack|My profile
ि
StormWind Studios
Age of Kings Heaven » Forums » Mod Design and Discussion » How to add SLPs to the Graphics.drs using DRS Explorer
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Kings Heaven | HeavenGames