Duplicate and rename the template folders and files #599
jgbourque
announced in
Intro & Outro
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why this task matters
Duplicating the original template creates a separate, safe space for your custom StoryQuest work. This keeps your changes organized and prevents you from accidentally modifying the original base game that everyone shares. Remember: only one person in your team needs to complete this task.
Steps
Create a Git branch for your work copying and renaming the StoryQuest template. Open Git Bash and navigate to your project folder (where you originally cloned the game). Then, create a new branch using:
Navigate to Project → Tools → Create StoryQuest from template….

Fill out the Title and Description fields. Note: The folder name will be auto-generated from your title, but you can edit it if needed.

Click Create. You should now see a folder appear in your file system with all the files you need for your StoryQuest.
Stage and commit your renamed folders. Use the following commands, but change the folder name and message to match your own StoryQuest:
git status git add scenes/quests/story_quests/mystoryquest git commit -m "Duplicate and rename template and all files" git push --set-upstream origin copy-rename-templateSubmit a pull request. Go to GitHub and navigate to your fork of the repository. GitHub should show you a banner suggesting you open a pull request from your new branch.
Click Compare & pull request
If the options appear like this and it says

base repository: endlessm/threadbare, you need to change it to your repository. In the example image, that would beGame-Lab-4-0-UTP-Group-9-Team-06It should look like this after the change:

write a clear title and description, then click Create pull request.
Note: Pull requests are better with a peer review! Click here to learn more. If you are working alone, you can merge your own pull request after submitting it.
Update your local main branch If the changes have been merged into the main branch on GitHub, you should switch back to your main branch in Git on your computer and use
git pullto get the latest changes there as well. This way you'll be up to date and ready for more game development!✅ Done! You now have your own personalized copy of the StoryQuest template safely committed and visible on GitHub.
Video
Manual method – only if the tool above does not work for you
[OLD] Steps
You do not need to do these steps if you use the tool mentioned above! If you did not use the tool above, the following steps should replace steps 2-5 above.
Find the template folder in Godot. In the Godot editor, open the FileSystem panel in the bottom left. Navigate to this folder:
res://scenes/quests/story_quests/NO_EDIT/(click on scenes > quests > story_quests > NO_EDIT to get there).Duplicate the "NO_EDIT"(template) folder. Right-click the folder named
NO_EDITand choose Duplicate. This will create a full copy of the entire StoryQuest template for you to rename and modify to suit your own StoryQuest. IMPORTANT: Now that you have duplicated this folder for your team's StoryQuest, we recommend that you leave the original "NO_EDIT" template folder alone: do not edit or delete those files. Those files are only meant for you to copy and otherwise need to be left unchanged.Rename your new StoryQuest folder. To avoid confusion make sure to name your duplicate folder after the name you have given your StoryQuest. Godot will let you do this when you initially duplicate the NO_EDIT template, but in case you missed this, you can do it afterwards by right-clicking the newly duplicated folder and choose Rename and then changing its name to match your own StoryQuest title. Use all lowercase letters and avoid spaces or special characters.
Rename all "NO_EDIT" template folders, sub folders, and files to reflect your StoryQuest name. We recommend that you now take the time to rename everything inside your newly copied folder to also match your StoryQuest name. Expand or open your new StoryQuest folder. You’ll see several inner folders and files, such as
0_NO_EDIT_introandNO_EDIT_stealth.tscn. Replace all instances of the "NO_EDIT" tags with a name that represents your StoryQuest. Like this:0_NO_EDIT_intro→0_mystoryquest_introandNO_EDIT_stealth.tscn→mystoryquest_stealth.tscn. (Remember to use your StoryQuest name, not "mystoryquest"!) Note: this task is tedious, but worth it! As you continue to edit your game it will make it much clearer which files are yours to edit and which ones need to be left alone.Copy and rename the tileset.tres file This tileset file was not copied when you duplicated the big "NO_EDIT" template folder. You can find it on its own underneath the StoryQuest folders in the filesystem. Right click on this file, select "Duplicate" and then rename it like you have done for the other files for your StoryQuest. Just remember that once you have copied and renamed this tileset file you should move it into your StoryQuest folder along with all your other files to avoid confusion later.
EXCEPTION: Do not rename the quest.tres file! Inside your new folder, you may find a file named
quest.tres. This file name needs to be left as is.Save all scenes. From the top menu, click Scene → Save All Scenes. If you have only made these folder and file name changes then the option to "Save All Scenes" may not be available. This is ok! It just means that Godot saved these folder/file changes automatically, but it is a good habit to always try and save your work this way. You will be able to see your changes in Git to confirm.
Old Video
Beta Was this translation helpful? Give feedback.
All reactions