Console command for restoring objects?

Post » Sat Mar 05, 2011 12:53 am

I'm getting an "unable to find tl_mineguard1 in script TL_CalderaUprising" error (in the warnings file) which has nothing to do with anything I've done in game .... I've checked this, and the error appeared as a result of introducing 3 or 4 new mods and a new mashed list (though none of the mods reference this object/ NPC, which I know is from Twin Lamps, in any way at all - I checked this carefully.)

Anyway, since I've no idea what caused this, is there any way to restore an object/ NPC using the console? That is, restore them back to wherever they were supposed to be in the game, as opposed to simply "placing" them wherever the player happens to be, or anything like that?

Thanks for any help................. ^_^
User avatar
(G-yen)
 
Posts: 3385
Joined: Thu Oct 11, 2007 11:10 pm

Post » Fri Mar 04, 2011 5:40 pm

I've seen that with Puma Man's Advanced Guards mod. Basically that removes vanilla guards from the game world and replaces them with ones from the mod (that're levelled based on the PC's level).

Fix for it is to load Brother Juniper's mod after Guard-Remover.esp

That particular load order tweak is in http://code.google.com/p/mlox/wiki/Mlox, if you're using Advanced Guards. If it isn't Pumaman's mod I'd be interested in finding out whichever mod it is..
User avatar
Helen Quill
 
Posts: 3334
Joined: Fri Oct 13, 2006 1:12 pm

Post » Fri Mar 04, 2011 6:43 pm

if calling
NPCid->GetHealth
returns something >= 0,
you can try
NPCid->setatstart
if you are very lucky it may work

if
NPCid->GetHealth
returns nothing, chances are that your NPC is gone from the save,
so you could try placing one anew
placeitem NPCid x y z 0
where x y z are spatial coordinates
User avatar
StunnaLiike FiiFii
 
Posts: 3373
Joined: Tue Oct 31, 2006 2:30 am

Post » Fri Mar 04, 2011 7:13 pm

I've seen that with Puma Man's Advanced Guards mod. Basically that removes vanilla guards from the game world and replaces them with ones from the mod (that're levelled based on the PC's level).

Fix for it is to load Brother Juniper's mod after Guard-Remover.esp

That particular load order tweak is in http://code.google.com/p/mlox/wiki/Mlox, if you're using Advanced Guards. If it isn't Pumaman's mod I'd be interested in finding out whichever mod it is..

Ahah, one of the new mods I've added is NazoX9's Guard mod, and the vanishing NPC is a Hlaalu guard which Twin Lamps places in the Caldera mine, so that would make perfect sense. NazoX9's mod is currently loading after Twin Lamps so I'll move it to load before and let you know if it makes any difference.... ^_^

Edit>> It worked! I moved NazoX9's mod to load before Twin Lamps and the error vanished, so it would appear there's a slight compatibility issue, or at least a load order one, between those two mods. Anyway thanks for that D32.... :foodndrink:
User avatar
A Boy called Marilyn
 
Posts: 3391
Joined: Sat May 26, 2007 7:17 am

Post » Fri Mar 04, 2011 6:41 pm

if calling
NPCid->GetHealth
returns something >= 0,
you can try
NPCid->setatstart
if you are very lucky it may work

if
NPCid->GetHealth
returns nothing, chances are that your NPC is gone from the save,
so you could try placing one anew
placeitem NPCid x y z 0
where x y z are spatial coordinates

Thanks, I also found a http://www.uesp.net/wiki/Tes3Mod:PlaceItem console command, but apparently it's bugged so I wouldn't have much faith in trying it anyway....

Anyway if changing the load order fails I'll try consoling either or both of the above too.... thanks for that! B)
User avatar
Andrea P
 
Posts: 3400
Joined: Mon Feb 12, 2007 7:45 am


Return to III - Morrowind