-
Notifications
You must be signed in to change notification settings - Fork 5
Changes to build.py #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
d5d454e
5ab2533
b6dddd5
03c3bf7
2938a19
f2e78a7
55afa97
2bfe9c9
c2f2c2a
99e319c
d93038f
efbae6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
bin/ | ||
obj/ | ||
obj/ | ||
.vs/ | ||
Icon Sources/ | ||
*.user |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,11 @@ def sync_folder(src: Path, dst: Path): | |
MOD_DLL = MOD_BIN / DLL_NAME | ||
MOD_PATH = MODS_ROOT / MOD_ID | ||
|
||
# check dll has unique name | ||
if DLL_NAME.lower() == "examplemod.dll": | ||
print("Did you forget to rename the DLL in the project settings?") | ||
exit(1); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think a warning is enough here, maybe link to https://modding.stacklands.co/en/latest/guides/tutorial.html#step-1-setting-up-the-template as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is why pull requests aren't requests. Not demands. At least put something there. |
||
|
||
# copy dll | ||
MOD_PATH.mkdir(exist_ok=True) | ||
shutil.copyfile(MOD_DLL, MOD_PATH / f"{DLL_NAME}") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Term Notes English | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if including a localization file is a good choice
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm old school. I edit the file in visual studio directly. |
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.
This feels like a personal thing, not something that should be in the template
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 .vs/ thing kills me every time. I had to fork the mod-template. :)