containers using levelled lists

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
Post Reply
User avatar
asmo
Posts: 229
Joined: 18 Sep 2014, 21:20

containers using levelled lists

Post by asmo »

Hello,

I'd like to know which containers/… use which levelled list. A request could be:
show all containers that "use" list_items_01
OR
anything that uses list_weapons_b

I need to check if I adding something to (list_item_02.)list_amulets_01 would affect list_items_99 and list_amulets_b as well. That might not be desirable.

So far the objects table does not contain such information. You have to open objects that you think they could be affected.
Is it possible to find out using the editor or another OpenMW tool?

thanks in advance
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: containers using levelled lists

Post by scrawl »

./esmtool dump <ESM file> -t CONT | grep -C 20 -i levelled_item_id

I guess a "find references to object" tool would be handy for OpenCS. Or make the global search function search through item lists as well.
User avatar
asmo
Posts: 229
Joined: 18 Sep 2014, 21:20

Re: containers using levelled lists

Post by asmo »

scrawl wrote:./esmtool dump <ESM file> -t CONT | grep -C 20 -i levelled_item_id

I guess a "find references to object" tool would be handy for OpenCS. Or make the global search function search through item lists as well.
I probably did something wrong. Because there are only two occurances.
I still don't know where the levelled list "l_n_amulet" is used.

Code: Select all

$> ./esmtool dump /home/share/gaming/openmw_2015-03-22/Morrowind.esm -t CONT | grep -C 20 -i l_n_amulet | wc -l
83
Spoiler: Show
Thing is, I made an item. I want to add it to a levelled list. But I don't want a "burning amulet" to be found in a chest in the ocean when I put it into the levelled list l_amulets. So I'd like to know if I can use l_n_amulet or … no idea which. A separate list?!

I might have to add it to the containers manually. Is it (planned to be) possible to set conditions for containers contents like for TopicInfo?

EDIT:
I see, you mean item. That's the way trial and error: I put my item into list x, then ask/show where it can appear.
Is there a way to find out what list is applied to which container?
qqqbbb
Posts: 19
Joined: 29 Aug 2012, 14:18

Re: containers using levelled lists

Post by qqqbbb »

You can do it with tes3cmd

Code: Select all

tes3cmd dump  --type cont --match  "l_n_amulet" "morrowind.esm" > tes3cmddump.txt
User avatar
asmo
Posts: 229
Joined: 18 Sep 2014, 21:20

Re: containers using levelled lists

Post by asmo »

qqqbbb wrote:You can do it with tes3cmd

Code: Select all

tes3cmd dump  --type cont --match  "l_n_amulet" "morrowind.esm" > tes3cmddump.txt
How do I get that program, does it run on Linux?

Code: Select all

$> locate tes3cmd
$>
What I found was tes3cmd.exe as part of MGSO, clearly not Linux. :?
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: containers using levelled lists

Post by scrawl »

tes3cmd appears to be a perl script. You can get it here: https://mlox.googlecode.com/svn/trunk/util/tes3cmd
Post Reply