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 new graphics
posted 06-16-06 02:50 PM CT (US)   
How To Add New Graphics

Guide 1: adding new graphics
you must follow this guide exactly or it might not work

First before we get started you will need a few tools and you need to read this it will teach you how to set GeniEd up for use

AOMED
Age of Empires 2: The Conquerors
GeniEd1 for AoK:TC
Drs_aok by Ykkrosh

NOTE This guide is only for adding new graphics, if you want to add a new unit, read this

Adding .slp's to the .drs

For this section you will only need AOMED and AoK:TC.
First extract AOMED out of the zip file (it doesn't matter where you put it, I have it in the data folder) then open it.
now press "Set input data file" and find graphics.drs in your "Microsoft Games\Age of Empires II\Data" folder then change "Folder to extract data into" to "Data\graphics" that way the .slp's will be created in a separate folder, when that's done press "Read data file". When AOMED is finished go into the new graphics folder and you'll see a lot of .slp files, now copy 2.slp then paste it into the same folder and rename it to 5313.slp, now scroll down until you find default.txt, now open it and copy this

files_0_0_id: 2
files_0_0_offset: 21292
files_0_0_length: 71608

then change this:

tables_0_numfiles:1768

to

tables_0_numfiles:1769

copy the "files_0_0" lines at the end of default.txt
then change them to

files_0_1768_id: 5313
files_0_1768_offset: 21292
files_0_1768_length: 71608

after you copy the lines, save default.txt then close it and open AOMED again, and choose "Set output data file" and put it as graphics.drs, once that's done choose "Folder to read data from" and select the folder where you decompilied the graphics.drs,(you may want to back up your graphics.drs file)
once you do that, select "Write data file", once AOMED makes the new graphics.drs open the new graphics.drs with the DRS_aok by Ykkrosh and scroll down until you see 5313, if you see 5313 then you can continue on to the next step, if you don't see it, then that means you did not do something right.


Adding the graphic with GeniEd

Now that the drs has the new graphic in it, you will need to use GeniEd1 for AoK to add another graphic slot, which isn't hard to do, first open graphics_head.txt, located in the ged_data\text folder, when it opens, you should see

# DO NOT alter this file -- always make changes to the patches file instead!
graphic_count: 7367
graphic_header_pointers_000: 217602680
graphic_header_pointers_001: 216122320
graphic_header_pointers_002: 216122448
graphic_header_pointers_003: 216122576
graphic_header_pointers_004: 216122704
graphic_header_pointers_005: 216122960
graphic_header_pointers_006: 216123088

copy the graphic_count and graphic_header_pointers_000 into the patches.txt file, then, add 1 to the graphic_count and change the graphic_header_pointers_000 to the number the graphic_count was before you changed it, which should be

graphic_count: 7368
graphic_header_pointers_7367: 217602680

now that that's done, close graphics_head.txt and open graphics_other.txt, when it's open you should see this

# DO NOT alter this file -- always make changes to the patches file instead!
graphic_0_name1:
graphic_0_name2:
graphic_0_slp: 0
graphic_0_unknown01a: 00 00 00 00 00
graphic_0_unknown01b: 0
graphic_0_replay: 0
graphic_0_unknown01c: 00 00 00 00 00 00 00 00
graphic_0_delta_count: 0
graphic_0_sound: -1
graphic_0_extras: 0
graphic_0_numframes: 0
graphic_0_angles: 0
graphic_0_unknown02: 0 0 0
graphic_0_unknown03: 0
graphic_0_id: 0
graphic_0_type: 0

now copy all of the graphic_0_ lines into your patches, then change graphic_0_ to graphic_7367_ and change graphic_7367_slp: 0 to graphic_7367_slp: 5313, you should have this:

graphic_7367_name1: new
graphic_7367_name2: new
graphic_7367_slp: 5313
graphic_7367_unknown01a: 00 00 00 00 00
graphic_7367_unknown01b: 0
graphic_7367_replay: 0
graphic_7367_unknown01c: 00 00 00 00 00 00 00 00
graphic_7367_delta_count: 0
graphic_7367_sound: -1
graphic_7367_extras: 0
graphic_7367_numframes: 0
graphic_7367_angles: 0
graphic_7367_unknown02: 0 0 0
graphic_7367_unknown03: 0
graphic_7367_id: 0
graphic_7367_type: 0
(you don't have to change name1 and name2)

once you have made all the changes to your patches file, close it and open up GeniEd1, when it's open compile the genie, once the genie has been created, open it with GeniEd2 and change the standing graphic of any unit to 7367, then put the data file in the data folder and play AoK.

Guide 2: Changing the values

In this guide, I'll teach you some of the values you can edit,

Chapter 1: replay

If your adding a walking/standing/dying/decaying/attacking graphic, you'll want to change replay to "1", if it's "0" the graphic will not loop itself

Chapter 2: numframes

This value is the number of frames the game reads, so if your .slp has 50 frames, the numframes will be "50"

Chapter 3: angles

This value controls the number of angles the game will read most have this value as "8", "0" or "1", if your creating graphics for a unit, you'll probably want this as "8", but if your creating graphics for an object or building, you'll probably want this as "1".

[This message has been edited by MasterJoab (edited 08-15-2006 @ 11:04 AM).]

Replies:
posted 06-16-06 05:42 PM CT (US)     1 / 20  
This actually works? No joke? If so, then we can now add units to the game, you are a genius for figuring this out. By adding a new unit to the .dat, can we use new graphics for them?
posted 06-16-06 09:51 PM CT (US)     2 / 20  
posted 06-16-06 10:13 PM CT (US)     3 / 20  

Quoted from ModRocker:

This actually works? No joke?


yes it does work, that's why it took me so long to post this tutorial, I knew how to do it, i just never actually did it

Quoted from ModRocker:

By adding a new unit to the .dat, can we use new graphics for them?


that's the reason for adding new graphics

Quoted from qaz123tfg:

Can we use mps to add new graphics to the new slp?


yes, but you have to delete the back up of the graphics.drs that MPS makes, then open MPS and it will back up the new .drs file

JOAB ()

[This message has been edited by MasterJoab (edited 06-16-2006 @ 11:00 PM).]

posted 06-18-06 07:17 PM CT (US)     4 / 20  
"but you have to delete the back up of the graphics.drs that MPS makes,"

What is that backup file called, and where is the typical (i.e. default) location of it? Thanks.

posted 06-18-06 08:13 PM CT (US)     5 / 20  
The backup file is the file that mps creates when you use it for the first time, they are located in the mps folder, what he is saying is you have to uninstall mps and then put the graphics.drs that contains the new graphics into your aok folder, then install mps and when it makes a backup it will contain the updated graphics, am i correct?
posted 06-19-06 06:50 PM CT (US)     6 / 20  

Quoted from ModRocker:

what he is saying is you have to uninstall mps and then put the graphics.drs that contains the new graphics into your aok folder


you don't have to uninstall MPS, just delete the "data_X" folder in "C:\Program Files\AOK Mod Pack Studio", then open MPS and after it copies the files, you will be able to see the new graphic

JOAB ()

[This message has been edited by MasterJoab (edited 06-20-2006 @ 12:04 PM).]

posted 06-20-06 06:28 PM CT (US)     7 / 20  
The slp's looks good in MPS! Thanx for your good job! It's only the problem with the hex editing with our "frame rate".

Admiral_Loki

posted 06-20-06 11:40 PM CT (US)     8 / 20  
Could someone create 15 new unit graphic sets for me and send me it to spongebobizpunk@aol.com, thanks in advance.
posted 07-22-06 10:31 AM CT (US)     9 / 20  
It seems I can do everything but compile. I don't know what is wrong but this always appears.

Use of uninitialized value in numeric eq <==> at PERL2EXE_Storage/UI.pm line 249.

So what is this? What can I do to remove it? When I try and compile, a whole shitload of errors come up. Any help would be wonderful.

posted 07-22-06 04:52 PM CT (US)     10 / 20  
I'm slacking in my hex-haxing. I haven't even attempted to use GeniEd1 yet. I think it's because I'm too lazy to abandon the old methods I used for L&T 9 months ago.

Someone get a TC-project running I can participate in. *rubs hands*

posted 07-22-06 05:01 PM CT (US)     11 / 20  
@ Artur Reikdal, I don't know, and niether does Ykkrosh

@ Ollie, you can start a TC


JOAB ()
posted 07-22-06 05:15 PM CT (US)     12 / 20  
Thanks man... But your copy of the Genied is working, right? Would you send it to me? Maybe it is a copy thing.

Artur.Reikdal@hotmail.com

Oh, and I saw you have posted your MSN messenger, would it be alright to talk to you through that?

Thanks, so far anyway.

[This message has been edited by Artur Reikdal (edited 07-22-2006 @ 05:21 PM).]

posted 07-22-06 05:34 PM CT (US)     13 / 20  

Quote:

But your copy of the Genied is working, right? Would you send it to me?

no, my copy is top secret

Quote:

you have posted your MSN messenger, would it be alright to talk to you through that?

if it wasn't, I wouldn't have it posted on HG

@ Ollie, I wanna talk to you on MSN


JOAB ()
posted 07-22-06 09:01 PM CT (US)     14 / 20  

Quote:

Someone get a TC-project running I can participate in. *rubs hands*

I have some ideas... contact me if you want.

posted 08-15-06 01:49 AM CT (US)     15 / 20  
DO NOT TRY THIS
ATTEMTING THIS WILL ONLY RESULT IN AN ERROR IN YOUR GAME, IT DOESNT WORK AND ITS NOT WORTH IT.

[This message has been edited by ModRocker (edited 08-15-2006 @ 02:16 AM).]

posted 08-15-06 10:59 AM CT (US)     16 / 20  

Quote:

DO NOT TRY THIS
ATTEMTING THIS WILL ONLY RESULT IN AN ERROR IN YOUR GAME, IT DOESNT WORK AND ITS NOT WORTH IT.


you must not have done it right, adding new graphics works just fine for me, follow the guide exactly and it will work

JOAB ()
posted 08-15-06 02:03 PM CT (US)     17 / 20  
I followed the guide exactly 3 times.

Will someone please just send me an edited E patch .dat with the following added graphics.

5 catapult graphic sets.
2 eagle warrior graphic sets.
5 champion graphic sets.
6 scorpion graphic sets.
6 ram graphic sets.
5 arbalest graphic sets.
2 war wagon graphic sets.
5 paladin graphic sets.
5 cavalry archer graphic sets.

I would really appreciate it, I need more graphics to get this mod I'm working on done.

posted 09-06-06 09:29 PM CT (US)     18 / 20  
graphics_head.txt isn't even there...
posted 09-07-06 07:37 PM CT (US)     19 / 20  
Yeah. We should all (Those able) get together and make some Building Set specific Unit sets. For instance, Aztec/Mayan soldiers wouldn't wear steel armor, or use swords, and Mid-Eastern Civilizations would use scimitars instead of longswords and whatnot. Just to add a bit of added flavor to the game, of course.
posted 09-07-06 08:11 PM CT (US)     20 / 20  

Quote:

graphics_head.txt isn't even there...

you should re-download GeniEd then, or look harder.


JOAB ()
Age of Kings Heaven » Forums » Mod Design and Discussion » How to add new graphics
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Kings Heaven | HeavenGames