VSCode RPGMakerMV Intellisense [UPDATE - Sublime & Atom Support!]

Discussion in 'Useful Development Tools' started by Kino, Jul 21, 2017.

  1. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,780
    Likes Received:
    9,451
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    Yes, language is set to typescript. But not that it matters, because everytime I launch Sublime text 2, it tells me that a plugin may not be responding due to huge call time (0.5 seconds) or whatever it is called, in other words something is called, but it takes so long that the interpreter decides to stop calling it and just skip it.
    It started popping up exactly after I installed my typescript plugin into Sublime text 2. So the fault is in the sublime text plugin itself.
     
    #21
  2. Kino

    Kino EIS Game Dev Veteran

    Messages:
    515
    Likes Received:
    672
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    That's unfortunate; I wish I could help with that. That's what worked for me, so it may just be the size of the file itself. I might have to make a stripped down version also. I'll keep you posted.

    Otherwise, VSCode is a pretty good alternative to sublime and works on all PCs and it's not visual studio. It's a lightweight text editor with a lot of the same sublime features.
     
    #22
    LTN Games likes this.
  3. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,780
    Likes Received:
    9,451
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    I'll check it out :} Tried Atom, but that is a heavyweight one with very misplaced install directory, so decided not to use it...
     
    #23
  4. Kino

    Kino EIS Game Dev Veteran

    Messages:
    515
    Likes Received:
    672
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    Totally agree there; Atom isn't as nice to use for me. Takes forever to open a project.
     
    #24
    LTN Games likes this.
  5. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,780
    Likes Received:
    9,451
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    Yay, in VSCode it works! Took a while to load, but works now ^_^ Awesome!
     
    #25
    Kino likes this.
  6. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,574
    Likes Received:
    1,342
    Location:
    Canada / Québec
    First Language:
    French
    Primarily Uses:
    RMMV
    you can add link for download it.
    https://github.com/pixijs/pixi.js/releases

    simply replace the version rmmv by this new version (work good without bug)
    This version will also give some extra awsomes features.
    [​IMG]
    aef34ae33.png

    I know you work on a tutorial with the eventlistener.
    It would be nice if you could add a section that also deals with PIXI.ticker

    ex:
    PHP:
    var myPixiListener = new PIXI.ticker.Ticker;
    // and add function listener inside (eatch tiker frame maybe?!)
      
    myPixiListener.add(function (delta) {
          
    // stuff
      
    }
    [/
    B]
    I test its operation and it works very well to listen objects.
    The operation is similar to the event Listener, but probably more efficient and much more manageable.
    But there is not much information on this subject.
    @+ :rock-left:

     
    Last edited: Aug 13, 2017
    #26
    Kino likes this.
  7. hc phoenix

    hc phoenix Villager Member

    Messages:
    20
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    RMMV
    Hi @Kino, this is really helpful. Question, though: most MV plugins I've seen add functions on to existing classes and/or encapsulate them with namespace functions; with typescript using these library definitions is that still possible? I haven't found a way that doesn't throw errors all over the place. Do you have some sample code?
     
    #27
    Kino likes this.
  8. Jomarcenter

    Jomarcenter jomarcenter-MJM Veteran

    Messages:
    1,205
    Likes Received:
    135
    Location:
    philippines
    First Language:
    ENGLISH
    Primarily Uses:
    RMMV
    Hey, I am having trouble setting up the intellisense with VSCode or Visual Studio 2015 & 2017 as nothing happened when I setting up. This intellisense setup gonna help me in working on my first script.
     
    #28
  9. Kino

    Kino EIS Game Dev Veteran

    Messages:
    515
    Likes Received:
    672
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    It only works on VSvode I believe and not Visual Studio.

    You're having issues? What's the issue no pop up with intellisense?
     
    #29
  10. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,537
    Likes Received:
    14,196
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    I keep getting this error for some reason :(
    upload_2017-12-11_17-16-25.png
     
    #30
  11. AceOfAces_Mod

    AceOfAces_Mod Engineering to infinity! Veteran

    Messages:
    1,694
    Likes Received:
    1,143
    First Language:
    Greek
    Primarily Uses:
    RMVXA
    @Archeia I think you'll need to install jshint through nodejs first.
    EDIT: Do you have the JSHint extension installed? Maybe the extension throws the error.
     
    Last edited: Dec 11, 2017
    #31
  12. Kino

    Kino EIS Game Dev Veteran

    Messages:
    515
    Likes Received:
    672
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    I agree with Aces you'll need to install jshint if vscode is giving you such an error.

    I wish I could make the process easier.
     
    #32
  13. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,537
    Likes Received:
    14,196
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    I do have JSHint installed actually...:kaoback:
     
    #33
  14. Kino

    Kino EIS Game Dev Veteran

    Messages:
    515
    Likes Received:
    672
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    Hmmmm okay I'll see what I can do. I'll see what the issue is as I never had the jshint issue.
     
    #34
  15. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,537
    Likes Received:
    14,196
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    I'll try to uninstall node and everything later and see if it fixes everything.
     
    #35
    Kino likes this.
  16. Kino

    Kino EIS Game Dev Veteran

    Messages:
    515
    Likes Received:
    672
    Location:
    United States
    First Language:
    English
    Primarily Uses:
    RMMV
    Hopefully it works for you!
     
    #36
  17. Jomarcenter

    Jomarcenter jomarcenter-MJM Veteran

    Messages:
    1,205
    Likes Received:
    135
    Location:
    philippines
    First Language:
    ENGLISH
    Primarily Uses:
    RMMV
    Sorry for the late reply Like I say VS code or Visual studio itself nothing pop up on my side when i try to type in something.
     
    #37
  18. Spoopy

    Spoopy Web Developer, PHP, NodeJS, RubyOnRails, Sass, HTM Veteran

    Messages:
    78
    Likes Received:
    43
    Location:
    Cape Town
    First Language:
    English
    Thank you for this to you and the others involved, much appreciated. Also thank you for the Node.JS plugin tutorial on your site for MV.
     
    #38
  19. Jonforum

    Jonforum Veteran Veteran

    Messages:
    1,574
    Likes Received:
    1,342
    Location:
    Canada / Québec
    First Language:
    French
    Primarily Uses:
    RMMV
    lol ok
    PHP:
    {
      
    "compilerOptions": {
        
    "target":"es6"
      
    },
      
    "files": [
        
    "./rmmv.d.ts",
        
    "./rmmv-pixi.d.ts"   
      
    ],
      
    "include": [
        
    "./*",
        
    "./plugins_dev/*.js",
        
    "./plugins/*.js"
      
    ],
      
    "exclude": [
        
    //"./plugins/*" ??? fix
      
    ]
    }
    I wondered why it does not work with my plugins in this directory.
     
    #39
    Driw likes this.
  20. cetra777

    cetra777 Warper Member

    Messages:
    3
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    Hello @Kino,

    I am new to the coding side of RPG Maker and having a great deal of fun learning. This is a great resource! Thanks for you work!
     
    #40

Share This Page