[Sublime Text] RPG Maker MV Snippet for plugin developement

Discussion in 'Useful Development Tools' started by Jomarcenter, Nov 30, 2019.

  1. Jomarcenter

    Jomarcenter jomarcenter-MJM Veteran

    Messages:
    1,237
    Likes Received:
    173
    Location:
    philippines
    First Language:
    ENGLISH
    Primarily Uses:
    RMMV
    The semi-Complete snippet for the RPG Maker MV plugin development snippets for Sublime text 2 and 3

    from the Visual Studio code version, now ported to sublime. This add-on allowed to autocomplete all the necessary code for easier plugin developements

    Source code: https://github.com/jomarcenter-mjm/RMMVSublimeSnippet
    Snippet List:
    Code:
    # rmmvpluginsnippet List of Prefixes
    
    All snippet always start with "!rmmv" and @type
    
    ## Content
    
    This list all the content so you can easily start making the plugin
    ### Initial set
    !rmmvStart - This create the body of the plugin
    !rmmvStructContent - This create the initial Struct (please put this at the bottom)
    
    ## parameters
    this is the list of parameters you can use in MV Plugin
    
    ### Numeric
    @type float - adds a float parameters
    @type limitFloat - adds a limited float parameters
    @type int - adds a int parameters
    @type limitint - adds a limited int parameters
    
    ### Condition
    @type bool - This creates a bool parameters
    
    ### Text
    @type note - This create a note parameters
    @type string - This create the text parameters
    
    ### Files
    @type file - This creates a generic file parameters
    @type audio - this creates a audio file parameters
    @type image - this creates a image file parameters
    
    ### Struct
    @type struct - This create the struct parameters, if you making the struct please use !rmmvStructContent first.
    
    ### Objects
    @type class - creates a class parameters parameters
    @type weapon - creates a weapon class parameters
    @type actor - creates a actor class parameters
    @type animation - create a animation class parameters
    @type skill - create a skill class parameters
    @type item - create a item class parameters
    @type armor - create a armor class parameters
    @type enemy - create a enemy class parameters
    @type troop - create a troop class parameters
    @type state - create a state parameters
    @type variable - create a variable object parameters
    
    ### Lists
    @type ListsString - create a "string[]" parameters
    @type ListFile - create a "file[]" parameters
    @type ListString - create a "string[]" parameters
    @type ListsStruct - create a "Struct<struct>[]"parameters
    
    ### Misc
    !rmmvParent - This create "@parent" parameters, why it is separate, well you tell me
    Installation

    Via Package Control:
    As of now Package control still haven't reply to my pull request ( https://github.com/wbond/package_control_channel/pull/7770 )to add to the default collection but check with alternative installation using Package Control

    Alternative Installation:
    Via Package Control (Automatic)
    you may start at 1a or 1b
    1a. press "Ctrl + Shift + P"
    2a. type in "Package Control: Add repository"
    3a. On a prompt add this link
    Code:
    https://raw.githubusercontent.com/jomarcenter-mjm/MJM-SublimePackageControlChannel/master/repositories/mjm.json
    [​IMG]
    1b. go to preferences > Package Settings > Package Control > Setting - user
    2b find "repositories"
    3b. below repositories type in
    Code:
    https://raw.githubusercontent.com/jomarcenter-mjm/MJM-SublimePackageControlChannel/master/repositories/mjm.json
    [​IMG]
    4. Afterward press "Ctrl + Shift + P"
    5. type in "Package Control: Install Packages
    6. Type in RPGMaker
    Now there should be RPGMaker MV Add-on Snippet in the list if not Repeat step 2 until it show up (please delete the incorrect repository using Package Control: Remove repository after fixing the problem)
    [​IMG]
    7. The package should been install

    License: MIT License
    Copyright 2019 MJM Creative Works and Ideas

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Thanks:
    Special thanks to Yeechan Lu (orzFly) for making the list of parameters from the Plugin editor demo in the past,
    without it the snippets might be incomplete or I have no idea what I am doing.
    Shaz for the suggestion to port the VS Code Version to sublime
    The RPG Maker Community as a whole for helping out in the development of this extension

    Other version:
    For VS Code - https://forums.rpgmakerweb.com/inde...er-mv-snippet-for-plugin-developement.114922/
     
    Last edited: Nov 30, 2019
    #1
    Eliaquim likes this.

Share This Page