More Awesome Than You!

Ye Olde Simmes 2 Archives: Dead Creators => Ye Olde Crammyboye Archives => Topic started by: crammyboy on 2008 March 07, 19:36:10



Title: Platinum Aspiration Bypass (FreeTime)
Post by: crammyboy on 2008 March 07, 19:36:10
We are proud to present, the most wonderfull, fully tested, completely bug free.....

...complete pile of crap that is the sims 2.

Sims should now have aspiration decay normally and be able to use aspirational objects correctly.

This doesn't actually fix anything, so there may be other problems with aspirations due to the fact that the secondary aspiration is not set correctly in the token.

*** Withdrawn***


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: witch on 2008 March 07, 20:38:34
Welcome back mate.  8)


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: Zazazu on 2008 March 07, 22:12:30
He lives!


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: Tigerlilley on 2008 March 08, 00:01:03
And bears gifts!


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: Aggie on 2008 March 08, 00:57:45
He returns with the best fix bypass ever! Thank you, Crammyboy!  :-*


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: J. M. Pescado on 2008 March 08, 01:02:14
Weirdness. Why does bypassing the test for bit 4 (unused aspiration) being set somehow fix this? That looked like an entirely legal test to me, unless EAxis reused that bit to indicate something else. Does something actually set that bit? And how does it cause aspirational rewards to apparently fail in silence, as I tried stubbing out all the False returns to the Aspirational Reward Failure test, making it impossible to fail without error-resetting, yet somehow testers reported this continued?


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: Li'l Brudder on 2008 March 08, 01:12:02
Geez, Pescado.  Not even a "Where the hell have you been?"


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: crammyboy on 2008 March 08, 01:57:13
Apparently the bit is set in the token used to indicate which of the bits in the aspiration is the secondary one. Who sets this bit or why is unkown at present, but with the bit being returned as the primary aspiration (clearly untrue) and no other code using it, aspiration actions are all bypassed.


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: Jelenedra on 2008 March 08, 02:24:05
That explains why the one sim I had who didn't fail his aspiration tests was one that didn't have an secondary aspiration assigned.


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: Emma on 2008 March 08, 06:38:27
Yay! Crammyboy is alive! :D


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: syberspunk on 2008 March 09, 03:21:03
Hey Crammyboy, curious, does this do the same thing or conflict with Twojeff's fix (http://box156.bluehost.com/~aestudi1/forums/inteenimater/viewtopic.php?f=32&t=19)?


Ste


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: twojeffs on 2008 March 09, 03:36:09
The problem with the aspiration borkeness is that 0x611 (get secondary asp) returns the VALUE of the flag, not the flag field. EAxis then tries to XOR this value in 0x403, which of course returns absolute crap because what was returned was not a flag field. My fix corrects this.


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: Aggie on 2008 March 09, 04:22:42
TwoJeffs, since you're here, does your fix correct the aspirations getting stuck in perma plat when they shouldn't be?


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: twojeffs on 2008 March 09, 04:40:57
I think that's unrelated (although I haven't played enough to know for sure). Permaplat is indicated in a completely different sim flag field from the aspiration, unless EAxis moved it in FT.

It is entirely possible though that the game returning completely bogus aspriation info was blowing up some other code and my fix will correct all kinds of problems. It will fix bogus red marriage memories for non-romance sims among other things for sure.

ETA: On further review, I do think my fix will correct that (and the asp reward problems) too. The Aspiration - Get Level calls the 'Get aspiration' code that I fixed, so the bogus aspiration info was causing a bogus aspiration level to be returned.


Title: Re: Platinum Aspiration Bypass (FreeTime)
Post by: crammyboy on 2008 March 09, 12:20:34
Jeffies code does what it says on the tin.

Case closed.