Home Artists Posts Import Register

Content

If you're following my tutorials lately, you may have noticed that in my last one I started throwing out names, like TunableVariant or Tunable.... and if you tried to look at the TDESC while following them, you may have read those names in there too...

You maybe figured this out, or maybe not... and if not, you may not believe it, but the TDESC and the XMLs we work on are basically the same thing.

So... what are we looking at?

A loot action:

I closed everything inside the <I> ... </I>

Now the very first part, is just a standard xml header. Let's now look at the TDESC:

I closed everything in her too... and it tells us that an action is an INSTANCE

And if we open the description, it also tells us that is an Instance with:

Instance type - action

i="action"

module - interactions.utils.loot

m="interactions.utils.loot"

class - LootActions

c="LootActions"

Inside this INSTANCE <I> ... </I> is contained a <L>

It's the same in the TDESC:

This <L> is a TunableList with:

name - loot actions

<L n="loot_actions">

Inside this TunableList is contained a:

None - TunableVariant

<V t="???"

why is it none?! Because if we expand it in the TDESC we find the list of all the possible tunable ( t="????") we can use in this TunableVariant

t="???" is nothing else than the one we choose, in our xml the relationship_bits_loot

and scrolling down in the TDESC we can find it:

And see that it's a TunableTuple <U>

With name relationship_bits_loot

<U n="relationship_bits_loot">

At this point you see that they're exactly the same...

This is that the <U> without a name following it

<T n="bit">.....</T>



Comments

BlackPiano

With this University mod will it be possible to create new universities or can there be a mod to rename the existing universities? Can the university lot be rebuilt? I’d like to make a Hogwarts w/ Quidditch Pitch university?

zer0_Mods_

Creating new universities... I don't know, maybe, but probably would require more than tuning. As would be creating custom degrees (to inject them into the existing system) as for renaming you only really need to edit the string tables

Marco Cantillo

Hi! I know that maybe you're not in the mood of answering question from this tutorial because of the mods apocalypse we are going throught right now haha, but could please check on this post I made on The Sims 4 Forums? https://forums.thesims.com/en_US/discussion/976659/where-are-the-green-threshold-and-industrial-threshold-tunables#latest I'm friends with someone who has early access and I've seen that the "Eco-footprint metter" acts really weird. He actually asked me to check a little bit on code to see If I found an error.

Anonymous

This is incredibly useful to a newbie trying to wrap his mind around when to use L U etc. It didn't explain all of them but I think with these associations I might finally start to get it down. Thanks, Zero.

Plumsie

Hi! I was wondering if there's any particular order to read the tutorials? I'm having a hard time navigating it all as a complete beginner. Thanks.

zer0_Mods_

You might want to start with the Mod constructor or the start to finish tutorial