More Awesome Than You!
Welcome, Guest. Please login or register.
2020 October 27, 22:59:44

Login with username, password and session length
Search:     Advanced search
540030 Posts in 18039 Topics by 7929 Members
Latest Member: malex
* Home Help Search Login Register
+  More Awesome Than You!
|-+  The Bowels of Trogdor
| |-+  The Small Intestines of Trogdor
| | |-+  Secondary aspiration
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Secondary aspiration  (Read 12303 times)
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Secondary aspiration
« on: 2008 March 03, 09:57:28 »
THANKS THIS IS GREAT

Has anyone managed to find out how/where a sim's secondary aspiration is stored?  If not, if someone has a sim who has gained one, could they please send me their neighborhood.package file and tell me the name of that Sim (the american name preferably)
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26227



View Profile
Re: Secondary aspiration
« Reply #1 on: 2008 March 03, 11:41:09 »
THANKS THIS IS GREAT

The secondary aspiration is stored in the same place as the primary aspiration, with an aspiration bit, but there's ALSO an inventory token which has an attribute that is then XOR'ed with the aspiration bitfield to isolate the primary one. You can see this mess at work in 0x403.

My advice is just to not touch it. Changing the aspiration is far more easily performed in-game than by any cheat or SimPEing, as attempting to fiddle with the attributes directly, even in-game, can mangle the sim and leave it with NO displayed aspiration. Plus, changing the primary or secondary aspiration invalidates selected LTA perks, and if you have any of those selected when you change the aspiration surreptitiously like so, the sim blows up. Thus, you have to deallocate the sim's LTA perks as well, and if you don't want to do it lossily, causing loss of earned points, you have to calculate how many of those need to be reused, etc. Huge mess. Much easier to tackle in BHAV than it is to edit externally.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Secondary aspiration
« Reply #2 on: 2008 March 03, 12:02:49 »
THANKS THIS IS GREAT

Where is the primary aspiration?  I can't seem to spot it in Persondata  Huh
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26227



View Profile
Re: Secondary aspiration
« Reply #3 on: 2008 March 03, 16:45:07 »
THANKS THIS IS GREAT

Persondata 0x2E, same place as always. Only now there are two bits instead of 1.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Secondary aspiration
« Reply #4 on: 2008 March 03, 16:51:43 »
THANKS THIS IS GREAT

Lol I've been over and over persondata and couldn't see it!  I have been drinking mint tea all day, and now I think I need a coffee!!
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
jase
Dimwitted Dunce
*
Posts: 174



View Profile
Re: Secondary aspiration
« Reply #5 on: 2008 March 04, 06:05:51 »
THANKS THIS IS GREAT

From the looks of things, Maxis has culled all bit tests against 0x2E and replaced them with calls to 0x403 and/or 0x611 and performing the flag tests against Temp 0.  Querying 0x2E directly is somewhat non-sensical.  This is going to break a lot of shit silently yet violently.
Logged

Isn't it about time you did your part in God's plan?  Go on, install InTeen today.  What would Jesus do?
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Secondary aspiration
« Reply #6 on: 2008 March 04, 07:53:53 »
THANKS THIS IS GREAT

I have this hunch that they do these things to keep the modders interested.  They really do supply something for everyone, right down to the intrigue about whether or not they approve of pay content, to occupy the militant spirits.  They know that not all of us would be interested in just playing a well-designed bug-free PC game Smiley
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26227



View Profile
Re: Secondary aspiration
« Reply #7 on: 2008 March 04, 08:53:18 »
THANKS THIS IS GREAT

From the looks of things, Maxis has culled all bit tests against 0x2E and replaced them with calls to 0x403 and/or 0x611 and performing the flag tests against Temp 0.  Querying 0x2E directly is somewhat non-sensical.  This is going to break a lot of shit silently yet violently.
Bit tests against 0x2E still work...if you want to check if a sim has an aspiration, rather than that a sim *IS* an aspiration. The distinction is somewhat minor, yet important. Formerly, "having" and "being" an aspiration were the same, but now there is a subtle yet important distinction.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Secondary aspiration
« Reply #8 on: 2008 March 04, 09:30:25 »
THANKS THIS IS GREAT

I think the test for whether they have an aspiration as either primary *or* secondary would be perfectly relevent for deciding on things like ACR tendencies.  After all, the user chooses both aspirations for the sim, and presumably would like them to do stuff based on both.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26227



View Profile
Re: Secondary aspiration
« Reply #9 on: 2008 March 05, 01:05:14 »
THANKS THIS IS GREAT

That's why "has" an aspiration and direct tests on the bitfield are still relevant, yes.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
jase
Dimwitted Dunce
*
Posts: 174



View Profile
Re: Secondary aspiration
« Reply #10 on: 2008 March 05, 01:28:52 »
THANKS THIS IS GREAT

After all, the user chooses both aspirations for the sim, and presumably would like them to do stuff based on both.
While I agree with this statement in principle, it does not appear that Maxis has followed suit.  It seems like they've gone out of their way to replace bit-testing against 0x2E with calls to 0x403, which only gets you at the primary aspiration.  Leaves me wondering what purpose the secondary serves except as a pathway to different aspiration rewards.
Logged

Isn't it about time you did your part in God's plan?  Go on, install InTeen today.  What would Jesus do?
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26227



View Profile
Re: Secondary aspiration
« Reply #11 on: 2008 March 05, 01:39:21 »
THANKS THIS IS GREAT

Probably because bit-testing against 0x2E, which is most common in, say, Want Check Trees, would produce ambiguous results for determining whether a sim should want or fear an event. In any case, I haven't actually had to refit my code, because I foresaw that such an implementation could theoretically occur. I mean, what's the point of using a bit-field for a datatype unless you actually intend to make it possible for more than one bit to be set? Thus, I've always used 0x403 for "is" and bit-test for "has". It seems I was right to do this.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: Secondary aspiration
« Reply #12 on: 2008 March 05, 10:55:57 »
THANKS THIS IS GREAT

But Jase, does it matter what Maxis do about working out aspiration priority when it comes to deciding what the ACR does about it?  TJ's users may be perfectly happy for their sims to choose what to do about sex based on either or both their aspirations - which would mean simply testing the flags of that field would do fine.   TJ could go through a little BHAV of his own to decide which aspiration to actually return.  Where only one flag is set, then there is no dispute.  Where two are found, it could return either at random.   In real life, if a person has a conflict of aspiration, sometimes their decisions will appear conflicting too - it would not detract from the realism of the result.

Anyway I see he's sorted it now Smiley
« Last Edit: 2008 March 05, 12:10:24 by Inge » Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.045 seconds with 19 queries.