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: The language.dll - An article
« Previous Page  1 2 3  Next Page »
posted 06-11-05 02:30 AM ET (US)   
This is the second article on the language.dll I said I would make while drafting the first one. This time it on actually editing the language.dll. As you can see it's not yet complete but the sections that will go up are there.


Editing the language.dll


During the drafting stage of my first article about the language.dll I was told that the main content of my article should be how to edit it. That was not the purpose of the article I had previously wrote but the idea was a good one so I have now decided to write a second article about the language.dll. This time it is a detailed article on how to edit the language.dll and other relevant information.
Contents:

- Pre-editing - Equipment you will need
- Information you should know before you edit the language.dll
- Reasons for editing the language.dll
- Tricks that can be in language.dll
- Summary

- Editing - Different parts of the language.dll and languagex.dll
- How to edit
- Editing limits
- Summary

- After Editing - Storage ideas
- Shipping
- Summary
- Conclusion

PRE-EDITING

Equipment You Will Need

You don't need a lot of equipment to edit the language.dll and fortunately they should all be available to you now or soon. First of all the obvious things you will need are a computer (whichever one you use to play Age of Empires on)and the Age of Empires (AoE) language.dll or the Rise of Rome (RoR) languagex.dll but you will also need a Unicode editor to actually edit the language.dll. You can get a free Unicode editor from the granary at Age of Empires Heaven (AoEH) after that you will have all the equipment you will need to start editing the language.dll.

Information You Should Know Before Editing the Language.dll

If you are using a hex editor you must only overwrite information in the language.dll you must not delete or add ANYTHING or your game WILL NOT WORK. This is why I suggest you use a Unicode editor as you can add things without worrying about damaging your game. With a Unicode editor you won't need to worry about dots or spaces you would if you were editing with a hex editor.
Also it's a good idea to make a back up of your language.dll before you edit it in case you accidentally delete something but if you forget to make a backup you can always get the language.dll off your old AoE CD or the languagex.dll off your RoR CD.
Also you must realise that not everyone will install your edited language.dll for one reason or another, so any story you write must have reference to the original language.dll as well.

Reasons for Editing the Language.dll

Edited language.dlls adds a great atmosphere to a scenario or campaign and they can be made to help your creativity and story scores. Take my scenario Death of the Morads for example reviewer Richard Ames talks about a new trick I made using the language.dll. The trick is just on of many tricks that can be done with the language.dll, but more importantly it had been original and creative. I also think that there are a lot more tricks that have not been thought of yet so this is a great source of creativity in a campaign or scenario.
An edited language.dll can also be very helpful if you are making a mod for AoE.

Tricks that can be in a Edited Language.dll

One of the main uses of the language.dll is to change a hero unit's name (Hero Alexander to General Arkon), this gives a great atmosphere to any scenario/campaign you make and really enhances the story and can make a scenario/campaign more enjoyable to play. Another main use of a edited language.dll is to change in game messages like a computer player asking for tribute could be changed to be a greedy demanding a high tax or a computer enemy starting to build a wonder could become the enemy building a monument to the gods that will bring them strength, in this area you can be very creative and original.
Other less used tricks include having a edited message at the bottom of the menu where you choose if you want to play single player, multiplayer, look at the help, do some designing or quit and the new trick which uses the ? button helps to give a bit more information about the units that have been renamed. Remember for tricks with the language.dll there are a lot of thing that can still be done that people haven't thought of you so try to think of new and different ideas.

Summary

In this section I told you that you would need a Unicode editor, mentioned some important information like not to delete or add anything and to make a backup of your language.dll, gave some reasons for edited language.dlls like to help a story or mod and finally I talked about tricks that can used in the language.dll including renaming units and changing computer messages along with some tricks which are not widely used. In the next section will actually talk about editing the language.dll and limits you will face when editing.

EDITING

- Different parts of the language.dll and languagex.dll

For this sub-section I'm going to change format a bit so it's easier to read. Also not all the sections are here only the ones that are really used for scenarios and campaigns. Please not that the character limit can change depending on the width of the characters you use (e.g. an I is slimmer than a M)

Language.dll

Computer Player Messages - Strings 2301 to 2313 - These are messages the computer uses some times like when you tribute them some resources. - Character Limit = 82

Units - Strings 5001 to 5343 - These are the unit names. If you want renamed units in your scenario/campaign you will have to look here. - Character Limit = 24

Build/Train Buttons - Strings 6002 to 6342 (with gaps) - These are the buttons you must press if you want to train a unit or build a building. - Character Limit = 197

Research/Upgrade Buttons - Strings 8001 to 8086 - These are the buttons you press if you wanting to research or upgrade something. - Character Limit = 197

? Button Help Messages (with gaps) - Strings 39465 to 39864 - These are the small help messages you get if you click on the ? button then on a unit, building, etc. - Character Limit = 475

Languagex.dll

Hero Hersifon - String 5314 - This is Hero Hersifon. My theory on why he is here can be found in my first article. - Character Limit = 24

New Units - Strings 5350 to 5371 - These are the new unit names. If you want renamed new units look here. - Character Limit = 24

Updated Train Buttons - Strings 6185 to 6340 (with big gaps) - These are the updated buttons you must press if you want to train old unit that needs a new button. - Character Limit = 197

New Train Buttons - Strings 6350 to 6354 - These are the buttons you must press if you want to train a new unit. - Character Limit = 197

Updated Research Buttons - Strings 8030 to 8072 (with big gaps) - These are the buttons you press if you wanting to research something that has been updated - Character Limit = 197

New Research/Upgrade Buttons - Strings 8090 to 8086 - These are the buttons you press if you wanting to research or upgrade something new. - Character Limit = 197

Updated ? Button Help Messages (with gaps) - Strings 39774 to 39864 - These are the small help messages you get if you click on the ? button then on a updated unit, building, etc. - Character Limit = 475

New ? Button Help Messages (with a gap) - Strings 39814 to 39832 - These are the small help messages you get if you click on the ? button then on a new unit, building, etc. - Character Limit = 475

How to Edit

This is the main reason for this article and with a Unicode editor it is rather simple to do. First of all you will need to find the part of the language.dll you want to edit (Units), this can be easily achieved by using the go to option under edit (this feature is in the Unicode editor in the granary) to go to the string which starts part of the language.dll you want to edit (refer to the sub-section above). After you have found the area you want to edit then simply search though the list of what ever it is that you're looking at (Units) until you find what it is you want to edit (Hero Alexander) then just click on it and press the edit button, after that you just need to type in your edit and press OK. There are of course limitations but they will be explained in the next sub-section. There is nothing else to say here except that if you are using a hex editor to edit the language.dll it is a lot more complicated and complex to do, so I recommend that you just use a Unicode editor.

Editing Limits

This sub-section is going to be quite small but at the same time very important. The only limit you will face using a Unicode editor is the amount of characters (letters, numbers, etc.) you can use. Different sections show a different number of characters even if you type in say twenty characters of a unit you will only see nineteen because that is the limit for that section. If using a hex editor don't write over the dot or spaces or else you will get underscores in between the letters either side of the original space or dot (G_n_r_l_A_k_n) and you can't add any characters.

Summary

This section was about editing the language.dll and I told you where to find different parts of the language.dll then moved on to talking about how to edit the language.dll by going to the part you wanted to edit then clicking on the button and making your edit. Finally I talked about the limits of editing the language.dll which were that you could not use more characters than were originally in the thing you were editing and if you were using a hex editor not to write over the dots are spaces. In the next section I will talk about storage ideas for your edited language.dlls, shipping your edited language.dlls.

AFTER EDITING

Storage Ideas

Storing edited language.dlls isn't hard and it can be quite useful if the language.dll is made for a campaign that you want to play again at a latter date. One way you can store language.dlls is to make a folder for each one then copy them in its own folder (Kings Language.dll Folder). The advantageous of this method is that you don't have to rename the language.dll file so it's then easier to install again the disadvantageous of this method is that you AoE folder will be full of folders if you like to edit the language.dll yourself.
Another way to store an edited language.dll is to just rename the language.dll so that a short or abbreviated is in front of the language (Kings language.dll or DotM language.dll). Advantageous of this method are that you don't have to move your edited language.dll around and there are no folders involved but the main disadvantageous are that you still have clutter and the different language.dlls are completely unorganized.
The final way I'll be talking about is to combined the previous two methods in which you make a folder (Edited language.dlls) then you rename any language.dlls you edit (Kings language.dll, DotM language.dll) then you just moved the renamed language.dlls into the folder that you made. This is the method I use because it has the advantageous of not being spread out every where and there is only one folder which makes it easier to find different language.dlls, there are the disadvantageous of having to rename then move the different language.dlls but this is a small price to pay to keep my work organized and easy to find.

Shipping

Shipping is very similar to storage in the fact that there are about three ways to do it and two of them are exactly the same as storage ideas. The first way you can ship your edited language.dll is to just leave your language.dll and zip it up with your campaign or scenario. If you do this you must warn people not to unzip it straight into there main AoE folder and to make a backup of there original language.dll, this method is often used by Andrea Rosa.
The next way you can ship your edited language.dll is to put it in its own folder within the zip therefore people can't accidentally install it into there main AoE folder and overwrite there original language.dll. Again as with all language.dlls you will need a warning so people can make a choice about if they want to install the edited lanuage.dll or not, to my knowledge no one has used this method but it was suggested be Richard Ames during the drafting period of my first article.
The last shipping method is to rename the language.dll then to send it along in the zip. If this is the method you chose to use then you will probably need some instruction on how to install it in which case you can use mine which are in all of my submissions to the granary just don't alter any text of course you will also need a warning about the edited language.dll again, as you may have guessed this is the method I use because it means I don't have to alter my edited language.dlls name from storage to shipping.

Summary

This was the final section of my article and I talked about storage ideas and shipping. They where very similar topics and used the same ideas some of the time like storing and shipping language.dlls in a single folder, by renaming them and renaming them then putting them in a single folder. The only part after this is the conclusion of my article.

CONCLUSION

This is the end of my article on editing the language.dll I hope you now take some time to do some editing especially if you are making a campaign or scenario because an edited language.dll can really improve the depth of your work and make it much more enjoyable to play. Of course don't concentrate only on a language.dll and leave map design only do a language.dll if you feel the rest of your work is at its best. This is the last article I will do on the language.dll and I hope you can use the information I have supplied.

The Dark Archer


The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs

[This message has been edited by The Dark Archer (edited 01-22-2006 @ 02:22 AM).]

Replies:
posted 10-16-05 01:43 AM ET (US)     26 / 66  
I've started writing an article on editing the language.dll (finally) and couldn't be bothered opening a new thread so I just revived this one for the time being.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-16-05 02:43 AM ET (US)     27 / 66  
Don't use Hex Editor to do dll editing. Use Unicode Editor, like this. It will be much more handy. If you use Resource Editor, you can even insert new string.

[This message has been edited by scenario_t_c (edited 10-16-2005 @ 02:44 AM).]

posted 10-16-05 03:12 AM ET (US)     28 / 66  
Man we need one of those in the Granary. My article can still be valid I just need to change some things like Hex Editor to Unicode Editor.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-16-05 06:31 AM ET (US)     29 / 66  
I'm looking forward to seeing the article on editing the dll.

While sausages are tasty, you might cut your finger with that pencil over there.
posted 10-16-05 11:18 PM ET (US)     30 / 66  
Hey STC do you know how made that editor, I might upload it to the granary but I want to creit.

Edit: Wrote more to the article this afternoon and I've just uploaded it. I hope to get the editing section complete soon.


The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs

[This message has been edited by The Dark Archer (edited 10-17-2005 @ 00:55 AM).]

posted 10-17-05 01:43 AM ET (US)     31 / 66  
I got it more than six years ago, and the company who designed the program seems to be closed as well.
posted 10-17-05 02:20 AM ET (US)     32 / 66  
Alright. Thanks anyway.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-19-05 01:44 AM ET (US)     33 / 66  
I have to say Thank You scenario_t_c the Unicode Editor has been of great use in making the lastest update on my article.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-19-05 01:00 PM ET (US)     34 / 66  
You're welcome. If you also want the resource editor, which can insert new resources(strings), you can do an advanced search in AoKH's Blacksmith.
posted 10-19-05 03:12 PM ET (US)     35 / 66  
You mean you can insert new lines into the dll?

Richard Wilde
rswilde01(at)gmail(dot)com
Skype - Gmail - Firefox
Wikipedia
Review Thread - AoKH - GenieWiki
posted 10-19-05 11:02 PM ET (US)     36 / 66  

Quote:

You mean you can insert new lines into the dll?


Even if you can I'm pretty sure the game won't work properly. I'll take a look at it anyway though.

Edit: What am I ment to search for exactly?


The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs

[This message has been edited by The Dark Archer (edited 10-19-2005 @ 11:25 PM).]

posted 10-20-05 01:24 AM ET (US)     37 / 66  
I am sorry, it should be called Resource Hacker. For some reason, the file is no longer in the Blacksmith, but you can download it here.
posted 10-21-05 06:43 AM ET (US)     38 / 66  
I've finished the the editing section of my article and I'll finish the after editing section tomorrow or Sunday. BTW I could find my way around that second site scenario so I just googled Resource Hacker and found a site to download it from.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-21-05 03:50 PM ET (US)     39 / 66  
Nice work DA, we need more good article writers like you.

Richard Wilde
rswilde01(at)gmail(dot)com
Skype - Gmail - Firefox
Wikipedia
Review Thread - AoKH - GenieWiki
posted 10-21-05 04:12 PM ET (US)     40 / 66  
DA: Why not submti your article to Phill to be uploaded to the Siege Workshop. We need an article concerning language.dll modding.

CenturionZ_1
HG Angel
AoEH Staff

'In heaven an angel is nobody in particular.' - George Bernard Shaw
Age of Empires Heaven Agetoons About Me
posted 10-21-05 06:11 PM ET (US)     41 / 66  

Quoted from Centy:

DA: Why not submti your article to Phill to be uploaded to the Siege Workshop. We need an article concerning language.dll modding.


I'm going to but right now I have to complete the last section, then it's open to suggestions for changes (fixing mistakes, people suggesting new tricks, parts that are hard to understand, etc.) then finally I'll submit it to Phill and upload a copy to my website.

Quoted from Rich:

Nice work DA, we need more good article writers like you.


Thanks Rich.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-22-05 07:07 AM ET (US)     42 / 66  
I've completed and uploaded half of the last section.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-22-05 07:24 AM ET (US)     43 / 66  
@The Dark Archer

The amount of characters will no longer be limited in the unicode editor.

posted 10-22-05 07:53 PM ET (US)     44 / 66  

Quote:

@The Dark Archer

The amount of characters will no longer be limited in the unicode editor.


That is not true. The AoE.exe only expects the language.dll to be so big, so if you type in more characters it will make the file bigger and the game will not work. Also I've tested it to make sure I knew what I was saying.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-23-05 03:57 AM ET (US)     45 / 66  
Strangely enough, it works on my computer.

Don't use hex editor to do that, try with that pebble32 program I gave you.

posted 10-23-05 04:03 AM ET (US)     46 / 66  
Scenario_t_c - does this mean we can rename units with names longer than the original word? If so that would be another wonderful advancement for language dlls. Having to stick to a small number of characters is very restricting, so I'm really hoping it is true.

Richard Wilde
rswilde01(at)gmail(dot)com
Skype - Gmail - Firefox
Wikipedia
Review Thread - AoKH - GenieWiki
posted 10-23-05 04:49 AM ET (US)     47 / 66  
I did try with pebble32 and it seemed to screw my game up as if I had deleted something. But then I might have done something wrong so I will do some more tests and report back.

The Dark Archer

"Try not to become a man of success but rather to become a man of value." - Albert Einstein
"I once met a girl who looked like a camel" - Rasteve
Death of the Morads | AoEH Design Series II | Out From the Cliffs
posted 10-23-05 06:18 AM ET (US)     48 / 66  
Close the program (pebble32) before running the game.

Villager (8 characters) -> Andrea Rosa (11 characters)
Bowman (6 characters) -> The Dark Archer (15 characters)

posted 10-23-05 06:28 AM ET (US)     49 / 66  
Wow, if this method works I could update "Memories Of The Gupta Dynasty". That was my only campaign lacking a language.dll because all names were too long to fit in.
posted 10-23-05 06:38 AM ET (US)     50 / 66  
scenario_t_c: Yuo're sort of becoming a sort of AoEH scenario design messiah. That's two utterly new revelations you've brought us which ahs opened a whole world of possibilities.


CenturionZ_1
HG Angel
AoEH Staff

'In heaven an angel is nobody in particular.' - George Bernard Shaw
Age of Empires Heaven Agetoons About Me
« Previous Page  1 2 3  Next Page »
Age of Empires Heaven » Forums » Scenario Design and Modding » The language.dll - An article
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Empires Heaven | HeavenGames