Replies: 6 (Who?), Viewed: 1730 times.
Test Subject
Original Poster
#1 Old 28th Jan 2010 at 5:42 AM
Need help on mood threshold mod
Hello modthesims community.

I've been working on a little mod which changes the thresholds of the sims mood changes to make it a bit more difficult to get the sims moods up. I've had some success with that part of it.

However, modifying the mood thresholds in the MoodManager xml file (using s3pe), doesn't seem to have affected the way mood has an influence on job performance. In the career panel where it shows the sims mood level as an arrow pointing at one of a series of sad to smiley faces, the arrow seems to point at where it should under the normal mood ranges, rather than the sims actual mood according to the main mood bar when running the mod.

So for example, to get a sim "elated", normally it takes 75 moodlet points. With my mod running, it requires 150 points to get to that mood, and that part works fine, but the career panel still points at the highest mood smiley, even though the sims mood is not that high according to the main mood bar next to the list of moodlets.

I've had a look in the Career and Careers xml files, and I can't seem to find anything that might be what I'm looking for.

If anyone can offer some help about where I might find the relevant variables to tweak, or if you think I might need to do something more involved than xml tuning to achieve the desired result, it would be much appreciated. Thanks for your attention.
Advertisement
Banned
#2 Old 28th Jan 2010 at 5:48 AM
Im just gonna post here to tag this, sorry I can't help. I was looking for a way to make moodlets ultimately less effective a while back.
Top Secret Researcher
#3 Old 28th Jan 2010 at 5:05 PM
Quote:
Originally Posted by TheInquisitor
I've had a look in the Career and Careers xml files, and I can't seem to find anything that might be what I'm looking for.


Example from the <Careers> file: <Political> set

<Metric1>Mood</Metric1>
<Mappings1>-30,0,140</Mappings1>

The "140" defines minimum mood to receive a +3 job performance boost.

Is that what you were looking for?

Cheers.

NRaas Industries: Sims 3 Mods for the Discerning Player, hosted by The Wikispaces.
Pettifogging Legalist!
retired moderator
#4 Old 28th Jan 2010 at 5:43 PM
There is a bit of info on how exactly the metrics for careers work here: http://www.moreawesomethanyou.com/s...ic,17869.0.html

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Top Secret Researcher
#5 Old 28th Jan 2010 at 6:06 PM
Just to make your tutorial a bit more complete, here is the calculation:

Where <MappingsN>mNegMap3,mMap0,mMap3</MappingsN>

Code:
public int CalcMetric(Career career)
{
    career.LastTimeCalculated = SimClock.CurrentTime();

    float num = FindMetricValue(career);
    if (num == mMap0)
    {
        return 0x0;
    }
    if (num < mMap0)
    {
        if (num <= mMapNeg3)
        {
            return -3;
        }
        if (num < ((mMapNeg3 + mMap0) / 2f))
        {
            return -2;
        }
        return -1;
    }
    if (num >= mMap3)
    {
        return 3;
    }
    if (num > ((mMap3 + mMap0) / 2f))
    {
        return 2;
    }
    return 1;
}


(Why this forum feels the need to add so much space in the "CODE" block, I am unclear)

Cheers.

NRaas Industries: Sims 3 Mods for the Discerning Player, hosted by The Wikispaces.
Pettifogging Legalist!
retired moderator
#6 Old 28th Jan 2010 at 6:16 PM
Oh cool, thank you. I'll edit that in =).

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Test Subject
Original Poster
#7 Old 28th Jan 2010 at 6:22 PM
twallan, that's exactly what I was looking for. Thank you so much.

Also thanks to plasticbox for the link.
Back to top