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

Scenario Design and Modding
Moderated by Suppiluliuma, Fisk, Epd999

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Lengthen Combat Mode - Hex tutorial
posted 10-16-09 10:28 AM ET (US)   
- New Template available
- Triple HP-inspired tricks

As per Rasteve's request here's how you activate the Lengthen Combat Mode/Triple hitpoint mode in a scenario using a Hex editor (e.g. Cygnus).

The LCM was a special mode which was part of the alpha versions, but did not make it to the final/release versions. It triples the amount of HP for nearly every unit/building (with the exception of Gaia and a few other units, see the list in the first thread).

First of all, you'll want to create a backup of the scenario you want to use.

Open the scenario (.scn/.scx) in a Hex editor, and remove the first 28 bytes of the data and save the altered file to the folder containing DigiT's compressor & decompressor programs.

Uncompress the scenario using the compress/uncompress programs using the following command in MS-DOS mode:

C:\ "directory name" \uncompr.exe "filename.scn" "filename.hex"

Open the .hex file in a Hex editor, and search for this part of the file:



Replace the blue selected part with the following Hex values:


01000001000001000001000001000008
00203C4E6F6E653E200800203C4E6F6E
653E200800203C4E6F6E653E20080020
3C4E6F6E653E20000000000000000000
00000001000800203C4E6F6E653E2008
00203C4E6F6E653E200800203C4E6F6E
653E200800203C4E6F6E653E20080020
3C4E6F6E653E200800203C4E6F6E653E
200800203C4E6F6E653E200800203C4E
6F6E653E200400C048BEF70400C048BE
F70400C048BEF70400C048BEF70400C0
48BEF70400C048BEF70400C048BEF704
00C048BEF70800203C4E6F6E653E2008
00203C4E6F6E653E200800203C4E6F6E
653E200800203C4E6F6E653E20080020
3C4E6F6E653E200800203C4E6F6E653E
200800203C4E6F6E653E200800203C4E
6F6E653E200600203CB54C3E20060020
3CB54C3E200600203CB54C3E20060020
3CB54C3E200600203CB54C3E20060020
3CB54C3E200600203CB54C3E20060020
3CB54C3E20060052616E646F6D060052
616E646F6D070044454641554C540600
52616E646F6D060052616E646F6D0600
52616E646F6D060052616E646F6D0600
52616E646F6D0400C048BEF70400C048
BEF70400C048BEF70400C048BEF70400
C048BEF70400C048BEF70400C048BEF7
0400C048BEF700000000000000003A00
00002F2F0D0A2F2F2020546865206465
6661756C74206973206E6F7720736574
206F7574206F662074686520636F6465
2E0D0A2F2F0D0A454E440D0A00000000
000000003A0000002F2F0D0A2F2F2020
5468652064656661756C74206973206E
6F7720736574206F7574206F66207468
6520636F64652E0D0A2F2F0D0A454E44
0D0A00000000000000003A0000002F2F
0D0A2F2F20205468652064656661756C
74206973206E6F7720736574206F7574
206F662074686520636F64652E0D0A2F
2F0D0A454E440D0A0000000000000000
3A0000002F2F0D0A2F2F202054686520
64656661756C74206973206E6F772073
6574206F7574206F662074686520636F
64652E0D0A2F2F0D0A454E440D0A0000
0000000000003A0000002F2F0D0A2F2F
20205468652064656661756C74206973
206E6F7720736574206F7574206F6620
74686520636F64652E0D0A2F2F0D0A45
4E440D0A00000000000000003A000000
2F2F0D0A2F2F20205468652064656661
756C74206973206E6F7720736574206F
7574206F662074686520636F64652E0D
0A2F2F0D0A454E440D0A000000000000
00003A0000002F2F0D0A2F2F20205468
652064656661756C74206973206E6F77
20736574206F7574206F662074686520
636F64652E0D0A2F2F0D0A454E440D0A
00000000000000003A0000002F2F0D0A
2F2F20205468652064656661756C7420
6973206E6F7720736574206F7574206F
662074686520636F64652E0D0A2F2F0D
0A454E440D0A00000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
000000000000



If you did it correctly the end result should look like this:



Save and compress the file using the following command in MS-DOS mode:

C:\ "directory name" \compr.exe "filename.hex" "filename.scn"

Now use the Hex editor to open the scenario file again, and insert the 28-bytes-data you deleted back at the start (use the backed-up scenario for this).

Save the scenario and put it in your default scenario folder. The scenario now has triple HP for the units found in the list of the original template thread.

Note: The mode has a small bug when you Save your game, it increases the amount of HP x 3 again and leaves an unbalanced game after saving. To solve this, you
must re-load your initial saved game again to continue in the normal LCM/Triple HP mode.
Replies:
posted 10-16-09 09:42 PM ET (US)     1 / 18  
waaaaay to complicated for me at the moment. It would probably take me quite a few hours-days for me to be happy that its all right.

~~~Helelix~~~
"Light thinks it travels faster than anything but it is wrong. No matter how fast light travels, it finds the darkness has always got there first, and is waiting for it." - Terry Pratchett
"Evil is always unspectacular and always human. And shares our bed...and eats at our table." - W.H. Auden
"The basis of shame is not some personal mistake of ours, but that this humiliation is seen by everyone." - Milan Kundera
~~~~~~~~~~~
posted 10-17-09 05:32 AM ET (US)     2 / 18  
PhatFish - have you ever tried Trigger Studio on AoE scenarios? I have read the source code and other documentation and it could potentially unlock new capabilities for AoE.
posted 10-19-09 05:42 PM ET (US)     3 / 18  
I have, but personally I don't like it that much - I would prefer hex-editing for creating terrain features. I'm not sure what things could be unlocked using AoK TS because I haven't tried it out a lot using it in the past, and it freezes on vista when trying to save a .scx.
posted 11-30-09 10:24 AM ET (US)     4 / 18  
I didn't know that changing the AI code, with this new one,
you could activate the Triple HP variable.

I thought that only changing the HP x 3 variable from 0 to 1
then you could activate it.


The HP x 3 variable, (a 4 bytes BOOLEAN variable), was at the end of the "Disabled" data block, and before the "Starting Age" data block.

It can be checked with an Hex-editor looking at Trisolo's "sizeeh.scn" template.
posted 11-30-09 03:21 PM ET (US)     5 / 18  
Aokts didn't open AoE scenarios for me.

Who was that Maud person anyway?
posted 11-30-09 04:01 PM ET (US)     6 / 18  
Actually I am getting this. But in the past I am sure I opened it...

I will check if there are other versions...
posted 12-30-09 10:02 AM ET (US)     7 / 18  
I am quite sure something gets wrong there, but I will have to recover my lost hex-editing trick before pointing out it...

Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”

[This message has been edited by Trisolo (edited 12-30-2009 @ 10:07 AM).]

posted 12-31-09 08:45 AM ET (US)     8 / 18  
I copied the code from the stabilized LCM template, which seems to do the trick whenever I implement the values. Some parts might be obsolete though
posted 12-31-09 10:42 PM ET (US)     9 / 18  
Well, I have to finish some papers on hand first, until then please wait for a moment...

IIRC this trick can be done quick fast..

Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”
posted 01-04-10 06:25 AM ET (US)     10 / 18  
[OT]
Trisolo aka scenario_t_c is back yay!
good luck with those papers..
[/OT]

Oh hmm triple hit points yes hmm..

[This message has been edited by DeSirE (edited 01-04-2010 @ 06:29 AM).]

posted 01-04-10 12:26 PM ET (US)     11 / 18  
Welcome back Trisolo.

Nacht Jaeger - Ex AoEH Angel
posted 01-11-10 10:07 AM ET (US)     12 / 18  
I didn't know that changing the AI code, with this new one,
you could activate the Triple HP variable.

I thought that only changing the HP x 3 variable from 0 to 1
then you could activate it.


The HP x 3 variable, (a 4 bytes BOOLEAN variable), was at the end of the "Disabled" data block, and before the "Starting Age" data block.

It can be checked with an Hex-editor looking at Trisolo's "sizeeh.scn" template.
Didn't notice iberico's reply, which is exactly the case.

Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”
posted 01-11-10 11:45 AM ET (US)     13 / 18  
It's good to see you Trisolo, how's it going?

You should Check Zappy's new Composite editor.

//The warrior of Isola

"I lack quotes that demonstrate Humor Intelligence or anything about me."

Pineapplefish
Cleidopus gloriamaris
posted 01-11-10 12:16 PM ET (US)     14 / 18  
Knew about it for quite a while, lol.

Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”
posted 01-11-10 11:28 PM ET (US)     15 / 18  
Viva El Trisolo! How are you?
..

and do you have any upcoming projects?
posted 01-12-10 11:42 AM ET (US)     16 / 18  
Would it be possible to change the starting age of Gaia? Volume asked about this in the thread he recently created. I'm not sure if this would be scenario data, I have yet to try it out.
posted 01-12-10 12:17 PM ET (US)     17 / 18  
When researhing on the AoE unknown civilization trick, I had looked into that issue. I can’t remember the exact reason, whether it is such data was not included in the file or a non-GAIA-civilization GAIA-player would result in a crash (only GAIA-civilization can have animals, trees and other GAIA-only units), but I am sure this cannot be done.

Member of Tsunami Studios
Scenario T.C.: “Yes, the traitors can’t be terminated.”
Richard Ames: “Scenario_t_c should take care of them in a succinct but humorous fashion.”
Don Jorge de Leon: “Ave Trisolo! Vive Trisolo!”
posted 01-12-10 03:06 PM ET (US)     18 / 18  
Age of Empires Heaven » Forums » Scenario Design and Modding » Lengthen Combat Mode - Hex tutorial
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Empires Heaven | HeavenGames