Changes

Jump to navigation Jump to search
→‎How do I use mods that need Stardew Valley 1.5?: add script to download archived files, rework instructions a bit to make them easier to navigate
Line 34: Line 34:  
Stardew Valley 1.5 isn't released on Android yet, so you'll need older versions of many mods. Here's how to find a compatible version for most mods:
 
Stardew Valley 1.5 isn't released on Android yet, so you'll need older versions of many mods. Here's how to find a compatible version for most mods:
   −
# Try the latest version and see if it works. If not, continue with the next steps.
+
<ol>
# From the Nexus mod page, click the ''Files'' tab to find all available versions.
+
<li>Try the latest version.</li>
# Check under "Main Files" and "Optional Files" for one which says it's for Android. If there's none, continue with the next steps.
+
<li>From the Nexus mod page, click the ''Files'' tab to find all available versions.</li>
# Next to "Old Files" (if present), change the sort to "Date Uploaded" and "Desc".
+
<li>Check under "Main Files" and "Optional Files":
# Find the latest file which...
+
# Try the latest file which...
 +
#* says it's for Android;
 +
#* ''or'' says it's for Stardew Valley 1.4;
 +
#* ''or'' says it's for SMAPI 3.7.6 or earlier;
 +
#* ''or'' was uploaded before 21 December 2020.
 +
</li>
 +
<li>Check under "Old Files" (if present):
 +
# Change the sort to "Date Uploaded" and "Desc".
 +
# Try the latest file which...
 
#* says it's for Stardew Valley 1.4;
 
#* says it's for Stardew Valley 1.4;
 
#* ''or'' says it's for SMAPI 3.7.6 or earlier;
 
#* ''or'' says it's for SMAPI 3.7.6 or earlier;
 
#* ''or'' was uploaded before 21 December 2020.
 
#* ''or'' was uploaded before 21 December 2020.
# If you didn't find a matching file, try checking the mod comments or posting a new comment.
+
</li>
# If there is no "Old Files" section, you can try downloading an archived file, but downloading archived mod versions is at your own risk, and mod authors often won't provide support for them (it is possible they were archived for a reason).
+
<li>Check the archived files (if any):
#* Click the Files tab on the mod page.
+
<ol>
#* Right-click Manual Download for the latest version, and choose Copy Link.
+
<li>If there's a "File Archive" button at the bottom of the page, click it.</li>
#* Paste the link somewhere (Notepad is fine).
+
<li>Try the latest file which matches the previous step. You can run this script to add download links:
#* Click the File Archive button at the bottom of the page.
+
 
#* Right-click the version you want to download, and choose Inspect.
+
{{collapse|&#32;script to add download links|content=<syntaxhighlight lang="js">
#* Look for the <code><dt</code> element right above the highlighted element, and copy the <code>data-id</code> value.
+
(function() {
#* In the link you copied in step 2, replace the number after <code>id=</code> with that value.
+
    const gameId = $("#section").attr("data-game-id");
#* Paste the link into your browser's address bar, and it'll download the archived file.
+
    const downloadElements = $("#file-container-archived-files [data-id]");
 +
 
 +
    for (let element of downloadElements) {
 +
        element = $(element);
 +
        const description = element.find(".files-description");
 +
        const fileId = element.attr("data-id");
 +
 
 +
        const html = `
 +
            <div class="tabbed-block">
 +
                <ul class="accordion-downloads clearfix">
 +
                    <li>
 +
                        <a class="btn inline-flex popup-btn-ajax" href="/Core/Libs/Common/Widgets/DownloadPopUp?id=${fileId}&nmm=1&game_id=${gameId}">
 +
                            <svg title="" class="icon icon-nmm">
 +
                                <use xlink:href="https://www.nexusmods.com/assets/images/icons/icons.svg#icon-nmm"></use>
 +
                            </svg>
 +
                            <span class="flex-label">Mod manager download</span>
 +
                        </a>
 +
                    </li>
 +
                    <li>
 +
                    </li>
 +
                    <li>
 +
                        <a class="btn inline-flex popup-btn-ajax" href="/Core/Libs/Common/Widgets/DownloadPopUp?id=${fileId}&game_id=${gameId}">
 +
                            <svg title="" class="icon icon-manual">
 +
                                <use xlink:href="https://www.nexusmods.com/assets/images/icons/icons.svg#icon-manual"></use>
 +
                            </svg>
 +
                            <span class="flex-label">Manual download</span>
 +
                        </a>
 +
                    </li>
 +
                </ul>
 +
            </div>
 +
        `;
 +
 
 +
        $(html).insertAfter(description);
 +
    }
 +
})();
 +
</syntaxhighlight>}}
 +
 
 +
'''Note:''' downloading archived mod versions is at your own risk, and mod authors often won't provide support for them.</li>
 +
</ol>
 +
</li>
 +
<li>If you didn't find a matching file, try checking the mod comments or posting a new comment.</li>
 +
</ol>
    
{{Modding guide footer
 
{{Modding guide footer
translators
8,404

edits

Navigation menu