MV - Community Lighting MV & MZ

● ARCHIVED · READ-ONLY
Started by ImaginaryVillain 1279 posts Page 37 of 64 View original ↗
  1. @Mladjone
    Change your screen size settings in the plugin parameters to match whatever screen size you're targeting. :LZSwink::thumbsup-right:

    Alexandre said:
    Ok, I was wondering why so many were reverted on Github, now I understand why.
    I never realised how similar 'l' and '1' were in Notepad++.

    @ImaginaryVillain Totally agree to have a kind of 'release version', I already kinda followed this mentality by only putting known stable version of the plugin in the demos the last time I updated them. It is probably why the bug wasn't reported before or Mladjone didn't experienced it with the demo, as the demos were free of it. I see most of the reverts are still active, it is normal?
    Probably what happened. Anyway, I've created releases for each version. From now on I'll just make certain to at least test people's changes beforehand. Not going to lie, I don't even use the engine anymore. So I kind of fell out of the habit. But it's probably a good idea if I don't just assume people tested their code.

    I've also removed the demo zip files as Github already allows for a download of the entire project as a zip. And the releases have zips attached to them, making the extra zips pointless.

    As for the current state of the plugin, yes I temporarily tried reverting the plugin to get a working version. That is when I discovered I couldn't revert it back to 4.2, I just ended up going in and fixing it. Everything should be good to go. I've remerged everything, so it should be the most up to date possible.
  2. Mladjone said:
    @ImaginaryVillain Hi, I have one more question. I'm not sure if it's a common bug, a problem with this version of the plugin, or just a screw-up on my part, but every light source is blocked by an invisible wall on the upper right corner.

    View attachment 202789

    I tried looking through the replies here, but either I've not gone far enough or I've missed a similar problem. Any way to fix this?

    From what I can see, it sounds like you are using direction for your light without realizing it.
    Does your light notetag contains 'd9' or 'D9' by any chance?
  3. Alexandre said:
    From what I can see, it sounds like you are using direction for your light without realizing it.
    Does your light notetag contains 'd9' or 'D9' by any chance?
    That was absolutely what it was. I am a dum-dum. xD

    Thanks for helping out.
  4. This is awesome! I've been toying with this crazy setup with the legacy system to get lights on events to turn on and off after they hit you and stuff so this is really gonna save me some time!

    However, from what I can see, in both the demo and my current project, the "addColorStop" issue is back.

    This is taken from the console of the demo:
    Console output
    rpg_managers.js:1949 Error: Failed to execute 'addColorStop' on 'CanvasGradient': The value provided ('#FFFFFF3f.bffffffffffe') could not be parsed as a color. at Bitmap.radialgradientFillRect (Community_Lighting.js:1782) at Lightmask._updateMask (Community_Lighting.js:1332) at Lightmask.update (Community_Lighting.js:1012) at rpg_core.js:4068 at Array.forEach (<anonymous>) at Spriteset_Map.Sprite.update (rpg_core.js:4066) at Spriteset_Map.Spriteset_Base.update (rpg_sprites.js:2145) at Spriteset_Map.update (rpg_sprites.js:2275) at Spriteset_Map.Spriteset_Base.initialize (rpg_sprites.js:2131) at Spriteset_Map.initialize (rpg_sprites.js:2261)

    Same thing occurs in my own project, but only when I enter locations with "fire" lights. I've tested both with cl and legacy support (without cl).
  5. fireglare said:
    This is awesome! I've been toying with this crazy setup with the legacy system to get lights on events to turn on and off after they hit you and stuff so this is really gonna save me some time!

    However, from what I can see, in both the demo and my current project, the "addColorStop" issue is back.

    This is taken from the console of the demo:
    Console output
    rpg_managers.js:1949 Error: Failed to execute 'addColorStop' on 'CanvasGradient': The value provided ('#FFFFFF3f.bffffffffffe') could not be parsed as a color. at Bitmap.radialgradientFillRect (Community_Lighting.js:1782) at Lightmask._updateMask (Community_Lighting.js:1332) at Lightmask.update (Community_Lighting.js:1012) at rpg_core.js:4068 at Array.forEach (<anonymous>) at Spriteset_Map.Sprite.update (rpg_core.js:4066) at Spriteset_Map.Spriteset_Base.update (rpg_sprites.js:2145) at Spriteset_Map.update (rpg_sprites.js:2275) at Spriteset_Map.Spriteset_Base.initialize (rpg_sprites.js:2131) at Spriteset_Map.initialize (rpg_sprites.js:2261)

    Same thing occurs in my own project, but only when I enter locations with "fire" lights. I've tested both with cl and legacy support (without cl).
    I will have a look soon, it is likely the bugfix was lost between the rebases

    EDIT: It was exactly that. I found what did go wrong, I made a pull request with the needed fix.
  6. Alexandre said:
    I will have a look soon, it is likely the bugfix was lost between the rebases

    EDIT: It was exactly that. I found what did go wrong, I made a pull request with the needed fix.
    The pull request has been merged.
  7. Odd, I thought this thread died or ran its course or something since I stopped getting notifications for it, even though it's on my watched list. Good to see it's still active, although what's up with the typescript definition file?
  8. It is a sort of doc in typescript, but it seems it isn't completed yet.
  9. Hi Everyone
    Been awhile.
    Is there a way to put a light under a tile but above a parralax?
    In my example i have a transparent window in a underground train and want the light to look like its coming from outside the train.
    Everything else is parralax
    Light Issue.gif
  10. Passingbyposts said:
    Hi Everyone
    Been awhile.
    Is there a way to put a light under a tile but above a parralax?
    In my example i have a transparent window in a underground train and want the light to look like its coming from outside the train.
    Everything else is parralax
    View attachment 203335
    Unfortunately, no not without getting into the code itself. The lighting is a special layer that sits above the tile layer. Best I can think of is reducing the size of the light, then possibly adding a second one beside it to fill in the window shape.
  11. Aesica said:
    Unfortunately, no not without getting into the code itself. The lighting is a special layer that sits above the tile layer. Best I can think of is reducing the size of the light, then possibly adding a second one beside it to fill in the window shape.
    Ah, i thought that was the case but wanted to make sure

    Thanks for letting me know and glad to see you still around Aesica :ptea:
  12. Quick Question :

    Maybe im being dumb
    Shouldn't this force the flashlight to always point up?
    As the flashlight continues to move with the direction which i thought could be disabled?
    1633776373824.png
    Flashlight.gif
  13. As far as I know, it only applies to immobile events. It's a pretty old bug that I (or someone else) should probably try to fix at some point. If I get a chance, I'll look at it tomorrow.
  14. Oh nice, beat me to it. @ImaginaryVillain is the one that has to handle that though :D
  15. Alexandre said:
    You are 100% right, it is a bug. @Aesica I made a pull request with the fix.
    I've approved it.
  16. Yep, seems to be working aswell :)

    Have'nt compatability tested it yet with my main project but im not expecting that will be a problem

    Thanks alot Aesica , Imaginary and Alexandre :ptea:

    hands down best community project on the citadel
    Fix.gif
  17. Is there a way to offset the flashlight on the x axis? Also, is there a way to remove the circular light around the player character when using a flashlight?
  18. Nichmann said:
    Is there a way to offset the flashlight on the x axis? Also, is there a way to remove the circular light around the player character when using a flashlight?

    There is the possibility to add a x or y offset to any flashlight event (the 'x' and 'y' parameters).

    Code:
    Flashlight [bl] [bw] [c] [onoff] [sdir] [x] [y] [id]

    For the player event, there is a plugin parameter for that.

    For the second question, I have no idea.
  19. I'm very interested in the "ultra mini" version of this plugin, but I can't seem to find it on the GitHub. Am I missing something, or is it not available anymore?