This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Add Stardew Valley Support #593
Closed
Closed
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8297a43
Add Stardew Valley Support
kurumushi 0a1fb3d
Fix whitepace
kurumushi 25262af
Make installer work on other systems than mine.
kurumushi 32c5cb6
Added post-install instructions for Stardew Valley
kurumushi fd8b0bd
Added instructions on how to keep the Stardew modding api up to date.
kurumushi 5518fd1
Added Stardew Valley to the list of working games
kurumushi f73d3be
I swear I can spell.
kurumushi 515a86d
removed 'working' to match the rest of the list
kurumushi ad97fda
Bump SMAPI to latest version
kurumushi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
game_steam_subdirectory="Stardew Valley" | ||
game_nexusid="stardewvalley" | ||
game_appid=413150 | ||
game_executable="Stardew Valley.exe" | ||
game_smapi_version="4.0.6" | ||
game_scriptextender_url="https://github.com/Pathoschild/SMAPI/releases/download/${game_smapi_version}/SMAPI-${game_smapi_version}-installer.zip" | ||
game_scriptextender_files="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install SMAPI | ||
if [ -d "$extracted_scriptextender" ]; then | ||
log_info "installing SMAPI in '$game_installation'" | ||
|
||
# This command is ugly, but necessary | ||
# Needs to run through wineconsole in order to work with .NET's System.Console | ||
|
||
"$utils/protontricks.sh" run-command "$game_appid" "wineconsole '${extracted_scriptextender}/SMAPI ${game_smapi_version} installer/internal/windows/SMAPI.Installer.exe' --install --no-prompt --game-path 'Z:\mnt\lingames\SteamLibrary\steamapps\common\Stardew Valley'" \ | ||
| "$dialog" loading "Installing SMAPI\nThis may take a while" | ||
|
||
if [ "$?" != "0" ]; then | ||
"$dialog" errorbox \ | ||
"Error while installing SMAPI, check the terminal for more details" | ||
exit 1 | ||
fi | ||
|
||
fi |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
--game-path
parameter seems to be hard-coded to a specific location in your system, which isn't a portable solution.The "game_installation" variable set by load_gameinfo.sh will hold the install location. This should convert it to a Windows path:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, the path was definitely a mistake on my part. Rushed from the yelling at the computer phase to the clean up for pull request phase. 😛