The 3rd Age

BfME 1½ Mod

BfME 1½ Mod

A mod that makes BfME2 as it should have been with the building plot system from BfME1!

Button for The 3rd AgeButton for The Dwarf HoldsButton for The Elven AllianceButton for Helm's Deep Last HopeButton for GothmogtheOrcButton for BFME+Button for The Four AgesButton for HDR HeadquartersButton for Middle Earth CenterButton for Project Perfect Mod

Become an affiliate!

   

Quick Lists

Top Rated Popular New Updated Last Comments Users

Register and log in to move these advertisements down

Adding your own Create a Hero (Sub)Class

Avatar of Solinx

Solinx

Category: Code
Level: Expert
Created: Sunday March 25, 2007 - 15:28
Updated: Friday August 27, 2010 - 21:28
Views: 23630
Summary: Basic instructions for creating a new Create a Hero lineup

Rating

Staff says

4.8

Members say

4.3

Average

4.4/5.0

18 votes

Page 1 2 3 4 5 6 7 8 9 10 11
Introduction

This article will guide you through the basic steps required to add a new Create a Hero Class to the default list provided by EA.

By request, the guide was expanded to include my notes about subclasses. An Intermediate coder should be able to understand them. You can find my notes on the last page of this article. They are not in a separate article, because it rely's on some parts of the Class guide.

To keep things simple, this guide will be about copying the Men of the West class. This means that there will be no real new content added. I suggest you follow the steps through anyway, as they make it easier to understand the steps you need to take.


Why an Expert guide?

You may wonder why this guide is listed as an expert guide. It's true that this guide is quite easy to follow, afterall, the steps are all quite easy. The difficulty is not the guide itself, but the steps that follow after this guide. Unless you want to just make an exact copy of an already existing Class, you will need to know quite a bit about modding. More than the basics.

It is best to first experiment with the various aspects of a Hero with normal static heroes, before attempting to make your own Create a Hero Class. With normal heroes, most relevant code is listed in one file. With the CaH, the code is spread across several files, and is a mixture of all classes, requiring you to identify which code belongs to your Class.


This guide will point out the most important and common parts, and experienced modders shouldn't have a problem recognising the pattern in them.


Important notes

You are expected to have a decent knowledge about modding ini files.
The Beginner tutorials are a good start, but reading a few Intermediate guides and/or having experience with modding ini files will prove useful.


This guide is written using the Battle for Middle Earth II v1.02 ini files.

              
Quote
19 Jan 2007 Update:
With the RotWK expansion out, there have been a few minor changes about the CaH. However, the guide still applies to all patch versions of both games. The only additional point that came with the expansion is that there is now a fourth CaH specific line in the commandbuttons of the CaH; the line that specifies the costs of the power. The guide has been updated to include the line.



Requirements

The files you'll need:

    "Createaheroupgrades.inc"
    "createaherosystem******.inc" ( new file - check step 2)
    "createaherosystem.ini"
    "createaheromodelconditionupgrades.inc"
    "createaheroremoveupgradeupgrades.inc"
    "commandbutton.ini"
    "createaheroarmorupgrades.inc"



Table of Contents

Note: Don't be scared by the number of pages. There are that many because they are all small. ;)

Page 1
Introduction
Why an expert guide?
Important notes
Requirements
Table of Contents

Page 2
Createaheroupgrades.inc

Page 3
Createaherosystem******.inc

Page 4
Createaherosystem.ini

Page 5
Createaherosystem******.inc

Page 6
Createaheromodelconditionupgrades.inc

Page 7
Createaheroremoveupgradeupgrades.inc

Page 8
Commandbutton.ini

Page 9
Createaheroarmorupgrades.inc

Page 10
Test and Backup

Page 11
Subclasses


Next page: Createaheroupgrades.inc

Comments

Display order: Newest first

Elaryan - Wednesday January 14, 2009 - 15:24

it works! i have my own CAH class ! muajauajua thx you
5/5

ILUTAVAR - Saturday March 22, 2008 - 9:01

i cant edit the cah upgrades

{IP}Sauron - Thursday June 21, 2007 - 16:23

nice tutorial gotta use this sometime

Go to top

 

"One site to rule them all, one site to find them,
one site to host them all, and on the network bind them."

 
22:22:50