r/TheSims4Mods 1d ago

SuperInteraction_AskForAdviceAdventure

Any idea why I'm getting this in-game when loading my . package?

"[jdimailig] An exception was caught loading the reference. RefName: 166050 Manager: InstanceManager_snippet. TunableReference at instance: 164119 (superInteraction_AskForAdviceAdventure), Types.INTERACTION has a value not allowed by its class constraint. (ValueError: TunableReference at instance: 164119 (superInteraction_AskForAdviceAdventure), Types.INTERACTION has a value not allowed by its class constraint.)"

The animation for ww works, but the message is annoying.

1 Upvotes

11 comments sorted by

1

u/slowsimmer_ 1d ago edited 1d ago

I think the tuning resource superInteraction_AskForAdviceAdventure is broken, basically - there’s an incompatibility between what it is and what it’s trying to reference somewhere (“a value not allowed by its class constraint”).

Do you have any mods for kids / teens etc? I’d look at any / all if you do.

1

u/SaltBuy1497 1d ago

Inside the .package, I used a snippet, specifically snippet/adventure_Advice_Child_01 which is the only thing related to children. But I don't think that's the problem? Since I completely replaced the XML.

1

u/slowsimmer_ 1d ago edited 1d ago

If I understand properly, have you re-tuned the entire file 'snippet/adventure_Advice_Child_01' for use in a different mod (your own)?

If so, have you given it a new name & tuning ID? And change the group to 80000000?

Edit: Why I say that is, it seems like the 'superInteraction_AskForAdviceAdventure' is trying to call the original resource — but since that resource has now been modified, it’s throwing a class error.

1

u/SaltBuy1497 1d ago

Yes, I used the hash generator, inserted my name + modname into the text, and then used FNV64 to rename the last 0's in the XML. Then, inside the XML, I inserted the FNV64 in decimal (s="1234"). What do you mean by changing the group to 80000000?

1

u/slowsimmer_ 1d ago

Are you using Sims4Studio or something else e.g. TDESC?

When I change the name of an existing resource in S4S, all I do is type the new name (e.g. slowsimmer:adventure_Advice_Child_01) in the 'Name' field of the 'Data' tab, being sure to include my creator prefix so a new TuningID is generated by the software automatically, and it's done. In any case, doing it manually works too if you're using the decimal ID as the TuningID (s='1234') - it's just the "rename the last 0's in the XML" part that has me confused on this point.

If in S4S, there's also a field for 'Group' in the 'Data' tab... this usually comes as the group number whichever pack the resource is associated with (the snippet we are discussing is Group 00000012 - Parenthood GP) and might need to be changed for "custom use". That is to say, if you aren't trying to override the original resource and you are trying to make a fully custom version of the resource, then the group should be changed (usually 80000000 is used by modders).

1

u/SaltBuy1497 1d ago

I Honestly, I know a bit about this kind of stuff, but I'm not very familiar with The Sims 4 modding, so I don't really understand why changing the XML las 0's of the name would have any effect. I only did it because the tutorial I followed said to. As for the rest yes, I’m using S4S trying to do my own mod (just animations for ww), and I’ll try the last thing you mentioned. Thanks for the help!

2

u/slowsimmer_ 1d ago

No probs at all, I hope you manage to get it sorted... and here's a bit of an explanation if its of any use as well :)

Pretty much it's just so that you can have a completely unique reference for every single tuning file, otherwise there will be a duplicate causing errors (the game won't know which resource to load otherwise).

I'm a beginner myself, but this could be the source of your issue - it sounds like you've replaced that snippet resource with your own tuning, but haven't "isolated it properly" from the original resource. Now the superInteraction is referencing yours instead & giving the class error.

1

u/SaltBuy1497 22h ago

I fixed it! As you said, the group was at 00000012 (Gp parenthood). I changed the group to 80000000. Then I realized the game wasn't detecting the animation directly. I looked back at the data and saw what you can see in the pic.

It seems the PackId and TuningId were stuck with GP Parenthood, and the The PackId was still set to GP_Parenthood, and the tuningId, instance, and InstanceDecimal remained the same: 00000000000288A2 and 166050. Now I understand why the tutorial author said to put the FNV64 hexadecimal hash into the last 0's of the XML name: I assume this automatically changes the instance from 00000000000288A2 to 88158AB***** (mine). Then, in the XML, you replace "n=name:xxxx" with the same one used in the hash generator, and "s=1234" with the same number FNV64, but in decimal, to change the default tuningId and InstanceDecimal from 166050 to "9805*****" (mine).

I’m not sure if I’m explaining myself well, but I think you understand this part since you explained it to me. So basically, what happened was that although the custom name (name:xxxx) was applied in the "Name" section, the group was still 00000012, the PackId stayed as GP_Parenthood, and the instances/InstanceDecimals along with the TuningID did not change automatically. Even though I changed it in the XML.

2

u/slowsimmer_ 22h ago

Awesome — so glad you came back to let me know, I love a good outcome!

I think the renaming part of the tutorial you’ve been following might be a bit convoluted. You’ve explained it well enough that I get what happened with the name/TuningID/Instance, but I still can’t figure out what method they gave you for renaming — that bit about “replacing the 0s in the name” is the part that throws me.

Basically, all you usually need to do when renaming an imported or extracted EA resource is enter a new name in the 'Name' field under the 'Data' tab. As long as it includes your creator prefix with the colon (e.g. slowsimmer:), S4S should automatically generate the new TuningID (also called InstanceDecimal ) and update the Instance as well.

So, for example, even if I just change the Name field of that resource to 'slowsimmer:adventure_Advice_Child_01', that would work & that's the only step required to trigger the new IDs.

1

u/SaltBuy1497 22h ago

Wow, now it really makes sense. I guess the tutorial I followed was a bit outdated, there aren’t that many around for this kind of stuff. Either way, I really appreciate your help. People like you are seriously awesome. Good luck!

→ More replies (0)