MZ - [MZ & MV v1.9.7] Shora Lighting & Shadow System

● ARCHIVED · READ-ONLY
Started by Shora 656 posts Page 15 of 33 View original ↗
  1. I forgot to tell about the plugin commands, as some doesn't work,
    comments does work, most is explained in the demo though.

    Plugin commands on the other hand can be checked inside the plugin,
    search for "pluginCommand" to find a list of possibilities.

    the list will be available in the helpfile whenever she/he got time to do so.
    or someone willing make them correctly without issues.
  2. Alright, so, this plugin is not working right for me. I have, first of all, defined a default light: light_default.jpg
    After that, I set an event that can turn it on and off on command. It also outputs a text to help me diagnose:
    event_ver_1.jpg
    event_ver_2.jpg
    As you can see, this is almost literally 1:1 compared to the code you can find on the demo. And yet, once I use the event one time and turn off the light, the light never turns back on:
    game_ver_0.jpg
    light is on here, what happens if I activate the event?
    game_ver_1.jpg
    light turns off but...
    game_ver_2.jpg
    It never turns back on! How do I fix this? Or what I am doing wrong?
  3. @nnl94 there are 2 problems.

    event 3 dont have page 2 (for selfswitch A ON) and leave that page empty.

    another issue based on the last part = DirectionFIX is not checked, so
    it change the appearance that is left/right/down or UP.
    in your case "down", so you need DirectionFix checked.
  4. @ShadowDragon I don't follow. I am changing from page 1 to page 2 (and vice-versa) on Event 7. Why should event 3 have two pages?

    Also, how do I check DirectionFix? Is it another command or is something I can set from the Plugin Parameters window?
  5. in the event window.

    you set $gameLightning.setStatus(3, 0) (event 3, false)
    and another to 1, while event 3 only have 1 page.

    also make sure the entire event page is visible, not partial.
  6. Update: I just changed 0 and 1 to "off" and "on" (respectively) and it worked. I am now wondering if there could be a way to add a custom plugin command (or just line of code) that makes lights switch from one type to another.
  7. @nnl94 could you explain that in detail?
    not sure what you exactly want to do to switch types.
  8. Hi Shora, I'm having some trouble with your beautiful lighting plugin. It doesn't seem to be compatible with Galv's image cache plugin. I get the error below. I let Galv know about this too.

    Thank you!

    1664997545390.png
  9. @The Prismed Reaper you should press F8 on the console, but it seems
    you use parallax with spaces, which is against networking rule.

    so remove all spaces from all files.
  10. ShadowDragon said:
    @The Prismed Reaper you should press F8 on the console, but it seems
    you use parallax with spaces, which is against networking rule.

    so remove all spaces from all files.
    Hi, thanks for responding. I double-checked and there are only a few files in the cache and none of the filenames have spaces. Here's what F8 has to say. Thank you so much for your help! (My life is very busy so I may be slow to respond...)1665937329161.png
    1665937115902.png
    1665936970305.png
  11. I dont get the function in the file names though,
    %20 = space,
    %2C = comma I believe, but I dont know all the % symbols given here.
    or why it shows like that.

    as it targets your img/parallax folder, I dont get the function there.
    do you use any other plugin besides shora? if so, can you show the
    plugin database.
  12. So I am not sure what I am doing wrong, but I cannot get a flashlight to work. I copied from the demo, and made an item called "flashlight." I put the [light flashlight] note on the flashlight item, and I added flashlight to the "lights: custom" within the plugin. I then added the flashlight to the player via an event at the game start, and it shows up in my inventory. For some reason when I add a light note to items nothing happens? Am I missing something?

    The plugin is working, as I managed to make it dark on my map, and added a fire on a car that flickers and looks good.

    Thanks for the plugin it looks great if I can just get this to work :D.
  13. @MaGicBush check the demo and the settings in the parameter if you didn't
    miss anything, as it is working on my end.

    you probably miss something important. it can be case sensitive, so double check
    if you didn't miss type something.
  14. AeroFunk80 said:
    @KevinTheHunter

    Use this comment. You can also change the tint and x, y coordinates. This would be for each individual lighting event, but that way you have a bit more control of each light:

    [light -tint #ff0000 -radius 85 -x 48 -y -48]


    Changing the x & y just dont work for me, idk why but the flashlight dont take any offset
  15. I deleted what was in my original post. I completely forgot that Shora's plugin isn't free. I purchased it off itch.io. The X, Y offset doesn't work on their current plugin (including the one you purchase). I spoke with Shora, and they plan to start working on this again once they no longer have a lot going on. They did update the plugin for me (x, y)... so that's why it's working on my end. However; I can't share that since I purchased and don't want to give that away for free.

    IF you purchased the plugin, I'd recommend reaching out to Shora. Their info is in their post. I contacted them on Discord. I'm sure they'll give you the updated plugin once you prove you purchased it off Itch.io. Sorry for originally posting and deleting it.

    This plugin does have a lot of issues... including the one you purchase off itch. Hopefully Shora can focus on fixing these bugs soon. It's a great plugin!
  16. @Kazuo
    X and Y might work through the scriptcall if not through event comments
    like AeroFunk80 said.

    as it might be free for free games only, and not commercial, you need to
    read the terms carefully.
  17. ShadowDragon said:
    @Kazuo
    X and Y might work through the scriptcall if not through event comments
    like AeroFunk80 said.

    as it might be free for free games only, and not commercial, you need to
    read the terms carefully.
    I've did it differently, i've create a new torchlight and specify change is X and Y from the menu.

    Now i've another issu, but im pretty sure its my fault.
    I want to make an On/off torchlight, so ive create 2 common even from the data base.
    One said something like :
    If you press A, add torch item on inventory (item with have [light]) then trigger ''torch on'' variable to 1

    This part work as intended


    And in the 2nd common even, i mirror it like :
    If you press A, and of variable torch is on 1, then delete the torch from inventory and put ''torch on'' variable to 0


    Annnd it dont really work.

    One time i''ve almsot success but i had to let A hold, and i just want a Switch, not an holding button.
    It was because this attempt have ''else'' condition and it trigger the light every frame i suppose.

    Help :D
  18. best way is for a conditional branch,
    if switch A is ON / or if button X is pressed
    turn torch ON
    else
    turn torch OFF
    end

    that is the most basic settings, so why 2 common events?
  19. Kazuo said:
    I've did it differently, i've create a new torchlight and specify change is X and Y from the menu.

    Now i've another issu, but im pretty sure its my fault.
    I want to make an On/off torchlight, so ive create 2 common even from the data base.
    One said something like :
    If you press A, add torch item on inventory (item with have [light]) then trigger ''torch on'' variable to 1

    This part work as intended


    And in the 2nd common even, i mirror it like :
    If you press A, and of variable torch is on 1, then delete the torch from inventory and put ''torch on'' variable to 0


    Annnd it dont really work.

    One time i''ve almsot success but i had to let A hold, and i just want a Switch, not an holding button.
    It was because this attempt have ''else'' condition and it trigger the light every frame i suppose.

    Help :D
    I have something similar. This is what I use for my player's torch (the lighting that shows up around the character). I'm using Yanfly's Button Common Event plugin. So, when players press T on their keyboard, the light turns on/off. I have my common event set up the following way:

    I have a switch called "Lighting On/Off." You could also use SelfSwitches. I use a normal switch because I have events in my game that will react to whether your torch is on or off, though. But basically...

    Example
    1667490888155.png

    As you can see... if the light is off, the else branch plays turning it on (adding the item) and turning that switch ON. Then if you press the button again... it'll read the switch being on and play that top part (turning it "off"). Not sure if this helps with what you're going for, though.