Welcome to
Mod The Sims
Online: 1918
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: 29 (Who?), Viewed: 23946 times.
Search this Thread
Old 7th Sep 2017, 9:29 PM #26
Spamaccount
Lab Assistant

Join Date: Dec 2011
Posts: 96
Thanks: 537 in 12 Posts
4 Achievements


I finally decided to give this a go. I spent all of yesterday messing around with my files, but try as I might, I can't get the LTW to show in CAS either. I'm not sure what to do now; @Franzilla 's example was a gigantic help in helping me track down some errors but I'm at the point where I don't see any other issues and yet, somewhere, something is wrong.

A little background; my wish isn't differentiated yet; the actual coding should be very straightforward, so I'm mostly interested in first having it appear as its own unique LTW.
This one is based off of the Gold Digger LTW, which doesn't have a Check or Count Function, so I didn't implement ones either. Otherwise I tried to follow the guide as best as I could. Initially, I had the FeedbackFunction call the exact same function as the original Gold Digger wish; when that didn't work I went ahead and made it unique, since that would have to happen later on anyway, but that didn't resolve the main issue of the wish simply not appearing in-game.

Some other issues I ran into and resolved were: not having the proper name and corresponding FNV64 for my S3SA file, having created the new dreamtree as a DMTR rather than an XML (that is what the guide says to create it as, yet all the working examples contain an XML dreamtree instead of a DMTR one), and other issues I solved using a code comparing program. There are no STBLs in my file yet; I intended to add them later since it required a NRASS I didn't have yet. I've concluded that that's not the issue though, since Fran's wishes still appears even when the STBL info is absent. I am aware that some of my methods are slightly different than in the other examples, but I'm at a loss as to what else should be changed at this point.

Any help would be appreciated: I'm attaching the latest attempt I've made and the original .dll.
Download - please read all instructions before downloading any files!
File Type: zip Spamaccount LTW.zip (18.7 KB, 9 downloads) - View custom content
Old 9th Sep 2017, 6:36 PM #27
Franzilla
Test Subject

Join Date: Jan 2016
Posts: 36
Thanks: 1123 in 22 Posts
9 Achievements


@Spamaccount
I took a look through your package and .dll to see if I could sniff something out. Good news! Only a few things need changing, and you'll be good to go.

In your DreamAndPromisesNodes xml, you just need to add your username at the end of the wish name so that it matches its converted form in the .dll. So, "*See ghost of $n enemies" should be "*See ghost of $n enemies Spamaccount"

In the .dll, just three lines need to change:
  • In ParseDreamTreesSpamaccount:
    Code:
    DreamsAndPromisesManager.ParseDefaults();
    should be
    Code:
    Dictionary<string, XmlElement> instanceDefults = DreamsAndPromisesManager.ParseDefaults();

    and
    Code:
    new ResourceKey(1388242823523682991uL, 53690476u, 0u);
    should be
    Code:
    DreamsAndPromisesManager.ParseDreamTreeByKey(new ResourceKey(1388242823523682991uL, 53690476u, 0u), instanceDefults, ref baseObject);

  • In ParseNodePrimitivesFromXmlDbDataSpamaccount:
    Code:
    Type type2 = Type.GetType("Spamaccount.TS3.LastLaugh.Spamaccountltw1,Spamaccountltw1", false);
    should be
    Code:
    Type type2 = Type.GetType("Spamaccount.TS3.LastLaugh.Spamaccountltw1,Spamaccount.TS3.LastLaugh", false);

If you're not using UntranslatedKey from NRaas, the strings will probably be blank. Otherwise it'll appear in CAS and in game like so:
Old 11th Sep 2017, 7:00 AM #28
Spamaccount
Lab Assistant

Join Date: Dec 2011
Posts: 96
Thanks: 537 in 12 Posts
4 Achievements


Wow. Thank you so much for your help! I'm still quite new to script modding, and I would have never tracked down those mistakes myself. After making the changes, the wish finally showed up! It was a little bit trickier than I was hoping to manipulate the new feedback function into what I wanted, but that eventually worked out too. All I need to do now is make the wish require more than one event to fulfill, add a few linked wishes, and it will be ready.
This is really intimidating stuff, and it's great that there's someone in the community that understands it! Thanks again.
Old 17th Sep 2017, 4:07 AM #29
cscorpia
Test Subject

Join Date: Oct 2012
Posts: 17


Quote:
Originally Posted by Franzilla
Here you go! Sorry this took forever. My original file was smothered in extra stuff unrelated to custom careers, so I decided to make a heavily trimmed version. All the relevant stuff should still be in there.

I hope I'm attaching this correctly...


I just saw that you uploaded a custom LTW! I hope I can get mine to work.
Old 23rd Sep 2017, 4:39 PM #30
cscorpia
Test Subject

Join Date: Oct 2012
Posts: 17


How did you make your Career GUID in the Level10DentistryFeedbackFunctionFranzilla? My custom career name within the other mod is "Nun" and the mod name is "CscorpiaNunCareerv2.0"
Reply


Section jump:


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