Welcome to
Mod The Sims
Online: 2172
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 8 (Who?), Viewed: 2530 times.
Search this Thread
Old 4th Jan 2012, 02:32 PM New to modding and need a little help #1
Seductivedreamz818
Original Poster

Test Subject

Join Date: Jan 2012
Posts: 10


I just got into modding my game, and am trying to make a teen-adult romance/woohoo mod as none of the ones i have found will work with a core mod I made. Problem is I can not seem to find the parameters I need to edit in order to make this mod happen I would like to do it as an addition to my core mod but I am not quite sure which dll I have to edit and what section of code I am looking for. I do have some programming experience but this is getting frustrating for me. I have spent 2 days analyzing the cl code of sims3gameplaysystems.dll and ui.dll and cant find what I am looking for. So i thought I would post this on here and see if anyone can help me, I know this mod has been done before, and I think I may just be overthinking this or overlooking something.

Thank you for any help you can offer
Seductivedreamz818
Old 4th Jan 2012, 02:37 PM #2
Seductivedreamz818
Original Poster

Test Subject

Join Date: Jan 2012
Posts: 10


if it helps the only thing my core mod does is makes the IsSufficentlyrelatedtoruleoutromance method in the sims3gameplaysystems.dll default to false to allow romantic interactions between family members for a story line I am working on. I dont know if it makes any difference or not what the core mod does to get this mod working but i thought i should add this to my post as well just in case.
Old 4th Jan 2012, 09:56 PM #3
velocitygrass
Forum Resident

Join Date: Jun 2009
Posts: 666
Thanks: 17052 in 7 Posts
17 Achievements


Twallan's Woohooer has options to allow teen-adult woohoo as well as near-relation woohoo.

As far as modding it goes, I believe he overrides it by removing the regular interaction from all sims and related objects and adding his own replacement. No core-modding is necessary for that (though it's probably not as simple as it sounds). And I think his mods work well together with core-mods if you need to keep your core-mod for other reasons.
Old 7th Jan 2012, 01:30 AM #4
Seductivedreamz818
Original Poster

Test Subject

Join Date: Jan 2012
Posts: 10


The woohooer does conflict with my mod, I am not sure why but I had a feeling that it was some sort of seperate code to over ride the game's original code. the problem is I am not too fluent in cil, I am for the most part a vb programmer. I probably could go through the woohooer code and find how twallan did it, but it wouldnt feel much like I accomplished anything by using code from another mod, All I am trying to figure out is how I can get code I write to over ride system code. How i can get my code called instead of the systems code. I have been fighting with this mod for like a week now, and I am just at a loss. I started this mod because I can no longer find the extended tunable core engine mod or whatever it was called, that is what I used to use, it allowed for family romantic relations, turned off the age barrier and did a whole lot of other things.
Old 7th Jan 2012, 03:40 AM #5
Srikandi
Pattern Pusher



Join Date: Aug 2006
Posts: 5,397
Thanks: 11424 in 63 Posts
13 Achievements


I think most modders would agree that looking at another modder's code is the best way to learn
Old 7th Jan 2012, 07:21 PM #6
Seductivedreamz818
Original Poster

Test Subject

Join Date: Jan 2012
Posts: 10


I took a look at the code for the woohooer and it seems like it is all his own code, nothing seems to be from the original packages for the game. I tried using search to find the method for teen-adult romance in the code for the original packages but no luck. Seems like the woohooer is a separate beast in itself. I am definitely not good enough ad understanding CIL code to create something like that yet. I have updated my mod to allow for polygamy but I still can not seem to crack the code for adult-teen romance. If it was not so important for my storyline I would just age the teen sims up to young adult and forget it all together lol. I just can not seem to figure out what I am missing here. I am starting to think that there is nothing in gameplay systems that does some sort of age check to prevent romantic interactions between different age groups. I know alot of this comes with time, i didnt expect to be an expert modder right away, but this mod is just driving me mad lol. I do appreciate everyone's help very much, I am going to keep plugging away, I will get it eventually. If anyone seems to know what I am missing here dont hesitate to reply or shoot me a private message to my inbox. I get on every day.
Old 7th Jan 2012, 09:14 PM #7
douglasveiga
Field Researcher

Join Date: Oct 2011
Posts: 333
Thanks: 7116 in 7 Posts
9 Achievements


take a look at:

Sims3.Gameplay.Actors.Sim.CanHaveRomanceWith

you will find the "age check"



Code:

public bool CanHaveRomanceWith(SimDescription other)
{
bool flag = false;
CASAgeGenderFlags age = this.Age;
if (age <= CASAgeGenderFlags.YoungAdult)
{
if (age != CASAgeGenderFlags.Teen)
{
if (age != CASAgeGenderFlags.YoungAdult)
{
goto IL_3C;
}
}
else
{
if (other.Age == CASAgeGenderFlags.Teen)
{
flag = true;
goto IL_3C;
}
goto IL_3C;
}
}
else
{
if (age != CASAgeGenderFlags.Adult && age != CASAgeGenderFlags.Elder)
{
goto IL_3C;
}
}
if (other.YoungAdultOrAbove)
{
flag = true;
}
IL_3C:
return flag && !base.Genealogy.IsSufficientlyRelatedToRuleOutRomance(other.Genealogy);
}
Old 8th Jan 2012, 06:42 AM #8
Seductivedreamz818
Original Poster

Test Subject

Join Date: Jan 2012
Posts: 10


That is what i was looking for, ty vm, that was driving me absolutley insane
Old 14th Jan 2012, 05:12 AM #9
Seductivedreamz818
Original Poster

Test Subject

Join Date: Jan 2012
Posts: 10


Ok So I changed that method to default to false for the age check aged my sims approprately in cas to get an adult and a teen and nothing, still no romantic interactions. Not quite sure what I did wrong.
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.