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

Scenario Design and Modding
Moderated by Suppiluliuma, PhatFish, Fisk, Epd999

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: How to change technology popup help text
posted 02-18-09 06:29 AM ET (US)   
When the AoEd/RoRd was originally released by scenario_t_c I noticed 1 small error:
research_%%_pointer: Every technology slot should have two pointers with non-zero value to let the game recognize its existence. (0~2147483647)
People may have noticed that when adding/modifying technologies the incorrect text is shown via the popup help (i.e. clicking ? on technology icon). It isn't a big issue (who really reads the popup help anyway?).

I have found that this field is actually 4 attributes and not one (although the editor shown the pointer to contain two values).

The four attributes:

1. Popup Help ID (string ID)
2. Unknown 1 (always = 1 if popup help ID used)
3. More Help ID (string ID, which actually references a section of the Empires.HLP file)
4. Unknown 2 (always = 2 if more help ID used)


Now, in order to use this knowledge when modifying via AoEd/RoRd let us look at the following example:

EXAMPLE: I want to add new popup help/more help string to my mod

1. Obtain the String IDs for both popup help and more help from the language.dll (or langaugex.dll). This assumes that you have added the text already to the dll file.

2. Let's say that you want to use the string IDs 41,527 and 25,991. Note these down in the following format:

41527 1 25991 2

3. Convert each value into HEX (I recommend using scientific MS calculator, type value in DEC and click HEX radio button to see translation):

A237 1 6587 2

3. Now switch the order of your 4 attributes like so:

1 A237 2 6587

4. Combine the 4 attributes into 2:

1A237 26587

5. Convert to "decimal" (again use MS calculator):

107063 157063

6. Insert these values into the research_%%_pointer attribute. Test to ensure that you get the desired effects.


Just in case you were wondering, the following example actually corresponds to the Tool Age technology (you can check the research_%%_pointer value = 107063 157063 and the string IDs of 41527 and 25991 both relate to the tool age.

Note, if you want to obtain the string IDs for existing technologies simply take the pointer value and work backwards.

[This message has been edited by Rasteve (edited 02-18-2009 @ 09:08 AM).]

Replies:
posted 02-18-09 05:41 PM ET (US)     1 / 3  
Now THIS is something useful.

"Mrcheeze your genius but not quite a Gumble-kind-of genius." - Gumble
"We're all friendly here except MrCheeze but he means well" - Ninetales (Not exact words)
"Gumble has no words for you, you’re boring now. -underrated- that’s a joke, Gumble is OVERSTATED." - Gumble
(Not even sure what he was saying there)
posted 02-18-09 08:35 PM ET (US)     2 / 3  
Thanks much Rasteve. The pointers always get on my nerves.

Nacht Jaeger - Ex AoEH Angel
posted 02-17-11 06:09 PM ET (US)     3 / 3  
I know this thread has not been active for a few years now, but my recent data editing experience tells me this will need another look.

In the research section of the data file one research looks like this, this is from my modded data, one of the new worship techs, Esus

research_187_required_tech: 103 180 -1 -1
research_187_cost1_type: 3
research_187_cost1_amount: 500
research_187_cost1_used: 1
research_187_cost2_type: -1
research_187_cost2_amount: 0
research_187_cost2_used: 0
research_187_cost3_type: -1
research_187_cost3_amount: 0
research_187_cost3_used: 0
research_187_required_tech_amount: 2
research_187_location: 104
research_187_name_language: 8086
research_187_help_language: 41550
research_187_time: 60
research_187_effect: 29
research_187_unknown01: 3
research_187_icon: 64
research_187_button: 10
research_187_pointer: 108086 1540550
research_187_unknown02: 0
research_187_name1_length: 5
research_187_name1: Esus

There are 3 lines interesting here:
research_187_name_language: 8086
research_187_help_language: 41550
research_187_pointer: 108086 1540550

What Rasteve is talking about in this thread is the pointer line.

In my language dll I changed line 8086 to "Esus" and 41550 to "worship Esus" which will later also tell the effect of this research. I tried and it worked fine, the proper text showed up ingame.

But if I followed rasteve's method of switching from dec>hex and back my pointer line should look like this:

41549 1 41548 2

in hex
A24E 1 A24D 2

changed order
1A24E 2A24D

back to dec
107085 172620
this is not the same as the pointer I used

Two theories:
1 Rasteve is just wrong with this method
2 The popup text and name text language line is only controlled by
research_187_name_language:
and
research_187_help_language:
and the pointer has another, which doesn't have such a noticable ingame effect (since in my mod the popup text worked fine)

I might try some things later to see what it really is.

[This message has been edited by Thompsoncs (edited 02-17-2011 @ 06:09 PM).]

Age of Empires Heaven » Forums » Scenario Design and Modding » How to change technology popup help text
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Empires Heaven | HeavenGames