Creating an NRaas project Have CalculateScore in VisitLot/VisitCommunityLot Definition take castes into account?

Talk nerdy to us here.
Post Reply
icarus_allsorts
Reactions:
Posts: 213
Joined: March 8th, 2012, 6:00 pm

Have CalculateScore in VisitLot/VisitCommunityLot Definition take castes into account?

Post by icarus_allsorts » April 1st, 2016, 9:38 am

I've been thinking of a way to limit how the game pushes sims to lots and to possibly get it to take the caste system or any sort of external system into account for a while now. Poking about, it does seem like tweaking the results that MetaInteractionScoredByVenue's CalculateScore method returns could be the way to go, specifically within VisitLot and VisitCommunityLot 's Definitions.

Do you have any thoughts on how effective this may be Chain (and whoever else reads this)? Also if one were to go about doing so, which would be the better place to implement it be: GoHere where the 2 Definitions are already being overridden but a tap into SP's Caste system would be necessary, or SP where the caste system resides but some care has to be taken to avoid conflict with GoHere (perhaps by simply not outright replacing VisitLot and VisitCommunityLot but just their corresponding entries in each lot's MetaAds list)?

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7596
Joined: December 30th, 2011, 6:00 pm
Answers: 81
Contact:

Post by Chain_Reaction » April 1st, 2016, 5:02 pm

SP + GoHere are already connected and do just this.

icarus_allsorts
Reactions:
Posts: 213
Joined: March 8th, 2012, 6:00 pm

Post by icarus_allsorts » April 2nd, 2016, 10:08 am

Really? I really have to start familiarizing myself with SP then since I totally missed this when I last gave the project a glance through (obviously it was a very quick one). So it should also be possible to encourage a caste to a lot by tweaking the scoring as well then?

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7596
Joined: December 30th, 2011, 6:00 pm
Answers: 81
Contact:

Post by Chain_Reaction » April 2nd, 2016, 2:02 pm

You basically use sp's lot options to allow/disallow caste' s. The visit interaction cancels if they aren't allowed.

icarus_allsorts
Reactions:
Posts: 213
Joined: March 8th, 2012, 6:00 pm

Post by icarus_allsorts » April 2nd, 2016, 10:48 pm

I finally see it now in GoHere! Something similar could be applied to CalculateScore to increase the likelihood of a caste to choose visiting a lot (like children to a playground), but that would require a whole "encouraged castes" setting into SP I suppose?

Also the default CalculateScore method could use fixing since there seems to be a rather sad bungle in MetaAutonomyTuning's GetIntensity method that mixes up the intensity value for downtown and non-downtown worlds. But considering how little noticable effect this seems to have to actual gameplay perhaps it's really not worth the effort at all.

User avatar
Chain_Reaction
Site Admin
Reactions:
Posts: 7596
Joined: December 30th, 2011, 6:00 pm
Answers: 81
Contact:

Post by Chain_Reaction » April 5th, 2016, 11:28 pm

I would just use the existing caste require to increase advertising for Sims matching those castes. Not a bad idea however you'd like to do it but It is cautionable though. CalculateScore runs a lot so I'm not sure what effect it would have on performance to poll SP for caste matches (which calculates if they aren't cached).

icarus_allsorts
Reactions:
Posts: 213
Joined: March 8th, 2012, 6:00 pm

Post by icarus_allsorts » April 5th, 2016, 11:58 pm

That's something i didn't really think about admittedly, in which case it might not be worth the extra strain it could potentially add to things.

Post Reply