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

no edit summary
m (Tweaked the wording for Epic instructions)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
For mod developers, it may be beneficial to enable DevTools within the Steam or Epic client. This can be achieved by following the process detailed below. This is a one off operation and does not need to be repeated, that is unless the Steam or Epic client is uninstalled or reinstalled.
For mod developers, it may be beneficial to enable DevTools within the Steam or Epic client. This can be achieved by following the process detailed below. This is a one off operation and does not need to be repeated, that is unless the Steam or Epic client is uninstalled or reinstalled, or when the game client updates.
=== Enabling DevTools for Steam ===
=== Enabling DevTools for Steam & Epic ===
# Download Melvor Idle on Steam, and find the installation folder. e.g. <code>[...]/steamapps/common/Melvor Idle</code>
<ol>
#* Not sure where it's installed? Go to Melvor Idle in your Steam library, right click, and go to <code>Manage</code> <code>Browse local files</code>.
<li>Ensure Melvor Idle is closed - modifying game files while the game is running may result in unexpected behaviour</li>
# Download the NW.js SDK (Windows: v0.71.1; other OS: v0.49.2). The version might change in the future, but you need the specific one listed.
<li>Download Melvor Idle on Steam or Epic, and find the installation folder. e.g. <code>[...]/steamapps/common/Melvor Idle</code>
#* '''64bit Windows''': https://dl.nwjs.io/v0.71.1/nwjs-sdk-v0.71.1-win-x64.zip
<br/>Not sure where it's installed? It is possible to locate the installation folder through the Steam & Epic clients:</li>
#* '''64bit Linux''': https://dl.nwjs.io/v0.49.2/nwjs-sdk-v0.49.2-linux-x64.tar.gz
<ul>
#* '''Other''': https://dl.nwjs.io/
<li>'''Steam:''' Locate Melvor Idle within your library, right click, then click <code>Properties</code> - a window should appear. Within this window, click <code>Installed Files</code> → <code>Browse..</code></li>
# Extract all zipped files.
<li>'''Epic:''' Locate Melvor Idle within your library, right click, then click <code>Manage</code> - a window should appear. Within this window, click on the folder icon within the Installation section
# Place the '''contents''' of the <code>nwjs-sdk*</code> folder in the Melvor Idle installation folder.
</ul>
#* The current contents of the <code>nwjs-sdk-v0.71.1-win-x64</code> folder has 22 total items. Moving this to the Melvor Idle folder will overwrite over 100 existing files.
<li>Open the <code>package.nw</code> folder then <code>package.json</code>. Inside <code>package.json</code>, find <code>"chromium-args":</code> and then remove <code>--disable-devtools</code> and save the changes.</li>
#* If it didn't ask you to overwrite any files then you did something wrong.
<li>Verify DevTools have been successfully enabled by opening Melvor Idle, then pressing the F12 key once loaded. If successful, the DevTools window should appear</li>
# Place the <code>icons</code>, <code>styles</code>, and source directories (i.e. <code>scripts</code> or <code>sources</code>) of the extracted extensions in the Melvor Idle installation folder.
</ol>


=== Enabling DevTools for Epic ===
'''IMPORTANT''': When running commands through the console, you must switch from 'Top' to 'game' in the top left corner or else any commands will not function properly. This must be done every time the console is opened.
# Download Melvor Idle on Epic, and find the installation folder. e.g. <code>[...]/Program Files/Epic Games/MelvorIdleXLcGb</code>
 
#* Not sure where it's installed? Open the Epic Launcher and navigate to the Library then right click Melvor Idle and 'Manage'. Click the folder icon in Installation.
[[File:DevToolsSteamEpic.png|frameless]]
# Open the <code>package.nw</code> folder then <code>package.json</code>. Inside <code>package.json</code>, find <code>"chromium-args":</code> and then remove <code>--devtools-flags=disable</code> and save the changes.


{{ModGuideNav}}
{{ModGuideNav}}
{{Menu}}
{{Menu}}