Terrax Lighting system

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

  1. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    222
    First Language:
    English
    Ofcourse, would a plugin-parameter be sufficient?
     
  2. Platsch

    Platsch Veteran Veteran

    Messages:
    71
    Likes Received:
    55
    First Language:
    German
    Primarily Uses:
    N/A
    everything great now...thanks
     
    Last edited by a moderator: Jan 14, 2017
  3. jm_gamemaking

    jm_gamemaking Warper Member

    Messages:
    3
    Likes Received:
    0
    First Language:
    english
    @Terrax I'm having a problem that terrax lighting isn't working with the srd_fullscreentoggle plugin it seems that tarrax lighting only workes on a small part of the screen 


    Screenshot (17).png
     
    Last edited by a moderator: Jan 14, 2017
  4. Verdelite

    Verdelite Wannabe Developer Veteran

    Messages:
    144
    Likes Received:
    1,041
    First Language:
    German
    Primarily Uses:
    RMMV
    @jm_gamemaking Have you adjusted the screensize in the plugin?


    Try increasing the parameters Screensize X and Screensize Y to your fullscreen resolution values.
     
  5. jm_gamemaking

    jm_gamemaking Warper Member

    Messages:
    3
    Likes Received:
    0
    First Language:
    english
    yes i have im running pixi and ive updated all the pugins
     
  6. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    222
    First Language:
    English


    When you install the plugin you can set the ScreensizeX and ScreensizeY in the plugins parameters. If you screen format is different from the


    default you should adjust the screensize there.
     
  7. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,021
    Likes Received:
    196
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Hi again Terrax, I haven't been keeping an eye on this topic since it's mostly consisting of bug fixes- I was wondering to ask what new features and things you plan to install in the next plugin update.
     
  8. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    222
    First Language:
    English


    Not very buzy with the plugin currently, mostly because i just moved my computer stuff to a new room and i'm still working out the network issues.


    I'm buzy with changing lightsource colors.


    One part is done, you can change a lightsources color with a plugin call.


    Next in line is lightsources that change colors automaticly on a preset cycle.


    The tag is will look something like :  lightcycle 300 #FF0000 100 #FFA500 25 #00FF00 100


    That will change the light with radius 300 from Red (10 seconds) to Orange (2.5 seconds)  to Green (10 seconds).
     
  9. DarkSearinox92

    DarkSearinox92 Veteran Veteran

    Messages:
    250
    Likes Received:
    30
    Location:
    Italy
    First Language:
    Italian


     @Terrax For example in this mode, just like yanfly


    fixit.JPG
     
    Last edited by a moderator: Jan 17, 2017
  10. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,021
    Likes Received:
    196
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    Really looking forward to that update when it's ready.


    I'm closely examining the plugin to implement a day night cycle in my project- having the game perminately dark will get annoying and I wish to have the enviroment change along with the day settings so that appropirate missions and events can only be occured on certain times. Does the day night cycle have any connection to Orange's time plugins? I'm having difficulty installing that plugin and getting the various events to function along with it also.
     
  11. Sethorion

    Sethorion Villager Member

    Messages:
    19
    Likes Received:
    7
    First Language:
    English
    I'm struggling to find an answer to this one:


    How do I toggle the player's light radius and color in-game? I.E, the character picks up a lamp or casts 'light' etc?
     
    Last edited by a moderator: Jan 17, 2017
  12. XGuarden

    XGuarden Veteran Veteran

    Messages:
    419
    Likes Received:
    12
    First Language:
    French
    Your pluggin seam great, but it's didt work at all on my game. I tryed to desactivat all other plugging without success. Only one plugging that I can't desactivate without getting an eror: Path_finder. I dont think it's related.


    Over a windows i create an event, i put in tag: Light 250 #FFFFFF


    Pluggin was activated but not the second plugging TerralightPixi3 becaus he create an hallow over the event and what I want it's to mak evnt create light, not darken the border of the map.


    Any idea what is my mistake?


    I also want the light only when a variable was with a certain valu but I guess I will be able to work around this one.


    A tricky one, my wall got 2 tiles tall, my windows was in middle of it. So I can't put an event at the exact windows location.


    Thy hav a way to add a decay for the light seem to came from the windows?


    I got an error UNdefined is not a function trying to use your demo.


    I just update prg makre to 1.3.4(I was using 1.2) but keep same error.
     
    Last edited by a moderator: Jan 18, 2017
  13. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    222
    First Language:
    English
    New version (1.4.4) now available


    http://mvplugins.com/plugin/Terrax/Terrax%20Lighting%20System


    or


    https://github.com/Terraxz/TerraxLighting


    Update:


    1) You can change the option menu-entry language in the parameters of the game.


    2) You can change lightsource colors with a plugin call.


    I tried to change note-tags, but the game won't let me and bugs out, so i had to find another way.


    You can only change the colors of lights that have an id.


    So if you define a light with 'Light 100 #FFFFFF 1'


    Then turn it on in the game with 'Light on 1'


    Then you can change the color of all the lights with id 1 with plugin call : 'Light color 1 #FF0000'


    Reminder : If your using a lot of lights that can be turned on and off by switches in your game, the game


    can slow down in the long run. You can prevent this by clearing the switch-list at certain stages in your game.


    Use plugin call : 'Light switch reset'


    You don't have to clear them every map, but every game has certain progression levels where players cannot go


    back to the older area's. That would be the place to clear the list.


    Terrax.

    The daynight cycle is indepentent from the orange time plugin, it works fine on its own but doesn't have a fancy clock display.

    Plugin call : Light radius 500 #FF0000

    You only need 1 plugin, do not install the Pixi3 plugin, its for older games (i will take it out next patch, because it only causes confusion)


    My plugin will always create a dark layer, thats the way it works, but the darkness of the layer can be set with the 'tint' plugin call.


    Remove the pixi3 plugin, and see if the error persists, if it does persist press F8 and post the text in the forum.
     
    Last edited by a moderator: Jan 19, 2017
    LTN Games and KaYsEr like this.
  14. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,021
    Likes Received:
    196
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    I don't know what this is referring to.

    Um tried to this but the game crashes with this error:


    TypeError


    Cannot read property 'apply'of undefined. I might need further instructions on how to do this properly.


    Also noting that I'm trying to see if I condense light colour changing events in themselves rather than relying on an event doing it in the background?
     
    Last edited by a moderator: Jan 19, 2017
  15. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    222
    First Language:
    English
     There is an option the the game menu to turn the lighting effects on and off. It reads 'Lighting effects'. Somebody asked if it could be changed


    in the game to support other languages.

    Can you press F8 and show me the line that creates the error?

    The next update will have a new option to create a tag that cycles the colors automaticly, still working on that.
     
  16. Skurge

    Skurge " (GASP) What's going on!? " Veteran

    Messages:
    1,021
    Likes Received:
    196
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    N/A
    I hope this can help you. Might have to right click 'view image' to get the full size. error.png

    I love that, will make things easier and condensed.
     
    Last edited by a moderator: Jan 20, 2017
  17. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    222
    First Language:
    English
    Hmmm.. thats a error generated by Pixi (the graphical renderer). What version of RPG maker are you running?
     
  18. XGuarden

    XGuarden Veteran Veteran

    Messages:
    419
    Likes Received:
    12
    First Language:
    French
    I got no error message at all now. Just do nothing. Let me explain, I just activate the pluggin, put an objet with Light 0 #FFFFFF in corect place.


    My map was not dark. Any reason why it's didt work?


    Your demo work now, but all your map was dark, i look your code but i didt see where you set them to be dark.

    View attachment Screen 01-19-2017 15-19-50.avi
     
    Last edited by a moderator: Jan 20, 2017
  19. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    222
    First Language:
    English
    You need to give the light a radius.. radius 0 doesn't do anything.


    If you want a completly dark area with no lights use 'Light 1 #000000' instead.


    If you want lights use 'Light 100 #FFFFFF'
     
    Last edited by a moderator: Jan 20, 2017
  20. XGuarden

    XGuarden Veteran Veteran

    Messages:
    419
    Likes Received:
    12
    First Language:
    French
    I tryed to put  Light 1 #000000  or  Light 100 #FFFFFF  instead but that change nothing, no visual change.
     

Share This Page