Changes

Jump to navigation Jump to search
823 bytes added ,  01:00, 15 August 2023
Line 27: Line 27:  
; What if I don't like a proposed change?
 
; What if I don't like a proposed change?
 
: You still have full control of your original code and mod pages; nobody can change those without your approval! You're free to reject a change someone proposes to your mod.
 
: You still have full control of your original code and mod pages; nobody can change those without your approval! You're free to reject a change someone proposes to your mod.
  −
; What is a Git repository?
  −
: Git is software that helps track changes to your code, and a repository is a folder containing your mod files with Git tracking. You can look up Git tutorials if you want to know more, but don't worry: you don't need to know how it works to use it!
      
; Does this apply for content packs?
 
; Does this apply for content packs?
Line 39: Line 36:  
; I already released the mod without a license. Can I add a license now?
 
; I already released the mod without a license. Can I add a license now?
 
: Yes. If you created the entire mod yourself, you can add or change the license anytime. If others contributed to the mod (including code, translations, or images), you'll need to either get permission from each contributor to relicense their contributions, or strip their changes out of the mod.
 
: Yes. If you created the entire mod yourself, you can add or change the license anytime. If others contributed to the mod (including code, translations, or images), you'll need to either get permission from each contributor to relicense their contributions, or strip their changes out of the mod.
 +
 +
; What is a Git repository?
 +
: Git is software that helps track changes to your code, and a repository is a folder containing your mod files with Git tracking. You can look up Git tutorials if you want to know more, but don't worry: you don't need to know how it works to use it!
    
==Make your code open-source==
 
==Make your code open-source==
Line 47: Line 47:  
This looks like a lot of steps, but don't worry: it's pretty straightforward, and you only need to do it once. If you need help, come ask in [[Modding:Community#Discord|#making-mods on the Stardew Valley Discord]]. :)
 
This looks like a lot of steps, but don't worry: it's pretty straightforward, and you only need to do it once. If you need help, come ask in [[Modding:Community#Discord|#making-mods on the Stardew Valley Discord]]. :)
    +
====Via VisualStudio====
 +
 +
Visual Studio has a pretty good git integration, documented here: https://learn.microsoft.com/en-us/visualstudio/version-control/git-create-repository?view=vs-2022
 +
 +
====Via SourceTree====
 
<dl>
 
<dl>
 
<dt>Create a Git repository</dt>
 
<dt>Create a Git repository</dt>
Line 66: Line 71:  
<li>On the repository page that appears, click the green "Clone or download" button and copy the URL:<br />[[File:Modding - copy GitHub repo URL.png]]</li>
 
<li>On the repository page that appears, click the green "Clone or download" button and copy the URL:<br />[[File:Modding - copy GitHub repo URL.png]]</li>
 
<li>In SourceTree, click ''File > Clone'' and paste the URL. Choose a destination path that's easy to access (like <samp>C:\source\StardewMods</samp>), and click 'Clone'.</li>
 
<li>In SourceTree, click ''File > Clone'' and paste the URL. Choose a destination path that's easy to access (like <samp>C:\source\StardewMods</samp>), and click 'Clone'.</li>
 +
<li>After cloning, navigate to repo settings (gear icon, top right)</li>
 +
<li>Click "Remotes" section</li>
 +
<li>Highlight the git path</li>
 +
<li>Click "edit" button</li>
 +
<li>Click on the globe icon to the right of the URL/path</li>
 +
<li>Highlight the project name</li>
 +
<li>Click "edit accounts" button</li>
 +
<li>Double-click on the Github account. An auth window will pop up</li>
 +
<li>The default auth method is set to OAuth. Change to "Personal Access Token."</li>
 +
<li>Input username and token</li>
 +
<li>If not already selected, make sure Protocol is set to "HTTPS" and Save.</li>
 
</ol>
 
</ol>
   Line 99: Line 115:     
[[es:Modding:Código abierto]]
 
[[es:Modding:Código abierto]]
 +
[[pt:Modificações:Open Source]]
 
[[ru:Модификации:Open source]]
 
[[ru:Модификации:Open source]]
528

edits

Navigation menu