Farrp Weapon Compilation v2 and leveled items

Post » Sat May 28, 2011 8:50 am

Hello,

I'm quite new to mod editing, and I'm trying to fix a bug related to leveled items and http://morrowind4kids.com/pseronwyrd/files/FarrpsMods/Weapon%20Compilation%20Mod/.
I've read a http://www.gamesas.com/index.php?/topic/1082086-helluva/page__view__findpost__p__15775957 mentioning issues with FARRP and leveled lists, but I didn't find any solution nor any explanation.

The initialization script "farrp_PerformLL_scr" adds leveled weapons to a lot of NPCs, but for some of them, when I loot their corpse, the farrp's item that should be there is replaced with an "error icon" (with a crossed red circle) which name is the object ID (eg. "farrp_Short_NPC"), and which cannot be used for anything ingame.

The script is 504 lines long, and does things like that:
Begin farrp_PerformLL_scr    set farrp_PerformLL_once to 1    [...]    "Marilia Saram"->additem "farrp_Long_NPC" 1    "relyn sarano"->additem "farrp_Long_NPC" 1    "breyns randas"->additem "farrp_Short_NPC" 1    "nels llendo"->additem "farrp_Short_NPC" 1    "sarvur sadri"->additem "farrp_Axe_NPC" 1    "filbeneth"->additem "farrp_Blunt_NPC" 1    "minisun ulirbabi"->additem "farrp_Long_NPC" 1    [...]    MessageBox "Weapon Compilation Mod:: 470+ NPCs (and skeletons) now carry new leveled weapons"    StopScript "farrp_PerformLL_scr"END


While it will work for some NPCs (eg. "minisun ulirbabi"), it will systematically fail for some others (eg. "nels llendo") and I have absolutely no idea what differentiates the former cases from the latter's.

If I try to add such items to my character using the console:
player->additem "farrp_Short_NPC" 1

I'll get the same bug.
It only works if I add a real object (eg. "farrp_dagger1"), and systematically fails for object IDs that point to level items (eg. "farrp_Short_NPC", "farrp_long_lv1"...).
But I also noticed it will fail for Morrowind original level items like "l_m_armor".

I guess my poor knowledge in TESCS doesn't help me here ^^'
Any help would be greatly appreciated :-)
User avatar
Kristian Perez
 
Posts: 3365
Joined: Thu Aug 23, 2007 3:03 am

Post » Sat May 28, 2011 3:29 am

... is replaced with an "error icon" ...

This sounds as if the new items weren't added to the mod, or the custom icons/textures/meshes weren't installed properly on your pc.

In either case the script shouldn't have anything to do with this.
User avatar
Michelle Serenity Boss
 
Posts: 3341
Joined: Tue Oct 17, 2006 10:49 am

Post » Fri May 27, 2011 8:33 pm

Thx for your reply :-)

Actually, it works when I use the console to add weapon using their IDs.
It seems it is the leveled list which doesn't work.

In FARRP, for NPC's items, there are:
- "1st level" leveled lists (eg. farrp_Short_NPC) which point to
- "2nd level" leveled lists (eg. farrp_Short), which point to
- "3rd level" leveled lists (eg. farrp_short_lv1), which point to
- real item IDs (eg. farrp_dagger1).

Using the console, I can add real items to my inventory (eg. player->addItem "farrp_dagger1" 1), so they seem to be correctly added to the mod, but if I try to add items from other leveled lists (eg. player->addItem "farrp_Short" 1), I'll get those "error icons" instead of the random item.
Maybe this is not supposed to work this way. I'm not very familiar with the console.
User avatar
Carlitos Avila
 
Posts: 3438
Joined: Fri Sep 21, 2007 3:05 pm

Post » Sat May 28, 2011 4:10 am

If you try to add an item which doesn't exist (like farrp_Short) you should get an error message.
If the mod author created such an item bet didn't add any specifics (like mesh, icon, stats etc) you get the "error icon".

I've never worked with levelled lists before, but I'm sure you can't add a list as an item to yourself.

On the OP matter:
To determine the source of the bug I would have to install it, understand it and read through everything.
The problem might be a typo, a Construction Set bug (there are a few), the author changed his mind and renamed a few items, another mod is messing with your installation and a couple more things.

Did you try to contact the author?
Pseron Wyrd is also around (he seems to be the host of the file).
User avatar
Roanne Bardsley
 
Posts: 3414
Joined: Wed Nov 08, 2006 9:57 am

Post » Sat May 28, 2011 12:49 am

If you try to add an item which doesn't exist (like farrp_Short) you should get an error message.

Indeed, if I misspell the item ID, I get such an error message.

I've never worked with levelled lists before, but I'm sure you can't add a list as an item to yourself.

Indeed, it appears I can only add items to myself.

If the mod author created such an item bet didn't add any specifics (like mesh, icon, stats etc) you get the "error icon".

I only get it when I try to add levelled lists to myself.

I just opened TESCS and checked many FARRP weapons, they all have proper icons/stats.
So I tried to add some of them to myself and I got a weird behavior: some of the weapons works fine all the time, but some others will sometimes return an error message when trying to add them to my inventory.
During my tests, it only happened with "farrp_dagger*" weapons.

I tried:
player->additem "farrp_dagger1" 1

and got the error message telling my the item doesn't exist.
Then I successfully added other weapon types (shortblades, longblades, axes, blunt...), then tried again with daggers and it worked! ??
I'm sure I spelled them correctly all the time.
It only happens with daggers, and it is unpredictable.
Looks like a Morrowind bug.

Have you heard of such a malfunctioning before?

Did you try to contact the author?

I didn't. But now I'm not sure it is related the mod anymore.
User avatar
Ebony Lawson
 
Posts: 3504
Joined: Fri Feb 16, 2007 11:00 am

Post » Sat May 28, 2011 2:38 am

Have you heard of such a malfunctioning before?

No.
The game engine is in this case quite forward. It checks the "database" for a specific item, if it exists it adds it to your inventory if it does not it spits out an error message.
The MW item "database" isn't very large, so I can't think of any reasons why the game engine should have any problems finding the item sometimes and not finding it another time.

If you are eager to locate this bug you might want to:
Install MW again, install only this mod and make the tests again. If it persists contact the author.
User avatar
koumba
 
Posts: 3394
Joined: Thu Mar 22, 2007 8:39 pm

Post » Sat May 28, 2011 12:47 am

As this bug doesn't appear often, I'm not sure I'm willing to re-install MW right now, but it seems to be the proper way to deal with this bug.

Anyway, thx Mantriel for your help :)
User avatar
Nikki Morse
 
Posts: 3494
Joined: Fri Aug 25, 2006 12:08 pm


Return to III - Morrowind