Terrax Lighting system

Discussion in 'JS Plugin Releases (RMMV)' started by Terrax, Nov 5, 2015.

  1. ArcheoFox

    ArcheoFox Novice Veteran

    Messages:
    36
    Likes Received:
    27
    Location:
    Switzerland
    First Language:
    French
    I activated a flashlight on an event (event1) and I wish activate an eval condition on another event (event2).

    [​IMG]

    -
    Here, "flashlight area" would be = beamlength + beamwidth of the event.
    -

    [​IMG]

    The condition that would be something like that:
    if " Event2 is in the flashlight area of Event1 "

    Is it possible to make that? In the script, what is the corresponding information?
    And if not, is there a way to add a patch?

    Thank you in advance.
     

    Attached Files:

  2. Solis

    Solis Veteran Veteran

    Messages:
    366
    Likes Received:
    83
    First Language:
    English
    I have not had an issue with Regen blocking (I'm using 1.5.1 but I have not tested the flash light.
     
  3. jinrey

    jinrey Villager Member

    Messages:
    7
    Likes Received:
    2
    First Language:
    Polish
    Primarily Uses:
    RMMV
    Hi! I have Big problem with yours Plugin and plugin MogHunter.

    As if I did not set plugins, the screen is still slightly dimmed and the time of day does not change.
    Time passes, but nothing changes on the screen[​IMG]

    it probably does not work because your script does not support high switches
    I discovered that as the switches are high-numbered, it does not work! \. \.
    But I can not change them to low because all low are already used!

    I'm fuc**** pissed because I lost 12 hours!

    How do you adjust it without changing the switches?
    Normally the original obfuscation of the MOG plugin works, only terrax does not

    [​IMG]

    I am begging for help!!!!!!!!
     
    Last edited: Apr 14, 2018
  4. Usaku-chan

    Usaku-chan Villager Member

    Messages:
    8
    Likes Received:
    1
    First Language:
    English
    Primarily Uses:
    N/A
    @jinrey

    For you to have high numbered switches with MOG's plugin, to make them fully comparable, you will have to alter terrax plugin.

    Around line 1265 there is a section of mog comparability. Inside it there are the set values for the switches. Change those values to the switches you're using within mog and it should work.

    <You will need a text editor to make these changes, Notepad ++ works well, so does normal notepad, but having the colours help identify different parts works well>

    Please note I have changed my the switches below due to my own changes to teh default low mog switches.
    Code:
    if ($gameVariables.GetMog() == true) {
    
                            if (searchdaynight.search('mogtime') >= 0) {
    
                                var debugline = "";
                                var new_phase = 0;
                                if ($gameSwitches.value(141)) {
                                    new_phase = 0;
                                    debugline = debugline + " SW21:DAWN "
                                } //Dawn
                                if ($gameSwitches.value(142)) {
                                    new_phase = 1;
                                    debugline = debugline + " SW22:RISE "
                                } //Rise
                                if ($gameSwitches.value(143)) {
                                    new_phase = 2;
                                    debugline = debugline + " SW23:DAY "
                                } //Day
                                if ($gameSwitches.value(144)) {
                                    new_phase = 3;
                                    debugline = debugline + " SW24:SUNSET "
                                } //Set
                                if ($gameSwitches.value(145)) {
                                    new_phase = 4;
                                    debugline = debugline + " SW25:DUSK "
                                } //Dusk
                                if ($gameSwitches.value(146)) {
                                    new_phase = 5;
                                    debugline = debugline + " SW26:NIGHT "
                                } //Night
    
                                if (debugline == "") {
                                    debugline = "No switches (21-26) active, Mog is probably not loaded"
                                }
    
     
  5. jeancip

    jeancip Warper Member

    Messages:
    3
    Likes Received:
    0
    First Language:
    en
    hello hello
    anyone knows why when i activate plugin I get the following error message: cannot read property 'childrens' of undefined
    I have all the mog plugin enabled. if anyone knows how to help me ^^
     
  6. Nightshade

    Nightshade Veteran Veteran

    Messages:
    590
    Likes Received:
    119
    First Language:
    English
    Primarily Uses:
    RMMV
  7. Stefano

    Stefano Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    Italian
    Primarily Uses:
    RMMV
    very nice plug-in ... just a question, is it free to use? Commercial and not? Do I have to say anything in the credits in a possible my future game?
     
  8. Nightshade

    Nightshade Veteran Veteran

    Messages:
    590
    Likes Received:
    119
    First Language:
    English
    Primarily Uses:
    RMMV
    i figured out the problem. they don't work with the player flash light turned on

    but i got horrible straight shadow lines though :o how do you fix that please
     
  9. Waterguy

    Waterguy Veteran Veteran

    Messages:
    1,168
    Likes Received:
    251
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Excuse me, I have a question. It may have been asked, but... 61 pages.
    Is it normal for, if the event (not the player) the light is on moves, the light has a delay to move to where it is now?
     
  10. ddblue

    ddblue 新人 Veteran

    Messages:
    120
    Likes Received:
    15
    Location:
    Japan
    First Language:
    English
    Hello everyone.

    First I’d like to thank Terrax for this wonderful plug-in.

    I have an odd question. I created a torch using items and common events. This works very well in a dungeon I have created where the player can see but it’s mostly black around them without a torch, but they can see even better with the torch.

    The problem is, if they are on another map -say, an outdoor map with a lit campfire (meaning the script has been initialized for that map), if they randomly turn on the flashlight, the whole map goes dark as though they were in a dark dungeon, with only the torch light around them. Is there a way to prevent that?

    Tldr; I want to keep the black darkness overlay for dungeons, but want to lose it in outdoor zones regardless of whether the player uses a torch or not. I read through 20 pages of this thread so far so if the answer’s in there please let me know.

    Thank you.

    Edit: problem was solved using Tint set plugin commands. They lighten or darken the “black area” as necessary.
     
    Last edited: May 31, 2018
  11. TPetrichor

    TPetrichor Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    N/A
    Hello all,

    I have recently run into a problem with Terrax lighting that I have never had before. It was triggered, I believe, by the recent RPG Maker MV update.

    recent.PNG newbadness.PNG

    There is a new, bright, smaller circle around the source of my light that was never there before.

    Does anyone else have this problem, or know how to correct it?
    Please let me know. Thank you so much!
     
  12. Sauteed_Onion

    Sauteed_Onion Mmm Tasty Veteran

    Messages:
    554
    Likes Received:
    3,658
    Location:
    Perhaps on a steak or cheeseburger
    First Language:
    English
    Primarily Uses:
    RMMV
    Hey meow, I'm trying to get the player radius turned off, but when I set the default player radius to 0 in the plug in manager, it um.. doesn't turn off?
    If I need to elaborate or anything please meow me.
     
  13. BANJOPC

    BANJOPC Villager Member

    Messages:
    24
    Likes Received:
    0
    First Language:
    English
    Primarily Uses:
    RMMV
    Hi Terrax,

    Is there anyway to adjust the players X & Y location of the radius? For example rather than a perfect 360 i'd like the light in front of the player. (not as a flashlight though, as a lighter effect)

    For clarity, if possible the light to be in front of the character model rather than perfectly centred. Can this be achieved through event commands or will the code need editing?

    Would really appreciate the help

    cheers
     
    Last edited: Jul 19, 2018
  14. RHachicho

    RHachicho Veteran Veteran

    Messages:
    263
    Likes Received:
    125
    Location:
    Basildon, United Kingdom
    First Language:
    English
    Hello there .. I just updated from 1.3.1 and now none of my lights from the old save are working. The player flashlight and the darkzone still generate. But the actual lights seem to have stopped. Is this normal does it just need a new game because of the plugin change? Or is there a compatibility issue?
     
  15. Waterguy

    Waterguy Veteran Veteran

    Messages:
    1,168
    Likes Received:
    251
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    every time you change plugins it is a good idea to not use a save file from before the change. it is changing the internals of how the game works, and if it affects the save - like, in this example, how the map is - then it has a chance to cause conflicts.
     
  16. Kenode

    Kenode Veteran Veteran

    Messages:
    64
    Likes Received:
    23
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    I second this, I'm finding issues when creating lights that shouldn't be seen on roofs, but have a corner nearby (for example, street lights)
     
  17. MXMichaU

    MXMichaU Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    Polish
    Primarily Uses:
    RMMV
    Hello, and thanks for the plugin, it's very nice ! Is there a way to make lights do not light through the walls ? If you don't know what i mean, i can add a image later. Thanks !
     
  18. Krystek_My

    Krystek_My Veteran Veteran

    Messages:
    162
    Likes Received:
    38
    First Language:
    Polish
    Primarily Uses:
    RMMV
    Look at Drirtwood Gaming tutorial on youtube named
    "How to toggle terrax lighting"
    This should help.
     
  19. MXMichaU

    MXMichaU Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    Polish
    Primarily Uses:
    RMMV
    I know how to use it, i was asking how to make light stop on walls.
     
  20. Moo

    Moo Veteran Veteran

    Messages:
    54
    Likes Received:
    71
    First Language:
    fr
    Primarily Uses:
    N/A
    Hi all and Terrax, thank you for your work and your plug-in is very good !!

    As @Waterguy I have a little lag on an event when he move, the light some time need one second to join the event position, I try aaallll I can this week end and I lost all my hairs (I check all possible conflict, problem etc..) !! No solution on my side, sometime it work (rare).

    Have you an ideas guys ? @Waterguy have you found a solution ?

    Thank you in advance for your help, it's important for me because it break all my cutscene effet ! ;)

    Bye

    Sorry, I see after this on previous page :
    Edit2: actually I did. If you have the same problem change the movement type from fixed to custom. It should be fixed after this.
    From @Huassassin and it seems to work !! I will make some other tests ! very good news ! thanks
     
    Last edited: Jul 23, 2018

Share This Page