forked from McArcady/lnp-forge
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add optional support for building Dark Ages mod
- Loading branch information
Showing
5 changed files
with
72 additions
and
0 deletions.
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
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,20 @@ | ||
| # DARK options | ||
|
|
||
| config DARK | ||
| bool | ||
| prompt "Enable Dark Ages" | ||
| default n | ||
| help | ||
| Select this to enable the Dark Ages mod | ||
|
|
||
| config DARK_VERSION | ||
| prompt "Dark Ages version" | ||
| string | ||
| default "4_47_04_v39" | ||
|
|
||
| config DARK_DROPBOX_URL | ||
| prompt "Dark Ages Download URL" | ||
| string | ||
| default "https://www.dropbox.com/s/zvc6f34y6jiy6j9/DarkAges_4_47_04_v39.zip" | ||
| help | ||
| The full URL to download the Dark Ages zip file |
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,47 @@ | ||
| # Install Dark Ages IV: War & Mythos a mod for Dwarf Fortress | ||
|
|
||
| get_dark_description() { | ||
| echo "DarkAges v${CT_DARK_VERSION}" | ||
| } | ||
| get_dark_credits() { | ||
| echo "GM-X" | ||
| } | ||
| get_dark_url() { | ||
| echo "http://www.bay12forums.com/smf/index.php?topic=143540.0" | ||
| } | ||
| get_dark_license() { | ||
| echo -n | ||
| } | ||
|
|
||
| # Download DF | ||
| do_dark_get() { | ||
| CT_GetFile "DarkAges_${CT_DARK_VERSION}" ".zip" \ | ||
| ${CT_DARK_DROPBOX_URL} | ||
| } | ||
|
|
||
| get_dark_dir() { | ||
| echo "${CT_SRC_DIR}/DarkAges_${CT_DARK_VERSION}/" | ||
| } | ||
|
|
||
|
|
||
| # Extract DA | ||
| do_dark_extract() { | ||
| # extract in src dir | ||
| da_dir="$(get_dark_dir)" | ||
| mkdir -p "$da_dir" | ||
| CT_Pushd $da_dir | ||
| CT_Extract nochdir "DarkAges_${CT_DARK_VERSION}" | ||
| CT_DoExecLog ALL find . -iname "*.exe" -or -iname "*.dll" -delete | ||
| CT_Popd | ||
| } | ||
|
|
||
| # Copy DA mod files over DF | ||
| do_dark_build() { | ||
| da_dir="$(get_dark_dir)" | ||
| df_dir=${CT_SRC_DIR}/lnp-${CT_LNP_VERSION}/df_${CT_DF_VERSION} | ||
| if [ -d "$da_dir" ]; then | ||
| CT_DoExecLog ALL rsync -qa "${da_dir}"/raw "${da_dir}"/data "${df_dir}" | ||
| else | ||
| CT_Abort "Dark Ages directory $da_dir not found!" | ||
| fi | ||
| } |
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