First steps in modding: Help with overriding stuff

Talk nerdy to us here.
Post Reply
User avatar
AgnesProudbottom
Reactions:
Posts: 7
Joined: January 24th, 2016, 6:00 pm

First steps in modding: Help with overriding stuff

Post by AgnesProudbottom » March 21st, 2016, 2:13 pm

Hi, I first posted <a href="http://nraas.wikispaces.com/share/view/77029819</a>">a few months ago, inquiring about the basics of how the NRaas mods override stuff in the game without being core mods. Chain_Reaction graciously replied. I got busy with school after that and haven't had a lot of time to work on since, but there are a few mods I've been thinking I'd like to try -- only I don't see a clear way to do them.

One thing I wanted to try was to override IsSufficientlyRelatedToRuleOutRomance in Sims3.Gameplay.Socializing.Genealogy. NRaas's Woohooher enables romantic *interactions* between closely related Sims, but IsSufficientlyRelatedToRuleOutRomance seems to prevent them from *wanting* each other. The game checks this function when coming with wants and dreams, and kills such desires for related Sims before they occur.

This ought to be a simple enough core mod, I thought, just changing a couple of bits in the return values. I followed the procedure I've read for writing core mods, edited the IL, recompiled, repackaged and all -- but my game crashed and burned. Wouldn't even load. That's one problem. I may talk to the people at MTS3 about that.

My question for y'all is, could there be a way of getting at that without modding the core? The other NRaas mods implement creative ways of inserting its own objects and functions in place of the core's -- could I do anything like that here? How, in general, should I go about looking for places to stick things? Can you offer me any rules of thumb about what in the core can be turned off, what objects can be replaced, things like that?

One thing I note is that Sims3.Gameplay.Objects.DreamsAndPromises.DreamsAndPromisesDelegateFunctions has a function IsSufficientlyRelatedToRuleOutRomanceWithSubject that calls the one in genealogy. I wonder if this DreamsAndPromises object would be easier to mess with than the core Genealogy functionality?

Thanks for any advice.

User avatar
AgnesProudbottom
Reactions:
Posts: 7
Joined: January 24th, 2016, 6:00 pm

Post by AgnesProudbottom » March 22nd, 2016, 2:24 pm

Or, as I think about it more: How would I go about inserting new Dreams and Promises? The Dreams and Promises themselves seem to be defined by XML; is it possible to define new ones?

Post Reply