Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Duplicate and rename the template folders and files #599

Discussion options

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

  1. 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:

    git switch -c copy-rename-template
  2. Navigate to ProjectToolsCreate StoryQuest from template....
    image (26)

  3. 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.
    image

  4. Click Create. You should now see a folder appear in your file system with all the files you need for your StoryQuest.

  5. 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-template
  6. Submit 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 be Game-Lab-4-0-UTP-Group-9-Team-06
      image

    • It should look like this after the change:
      image

    • 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.

  7. 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 pull to 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

Duplicate and rename the template folder and files

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.

  1. 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).

  2. Duplicate the "NO_EDIT"(template) folder. Right-click the folder named NO_EDIT and 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.

  3. 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.

  4. 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_intro and NO_EDIT_stealth.tscn. Replace all instances of the "NO_EDIT" tags with a name that represents your StoryQuest. Like this: 0_NO_EDIT_intro0_mystoryquest_intro and NO_EDIT_stealth.tscnmystoryquest_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.

  5. 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.

  6. 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

Duplicate and rename the template folder and files(with automation tool)

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /