Skip to content
danielklug edited this page Oct 13, 2020 · 18 revisions

For v1.8.0 and above

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.

Windows:

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

Mac OSX:

  • 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")

Until v1.7.1

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

Clone this wiki locally