Search: Posts Made By: KittyTheSnowcat
Page 1 of 9
Forum: Modding Discussion 22nd Mar 2023, 6:57 PM
Replies: 7
Views: 430
Posted By KittyTheSnowcat
Everytime you save to that dictionary you make a...

Everytime you save to that dictionary you make a new SavedData with a new dictionary. And then when you want to read it, you make a new SavedData with a new empty dictionary and read from that.
Make...
Forum: Modding Discussion 21st Mar 2023, 6:30 PM
Replies: 7
Views: 430
Posted By KittyTheSnowcat
You are saving the dictionary in a SavedData, but...

You are saving the dictionary in a SavedData, but you did not add your definition of that. Also you make a new one everytime you want to add it. Does it contain a static dictionary? Could you share...
Forum: Modding Discussion 19th Mar 2023, 11:30 AM
Replies: 7
Views: 430
Posted By KittyTheSnowcat
I am going to link you the dictionary description...

I am going to link you the dictionary description I sent you on Discord again. Read it!
Then you will se that you are not using the code to add a new pair to the dictionary but the code to use if you...
Forum: Modding Discussion 8th Feb 2023, 9:26 AM
Replies: 2
Views: 455
Posted By KittyTheSnowcat
If s3pe is not opening you are probably missing a...

If s3pe is not opening you are probably missing a libary it depends on. It should say in its instructions what you need for it to work.
Forum: Modding Discussion 6th Feb 2023, 11:46 AM
Replies: 0
Views: 325
Posted By KittyTheSnowcat
How do I extend a horse Slider?

Hello everybody,
I am trying to extend the Horse Neck Length Slider in both directions, as in I need shorter necks and longer necks, but I cannot figure out how to do it.
I tried finding a Slider...
Forum: Script & Core Mods 14th Jan 2023, 7:51 PM
Replies: 17
Views: 16,172
Posted By KittyTheSnowcat
I already fixed it though. Did you download the...

I already fixed it though. Did you download the new file?
Forum: Modding Discussion 9th Jul 2022, 6:03 PM
Replies: 18
Views: 467
Posted By KittyTheSnowcat
The return false is inside your first if you need...

The return false is inside your first if you need to move it one bracket down to always give back a value.

Edit: And what Battery said :) I tried to click helpful on this, but that feature does not...
Forum: Modding Discussion 9th Jul 2022, 5:37 PM
Replies: 18
Views: 467
Posted By KittyTheSnowcat
You need to return a bool no matter what happens....

You need to return a bool no matter what happens. So for every if in your code every path it can take it needs to either have a :
return false; //that means the interaction should not show up, for...
Forum: Site Questions and Issues 9th Jul 2022, 5:06 PM
Replies: 9
Views: 744
Posted By KittyTheSnowcat
You showed me that code in the chat. I checks if...

You showed me that code in the chat. I checks if the key already exists and if not it adds it. You can just tell it if it already exists replace it. its dictionary[key]= new data


So I would go with...
Forum: Modding Discussion 9th Jul 2022, 4:45 PM
Replies: 18
Views: 467
Posted By KittyTheSnowcat
Errors are your friends, they tell you what you...

Errors are your friends, they tell you what you did wrong so you don't have to figure it out yourself.
Forum: Modding Discussion 9th Jul 2022, 3:42 PM
Replies: 18
Views: 467
Posted By KittyTheSnowcat
You are right, sorry I did not look closely...

You are right, sorry I did not look closely enough.
Forum: Modding Discussion 9th Jul 2022, 3:40 PM
Replies: 18
Views: 467
Posted By KittyTheSnowcat
I meant if you cannot write up an if statement...

I meant if you cannot write up an if statement from the info provided, not that you necessarily should now every method ingame. It might have been unclear about this^^ So if you can take the info...
Forum: Modding Discussion 9th Jul 2022, 12:44 PM
Replies: 18
Views: 467
Posted By KittyTheSnowcat
Codecademy is an interactive course so that is a...

Codecademy is an interactive course so that is a bit different^^ In my opinion it is worth the Account since it is not passive absorption of info (which is not very effective).
Forum: Modding Discussion 9th Jul 2022, 7:26 AM
Replies: 18
Views: 467
Posted By KittyTheSnowcat
You can check for the Sims age by using...

You can check for the Sims age by using Actor.SimDescription and Target.SimDescription. There are different Methods there for all ages like sim.SimDescription.Adult and also things like TeenAndUp.
If...
Forum: Site Questions and Issues 7th Jul 2022, 7:36 PM
Replies: 9
Views: 744
Posted By KittyTheSnowcat
Why do you want to remove them? Why not override...

Why do you want to remove them? Why not override them?
Forum: Modding Discussion 2nd Jul 2022, 10:05 AM
Replies: 2
Views: 244
Posted By KittyTheSnowcat
Here is how I checked hte relationship value in...

Here is how I checked hte relationship value in my interaction.
It gives back the bar you see in the UI

float relationship = (float)Target.GetRelationship(Actor, false).CurrentLTRLiking;
Forum: Modding Discussion 30th Jun 2022, 6:02 PM
Replies: 33
Views: 15,552
Posted By KittyTheSnowcat
Setting a gameObject to a Preset by Code: You...

Setting a gameObject to a Preset by Code:

You can just copy and paste this

public void SetPreset(uint presetIndex)
{
uint index;
index = (presetIndex > (this.mProduct.NumPresets -1)) ? 0 :...
Forum: Modding Discussion 30th Jun 2022, 6:01 PM
Replies: 5
Views: 237
Posted By KittyTheSnowcat
So I figured out the not hacky method and it is...

So I figured out the not hacky method and it is pretty simple:


You can just copy and paste this

public void SetPreset(uint presetIndex)
{
uint index;
index = (presetIndex >...
Forum: Modding Discussion 30th Jun 2022, 3:24 PM
Replies: 5
Views: 237
Posted By KittyTheSnowcat
i have figured out everything except how to get a...

i have figured out everything except how to get a list of all presets ingame. So here is my a bit hacky method:


WriteToXMLFile("Preset", ObjectDesigner.GetObjectDesignPreset(Target.ObjectId));

Add...
Forum: Modding Discussion 30th Jun 2022, 1:36 PM
Replies: 5
Views: 237
Posted By KittyTheSnowcat
One more question: how do i select which preset?

One more question: how do i select which preset?
Forum: Modding Discussion 30th Jun 2022, 1:22 PM
Replies: 5
Views: 237
Posted By KittyTheSnowcat
Ah so I was at the right class this morning when...

Ah so I was at the right class this morning when I was looking through designModeSwap. But I dismissed it for some reason. THANK YOU!!!!
Forum: Modding Discussion 30th Jun 2022, 8:03 AM
Replies: 5
Views: 237
Posted By KittyTheSnowcat
Setting an object to a preset by code

Hi everyone,
I am trying to set a gameobject to a BuildBuy preset, but I can't figure out how it is done.
I can't really imagine there is no way, somehow the game loads the presets when in build buy...
Forum: Modding Discussion 29th Jun 2022, 7:43 AM
Replies: 2
Views: 253
Posted By KittyTheSnowcat
There are different ways to do this. You can...

There are different ways to do this. You can replace the interaction. There should be a tutorial on how to do it. I think it was on simlogical so you might need to use the way back machine to find...
Forum: Modding Discussion 28th Jun 2022, 3:01 PM
Replies: 8
Views: 440
Posted By KittyTheSnowcat
You interpretation of LHS and RHS is interesting....

You interpretation of LHS and RHS is interesting. I only struggled with Social Data for a bit, before deciding to go another Route, but I thought it was about the acting Sim and the receiving Sim.
Forum: Modding Discussion 26th Jun 2022, 12:57 PM
Replies: 33
Views: 15,552
Posted By KittyTheSnowcat
Setting the quality of ingredients: ...

Setting the quality of ingredients:


Ingredients can either have a Plantable component or not.
If they don't then you set the quality with ingredient.SetQuality(qualityEnum)
qualityEnum in this...
Showing results 1 to 25 of 221 Search took 0.10 seconds.
Page 1 of 9

  Section jump