script function - reset3dstate - doesn't work in some cases

Post » Fri Apr 08, 2011 6:57 am

Hi,

i've made a Mod called ' Oblivion 4ever ' (i've almost finished v1.9) and the statues of mehrunes dagon within this mod all crumble to the ground after the Daedric High-Priest or Priestess is killed. The problem is that some of the statues inside 2 of the 3 Daedric Realms i' ve duplicated and modified by hand, don't return to their former 3Dstate after the game resets. It worked before in v1.8.1 and that's the reason why I don't understand why it fails now. The other statues all function as they should.

Note: I always copy the original stuff before I use them in my Mod to ensure maximum compatibility with Mods made by other people, and to avoid screw ups of the original game.

Examples:

O4EStatueDagonCrumble

O4EDremoraHighPriestessRealm01Shrine03


I use the following scripts to make the whole thing work:


Mehrunes Dagon Statue:

scn O4EStatueDagonCrumbleSCRIPTshort activatedshort busyfloat timerref mySelfref myParentfloat fTrapDamagefloat fTrapPushBackfloat fTrapMinVelocityshort bTrapContinuousBegin onLoad	set mySelf to getSelf	set myParent to getParentRef	set fTrapDamage to 0	set fTrapPushBack to 500	set fTrapMinVelocity to 20	set bTrapContinuous to 0EndBegin onActivate	if isActionRef player == 0 && isActionRef mySelf == 0 && activated == 0		playgroup unequip 0		myParent.activate mySelf 1		set activated to 1		set timer to 7		set fTrapDamage to 20	endifEndBegin gameMode		if activated == 1 && timer <= 0		set activated to 2		set fTrapDamage to 0	endif	if timer >= 0		set timer to timer - getSecondsPassed	endifEndBegin onReset	reset3DState	set busy to 0End



The High-Priests and Priestesses:


ScriptName O4EHighPriestsScriptBegin onDeathO4EStatueDagonCrumble01REF.playgroup unequip 0O4EStatueDagonCrumble02REF.playgroup unequip 0O4EStatueDagonCrumble03REF.playgroup unequip 0O4EStatueDagonCrumble04REF.playgroup unequip 0O4EStatueDagonCrumble05REF.playgroup unequip 0O4EStatueDagonCrumble06REF.playgroup unequip 0End


I've used a clean saved game to test my Mod...


If anyone can help me.. Thanks!


Dutch666
User avatar
MR.BIGG
 
Posts: 3373
Joined: Sat Sep 08, 2007 7:51 am

Post » Fri Apr 08, 2011 1:11 am

Hi,

i've made a Mod called ' Oblivion 4ever ' (i've almost finished v1.9) and the statues of mehrunes dagon within this mod all crumble to the ground after the Daedric High-Priest or Priestess is killed. The problem is that some of the statues inside 2 of the 3 Daedric Realms i' ve duplicated and modified by hand, don't return to their former 3Dstate after the game resets. It worked before in v1.8.1 and that's the reason why I don't understand why it fails now. The other statues all function as they should.

Spoiler
Note: I always copy the original stuff before I use them in my Mod to ensure maximum compatibility with Mods made by other people, and to avoid screw ups of the original game.

Examples:

O4EStatueDagonCrumble

O4EDremoraHighPriestessRealm01Shrine03


I use the following scripts to make the whole thing work:


Mehrunes Dagon Statue:

scn O4EStatueDagonCrumbleSCRIPTshort activatedshort busyfloat timerref mySelfref myParentfloat fTrapDamagefloat fTrapPushBackfloat fTrapMinVelocityshort bTrapContinuousBegin onLoad	set mySelf to getSelf	set myParent to getParentRef	set fTrapDamage to 0	set fTrapPushBack to 500	set fTrapMinVelocity to 20	set bTrapContinuous to 0EndBegin onActivate	if isActionRef player == 0 && isActionRef mySelf == 0 && activated == 0		playgroup unequip 0		myParent.activate mySelf 1		set activated to 1		set timer to 7		set fTrapDamage to 20	endifEndBegin gameMode		if activated == 1 && timer <= 0		set activated to 2		set fTrapDamage to 0	endif	if timer >= 0		set timer to timer - getSecondsPassed	endifEndBegin onReset	reset3DState	set busy to 0End



The High-Priests and Priestesses:


ScriptName O4EHighPriestsScriptBegin onDeathO4EStatueDagonCrumble01REF.playgroup unequip 0O4EStatueDagonCrumble02REF.playgroup unequip 0O4EStatueDagonCrumble03REF.playgroup unequip 0O4EStatueDagonCrumble04REF.playgroup unequip 0O4EStatueDagonCrumble05REF.playgroup unequip 0O4EStatueDagonCrumble06REF.playgroup unequip 0End


I've used a clean saved game to test my Mod...


If anyone can help me.. Thanks!


Dutch666


Did you edit the statues' 3D-models, or just their stats? Are they correctly referenced and/or parented?
User avatar
Heather Dawson
 
Posts: 3348
Joined: Sun Oct 15, 2006 4:14 pm

Post » Thu Apr 07, 2011 9:20 pm

Did you edit the statues' 3D-models, or just their stats? Are they correctly referenced and/or parented?


I've edited only their stats...

Are they correctly referenced and/or parented?


I think so, all of the statues have their own High-Priests and Priestesses and the script attached to them will activated the statue's script.
User avatar
Jimmie Allen
 
Posts: 3358
Joined: Sun Oct 14, 2007 6:39 am

Post » Fri Apr 08, 2011 1:08 am

I've edited only their stats...



I think so, all of the statues have their own High-Priests and Priestesses and the script attached to them will activated the statue's script.

Hmm... I shall see into the problem, and try if it happens to me. You could also upload your .esp to a file sharing site like Mediafire, and I could directly try to fix it.
User avatar
Karine laverre
 
Posts: 3439
Joined: Tue Mar 20, 2007 7:50 am

Post » Thu Apr 07, 2011 5:18 pm

First I will re-check if everything is properly referenced 'n stuff....


You hear from me agian in about 60 minutes... :)
User avatar
Julie Serebrekoff
 
Posts: 3359
Joined: Sun Dec 24, 2006 4:41 am

Post » Thu Apr 07, 2011 8:15 pm

First I will re-check if everything is properly referenced 'n stuff....


You hear from me agian in about 60 minutes... :)

By the way, have you tried if the non-working statues respond to Reset3DState -command at all?
User avatar
RaeAnne
 
Posts: 3427
Joined: Sat Jun 24, 2006 6:40 pm

Post » Fri Apr 08, 2011 7:23 am

How do I do that?


P.S: The rubble from the statues will be deleted by the game when it resets itself.
User avatar
Yvonne Gruening
 
Posts: 3503
Joined: Mon Apr 23, 2007 7:31 pm

Post » Thu Apr 07, 2011 11:04 pm

Update: I've just discovered that v1.8.1 of Oblivion 4ever has exactly the same problem (darn!)...... If you download the .exe from http://planetelderscrolls.gamespy.com/View.php?view=OblivionMods.Detail&id=6120 you can help me by finding the cause of the problem in this earlier version.

Much thanks in advance,

Dutch666
User avatar
Mylizards Dot com
 
Posts: 3379
Joined: Fri May 04, 2007 1:59 pm

Post » Fri Apr 08, 2011 2:03 am

How do I do that?


P.S: The rubble from the statues will be deleted by the game when it resets itself.

In-game, select the statue you want and write Reset3DState to the console :D And yes, the rubble vanishes, as it isn't really rubble; It's just the statue's animation which makes it look like it's separate objects (which they are, but if the animation was reverted, the pieces would pile up and form a statue again :D)
User avatar
Laura Simmonds
 
Posts: 3435
Joined: Wed Aug 16, 2006 10:27 pm

Post » Fri Apr 08, 2011 5:24 am

Thnx for the explanation, I will try your suggestion ASAP.


p.s:

if you need help finding your way in Oblivion 4ever v1.8.1 just ask.
User avatar
No Name
 
Posts: 3456
Joined: Mon Dec 03, 2007 2:30 am

Post » Fri Apr 08, 2011 6:30 am

The reset3Dstate command worked on both statues!

What does that say to you? :)
User avatar
Dylan Markese
 
Posts: 3513
Joined: Sat Dec 01, 2007 11:58 am

Post » Thu Apr 07, 2011 6:24 pm

The reset3Dstate command worked on both statues!

What does that say to you? :)

It says that it should work withing the script... Could you explain in detail what the problem is with the statues?

The mod looks nice, by the way :D
User avatar
Robert Bindley
 
Posts: 3474
Joined: Fri Aug 03, 2007 5:31 pm

Post » Thu Apr 07, 2011 11:52 pm

It says that it should work withing the script... Could you explain in detail what the problem is with the statues?


Well, there are two buggy statues:

the smaller one near the Quake Ruin in Realm-01 and the large-one in Realm-02.

Both statues crumble to the ground once the High-Priest or Priestess is dead, but when the game resets, their 3Dstate doesn't reset to its default setting.

Test it in-game and you'll see.


The mod looks nice, by the way :D


Thank You! It was a lot of work to make it look that way :goodjob:
User avatar
Da Missz
 
Posts: 3438
Joined: Fri Mar 30, 2007 4:42 pm

Post » Thu Apr 07, 2011 7:16 pm

Well, there are two buggy statues:

the smaller one near the Quake Ruin in Realm-01 and the large-one in Realm-02.

Both statues crumble to the ground once the High-Priest or Priestess is dead, but when the game resets, their 3Dstate doesn't reset to its default setting.

Test it in-game and you'll see.

By "game reset", do you mean when the cell resets? I tested the cell reset anomaly twice; first, by waiting four days (three days = 72 game hours, which is the time in which a cell resets - one extra day to be sure it is reset) in the same cell as the statue at the Quake Ruin. After the four days, the statue was still looking like it was hit the 9/11 plane. On the second attempt, I waited at the Shrine in Tamriel. After four days, I coc'd back to O4EQuakeRuinEntrance, and the statue was reset to it's wholly self :D So, if the "cell reset" is what you mean, I tell you; it works, but you can't be in the same cell (possibly not even near it, or at least as long as it is visible), or it will not be reset.
User avatar
^~LIL B0NE5~^
 
Posts: 3449
Joined: Wed Oct 31, 2007 12:38 pm

Post » Thu Apr 07, 2011 6:40 pm

By "game reset", do you mean when the cell resets?


Yes, all the interior and exterior cells reset when the game resets.


I tested the cell reset anomaly twice; first, by waiting four days (three days = 72 game hours, which is the time in which a cell resets - one extra day to be sure it is reset) in the same cell as the statue at the Quake Ruin. After the four days, the statue was still looking like it was hit the 9/11 plane. On the second attempt, I waited at the Shrine in Tamriel. After four days, I coc'd back to O4EQuakeRuinEntrance, and the statue was reset to it's wholly self :D So, if the "cell reset" is what you mean, I tell you; it works, but you can't be in the same cell (possibly not even near it, or at least as long as it is visible), or it will not be reset.


I always wait in front of the Haunted Farm. Maybey the Oblivion files on my PC are corrupted.

I will do another test.... plz, stand by
User avatar
Vincent Joe
 
Posts: 3370
Joined: Wed Sep 26, 2007 1:13 pm

Post » Fri Apr 08, 2011 3:48 am

I will do another test.... plz, stand by

I will - I am working on my own mod till morning to the late night, so I will be here, that's for sure :D
User avatar
Stace
 
Posts: 3455
Joined: Sun Jun 18, 2006 2:52 pm

Post » Fri Apr 08, 2011 3:24 am

I've completely uninstalled / reinstalled Oblivion and retested Oblivion 4ever, but the statues will not reset to their former state when the game resets itself.

Conclusion: the cause of the problem has nothing to do with a corrupt Oblivion install on my computer.


Well, I've run out of idea's....


Do one final thing for me if you will, give the large Mehrunes Dagon statue inside Realm-02 the full 9/11 treatment, wait at least 4 days in a far away cell and return to see if the statue has been reset.

If that works it means two things:


1. the Mod works as it should work.

2. my PC is cursed.


dutch666
User avatar
Emmie Cate
 
Posts: 3372
Joined: Sun Mar 11, 2007 12:01 am

Post » Thu Apr 07, 2011 11:12 pm

...

Hate to break it to you, but; After four days from "breaking" the statue, I went back to O4EStatueMehrunesDagon01 and - It was standing again, healthy as ever. That darned Dagon, he just can't be killed, can he?
User avatar
Jordan Fletcher
 
Posts: 3355
Joined: Tue Oct 16, 2007 5:27 am

Post » Fri Apr 08, 2011 5:14 am

Thank you for your trouble! Now I can be fairly sure my Mod works just fine!


I'll go to bed now, good night and good luck with finishing your own Mod! :goodjob:


dutch666
User avatar
Beulah Bell
 
Posts: 3372
Joined: Thu Nov 23, 2006 7:08 pm

Post » Thu Apr 07, 2011 5:56 pm

I'll go to bed now, good night and good luck with finishing your own Mod! :goodjob:

Thanks, and good night. I should go to bed some time soon too; it's already half-past midnight :D
User avatar
KU Fint
 
Posts: 3402
Joined: Mon Dec 04, 2006 4:00 pm

Post » Thu Apr 07, 2011 8:00 pm

Before I forget;

you'll be mentioned and thanked in the credits of the README of v1.9 of Oblivion 4ever B)


dutch666
User avatar
Laura Ellaby
 
Posts: 3355
Joined: Sun Jul 02, 2006 9:59 am

Post » Fri Apr 08, 2011 12:31 am

Before I forget;

you'll be mentioned and thanked in the credits of the README of v1.9 of Oblivion 4ever B)


dutch666

Nah, that's nothing, really. I just felt the urge to help a fellow modder, I don't need any credit for it :D
User avatar
Ana
 
Posts: 3445
Joined: Sat Jul 01, 2006 4:29 am

Post » Fri Apr 08, 2011 4:52 am

You get it anyway.. :D
User avatar
Nancy RIP
 
Posts: 3519
Joined: Mon Jan 29, 2007 5:42 am


Return to IV - Oblivion