Jump to content


WolfHound

Member Since 22 Aug 2009
Offline Last Active Apr 22 2015 06:19 PM

Topics I've Started

Can't add a Hero

27 August 2009 - 07:15 AM

The problem is... I actualy can't add my hero to Dwarven Side.

I took the ini file for a new Hero(in the attachment)
Attached File  dwarventhrain.ini   31.73KB   44 downloads


and put it in data\ini\object\goodfaction\units\dwarven

Next, I got all custom textures I used in my ini file and put it in
\art\compiledtextures into corresponding folder.

Also I added some blocks to weapon.ini, armor.ini, etc.

Finaly I edited \data\ini\playertemplate.ini
Something in this way:
CODE
PlayerTemplate FactionDwarves
Side = Dwarves

................................................................................
..................................

BuildableHeroesMP = CreateAHero RohanBilbo DwarvenBard DwarvenGloin DwarvenCaptainofDale DwarvenThorin DwarvenBorin DwarvenDain DwarvenGimli DwarvenThrain
BuildableRingHeroesMP = ElvenGaladriel_RingHero

................................................................................
...................................

End

The game launched normaly (no error messages concerning my ini files), but a hero wasn't added to the list however...
Even more than this, some of the existed heroes disappeared for some time.


Then I tried to replace an existing hero (I took Borin) with my own in playertemplate.ini Result was the same (i.e. no result)

What should I do?
Maybe i missed something?

Hotfixes

23 August 2009 - 09:07 AM

I propose to post here any ini or script errors, so called "slip of the pen". Just to ease the developer's hard work.

Here what I found for now:

File /data/ini/commandbutton.ini


CODE
CommandButton Command_PurchaseUpgradeRohanBasicTraining
Command = OBJECT_UPGRADE
Options = NEED_UPGRADE OK_FOR_MULTI_SELECT CANCELABLE
Upgrade = Upgrade_RohanBasicTraining
NeededUpgrade = Upgrade_TechnologyGondorBasicTraining
TextLabel = CONTROLBAR:PurchaseUpgradeRohanBasicTraining
ButtonImage = BRArmory_Banner
ButtonBorderType = UPGRADE
DescriptLabel = CONTROLBAR:ToolTipPurchaseUpgradeRohanBasicTraining
InPalantir = Yes
LacksPrerequisiteLabel = TOOLTIP:LackRohanBasicTraining
End

It makes impossible for any Rohan unit to purchace banner carriers.

Now closer look:
NeededUpgrade = Upgrade_TechnologyGondorBasicTraining - that's the reason,

just replace it with:
NeededUpgrade = Upgrade_TechnologyRohanBasicTraining

I tested. It realy helped.

Now if anyone found something like this, please post it below.

Troubles with CreateAHero

22 August 2009 - 05:41 PM

Hi, everyone....

Sorry to bring this up, but i cannot understand what's wrong....

Why are there problems with CreateAHero while playing for Rohan faction?
When I tried to edit data\ini\createaherosystemwizard.inc (as an example) as follows:

From:
UsableFactions = Men Elves Dwarves Isengard Mordor Wild Angmar Arnor

To
UsableFactions = Men Elves Dwarves Isengard Mordor Wild Angmar Arnor Rohan

i got an error while launching the game:
"Token 'Rohan' is not a valid member of the index list"

But in data\ini\playertemplate.ini the description for Rohan is Ok

It's also strange, that one might start game with Random hero for Rohan.
And another bug is that when you play on LAN for Rohan and your opponent tries to choose any CreateAHero a network timeout occurs, while trying to export a Hero from one host to another.

I wonder if anyone faced this troubles?