-
Notifications
You must be signed in to change notification settings - Fork 85
Debugging Mods
The Desktop version of Game Dev Tycoon is powered by nwjs which is a chromium-based web browser that allows offline html apps. Nwjs ships with great debugging tools which you can leverage to develop and debug your mods. Those debugging tools are only available when using the SDK version.
Therefore nwjs needs to be replaced with the SDK version as a first step.
- Download: nwjs SDK for windows 32bit
- Copy everthing within the folder "nwjs-sdk-v0.49.0-win-ia32" to the installation folder of Game Dev Tycoon and overwrite the existing files.
- Download: nwjs SDK fow Mac OS X 64bit
- Copy the folders Frameworks and MacOS within nwjs/Contents to "Game Dev Tycoon.app/Contents" and replace it.
After that you can debug Game Dev Tycoon. (When the game is running, just right click anywhere and click on "Inspect")
The Desktop version of Game Dev Tycoon is powered by node-webkit which is a chromium-based web browser that allows offline html apps. Node-webkit ships with great debugging tools which you can leverage to develop and debug your mods.
To debug mods, you can enable a toolbar in Game Dev Tycoon by editing the package.json
file which lives inside the root folder of the Game Dev Tycoon installation.
Just set the toolbar
parameter that is visible inside the package.json
to true.
When you start Game Dev Tycoon, you can see the node-webkit toolbar. Remember that you can also switch into windowed mode from the games settings menu which will make debugging easier.
In the toolbar, just click the 'stack' icon which then brings up the developer tools. Go to Sources
and open the left side-bar and you will see all loaded JavaScript files.
Once you open a file you can set breakpoints and access all sorts of other debugging tools.
Alternatively you can use the remote debugging feature of node-webkit as described in HOWTO Debug Game Dev Tycoon