AOE1 to AOE2 AI Converter

Upload your latest creations here.
Please note that by posting comments to posts in this forum you forfeit your personal copyright on whatever you post. AI Scripters reserves the right to re-use objective comments in script reviews without requiring the posting author's permission. Credit, where appropriate will be given in such cases.
Post Reply
User avatar
MrElephant
Forumer
Posts: 70
Joined: Sun Dec 20, 2020 6:28 am

AOE1 to AOE2 AI Converter

Post by MrElephant »

Hello All,

For the past several weeks, a friend (WWMB) and myself have been working on a new tool. As you may have guessed by the title- it is a tool that converts AOE1 scripts to AOE2 scripts. There are so many good scripts for AOE1. It was sad seeing them sit in the corner not being used. No more! With this utility- you can convert the aoe1 per and ai files into the new aoe2 per files.

How to use:

1. Click the open button
2. Navigate to your AOE1 script directory. Note- please make a backup of your script before you start playing around with the tool. Select your per, or your ai file (you can only convert one file at a time).
3. You should see your data populate on the left under the AOE1 name.
4. Now you have to select your options under the checkbox included on the right side. This is how you want to convert your file. Every checkbox except "Change Important SNs" and "Add Resource SNs" relate only to ai files. The two checkboxes previously mentioned only relate to .per files. This is important. Don't choose the options that relate to the opposite file type.
5. After you are finished choosing your checkbox options, hit either the "Convert AI" or "Convert Per" depending on what file type you selected at the beginning. You should see data populate in the right box under AOE 2.
6. Save your file using the save icon, or just copy the contents of the second box into notepad (notepad++ whatever).


Notes about a couple of the options:
1. Create 5 rams/trebs- this is obvious. It creates 5 rams/trebs. These units weren't available in aoe1.
2. Build farms in dark- In aoe 1 you couldnt create farms until after the market was built in feudal. Click this option if you want this optional support.
3. A/B Camps and Farms. This is the auto build camps and farms option- which was an option in the per files of aoe1.
4. Auto Build Houses. Another pretty clear option- this will allow the ai to auto build houses if the .ai file didnt have houses in its build order in aoe1
5. Delete Scout on Start. This will be controversial. AOE1 didnt have scouts. By selecting this option, you'll delete the scout at the beginning of the game. Note- this does not delete an eagle scout.
6. Basic Resign Rule- The name is obvious. The rule was taken really from the cpsb documentation with a few modifications.
7. Large - This multiplies the ai unit and building count by 2. This is important because the ai will have a greater opportunity to keep up with the 200 population ais of AOE2. A lot of AOE1 older ais only supported 50 population.
8. Change Important SNs. For aoe1 per files only. These are the SNs Leif stated should be changed on his AI wiki. It is highly recommended this is used, but doesnt have to be the case.
9. Add Resource SNs. AIs and Per files didnt necessarily have the gold, food, wood, and stone SNs. These were sometimes controlled by the engine in AOE1. If you see your ai doesnt have the food, wood, gold, and stone SNs- please select this option.

And that about covers it. I have included some basic converted AIs attached as examples. In theory, you could make a completely new ai using this tool, and convert it to play AOE2. Please use Martin Strum's tool for the per files of AOE1. Any .ai file should be able to be converted. If a tool is needed, I highly recommend Stoyan Ratchev's aoe1 tool. Links can be provided upon request. Edit: Please find the aoe1 tools here http://aoe.heavengames.com/siege/AIandP ... ndex.shtml

If you convert another individual's script, and upload it to the forum, please reference the original author. Otherwise, show us what you are making by including it on this thread! That's all for now.
Attachments
Converted AIs Example 13Oct2022.zip
(14.24 KiB) Downloaded 11 times
AOE1 to AOE2 AI Converterv1 13Oct2022.zip
(111.24 KiB) Downloaded 12 times
Last edited by MrElephant on Mon Nov 14, 2022 6:06 pm, edited 3 times in total.

arandi
Forumer
Posts: 12
Joined: Sat Oct 02, 2021 5:56 pm

Re: AOE1 to AOE2 AI Converter

Post by arandi »

Sadly I can't try this tool since I don't have AoE1 but it sounds amazing! How about a showcase stream one day? ;) Well done guys!

User avatar
MrElephant
Forumer
Posts: 70
Joined: Sun Dec 20, 2020 6:28 am

Re: AOE1 to AOE2 AI Converter

Post by MrElephant »

Sure, can certainly do that. I don't know if WWMB will join me, but we can show off the software- and maybe a couple converted ais :)

I should note you don't need aoe1 to use this tool, just your aoe1 ai/per files.

User avatar
MrElephant
Forumer
Posts: 70
Joined: Sun Dec 20, 2020 6:28 am

Re: AOE1 to AOE2 AI Converter

Post by MrElephant »

I have updated the program, and included it attached. There are several updates-

1. Basic boar hunting has been included. Important in AoE1, and provides extra food in AoE2.
2. Walls- some ais in AoE1 liked to make walls. This didnt function correctly in the first version of the tool. I've updated the program, so you should see walls being built now.
3. Better Gathering SNs- Inside the first release of the tool, a very basic SN resource gathering percentage was provided, if the user's .per file didnt include these figures. Now a very much improved version of the percentages is provided. It is based upon the prototype Default per file with a few very minor adjustments. Thanks to promi for stating how the AoE1 formula calculated the totals. This is not perfect. However, I am satisfied with the result, and a lot of time has been spent thinking about this.
4. Very minor- but some user friendly option buttons are included at the top. The "New" button, "Cut", and "Copy" button work with all parts of the program. The "Print", "Paste", and "Undo" feature only works with the AOE2 textbox. I thought these were niceties all users would like to have.

Also, have included an updated version of the examples. The AIs were much stronger with updated SN gathering percentages. Check out Egypt Ultimate for the walls example.

Side note- WWMB's AoE1 AI, Elrond, is included in the examples! Check it out!

Post Reply