Jump to content

Something is wrong in my mod and the player can't die


Guest

Recommended Posts

Posted

Hello guys, I hope some modder can help me.


 


I am developing a mod for Skyrim, and almost everything works fine.


The mod uses Sexlab and Zaz Animation Framework. Nothing else (there is a soft dependency on SkyUI, but the mod works also without)


 


I am having a problem that was reported by a member testing my mod: when my mod is active the player become invincible (can't die.)


 


I tried to figure out what the problem was but I did not find anything relevant.


I do not do anything special on the player (except adding it to a custom faction, tried to remove it but no success).


 


I checked if I put the player in a quest alias were it was "Essential" or "protected". Nope.


I checked all my code to see if I did something special to the player. Nope.


I checked all the packages (but nothing was here for the player).


I checked the special references used for SkyIU and zbfShell. Nope. (I tried to remove them, of course MCM was not working and I cannot take control of the player with the Zaz functions, but the player was still invincible)


 


I checked on the Actor Player all the items where it is used. I did not find any clue.


 


Can I ask help to you all?


 


Thank you,


CPU


 


For @BruceWayne: is this the correct way to ask and the good sub-forum?


Posted

Ok, found the problem.

 

There was a Reference Alias, generic, that was set to "protected".

In one of the script this alias was filled (for debug reasons) with the player.

 

This made impossible to kill the player.

 

 

Do it yourself. it is always the best.

CPU

Posted

My strategy to find the problem. May be useful to other modders:

 

1) Do a copy of your mod and keep it safe.

2) Run TES5Edit on only your mod

3) Delete one of the quests, save the mod

4) Launch Skyrim and try

5) Solved? No go to 2 and delete the next item

6) yes. Congrats: you have a good clue for the problem, restore the original backup and go in it with the CK and check ALL the elements of the incriminated item one by one

7) Still not find why?

8) Check where all the items in the quest are used, and check any single script that is using them (use Notepad++ search in files feaure)

 

This should reduce the search scope a lot and quickly, until you will find the problem.

 

Bests to all,

CPU

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...