-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
cc2bac8
commit cff565c
Showing
14 changed files
with
237 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
copy "docs\images\brand\Main.png" "dist\ProjectName\fomod\images" | ||
copy "docs\images\brand\Main.png" "dist\(FolderName)\fomod\images" |
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 |
---|---|---|
@@ -1 +1 @@ | ||
robocopy "build\papyrus\release" "dist\ProjectName\Base\scripts" *.pex /it | ||
robocopy "build\papyrus\release" "dist\(FolderName)\Base\scripts" *.pex /it |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
"C:\Tools\md2nexus\md2nexus" -i "docs/description-md" -o "docs/description-nexus" | ||
"(Pathmd2nexus)\md2nexus" -i "docs/description-md" -o "docs/description-nexus" | ||
robocopy "docs\description-md" "docs\description-nexus" *.txt /it |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
copy "build\ProjectName.zip" "D:\Games\Bethesda\Elder Scrolls\Skyrim\MO2\downloads" | ||
copy "build\MO2\ProjectName.zip.meta" "D:\Games\Bethesda\Elder Scrolls\Skyrim\MO2\downloads" | ||
copy "build\(ZipName).zip" "(PathMO2Downloads)" | ||
copy "build\MO2\(ZipName).zip.meta" "(PathMO2Downloads)" |
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 |
---|---|---|
@@ -1 +1 @@ | ||
robocopy "dist\ProjectName\Base" "C:\Games\Elder Scrolls\V - Skyrim\SMEFT\mods\ProjectName (pre-release) []" /e | ||
robocopy "dist\(FolderName)\Base" "(PathMO2Mods)\(MO2ModNamePR)" /e |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
del "build\ProjectName.zip" | ||
cd "dist\ProjectName" | ||
"C:\Program Files\7-Zip\7z" a -tzip "..\..\build\ProjectName.zip" | ||
del "build\(ZipName).zip" | ||
cd "dist\(FolderName)" | ||
"(Path7Zip)\7z" a -tzip "..\..\build\(ZipName).zip" |
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,221 @@ | ||
import os | ||
#import shutil | ||
#from pathlib import Path | ||
from pathlib2 import Path | ||
#from fileinput import FileInput | ||
|
||
|
||
|
||
# VARIABLES | ||
|
||
# Old Text: | ||
old_author_display = "(AuthorName)" | ||
old_author_github = "(GitHubAccount)" | ||
old_id_github = "(GitHubID)" | ||
old_id_nexus = "(NexusID)" | ||
old_license_holder = "[fullname]" | ||
old_license_year = "[year]" | ||
old_name_folder = "(FolderName)" | ||
old_name_mo2_release = "(MO2ModName)" | ||
old_name_mo2_test = "(MO2ModNamePR)" | ||
old_name_plugin = "(PluginName)" | ||
old_name_zip = "(ZipName)" | ||
old_path_7Zip = "(Path7Zip)" | ||
old_path_md2nexus = "(Pathmd2nexus)" | ||
old_path_MO2Downloads = "(PathMO2Downloads)" | ||
old_path_MO2Mods = "(PathMO2Mods)" | ||
old_title = "(TitleName)" | ||
old_title_short = "(TitleNameShort)" | ||
old_title_xml = "(TitleNameXML)" | ||
old_title_xml_short = "(TitleNameXMLShort)" | ||
|
||
# New Text: | ||
new_author_display = "______" | ||
new_author_github = "______" | ||
new_id_github = "______" | ||
new_id_nexus = "______" | ||
new_license_holder = "______" | ||
new_license_year = "______" | ||
new_name_folder = "______" | ||
new_name_mo2_release = "______" | ||
new_name_mo2_test = "______" | ||
new_name_plugin = "______" | ||
new_name_zip = "______" | ||
new_path_7Zip = "______" | ||
new_path_md2nexus = "______" | ||
new_path_MO2Downloads = "______" | ||
new_path_MO2Mods = "______" | ||
new_title = "______" | ||
new_title_xml = "______" | ||
new_title_short = "______" | ||
new_title_short_xml = "______" | ||
|
||
# Example 1: | ||
#new_author_display = "GroundAura" | ||
#new_author_github = "GroundAura" | ||
#new_id_github = "Auras-Inventory-Tweaks" | ||
#new_id_nexus = "68557" | ||
#new_license_holder = "GroundAura" | ||
#new_license_year = "2023" | ||
#new_name_folder = "Aura's Inventory Tweaks" | ||
#new_name_mo2_release = "Aura's Inventory Tweaks []" | ||
#new_name_mo2_test = "Aura's Inventory Tweaks (pre-release) []" | ||
#new_name_plugin = "AIT" | ||
#new_name_zip = "Auras Inventory Tweaks" | ||
#new_path_7Zip = "C:\Program Files\7-Zip" | ||
#new_path_md2nexus = "C:\Tools\md2nexus" | ||
#new_path_MO2Downloads = "D:\Games\Bethesda\Elder Scrolls\Skyrim\MO2\downloads" | ||
#new_path_MO2Mods = "C:\Games\Elder Scrolls\V - Skyrim\SMEFT\mods" | ||
#new_title = "Aura's Inventory Tweaks" | ||
#new_title_xml = "Aura's Inventory Tweaks" | ||
#new_title_short = "AIT" | ||
#new_title_short_xml = "AIT" | ||
|
||
# Example 2: | ||
#new_author_display = "GroundAura" | ||
#new_author_github = "GroundAura" | ||
#new_id_github = "Phenomenally-Enriched-Ingredients" | ||
#new_id_nexus = "90526" | ||
#new_license_holder = "GroundAura" | ||
#new_license_year = "2023" | ||
#new_name_folder = "Phenomenally Enriched & Nuanced Ingredients for SkyUI" | ||
#new_name_mo2_release = "BOOBIES - PENIS (pre-release) []" | ||
#new_name_mo2_test = "BOOBIES - PENIS (pre-release) []" | ||
#new_name_plugin = "PENIS_IconsAddon" | ||
#new_name_zip = "Phenomenally Enriched & Nuanced Ingredients for SkyUI" | ||
#new_path_7Zip = "C:\Program Files\7-Zip" | ||
#new_path_md2nexus = "C:\Tools\md2nexus" | ||
#new_path_MO2Downloads = "D:\Games\Bethesda\Elder Scrolls\Skyrim\MO2\downloads" | ||
#new_path_MO2Mods = "C:\Games\Elder Scrolls\V - Skyrim\SMEFT\mods" | ||
#new_title = "Phenomenally Enriched & Nuanced Ingredients for SkyUI" | ||
#new_title_xml = "Phenomenally Enriched and Nuanced Ingredients for SkyUI" | ||
#new_title_short = "P.E.N.I.S. for B.O.O.B.I.E.S" | ||
#new_title_short_xml = "P.E.N.I.S. for B.O.O.B.I.E.S" | ||
|
||
|
||
|
||
# RENAME FOLDERS | ||
|
||
print(os.getcwd()) | ||
|
||
# os.chdir("./dist") | ||
# (rename folder) | ||
# old_name_folder = new_name_folder | ||
|
||
# os.chdir("./dist/" + old_name_folder + "/Base/MCM/Config") | ||
# (rename folder) | ||
# old_name_plugin = new_name_plugin | ||
|
||
|
||
|
||
# RENAME FILES | ||
|
||
os.chdir("./build/MO2") | ||
print(os.getcwd()) | ||
|
||
os.rename(old_name_zip + ".zip.meta", new_name_zip + ".zip.meta") | ||
|
||
os.chdir("../..") | ||
print(os.getcwd()) | ||
|
||
|
||
os.chdir("./dist/" + old_name_folder + "/Base/interface/translations") | ||
print(os.getcwd()) | ||
|
||
os.rename(old_name_plugin + "_ENGLISH.txt", new_name_plugin + "_ENGLISH.txt") | ||
|
||
os.chdir("../../../../..") | ||
print(os.getcwd()) | ||
|
||
|
||
os.chdir("./dist/" + old_name_folder + "/Base") | ||
print(os.getcwd()) | ||
|
||
os.rename(old_name_plugin + ".esp", new_name_plugin + ".esp") | ||
os.rename(old_name_plugin + ".esl", new_name_plugin + ".esl") | ||
os.rename(old_name_plugin + ".esm", new_name_plugin + ".esm") | ||
|
||
os.chdir("../../..") | ||
print(os.getcwd()) | ||
|
||
os.chdir("./dist/" + old_name_folder + "/Source/scripts") | ||
print(os.getcwd()) | ||
|
||
os.rename(old_name_plugin + "MCM.psc", new_name_plugin + "MCM.psc") | ||
|
||
os.chdir("../../../..") | ||
print(os.getcwd()) | ||
|
||
|
||
|
||
# REPLACE TEXT | ||
|
||
os.chdir("./.vscode/commandline") | ||
print(os.getcwd()) | ||
|
||
with open(r'copy-img.bat', 'r') as file: | ||
data = file.read() | ||
data = data.replace(old_name_folder, new_name_folder) | ||
with open(r'copy-img.bat', 'w') as file: | ||
file.write(data) | ||
|
||
with open(r'copy-pex.bat', 'r') as file: | ||
data = file.read() | ||
data = data.replace(old_name_folder, new_name_folder) | ||
with open(r'copy-pex.bat', 'w') as file: | ||
file.write(data) | ||
|
||
with open(r'md2nexus.bat', 'r') as file: | ||
data = file.read() | ||
data = data.replace(old_path_md2nexus, new_path_md2nexus) | ||
with open(r'md2nexus.bat', 'w') as file: | ||
file.write(data) | ||
|
||
with open(r'mo2-downloads.bat', 'r') as file: | ||
data = file.read() | ||
data = data.replace(old_name_zip, new_name_zip) | ||
data = data.replace(old_path_MO2Downloads, new_path_MO2Downloads) | ||
with open(r'mo2-downloads.bat', 'w') as file: | ||
file.write(data) | ||
|
||
with open(r'mo2-mod.bat', 'r') as file: | ||
data = file.read() | ||
data = data.replace(old_name_folder, new_name_folder) | ||
data = data.replace(old_name_mo2_test, new_name_mo2_test) | ||
data = data.replace(old_path_MO2Mods, new_path_MO2Mods) | ||
with open(r'mo2-mod.bat', 'w') as file: | ||
file.write(data) | ||
|
||
with open(r'zip.bat', 'r') as file: | ||
data = file.read() | ||
data = data.replace(old_name_folder, new_name_folder) | ||
data = data.replace(old_name_zip, new_name_zip) | ||
data = data.replace(old_path_7Zip, new_path_7Zip) | ||
with open(r'zip.bat', 'w') as file: | ||
file.write(data) | ||
|
||
os.chdir("../..") | ||
print(os.getcwd()) | ||
|
||
|
||
os.chdir("./.vscode/papyrus") | ||
print(os.getcwd()) | ||
|
||
os.chdir("../..") | ||
print(os.getcwd()) | ||
|
||
|
||
os.chdir("./build/MO2") | ||
print(os.getcwd()) | ||
|
||
with open(r'new_name_zip' + '.zip.meta', 'r') as file: | ||
data = file.read() | ||
data = data.replace(old_name_mo2_test, new_name_mo2_test) | ||
data = data.replace(old_title, new_title) | ||
with open(r'new_name_zip + ".zip.meta"', 'w') as file: | ||
file.write(data) | ||
|
||
os.chdir("../..") | ||
print(os.getcwd()) | ||
|
||
|
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# ProjectName | ||
|
||
ProjectName is a mod for Skyrim Special Edition created by GroundAura. | ||
ProjectName is a mod for Skyrim Special Edition created by (AuthorName). | ||
|
||
This mod can be found on [Nexus Mods](https://www.nexusmods.com/skyrimspecialedition/mods/ModID). | ||
This mod can be found on [Nexus Mods](https://www.nexusmods.com/skyrimspecialedition/mods/(NexusID)). | ||
That is the best place to find installation information, comment, report bugs, and find my contact information. | ||
|
||
Releases can also be downloaded on [here on GitHub](https://github.com/GroundAura/Project-Template/releases). | ||
Releases can also be downloaded on [here on GitHub](https://github.com/(GitHubAccount)/(GitHubID)/releases). | ||
|
||
A changelog can be found [here](https://github.com/GroundAura/Project-Template/blob/main/docs/CHANGELOG.md). | ||
A changelog can be found [here](https://github.com/(GitHubAccount)/(GitHubID)/blob/main/docs/CHANGELOG.md). | ||
|
||
Additional information can be found on the [GitHub Wiki](https://github.com/GroundAura/Project-Template/wiki). | ||
Additional information can be found on the [GitHub Wiki](https://github.com/(GitHubAccount)/(GitHubID)/wiki). |
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1 +1 @@ | ||
# [ProjectName](https://github.com/GroundAura/Project-Template/wiki) | ||
# [ProjectName](https://github.com/GroundAura/(GitHubID)/wiki) |