Forum Discussion

forwardbear's avatar
forwardbear
Newcomer
2 days ago

Creating custom Adventure mods

To preface - this forum seems to be mainly offering support to the end-users of mods, not the creators. If anyone knows of a forum/server/etc. centred around the creation of mods, I'd sell my soul to get into it! And apologies if I'm in the wrong place, in advance! 

I've been working for a couple of weeks on a tuning mod focused around new content for horses (illness, farriery, better competitions etc.) It's been going really well, but I'm doing... something wrong when writing the XML. I've written an SI and injected it into the phone to run Adventure Moments that control the means of actually rewarding certain buffs/features/etc. The Main SI seems fine to my eyes, and I can't see anything majorly wrong with the way I've written the Adventure tuning (in both the AdventureMoment snippets and the SI basic extras itself.) 

But I cannot get more than one adventure moment to play sequentially. In the Initial adventure, I'm using the Next Moments tunable, and then putting the key of the next adventure moment I want to play in it. I've tried writing it from scratch using the TDESC, Lot 51's builder, and copying relevant extracted tuning from the game. I'm clearly missing something, because despite all that, every time I select the button that ought to start the next Adventure Moment, nothing happens. 

I don't think there's anything horrendously wrong with the Adventure Moments, as if I put the second one as the Initial for the adventure, it shows up just fine. I can get either of them to show so long as they're tuned in the _initial_moments block. But trying to get one to load the other through next_moments does... nothing. I'm definitely missing something here, but browsing extracted tunings (and the rest of the internet) hasn't turned up anything helpful.

Below are the relevant bits of tuning in the SI and the Initial adventure moment. I'm happy to post full files or even the full WIP package if anyone here has pointers/would benefit from more context. 

<I c="SuperInteraction" i="interaction" m="interactions.base.super_interaction" n="T:superInteraction_HorseHealth_SpawnFarrierAdventure" s="12416260415009001475">
...
  <L n="basic_extras">
    <V t="adventure">
      <U n="adventure">
        <L n="_adventure_moments">
          <U>
            <E n="key">Generic_Starter</E> 
            <U n="value">
              <V n="adventure_moment" t="reference">
                <T n="reference">10690695961992902477<!--AdventureMoment: adventureMoment_HorseHealth_Farrier_Menu--></T>
              </V>
            </U>
          </U>
          <U>
            <E n="key">Generic_01</E>
            <U n="value">
              <V n="adventure_moment" t="reference">
                <T n="reference">13000634472038777440</T>
              </V>
            </U>
          </U>
          <U>
            <E n="key">Generic_02</E> 
            <U n="value">
              <V n="adventure_moment" t="reference">
                <T n="reference">1353948544650724596<!--AdventureMoment: adventureMoment_HorseHealth_Farrier_DUMMY--></T>
              </V>
            </U>
          </U>
        </L>
        <L n="_initial_moments">
          <U>
            <E n="adventure_moment_key">Generic_Starter</E>
            <U n="weight">
              <T n="base_value">1</T>
            </U>
          </U>
        </L>
        <T n="_maximum_triggers">0</T>
        <T n="_resumable">False</T>
        <V n="timing" t="at_beginning">
          <U n="at_beginning" />
        </V>
      </U>
    </V>  
...
  </L>
...
</I>
<I c="AdventureMoment" i="snippet" m="snippets" n="T:adventureMoment_HorseHealth_Farrier_Menu" s="10690695961992902477">
    <U n="value">
      <L n="_finish_actions">
        <U>
          <L n="action_results">
            <U>
              <L n="next_moments">
                <E>Generic_01</E>
              </L>
            </U>
          </L>
          <V n="display_text" t="single">
            <T n="single">0x8E089155<!--Ask about having your Horse Shod--></T>
          </V>
          <V n="display_subtext" t="single">
            <T n="single">0x51F56AEE<!--NB: Once Shod, Horses need regular Farrier visits to maintain their shoes.--></T>
          </V>
        </U>
        <U>
          <L n="action_results">
            <U>
              <L n="loot_actions">
                <T>1576196724464159194<!--Loot: loot_adventureMoment_HorseHealth_Farrier_MenuExit (Commodity change & 'block')--></T>
                <T>13032256467401235304<!--Loot: randomWeightedLoot_HorseHealth_Farrier_OnMenuExit (Low-commodity notification 'replies')--></T>
                <T>1793738927857058300<!--Loot: random_WeightedLoot_HorseHealth_Farrier_OnMenuExit_SpamWarning (High-commodity notification 'replies')--></T>
              </L>
            </U>
          </L>
          <V n="display_text" t="single">
            <T n="single">0x8C97411E<!--Nevermind! (Exits Menu)--></T>
          </V>
        </U>
      </L>
      <V n="_visibility" t="show_dialog">
        <U n="show_dialog">
          <E n="dialog_style">LARGE_ICON</E>
          <V t="enabled" n="icon">
            <V n="enabled" t="resource_key">
              <U n="resource_key">
                <T n="key" p="InGP06\UI\icons\chancecards\ChanceCard_Sloth.png">2f7d0004:00000000:3047dfd8a82b462e</T><!--REPLACE-->
              </U>
            </V>
          </V>
          <V n="text" t="single">
            <T n="single">0xED349B60</T>
          </V>
          <V t="enabled" n="title">
            <T n="enabled">0x3CCD7812<!--Texting The Farrier--></T>
          </V>
        </U>
      </V>
    </U>
</I>

Troubleshooting I have done: 

  • Replaced the 'Generic_1'  with an almost empty Adventure Moment 'Generic 2' ("_DUMMY") to see if it was an issue with the Adventure Moment I was trying to call
  • Done a whole lot of swapping/replacing/retyping to make sure it wasn't a typo or a missed tag or anything else silly (though at this point I'm really hoping I just missed something like that!)
  • Ran the Sims with Scumbumbo's Log Enabler several times with every iteration/attempt and searched all the relevant logs for errors/issues (as far as I can tell, there isn't anything obvious, though I can't claim to really know what I'm doing) 

At this point I think I'm missing something more fundamental, or maybe misunderstanding Adventure Moments entirely? But I can't for the life of me work out exactly what is going wrong in my thought process/tuning. At this point I'm wondering if I just have to scrap the idea of doing it through adventures entirely and implement it in a different way, but I'm super attatched to how personable and well-suited the Adventure tuning is to what I want to do... in theory. I've been writing the XMLs mostly from scratch in VS Code using S4TK, not the Mod Constructor, so any advice geared towards the latter I'm afraid I won't be able to benefit from. 

No RepliesBe the first to reply

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.14,780 PostsLatest Activity: 27 minutes ago