Terrax Lighting system

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

  1. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    Still saying toLowerCase is undefined.
     
  2. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    A screenshot may help in this situation than a link


    This is my setup (Top) the error is what I'm getting here (Bottom)


    Untitled.png


    Untitled02.png
     
    Last edited by a moderator: Dec 23, 2016
  3. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    223
    First Language:
    English


    Can you press F8 and link the text again, with the new version installed i should be able to find the line that causes the problem.
     
  4. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    I'll slap the whole thing on this time


    Uncaught ReferenceError: Yes is not defined
    pixi.js:20314 Deprecation Warning: DisplayObjectContainer has been shortened to Container, please use Container from now on.
    pixi.js:20315     at file:///C:/Users/zkeck/Documents/My%20Games/TalesOfAce/js/plugins/TerraxLighting_Pixi3.js:862:42
        at file:///C:/Users/zkeck/Documents/My%20Games/TalesOfAce/js/plugins/TerraxLighting_Pixi3.js:2662:3
    pixi.js:20096
        Pixi.js 4.0.0 - ✰ WebGL ✰      http://www.pixijs.com/ ♥♥♥



    pixi.js:20314 Deprecation Warning: DisplayObjectContainer has been shortened to Container, please use Container from now on.
    rpg_managers.js:1756 TypeError: Cannot read property 'toLowerCase' of undefined
        at Game_Interpreter.pluginCommand (/C:/Users/zkeck/Documents/My%20Games/TalesOfAce/js/plugins/GameusQuestSystem.js:234)
        at Game_Interpreter.pluginCommand (/C:/Users/zkeck/Documents/My%20Games/TalesOfAce/js/plugins/upp_minimapPro.js:124)
        at Game_Interpreter.pluginCommand (/C:/Users/zkeck/Documents/My%20Games/TalesOfAce/js/plugins/TerraxLighting.js:242)
        at Game_Interpreter.pluginCommand (/C:/Users/zkeck/Documents/My%20Games/TalesOfAce/js/plugins/TerraxLighting_Pixi3.js:242)
        at Game_Interpreter.command356 (rpg_objects.js:10447)
        at Game_Interpreter.executeCommand (rpg_objects.js:8897)
        at Game_Interpreter.update (rpg_objects.js:8805)
        at Game_Event.updateParallel (rpg_objects.js:8716)
        at Game_Event.update (rpg_objects.js:8708)
        at Game_Map.updateEvents (/C:/Users/zkeck/Documents/My%20Games/TalesOfAce/js/plugins/YEP_CoreEngine.js:1178)
     
  5. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    223
    First Language:
    English


    Ok, first start by removing TerraxLighting_Pixi3.js. You have installed the plugin twice, the Pixi3 version is only included for some creators that didn't upgrade their RPG Maker files yet (I know, its not very well documented, workin on that).
     
  6. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    Did so. Still same issue.
     
  7. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    223
    First Language:
    English
    It's the GameusQuestsystem plugin that throws the error.
     I've look at this script and added a single line that should fix it.


    The function starting at line 232 should look like this  ( the 3rd line was added : if (typeof command != 'undefined') {   )


    Game_Interpreter.prototype.pluginCommand = function(command, args) {
    gameus_Quest_Plugin_Commands.call(this, command, args);
    if (typeof command != 'undefined') {
    if (command.toLowerCase() === "quest") {
    switch (args[0].toLowerCase()) {
    case 'open':
    SceneManager.push(Scene_Quest);
    break;
    case 'add':
    $gameParty.addQuest(Number(args[1]));
    break;
    case 'remove':
    $gameParty.removeQuest(Number(args[1]));
    break;
    case 'complete':
    $gameQuests.get(Number(args[1])).complete();
    break;
    case 'fail':
    $gameQuests.get(Number(args[1])).fail();
    break;
    case 'reset':
    $gameQuests.get(Number(args[1])).reset();
    break;
    case 'nextstep':
    $gameQuests.get(Number(args[1])).nextStep();
    break;
    case 'backstep':
    $gameQuests.get(Number(args[1])).backStep();
    break;
    }
    }
    }
    };




    Hope this helps, you can try and contact the creator of that script to include the line in his next update.
     
  8. Aurawhisperer

    Aurawhisperer Veteran Veteran

    Messages:
    400
    Likes Received:
    16
    First Language:
    English
    Creator has been MIA for sometime, but there is somebody currently up to date with the quest system, thus I may just install his plugin.


    That said, on the downside for me, is some rework to do. Though I haven't been touching base with the questing aspect. So I'll give it a shot


    Edit: And just like that, fix'd. Excellent find to, for I shall warn anybody that uses that plugin. Sure, it's a good plugin, but when abandoned for X amount of months, that means the creator has no interest in it.


    Thank you also for mentioning about updates. Unfortunately, I have lots of plugins that are outdated, specifically under yanfly. I was utilizing the folder the system provided me, assuming it was all up to date. Guessed wrong
     
    Last edited by a moderator: Dec 23, 2016
  9. Dixie

    Dixie Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    English
     
  10. UNphiltered_khaos

    UNphiltered_khaos Game Dev. Artist. Veteran

    Messages:
    1,730
    Likes Received:
    640
    Location:
    Montucky
    First Language:
    Americanese
    Primarily Uses:
    N/A
    Does the MIT license allow for commercial use?
     
  11. Rukomura

    Rukomura Lurker Member

    Messages:
    26
    Likes Received:
    7
    Location:
    Nowhere
    First Language:
    Italian
    I updated the plugin since I was using an older version but It's now throwing me an error:


    TypeError: undefined is not a function


    /D:/Ruko/Ruko's%20GAMES/DS%20style%20game/js/plugins/TerraxLighting.js:864 Uncaught TypeError: Cannot read property 'prototype' of undefined
    rpg_managers.js:1722 TypeError: undefined is not a function
    at Game_Interpreter.pluginCommand (/D:/Ruko/Ruko's%20GAMES/DS%20style%20game/js/plugins/TerraxLighting.js:359)
    at Game_Interpreter.command356 (rpg_objects.js:10447)
    at Game_Interpreter.executeCommand (rpg_objects.js:8897)
    at Game_Interpreter.update (rpg_objects.js:8805)
    at Game_Map.updateInterpreter (rpg_objects.js:6082)
    at Game_Map.update (rpg_objects.js:5989)
    at Game_Map.update (/D:/Ruko/Ruko's%20GAMES/DS%20style%20game/js/plugins/MBS_MapZoom.js:213)
    at Scene_Map.updateMain (rpg_scenes.js:417)
    at Scene_Map.updateMainMultiply (rpg_scenes.js:409)
    at Scene_Map.update (rpg_scenes.js:398)rpg_managers.js:1722 SceneManager.catchException


    It's very strange because the old version was working fine :/ (It was 1.2 something), I also see It's incompatible with MapZoom?


    Also I am using the latest MV update, if that helps.
     
  12. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    223
    First Language:
    English
    The error that is thrown has to do with the update from pixi2 to pixi4 in the recent MV update, i'm not sure but


    I think you might have missed some files in the MV update.


    Update


    1. index.html


    2. All files in the js directory except plugins.js


    3 All files in the js/libs directory


    You can also try to use the Terraxlighting_pixi3.js script instead of the Terraxlighting.js, This script should


    always work, except that it throws some warnings in the console in the most recent version of MV.

    Yes, as long as you put something like 'Lighting effects by Terrax' in the credits of your game everything is free to use and distrubute.
     
  13. Rukomura

    Rukomura Lurker Member

    Messages:
    26
    Likes Received:
    7
    Location:
    Nowhere
    First Language:
    Italian
    Ah, it does work now! That's very strange, maybe I didn't update MV properly... Thank you for replying and have a nice day!
     
  14. Platsch

    Platsch Veteran Veteran

    Messages:
    73
    Likes Received:
    66
    First Language:
    German
    Primarily Uses:
    N/A
    What should I do exactly?


    I have version 1.4.2


    If i start a save game, then I get this problem:


    error.png
     
    Last edited by a moderator: Dec 28, 2016
  15. Zaen

    Zaen Find Me on YouTube Veteran

    Messages:
    115
    Likes Received:
    30
    Location:
    Tejas
    First Language:
    English
    I wanted to let you know that... I updated to your new version, and the message in the console about Depreciation has indeed disappeared...


    But the negative effect I have from changing maps over time has not stopped. After about 10 or 15 maps changes/accessing of the menu on a map with the lighting effects on, I will start to experience breaking lag that will sometimes reset if I manage to access a map that doesn't use your lighting.


    But, my game's expansive dungeon sort of relies on your lighting heavily.


    And I'm wondering if going to an old version will help, or if this is a problem you're aware of or have any power to fix.


    Basically if not, I just need to figure out an alternative. Either way, I appreciate your work. It's the best plugin around and I wish I didn't have this problem.

    Cheers.
     
  16. padr81

    padr81 Guy whose game is taking too long. Veteran

    Messages:
    642
    Likes Received:
    640
    First Language:
    english
    Primarily Uses:
    N/A
    This is a fairly common problem with all lighting scripts.  I'd like to know if theres a way to fix this too.
     
  17. Terrax

    Terrax Veteran Veteran

    Messages:
    304
    Likes Received:
    223
    First Language:
    English
    Can you press F8 when you get the error and paste me the content of the error window that pops up?

    Trying to find the answer  to this problem...


    Question : Are you using a lot of conditional lights in your maps (lights that are switched on and off by levers and such)?
     
  18. Zaen

    Zaen Find Me on YouTube Veteran

    Messages:
    115
    Likes Received:
    30
    Location:
    Tejas
    First Language:
    English


    No, not any. I just use it in the form of Fire and Light commands. I do use items that radiusgrow or whatever the command is to make the players light radius increase and diminish based on a timer. But that's it. The changing of that light radius doesn't seem to affect the problem though. I can walk into a cave and just press escape over and over and over until the lag starts to be unrealistic. It doesn't take very long.


    But yeah, thanks for looking into it. I'll probably be not working on the project until I figure out what to do about that.


    EDIT:


    I would be willing to let you look at a demo of my game if that would help but Im pretty sure you can easily replicate the problem.


    EDIT2


    I considered turning the lights on and off at every transition to see if it would reset the degree of depreciation. But the problem that's bigger than the map changes is accessing the menu and exiting the menu is the same as a map change in terms of this problem.
     
    Last edited by a moderator: Dec 30, 2016
  19. Zaen

    Zaen Find Me on YouTube Veteran

    Messages:
    115
    Likes Received:
    30
    Location:
    Tejas
    First Language:
    English
    (delete this post plz, sorry about double post)
     
    Last edited by a moderator: Dec 30, 2016
  20. Platsch

    Platsch Veteran Veteran

    Messages:
    73
    Likes Received:
    66
    First Language:
    German
    Primarily Uses:
    N/A


    Error..png


    SceneManager.catchException
     
    Last edited by a moderator: Dec 30, 2016

Share This Page