SetSkinString wiped on module reload [Solved]
Caomh
Member Posts: 40
I noticed an issue with using SetSkinString. The command works and reads when in game, but upon logging out everything is now wiped. Is there any ETA or plans on restoring that functionality for saving variables to the creature skin?
tl;dr
Using SetSkinString on the PC works while in game, but will delete when logging out. Looking for a quick and easy fix.
tl;dr
Using SetSkinString on the PC works while in game, but will delete when logging out. Looking for a quick and easy fix.
Post edited by Caomh on
0
Comments
You can do a 'Find in Files' search and check the 'Find in all Files in Module' option. Search for: #include "x3_inc_skin"
or
GetItemInSlot(INVENTORY_SLOT_CARMOUR,
Try to find if there is something that's deleting the skin or replacing it with a new one.
I don't remember if the OnClientEnter script does anything with the skin by default. I have mine set to add all the player tools if they don't already.
Thank you for the response. That did help me narrow down the problem.
Reload When Empty, and reloading.
The variables exist until the module is reloaded. When I unchecked that box the character logging off and back on kept all the variables on the skin object. Reloading did the same. I may have to go the old fashioned route and toss an object that cannot be dropped in the bag and save everything there.
Per the above I am wondering if I just put it on another slot that is not the skin.
I have Enforce Legal Characters enabled and it does not remove the PC Properties skin.
Here's the function in its default form:
My suggestion: Don't use it.
This is how I do it:
Here's a little script that I put in a conversation:
Of course the number doesn't increase when I run Test Module from within the toolset. That's because the character file used is not saved. It works in normal use though.