OcRam - Lights plugin (MZ/MV)

● ARCHIVED · READ-ONLY
Started by OcRam 300 posts Page 5 of 15 View original ↗
  1. OcRam said:
    Hi,

    You need to use "light_bg" command (see help section for more information) to darken environment bg light then you can use <light...> tags.

    Yeah sorry, I figured it out. Your plugin is amazing, and I'm trying my best to understand it.
    I've read the help section multiple times but until now I've only used simple lights systems, yours looks very complete, and I'm sure I can achieve great things with it.

    Sorry to bother you with another question but I think I understand your plugin command tints the entire screen with an absolute value rather than a relative one, but is there a workaround for overlays ? My fogs and overlays gets tinted too and I went from this :
    Spoiler
    1588001794483.png

    To this :

    Spoiler
    1588002182247.png
  2. belatucadrus said:
    Yeah sorry, I figured it out. Your plugin is amazing, and I'm trying my best to understand it.
    I've read the help section multiple times but until now I've only used simple lights systems, yours looks very complete, and I'm sure I can achieve great things with it.

    Sorry to bother you with another question but I think I understand your plugin command tints the entire screen with an absolute value rather than a relative one, but is there a workaround for overlays ? My fogs and overlays gets tinted too and I went from this :
    Spoiler
    View attachment 141209

    To this :

    Spoiler
    View attachment 141210
    Thank you for the message,

    I'll check what I can do about that - But light layer must be whole screen (light sources will 'burn' holes to this layer) and only BG parameters you can fiddle is color and opacity.
  3. I receive this error upon trying to make use of this, what's wrong?
  4. Tuomo L said:
    I receive this error upon trying to make use of this, what's wrong?

    It looks like a compatibility issue with one of your plugins
  5. Tuomo L said:
    I receive this error upon trying to make use of this, what's wrong?
    I had the same issue @Tuomo L and a plugin was conflicting. The plugins I'm using causing the issue are ICFSoft_MainUtility and ICFSoft_ParamsCore to get different parameters outside of the "standard". When they are off, it works and when they are on, it doesn't. I think it has to do something with how the utility plugin works as an SDK with some weird code.

    @OcRam, would it be possible to make it compatible, or even in the future make a plugin that allows custom parameters? (I have a shield block and accuracy that is not a percent). I'd be happy to discuss further via DM.
  6. Tuomo L said:
    I receive this error upon trying to make use of this, what's wrong?
    dragonx777 said:
    I had the same issue @Tuomo L and a plugin was conflicting. The plugins I'm using causing the issue are ICFSoft_MainUtility and ICFSoft_ParamsCore to get different parameters outside of the "standard". When they are off, it works and when they are on, it doesn't. I think it has to do something with how the utility plugin works as an SDK with some weird code.

    @OcRam, would it be possible to make it compatible, or even in the future make a plugin that allows custom parameters? (I have a shield block and accuracy that is not a percent). I'd be happy to discuss further via DM.
    Thank you for the messages,

    Very often conflicting plugins can be fixed with correct plugin order. Usually plugins with destructive declarations should be on the top and non-destructive plugins (using "aliases" to call original methods) should be at bottom.

    If you got lot of different plugins it can be hard to get them work together perfectly.

    Also I would like to have links to the plugins that are causing problems that I can check them.
  7. OcRam said:
    Thank you for the messages,

    Very often conflicting plugins can be fixed with correct plugin order. Usually plugins with destructive declarations should be on the top and non-destructive plugins (using "aliases" to call original methods) should be at bottom.

    If you got lot of different plugins it can be hard to get them work together perfectly.

    Also I would like to have links to the plugins that are causing problems that I can check them.
    When I get to my laptop later today, I’ll send the links. My apologies for not getting them initially. Thanks much for looking into it.
  8. @OcRam here are the links to the plugins. I have a suspicion that it's the Main Utility plugin that's the culprit. I rearranged my plugin list a few different ways and still had the same issue.


    ICF-Soft Main Utility
    ICF-Soft Params Core
  9. dragonx777 said:
    @OcRam here are the links to the plugins. I have a suspicion that it's the Main Utility plugin that's the culprit. I rearranged my plugin list a few different ways and still had the same issue.


    ICF-Soft Main Utility
    ICF-Soft Params Core
    Hello,

    I took a look at these plugins and it seems it alters notetags and obj._lightData is removed when my updateLights function is called.

    I'll let you know if I find work-around for this.
  10. Latest version - v2.05 (released 2020/05/11)
  11. OcRam said:
    Latest version - v2.05 (released 2020/05/11)

    awesome! Many thanks! I’ll test later tonight.
  12. Tuomo L said:
    I receive this error upon trying to make use of this, what's wrong?

    Often it's an order problem. I had it with Yanfly's MiniEventLabel. Also, Ocram's passages does not work if placed below Yanfly's RegionRestriction.

    So try moving them around :)
  13. @OcRam spot on once again. The update works perfectly and I can keep my current plugin order.
  14. Forgive me if I'm missing something in the documents or thread, but how exactly would I go about giving the player a flashlight effect?
  15. @OcRam

    Is it possible to give to the player the ex effects lights?
    Also, how can i check if an event or the player is within the radius of the light?
  16. rohzek said:
    Forgive me if I'm missing something in the documents or thread, but how exactly would I go about giving the player a flashlight effect?
    PresaDePrata said:
    @OcRam

    Is it possible to give to the player the ex effects lights?
    Also, how can i check if an event or the player is within the radius of the light?
    Thank you for the messages,

    At the moment it's only doable via plugin parameters. But I will add light_player_ex plugin command to next version to adjust player ex params in-game!

    And I will add JS call to player, follower and event objects call would be something like this:
    $gamePlayer.getObjectsInLightRadius() - this would return array of all objects in radius.

    Edit: I also add isPlayerInLightRadius() for all Game_Events. Usage would be something like this:
    this.event().isPlayerInLightRadius(); // if called from event scope
    -or-

    $gameMap.events()[x].isPlayerInLightRadius(); // if called outside event scope
  17. Thanks for your quick message, Ocram.

    $gamePlayer.getObjectsInLightRadius() - that's a really good idea. With it you can create inflammable objects set on fire if some source of light is nearby.
  18. Hello, I had a similar error to Tuomo, so I decided to start a new project to see if I can isolate which plugin is giving me issues, but even as the only plugin I am having the "Cannot read property 'r' of null" Type error.

    Could I possibly have missed something when implementing the script? I'm currently trying to test the script by using the plugin command:
    Code:
    light_bg #ffaa80ff 12

    Sorry if this ends up being a silly question, I'm still getting the hang of plugins like this.

    Thanks!
  19. DesVerides said:
    Hello, I had a similar error to Tuomo, so I decided to start a new project to see if I can isolate which plugin is giving me issues, but even as the only plugin I am having the "Cannot read property 'r' of null" Type error.

    Could I possibly have missed something when implementing the script? I'm currently trying to test the script by using the plugin command:
    Code:
    light_bg #ffaa80ff 12

    Sorry if this ends up being a silly question, I'm still getting the hang of plugins like this.

    Thanks!
    Thank you for the report,

    I need console screen shot (to get console press F8 or F12) to debug this issue. And is your RMMV version older than 1.6?
  20. OcRam said:
    Thank you for the report,

    I need console screen shot (to get console press F8 or F12) to debug this issue. And is your RMMV version older than 1.6?
    Thanks for the reply!

    I am currently using 1.6.2, and here is the console that came up when pressing that hotkey during the error message:
    Console Error
    lightsconsole.png