Problems with plugin and syntax

Discussion in 'Javascript/Plugin Support' started by Shinyshenanigans, Sep 30, 2019.

  1. Shinyshenanigans

    Shinyshenanigans Warper Member

    Messages:
    3
    Likes Received:
    0
    First Language:
    swedish/english
    Primarily Uses:
    VNM
    Hi!
    I've been trying to make this plugin work:

    However, it's been giving me a syntax error. I don't know any programming so I don't really know what I'm looking at.
    Here's some screenshots I took:
    Here's the plugin code: http://woodpenguin.web.fc2.com/MV_Plugin/plugins/MPP_MapLight.js
    Let me know if there's anything I can do to help. Thank you so very much for your time.
     
    #1
  2. Poryg

    Poryg Dark Lord of the Castle of Javascreeps Veteran

    Messages:
    3,987
    Likes Received:
    10,085
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    That's a typical sign of a wrong notetag.
     
    #2
  3. Ossra

    Ossra Formerly Exhydra Veteran

    Messages:
    848
    Likes Received:
    615
    First Language:
    English
    Primarily Uses:
    RMMV
    @Shinyshenanigans Hmm, it appears as though the problem might be from a configuration issue. Open the configuration of that plugin within the Plugin Manager and make certain that each line in the 'Light Colors' option are separated with commas.


    EDIT: The 'Value' for 'Light Colors' should also be encapsulated in square brackets (example : ["0,0,0","255,255,255"]).
     
    Last edited: Sep 30, 2019
    #3
  4. Shinyshenanigans

    Shinyshenanigans Warper Member

    Messages:
    3
    Likes Received:
    0
    First Language:
    swedish/english
    Primarily Uses:
    VNM
    I'm posting two more photos:

    @Poryg Notetag is the note that you can write in for maps and weapons etc right? During this test I left it empty, more info in image description.

    @Ossra I believe that one of the photos is of the config. I've never seen a config. look like this. I've tried to download it 3-4times but it always looks like this.

    Thank you both for your time.
     
    #4
  5. Shinyshenanigans

    Shinyshenanigans Warper Member

    Messages:
    3
    Likes Received:
    0
    First Language:
    swedish/english
    Primarily Uses:
    VNM
    I also tested the note by writing "<Darkness:210>", nothing happened.
     
    #5

Share This Page