Lighting and Time Editor - Continued!

● ARCHIVED · READ-ONLY
Started by Feelzor 262 posts Page 2 of 14 View original ↗
  1. I simply use Notepad++ to see the line numbers ^^
  2. Nice work man. I updated my post by adding a link to your work. Thank you for continuing the plugin!
  3. LevelNoMatter said:
    Nice work man. I updated my post by adding a link to your work. Thank you for continuing the plugin!
    Thanks man! It means a lot to have you supporting me :D
  4. Question... say I wanted to do something like have my shops close between 8 pm and 0900 using your time system. What is the variable I would use?
  5. You need to use the command Time LIMIT time_begin time_end self_switch
    As you said you want it to be closed between 8pm and 9am, I'd suggest using Time LIMIT 20:00 9:00 A, this way the self switch A of the event calling the plugin command would be activated only between 8pm and 9am, so you can set up your page with self-switch A to the closed shop.

    Here's an example with screenshots:
    Spoiler
    988723event1.png 309481event2.png 537808event3.png

    Please note that as the self switch B is ALWAYS activated, you have to put it in a page BEFORE the page using the self switch A.
    It is also quite important to make the first page Autorun or Parallel, so it gets activated when the page loads and the plugin command is called. I haven't found any workaround for this one yet because you must call the plugin command from the event that will have its self switches changed. Maybe will I update this system with switches and variables.

    Though, if you are unsatisfied by the way it works with auto-switches, you can still save the current time into two variables with the Time SAVE hour_var minutes_var command.

    Hope it helps!
  6. Good evening! I've found a bug.

    If I create a new project and try to put the GameTime JS with all the default plugins and then I try to start the game, I get an error called:

    TypeError cannot read property 'update' of null.

    But if I delete the default plugins (from the plugins manager), it works correctly. Any possible solution?

    Great plugin by the way!
  7. @Enlapse Did you test it using an existing save file? If so, that will be the reason you got an error. New plugins mean that you have to start a fresh playthrough as the data that the plugin is requesting is not present in any save made before you installed it.
  8. Enlapse said:
    Good evening! I've found a bug.

    If I create a new project and try to put the GameTime JS with all the default plugins and then I try to start the game, I get an error called:

    TypeError cannot read property 'update' of null.

    But if I delete the default plugins (from the plugins manager), it works correctly. Any possible solution?

    Great plugin by the way!
    Oh, thanks for that! Never tested the plugin with the "Made With MV" plugin activated. I will try to find where the bug is coming from. Until I fix it, just turn off the "Made with MV" splash screen.

    Kes said:
    @Enlapse Did you test it using an existing save file? If so, that will be the reason you got an error. New plugins mean that you have to start a fresh playthrough as the data that the plugin is requesting is not present in any save made before you installed it.
    The crash happens before the start of the game. And I think I know why, though I'll give it a more in-depth check very soon :D
  9. Feelzor said:
    You need to use the command Time LIMIT time_begin time_end self_switch
    As you said you want it to be closed between 8pm and 9am, I'd suggest using Time LIMIT 20:00 9:00 A, this way the self switch A of the event calling the plugin command would be activated only between 8pm and 9am, so you can set up your page with self-switch A to the closed shop.

    Here's an example with screenshots:
    Spoiler
    988723event1.png 309481event2.png 537808event3.png

    Please note that as the self switch B is ALWAYS activated, you have to put it in a page BEFORE the page using the self switch A.
    It is also quite important to make the first page Autorun or Parallel, so it gets activated when the page loads and the plugin command is called. I haven't found any workaround for this one yet because you must call the plugin command from the event that will have its self switches changed. Maybe will I update this system with switches and variables.

    Though, if you are unsatisfied by the way it works with auto-switches, you can still save the current time into two variables with the Time SAVE hour_var minutes_var command.

    Hope it helps!

    Very cool. thank you. It was an idea I had to make certain events only available between certain times... I can modify this accordingly.. thanks man
  10. Feelzor said:
    Oh, thanks for that! Never tested the plugin with the "Made With MV" plugin activated. I will try to find where the bug is coming from. Until I fix it, just turn off the "Made with MV" splash screen.


    The crash happens before the start of the game. And I think I know why, though I'll give it a more in-depth check very soon :D

    Yes, you're right. It happens with the Made with MV plugin activated.

    Thank you for your attention. I will do it that way!

    EDIT: Now, if I try the game in the .html, after pressing "New game" I get another error:

    Reference error: Require is not defined.

    The problem is that in the editor, it works correctly.

    HTML = Error
    Editor = Works OK!

    Thank you!
  11. cjewell77 said:
    Very cool. thank you. It was an idea I had to make certain events only available between certain times... I can modify this accordingly.. thanks man
    No problem! I'm glad I could help!

    Enlapse said:
    Yes, you're right. It happens with the Made with MV plugin activated.

    Thank you for your attention. I will do it that way!

    EDIT: Now, if I try the game in the .html, after pressing "New game" I get another error:

    Reference error: Require is not defined.

    The problem is that in the editor, it works correctly.

    HTML = Error
    Editor = Works OK!

    Thank you!
    Mmh, that one is strange. I admit I have no idea where it may be coming from.
    Have you followed the steps described to use the .html file? (Open MV, press F1, then look at Documentation > Local Server Startup. I don't know if it may help ^^')

    EDIT: Said nothing, the problem comes from the plugin. It uses something that doesn't exist in browser-side javascript. So I'll take a look at it, but for yet you cannot use it with browser, sorry for that :c

    EDIT2: Ok, so I know where it is coming from. It's both the plugin's fault and not the plugin's fault. I won't be able to "correct" it in a real way, but I can find a workaround. Sure thing, you won't be able to add new lights using the web browser, as it uses something that cannot be used in browser. So you'll only be able to load lights, but not add them. Sorry about that!
  12. jose30 said:
    LNM_LightingTool.js is not incompatible with
    Bind Pictures To Map plugin
    http://mvplugins.tordamian.com/plugins/bind-pictures-to-map/
    Can I create lights without activating LNM_LightingTool.js plugin?
    Thanks for pointing this out! I'll look at it!
    Unfortunately no, you cannot disable the LightingTool, it's the only plugin handling lights ^^'
  13. hi there, Feelzor! I am getting a TypeError undefined is not a function error when i turn on the core plugin. (error goes away with it off) I've placed it in order too. Any solution to this?
  14. Turn off all other plugins see if it persist
  15. Also try placing them at the very bottom
  16. Hello there, I have an issue too...

    First of all, it seems it doesn't work with MOG (Atelier RGSS) Plugin "Title Splash Screen". It gets this error as soon as i launch the game:
    "TypeError - Cannot read property 'update' of null"

    But if I disable that, and all the other custom plugins added too, when I run the game and select "New Game" it gives me this:
    "TypeError - undefined is not a function"

    I tried everything (I think) to make it work: put the 3 plugins at the top, in the middle, or at the bottom of the plugin list, changing some rooms, disabling and enabling only some plugins (or as I wrote before, disabling them all)... I don't know what to do. Do you have any suggestions?

    Thanks for your time, I really look forward to use it if it will be possible!
  17. Did you disable all other plugins?
  18. asadfarook said:
    hi there, Feelzor! I am getting a TypeError undefined is not a function error when i turn on the core plugin. (error goes away with it off) I've placed it in order too. Any solution to this?
    Wow, that's a lot of plugins. Try disabling all of them and enabling them one by one to see which one is creating the issue. Though I think the problem will be solved with new version! So try updating the plugin before trying anything. If the problem persists and you have seen which plugin causes the problem, please tell me! (do not disable the core plugin, it may not work properly without that)

    matt_dev said:
    Hello there, I have an issue too...

    First of all, it seems it doesn't work with MOG (Atelier RGSS) Plugin "Title Splash Screen". It gets this error as soon as i launch the game:
    "TypeError - Cannot read property 'update' of null"

    But if I disable that, and all the other custom plugins added too, when I run the game and select "New Game" it gives me this:
    "TypeError - undefined is not a function"

    I tried everything (I think) to make it work: put the 3 plugins at the top, in the middle, or at the bottom of the plugin list, changing some rooms, disabling and enabling only some plugins (or as I wrote before, disabling them all)... I don't know what to do. Do you have any suggestions?

    Thanks for your time, I really look forward to use it if it will be possible!
    Ah, yeah. I'm aware of that bug. I had a problem with splash screen, though it's solved in new version! Try updating the plugins!
    For the second problem, have you disabled all the other plugins but this one? I didn't really understand what you did, sorry ^^'

    Version 1.3.2 out!
    + Added required assets.
    * Corrected a bug where copy/pasting a light would not show flick / pulse animations until game restart.
    * Corrected a bug where browser version would crash while loading.
    CAREFUL: THE BROWSER VERSION DOES NOT SUPPORT LIGHT CREATION, IT MAY CRASH
    * Corrected a bug where using the "Used with MV" plugin would make the game crash. Corrected the same bug for all other "splash screen" plugins.
  19. Feelzor said:
    Ah, yeah. I'm aware of that bug. I had a problem with splash screen, though it's solved in new version! Try updating the plugins!
    For the second problem, have you disabled all the other plugins but this one? I didn't really understand what you did, sorry ^^'

    Yep, I disabled all the other except those three.
    BUT now it works after the update, even the second issue is resolved. Wow :D
    Thanks a lot, sorry I wan't too clear, but now everything's good to go ;)