LunaSense - RPGMakerMV/MZ Intellisense

● ARCHIVED · READ-ONLY
Started by LunaTechsDev 11 posts View original ↗
  1. LunaTechsLogo_03BlkBG.png
    Hello all, it's Wednesday again; this is Kino(EISKino) from the LunaTechs team.

    Today, we're bringing to you RPGMakerMV/MZ IntelliSense for use within your project whether you're making plugins or just doing edits to one, this will come in handy. The instructions are similar to the ones we provided for the original project for RPGMakerMV, therefore these definitions should work the same for the same targets.

    RPGMakerMV/MZ Intellisense
    These two files add IntelliSense to your RPGMakerMV or RPGMakerMZ code base when working with plugins, the base code, etc in Visual Studio Code. You can see every class available in the codebase and the methods attached to them. Furthermore, you can even see the outputs of methods.

    Features
    • PIXI.js documentation (version 4.5 for MV)
    • PIX.js documentation (version 5.2.4 for MZ)
    • MV/MZ Scenes
    • MV/MZ Game Objects
    • MV/MZ Windows
    • MV/MZ Sprites
    • MV/MZ Managers
    • MV/MZ Globals

    Screenshots

    Screen Shot 2020-09-02 at 8.41.06 PM.png



    Download


    LunaLite MV/MZ Files


    You can download the above files for your engine by:
    1. Clicking the link
    2. Click the file name
    3. Right click raw in the right corner
    4. Save as
    5. Follow the instructions below




    Instructions - VS Code
    1. Download both files; keep the file names.
    2. Place the jsconfig.json and the lunalite-pixi-mv.d.ts/lunalite-pixi-mz.d.ts file in your js/ directory.
    3. Make sure you open your RPGMakerMV project as a folder (Right click -> Open with Code)
    4. Reload Visual Studio Code
    5. Enjoy The Intellisense!
    Instructions - Sublime Text
    1. Download the Typescript plugin for Sublime via Package Manager.
    2. Place the rmmv.d.ts file in your game's js/plugins directory (if you create plugins in that folder); if you use a different folder, place the lunalite-pixi-mv.d.ts/lunalite-pixi-mz.d.ts file in that folder.
    3. Set your language for your JavaScript file to 'TypeScript' in the bottom right corner of Sublime.
    4. Enjoy!
    Instructions - Atom
    1. Download the Typescript plugin in Atom via the Package Manager.
    2. Place the lunalite-pixi-mv.d.ts/lunalite-pixi-mz.d.ts in your js/plugins directory (if you create plugins in that folder); if you use a different folder, place the rmmv.d.ts file in that folder.
    3. Save your JavaScript file as .ts and make sure your language type is 'Typescript' in the bottom right of Atom.
    4. Enjoy!
    5. When you're done editing your plugin, simply save it as a .js

    Note: if you have any issues, please response on this thread. If the jsonconfig.json, has an error in it for you not having the lunalite-pixi-mv.d.ts or lunalite-pixi-mz.d.ts because you don't need it for your engine, just remove it.
  2. Oh god, that is super helpful!
    I remember the first day that I found the MV Version...
    Thank you so much!!! :kaoluv:
  3. Glad it could be of use to you!
  4. You are a hero. For the record, I'm using Visual Studio instead of VSCode and your intellisense file still works perfectly. Thanks a bunch!
  5. Glad it's helpful to you!
  6. This is indeed very helpful when you do coding, great job!
  7. Dear VSCode,
    I promise that $gameParty.gainGold(cashmunny) is a real function of Game_Party-
    HERE IS THE EVIDENCE.

    Thank you, I had one for MV I was using (in MZ, because something is better than nothing) that seemed to be incomplete.
  8. Hey there @Kino is there a way to use the intellisense feature with Webstorm by JetBrains too? Do you think you can add a short guide for setting it up for Webstorm too? Thanks in advance!
    :ptea:
  9. Kurochan said:
    Hey there @Kino is there a way to use the intellisense feature with Webstorm by JetBrains too? Do you think you can add a short guide for setting it up for Webstorm too? Thanks in advance!
    :ptea:
    I do my plugin development in Webstorm myself, and dissected the uber long singular typescript definition file into multiple files, and stuffed them in a folder elsewhere.

    Feel free to observe my setup over here:
    ca/chef-adventure/js at ch3-v0.0.1 · je-can-code/ca
    ./defs contains the various definition files (broken up from the very big one).
    ./ (root) contains the jsconfig file.
    ./plugins contains all the code that the jsconfig file defines types for.

    Webstorm seems to have none-minimal issues for me comprehending this (the extensions for stuff like String and Number are hit and miss and I have no idea why).
  10. I don't know if I understand the instructions... at least here nothing...

    Make sure you open your RPGMakerMV project as a folder (Right click -> Open with Code)

    This is the option in Visual Studio Code to open a folder, right? I need open the main folder of the project?