Are you using an IDE?

Discussion in 'Javascript/Plugin Support' started by Roguedeus, Oct 25, 2015.

  1. Roguedeus

    Roguedeus It's never too late to procrastinate... Veteran

    Messages:
    524
    Likes Received:
    106
    First Language:
    English
    Primarily Uses:
    N/A
    I am curious of the number of people working with MV's code in an IDE (or well set up Text Editor) and how you manage to do so.

    Specifically:

    • Your setup and the steps you take to get it working.
    • Does it help with play testing? If so how?



    For the sake of discussion:

    It seems to me that there are some rather complex requirements just to get console log, and reliable error feedback. (Local Host, etc...) Creating a fairly significant barrier to entry... Which sort of defeats the purpose of RPGMaker catering to the less code inclined.

    In contrast, VXAce had a simple code tool and test runs displayed the console front and center. Super fast. Super easy. Though I always used Sublime Text for coding, the fact that Ruby was so user friendly, made things markedly easier. MV and the complexity of JavaScript, in comparison, looks intimidating.

    Personally, I am hoping I won't have to setup a Local Host just to get reliable feedback from writing plugins.
     
    #1
    babykgar likes this.
  2. Hudell

    Hudell Dog Lord Veteran

    Messages:
    3,310
    Likes Received:
    2,902
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    I use a localhost, but because I want to, I didn't even try to hit the "play test" button on MV yet.

    I also write everything on sublime, but I already did that with ace too.
     
    #2
  3. Siebenkeim

    Siebenkeim Villager Member

    Messages:
    23
    Likes Received:
    5
    I use Notepad++/Brackets and XAMPP as webserver to see the console output (in the browser).
     
    #3
  4. Zalerinian

    Zalerinian Jack of all Errors Veteran

    Messages:
    4,695
    Likes Received:
    921
    Location:
    The Internet.
    First Language:
    English
    Primarily Uses:
    N/A
    I use Sublime Text 3 as my editor, and I either use my local webserver (XAMPP), or, much more commonly, I use the desktop client.

    I find that sublime makes it easier to edit, because I have all the scripts separated by class name and in folders regarding what file the classes came from, so it's actually really nicely organized:

    [​IMG]
     
    #4
  5. Hudell

    Hudell Dog Lord Veteran

    Messages:
    3,310
    Likes Received:
    2,902
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    And we can just type the name of a method and hit F12 to check it's code :D
     
    #5
  6. Roguedeus

    Roguedeus It's never too late to procrastinate... Veteran

    Messages:
    524
    Likes Received:
    106
    First Language:
    English
    Primarily Uses:
    N/A
    Would anyone be willing to write up a 'How To' for setting up XAMPP to work with a MV project, and how one might use it to make things easier?

    I take it you are actually play testing. Just via the local host rather than via the tool set test.

    I am exceptionally ignorant regarding most code concerns. Any further details you can offer, will help a lot.
     
    Last edited by a moderator: Oct 25, 2015
    #6
    babykgar likes this.
  7. Seriel

    Seriel Veteran Veteran

    Messages:
    3,018
    Likes Received:
    508
    Location:
    Wales, UK
    First Language:
    English
    Primarily Uses:
    Other
    /me downloads Sublime.
     
    #7
  8. Zalerinian

    Zalerinian Jack of all Errors Veteran

    Messages:
    4,695
    Likes Received:
    921
    Location:
    The Internet.
    First Language:
    English
    Primarily Uses:
    N/A
    Well, that won't separate the classes themselves, I spent the time to actually separate them into separate files. That experience sucked ._.   But it was only like, 20 minutes.
     
    #8
  9. Hudell

    Hudell Dog Lord Veteran

    Messages:
    3,310
    Likes Received:
    2,902
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    You could have done it with a single linux shell command :X

    There are probably tools to do this on windows too.
     
    Last edited by a moderator: Oct 25, 2015
    #9
  10. Siebenkeim

    Siebenkeim Villager Member

    Messages:
    23
    Likes Received:
    5
    1. Download XAMPP: https://www.apachefriends.org/de/index.html

    2. Install it (Apache is the most important)

    3. Open XAMPP Control and click on "Config" (Apache) and select "httpd.conf"

    4. Change the DocumentRoot and Directory to your MV Project Folder (where the index.html is located)

    5. Start Apache and type "localhost" in the browser

    If you have Skype you must also change the ports in the httpd.conf and httpd-ssl.conf or deactive "use port 80 and 443" in skype (i have only the german client :/ )
     
    Last edited by a moderator: Oct 25, 2015
    #10
    Archeia and Seriel like this.
  11. DarknessFalls

    DarknessFalls Rpg Maker Jesus - JS Dev. Veteran

    Messages:
    1,393
    Likes Received:
    209
    First Language:
    English
    I use atom, browserify and gulp to compile my scripts. I also use Babel to use modules and export of those modules.
     
    #11
  12. Roguedeus

    Roguedeus It's never too late to procrastinate... Veteran

    Messages:
    524
    Likes Received:
    106
    First Language:
    English
    Primarily Uses:
    N/A
    I do have Skype. Are there specific ports I should change it to?

    edit:

    This helped: http://stackoverflow.com/questions/11294812/how-to-change-xampp-apache-server-port
     
    Last edited by a moderator: Oct 25, 2015
    #12
  13. Siebenkeim

    Siebenkeim Villager Member

    Messages:
    23
    Likes Received:
    5
    I would use something like 8080 and for SSL 444.

    Then you need open "localhost:8080" in the browser.
     
    #13
  14. Roguedeus

    Roguedeus It's never too late to procrastinate... Veteran

    Messages:
    524
    Likes Received:
    106
    First Language:
    English
    Primarily Uses:
    N/A
    Oh now THIS is cool.

    localhost:1234 in the browser and SHAZAM! Fully working test project.

    Thank YOU.
     
    Last edited by a moderator: Oct 25, 2015
    #14
  15. Seriel

    Seriel Veteran Veteran

    Messages:
    3,018
    Likes Received:
    508
    Location:
    Wales, UK
    First Language:
    English
    Primarily Uses:
    Other
    I tip my hat to you.
    If I run my game through XAMPP, the playtest lag dissapears.


    btw, if you type http://localhost/?test it loads in testplay mode, with Debug Options.
     
    #15
  16. Roguedeus

    Roguedeus It's never too late to procrastinate... Veteran

    Messages:
    524
    Likes Received:
    106
    First Language:
    English
    Primarily Uses:
    N/A
    This may seem obvious. But where would I be able to see the console output?
     
    Last edited by a moderator: Oct 25, 2015
    #16
  17. Seriel

    Seriel Veteran Veteran

    Messages:
    3,018
    Likes Received:
    508
    Location:
    Wales, UK
    First Language:
    English
    Primarily Uses:
    Other
    In Firefox I just hit F12.

    [​IMG]
     
    #17
    Siebenkeim likes this.
  18. Siebenkeim

    Siebenkeim Villager Member

    Messages:
    23
    Likes Received:
    5
    Now you can also use "console.log(arg)" and get formatted output like the content of an array or the complete object definition ...

    EDIT:

    and of course syntax error like missing braces
     
    Last edited by a moderator: Oct 25, 2015
    #18
  19. Woratana

    Woratana Veteran Veteran

    Messages:
    101
    Likes Received:
    98
    First Language:
    Thai
    Speaking of localhost, this reminds me of Bracket, text editor from Adobe might be a good choice.

    If I remembered correctly, it does create localhost and also live reload for you.

    @Zalerinian: Would you mind sharing zip file of that folder (the one in your screenshot) >_<?
     
    #19
  20. Zalerinian

    Zalerinian Jack of all Errors Veteran

    Messages:
    4,695
    Likes Received:
    921
    Location:
    The Internet.
    First Language:
    English
    Primarily Uses:
    N/A
    I have been given approval to do so, but I have some things I need to do before I'm allowed to officially post it. I'll work on them after dinner ^-^
     
    #20
    Woratana likes this.

Share This Page