Original Source
- Original title: Debugging & Development with IntelliJ/Webstorm
- Original author: awhite
- Original date: January 30, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/debugging-development-with-intellij-webstorm.55982/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Learning Javascript
Summary
I am new to the forums but I thought I would share how you can do RPG Maker MV Javascript debugging and development with IntelliJ Idea. This will allow you to actually run and debug your game outside of the RPG Maker application. IntelliJ is a top-of-the line IDE designed for Java but extendable to other languages via plugins. I am making this how-to somewhat platform agnostic so there may be OS specific paths or settings that need to be tweaked. Such tweaks should be minimum and obvious to users of...
Archived First Post
I am making this how-to somewhat platform agnostic so there may be OS specific paths or settings that need to be tweaked. Such tweaks should be minimum and obvious to users of the OS.
Prerequisites
- Download IntelliJ (Community Edition is free but somewhat limited, EAPs are beta releases but are pretty stable).
Edit: Webstorm is IntelliJ optimized for Web/JS applications so you can/should use that instead if you are just doing RPG Maker development)
- Download NW.js - this is what RPG maker uses to launch Node.js apps inside a web-kit container locally
- In your game project's root directory create a package.json file with the following contents:
{
"name": "KADOKAWA/RPGMV",
"main": "index.html",
"js-flags": "--expose-gc",
"window": {
"title": "",
"toolbar": false,
"width": 816,
"height": 624,
"icon": "icon/icon.png"
}
}
Note: these are probably flexible but this is the exact json used by RPG Maker.
Setup IntelliJ
Note: If this is your first time launching IntelliJ there may be some setup wizards to walk through. You should be able to accept the defaults.
- Preferences -> Plugins -> Browse Repositories -> NodeJS -> Install -> Restart IDE
- File -> Open -> Select your game root directory
- Run -> Edit Configurations -> "+" (top left hand corner) -> Node-Webkit
Name: Your Game Name
- Node-Webkit App: game root directory
- Working Directory: game root directory
- Node-Webkit Interpreter: path to nwjs that was installed above (on OSX for example you may use /Applications/nwjs.app/Contents/MacOS/nwjs)
- Ok
[*]Now you can either Run -> Run "Game Name" or Debug "Game Name"
Now you should be able to launch and debug your game with a power and flexible IDE. IntelliJ has a number of features that make it ideal for Javascript development over other editors and it's debugging tools are far superior to the standard Chrome Dev Tools for most tasks.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...