TaroStrike Posted June 25, 2023 Posted June 25, 2023 Hey all! I was trying to make a new custom tongue model with a piercing and got to the stage where I was using S4S to create a new package file. I've restarted everything a bunch and even tried running S4S as an administrator and every time I pick the standard tongue object to edit I get this error: Quote The Sims 4 Studio - Version 3.1.6.3 System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object. at S4Studio.Core.CloneEngine.CloneModel(CloneObjectOptions opts, IResourceProvider game, Boolean& swatchable, Model model, IDBPFPackage result, String hash_salt, String original_variant, ObjectDefinitionResource master_objd, List`1 variants) at S4Studio.Core.CloneEngine.CloneObj(IDBPFPackage result, String hash_salt, CloneObjectOptions opts, IStringTableCache global_stbl, IResourceProvider game, Sims4FileTable game_filetable, UInt64 instance, String creator, Boolean& swatchable) at S4Studio.Shared.ObjectFeatureViewModel.Clone(IDBPFPackage package, String hash, IEnumerable`1 selected_prototypes) at S4Studio.Shared.FeatureViewModel.<>c__DisplayClass28_0.<CreateItem>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object. at S4Studio.Core.CloneEngine.CloneModel(CloneObjectOptions opts, IResourceProvider game, Boolean& swatchable, Model model, IDBPFPackage result, String hash_salt, String original_variant, ObjectDefinitionResource master_objd, List`1 variants) at S4Studio.Core.CloneEngine.CloneObj(IDBPFPackage result, String hash_salt, CloneObjectOptions opts, IStringTableCache global_stbl, IResourceProvider game, Sims4FileTable game_filetable, UInt64 instance, String creator, Boolean& swatchable) at S4Studio.Shared.ObjectFeatureViewModel.Clone(IDBPFPackage package, String hash, IEnumerable`1 selected_prototypes) at S4Studio.Shared.FeatureViewModel.<>c__DisplayClass28_0.<CreateItem>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute()<--- I haven't had this issue when editing any other objects so far from the TURBODRIVER tuning package. The stage where this is causing an issue is inside of Sims 4 Studio I select "Object", and it happens no matter which sub option is selected. I do a search for "tongue" with "Show Debug Items" checked I select the TURBODRIVER_WickedWhims_Tuning tongue, and click next And then I get that error and can't actually create a new package based off that tongue. I'm using S4S version 3.1.6.3 and Wicked Whims v176d Any help in figuring out how to make a new tongue package would be greatly appreciated. Thanks!
TaroStrike Posted June 26, 2023 Author Posted June 26, 2023 So a small update. After doing some troubleshooting, it turns out the tongue I was trying to edit was a reference to the tongue in the tuning mod from one of my animation packages, but that there is no longer a tongue there which explains the .nullReferenceException error. I took out that animation package, and now there is no tongue object to edit. So now I'm still a bit confused because I was following the tutorial here and I'm stuck on Step 3 where I'm trying to get the CAS Part ID from the existing model. Section 8 where it talks about the tongue mentions that the tongue is an object and not a CAS part which is why I'm trying to use S4S to create a new object rather than a CAS part, but I've checked and the tongue doesn't appear under either Objects or CAS. So is there a place I'm missing where I can pull out the mesh of the existing tongue to edit like other objects, or is there a way to bypass this step of the tutorial and still make a functioning tongue? Any help would be amazing, thanks!
TaroStrike Posted June 27, 2023 Author Posted June 27, 2023 Day 3 and I still haven't been able to find the original tongue file. New things I've tried... I removed every mod and animation package from the S4S folder except for wicked whims to make sure no other mod was interfering with finding the file. I tried using the Legacy (32-bit) version of the wicked whims mod, but there was no tongue to extract in that either. The only objects I've been able to find using the "tongue" search are tongue suppressors under debug. I really want to make a new tongue for the body selector and I'm not giving up yet!
SAFMeiko Posted June 29, 2023 Posted June 29, 2023 (edited) I too am facing this problem. I have been waiting for a year now. The original tongue object is this. Edited June 29, 2023 by Super anal fucker meiko
TaroStrike Posted June 30, 2023 Author Posted June 30, 2023 Yeah, I definitely had something similar, where the tongue my S4S was a reference to the tuning mod, but it doesn't actually exist in the tuning mod anymore in that same fashion. In fact I think mine was also a WIP animation package by Khlas that referenced the tongue just like yours is. So that's why it's there, it just doesn't help us make a new tongue. I don't know if this is totally true, but I think what might have happened is an update to the base game created a new default tongue that the WW mod incorporated the use of rather than using a custom tongue within the mod itself. and doing that of course broke a bunch of old animation mods that reference it. And that's not a big deal to me, it wasn't really causing an issue, and ripping out the outdated mods did fix the bad reference in the modding programs. What is aggravating is trying to figure out how to create a custom part that is compatible with the body selector of the WW mod when the resources and tutorials that describe how to do this are no longer valid. I'm sure veteran mod makers out there can look at some code, figure it out, make some adjustments, and go on just fine, but it's very confusing and frustrating for mod makers who do not have that level of experience or coding knowledge. If I can figure it out I promise I'll share what I find with everyone else having tongue issues. But so far I feel like all I'm doing is banging my head on the wall in frustration after combing through xml files and finding nothing, nothing, and more nothing.
Khlas Posted July 2, 2023 Posted July 2, 2023 (edited) On 6/30/2023 at 6:05 PM, TaroStrike said: Yeah, I definitely had something similar, where the tongue my S4S was a reference to the tuning mod, but it doesn't actually exist in the tuning mod anymore in that same fashion. In fact I think mine was also a WIP animation package by Khlas that referenced the tongue just like yours is. So that's why it's there, it just doesn't help us make a new tongue. it never referenced it since I created it, for both my mod and wickedwhims. I removed it from my mod because of an LE I had with it, and just forget to put it back. On 6/30/2023 at 6:05 PM, TaroStrike said: I don't know if this is totally true, but I think what might have happened is an update to the base game created a new default tongue that the WW mod incorporated the use of rather than using a custom tongue within the mod itself. and doing that of course broke a bunch of old animation mods that reference it. maxis never added functional tongues in sims 4. It originally was part of the sim body made by autobanned. it caused numerous issues because the model was using weights from the sim's face or bones as parent that deformed the bone. A model made by noir fixed that. I then created an entire new tongue as a prop to be able to unlock animated butt, vagina and anus for wickedwhims using this model. On 6/30/2023 at 6:05 PM, TaroStrike said: What is aggravating is trying to figure out how to create a custom part that is compatible with the body selector of the WW mod the tutorial isn't outdated, it's just that the tongue is made in a way s4studio can't handle because it doesn't recognize all its data correctly. The answer to this problem been already answered in the thread someone else shared above. The fact that s4s couldn't clone easily the model wasn't expected and it was noticed once it was already released. there is no way to make s4s recognize all the tongue data other than asking S4studio author to fix their tool, which they will never do because they aren't interested in doing so There is a way to clone it by using others tools, but it's tedious. you will have to wait for another tool being worked on to be able to do it more easily. I can recreate it now tho but I'm working on others things and custom tongues are too niche for me to put all my energy on it tbh Edited July 2, 2023 by Khlas
TaroStrike Posted July 7, 2023 Author Posted July 7, 2023 I'm so happy to have input from Khlas! Seriously wow, I love your work! So I've tried using both S4S and S4PE and in following the steps referenced it looks like I'm supposed to extract the tongue data that already exists in the tuning mod and then update it with my new xml and models, but I have not been able to find the tongue data referenced in the tuning mod in either S4S or S4PE. I thought this was because the data didn't exist any more, but if that's not the case maybe I just haven't found it, or like you said, S4S can't see all the data, but then where do I find the data that is referenced in Step 3 of the tutorial to get the CAS Part ID? The information just feels a bit vague, like get the part ID, but where is that and how do I get it in order to swap it with new data for a custom part? I'm probably just severely inexperienced in doing this, so any advice on where to find the part ID that is needed to complete this step would be greatly appreciated!
Husk Posted July 7, 2023 Posted July 7, 2023 Best not to replace the Resource.cfg file that's located in your Mods folder when you transfer between two computers. Not that this is a suggestion based on any facts, but I know the Resource file is kinda "delicate" I guess so it's probably best to use the native one to the computer you're playing on.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now