Mod Creation/Enabling DevTools for the Steam and Epic Clients: Difference between revisions

added non-main branch instructions
(added non-main branch instructions)
Line 59: Line 59:
</ul>
</ul>
</ol>
</ol>
___
 
===Alternate Variation===
===Alternate Variation===
The following variant results in a cleaner directory without potential file name clashes. Note that the above does not clash for Combat Simulator + SEMI at the moment.
The following variant results in a cleaner directory without potential file name clashes. Note that the above does not clash for Combat Simulator + SEMI at the moment.
Line 145: Line 145:
<li>Add the following code to the parameters of package.json</li>
<li>Add the following code to the parameters of package.json</li>
<pre>"inject_js_end": "pathToYourFile/yourFileName.js"</pre>
<pre>"inject_js_end": "pathToYourFile/yourFileName.js"</pre>
</ol>
=Add Dev/Non-Main Branch Extensions to Chrome=
===Simple Installation===
'''Disclaimer:''' this installation method will never automatically update.
<ol>
<li>Navigate to https://gitlab.com/aldousWatts/SEMI or whichever repo you want.</li>
<li>On the left hand of the header, you should see a dropdown containing the word main. Click the dropdown, then select dev.</li>
<li>You should see a button in the header with a download icon. Click download, then .zip.</li>
<li>After the download completes, put the folder wherever you like. Extract the zip.</li>
<li>Open the link chrome://extensions/, enable Developer Mode in the top right.</li>
<li>Click the button Load unpacked in the header.</li>
<li>Navigate to the top-level directory of the unpacked extension. For SEMI, this is the one that contains the manifest, README, etc. Afterwards, click Select Folder.</li>
<li>After the extension loads, click update.</li>
<li>If you have the Chrome extension from the web store, ensure that you remove it.</li>
<li>Refresh the game.</li>
</ol>
===Managing Dev/Non-Main Branch Extensions w/ git===
This installation method will automatically fetch updates to dev/non-main branches.
<ol>
<li>Open your terminal to the location you want the folder to go.</li>
<li>Type the command git clone [email protected]:aldousWatts/SEMI.git into your terminal.</li>
<li>After it finishes cloning into the folder, cd into the folder then run git fetch && git checkout <branchname>.</li>
<li>Open the link chrome://extensions/, enable Developer Mode in the top right.</li>
<li>Click the button Load unpacked in the header.</li>
<li>Navigate to the top-level directory of the unpacked extension. For SEMI, this is the one that contains the manifest, README, etc. Afterwards, click Select Folder.</li>
<li>After the extension loads, click update.</li>
<li>If you have the Chrome extension from the web store, ensure that you remove it.</li>
<li>Refresh the game.</li>
</ol>
</ol>


{{Menu}}
{{Menu}}
[[Category:Guides]]
[[Category:Guides]]
454

edits