View Full Version : Bad armor for monster - help please
Disenchanter
May 15th, 2008, 03:40 PM
Greetings, comunity.
I'm trying to put together a basic mod. Today, I tried running the 0.01 version, but the game crashes with the message "bad armor for monster". I've checked my work, but can't seem to find the problem. Perhaps one of you could help me spot it?
Thanks.
Endoperez
May 15th, 2008, 03:56 PM
#armor command only accepts text as input, not numbers. It's been that way from the beginning, probably due to an oversight. It's not easy to catch because numbers can be used almost everywhere else.
Disenchanter
May 15th, 2008, 04:00 PM
Ah, thanks a bunch.
edit - Also discovered tons of other bugs, but at least it runs now. It seems sites must also be entered by name, as entering numbers crashes the game(bad site).
Edi
May 15th, 2008, 05:25 PM
I've used #selectsite <nbr> without any problems. You just need to remember to use #end after you stop modding a site or you get weirdness.
For example, #selectsite 31 modifies the first one of EA Mictlan's startsites and #selectsite 4 modifies The Swamps of Pythia.
If you make new sites, that may be different when you assign them to a new nation.
Disenchanter
May 16th, 2008, 04:58 AM
#startsite is the line that gave me trouble, when used with new(created by the mod) sites.
Endoperez
May 16th, 2008, 06:42 AM
Hmm... Did you create the sites after you had assigned them to the nation? If so, move the #newsite command before #startsite in the text file.
Disenchanter
May 16th, 2008, 11:16 AM
No, I created the sites before creating the nation. The mod ran when I replaced the numbers with names. I suspect that if I had mixed up which to create first, it would have crashed no matter how I entered the sites.
By the way, is there some limit on what items a recruitable unit can have? Or a way to copy the stats of existing items? I tried to give a commander Jade Armor, but when I ran the game, he had nothing on. When I tried giving him other magic items(Rime Hauberk, Rainbow Armor, Sword of Sharpness, Frost Brand are the ones I tried) he had them.
Sombre
May 16th, 2008, 11:57 AM
Some of the items don't actually show up in the game as equipment with the same name. I can't remember examples right now, but it's possible Jade Armor is actually "Jade Hauberk" or something else entirely.
Edi
May 16th, 2008, 03:58 PM
Check the DB for the item names (BaseI table). You need to use those.
Disenchanter
May 17th, 2008, 02:54 AM
The database doesn't list an alternate name for the Jade Armor(or at least I couldn't find it).
I've duplicated the effects by creating a mundane armor with the same statts and giving the unit #onebattlespell, but I'm still curious about the reason behind this. I might experiment on it later on, but I suspect my attention shall be occupied by Age of Conan today.
Edi
May 17th, 2008, 04:36 AM
#additem "Jade Armor" works perfectly in map files. That name is what you use when you mod the item. The DB also lists what armor it gives, which references an entry in the armor table, which happens to be armor #107, Jade Scale Armor.
So #armor "Jade Scale Armor" is the one you are looking for. Attention to detail is required when modding, specifically what name weapons and armor you get from items if you want to assign said things natively to units via mod.
Disenchanter
May 18th, 2008, 03:53 PM
#armor "Jade Scale Armor" gives the unit a Jade Scale Amor, id 107, not Jade Armor, id 176. Their base stats are identical, but Jade Armor is magical, providing quickness.
#armor "Jade Armor" is the line that did not work for me. The DB lists them as corresponding but, at least in my game, the Jade Scale does not provide quickness.
Because on a second read it looks very confusing - when in my previous post I mention creating mundane armor with the same statts I meant that I create the unit with an identical mundane armor(the very same Jade Scale Armor), and duplicate the quickness effect through #onebattlespell.
I apologise if I'm beeing to dense or too much trouble.
Edi
May 18th, 2008, 05:01 PM
There is NO armor #176. Jade Armor is ITEM #176, while Jade Scale Armor is ARMOR #107. This is an important distinction. Assigning an armor or weapon to a unit does NOT give that unit the abilities gained from equipping an item that gives that same armor or weapon. I.e. no fire immunity from intrinsic Fire Plate, no shock immunity from intrinsic Copper Plate, no cold resistance from intrinsic Frost Brand etc etc. You need to mod those abilities to the unit separately. Intrinsic quickness cannot be modded.
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.