'Cache' line 88: NoMethodError occured?

● ARCHIVED · READ-ONLY
Started by OmNomZombie 20 posts View original ↗
  1. I love the idea of Luna Engine and have been consistently looking forward to the release! Unfortunately, I haven’t been able to play around with it on one of my projects due to an error I keep getting. 

     

    This little beauty right here happens when I try to go to the status menu in-game: 

     



     

    I’ve (hopefully) pinpointed when the error starts occurring - I’ve copied the scripts from the Luna Engine Base, and from the Complete Script List to see if there were discrepancies, to note as well all the scripts are in the same order as in the mentioned - it occurs when I copy the Lunatic Import: Default Status Menu, then it(by the screenshot above) redirects me to the Cache script. 

     

    I have very little understanding of RGSS3 as I’m not a scripter, but can usually troubleshoot things on forums. Unfortunately since Luna Engine is new, I had no idea where to go other than here to seek out help as I have no idea where to begin to even look for the problem. 

     

    Any kind of advice would be much appreciated, thank you.
  2. did you change something in your scripts or something like that this is the cache module did you play in the cache module?
  3. I think one of Lunatic Configuration caused this problem. If possible, you can pm me your demo project for support.
  4. Have you got other scripts as well, or JUST Luna Engine? I ask because this is a very common error with one of the popular scripts - not one I use so I don't recall the script or its author.
  5. @nio kasgami 

     

    Not at all, I don’t play in scripts that I don’t absolutely know what I’m doing. I even started fresh with a Scripts.rvdata2 from a new project to make sure it wasn’t something I accidentally did.

     

    @TheoAllen  

     

    Thank you for that link! 

     

    The results were interesting. 

     

    Cache:88:in `load_bitmap': undefined method `empty?' for nil:NilClass, NoMethodError

    from Cache Extended:11:in `cache_extended'

    from Window_Base:169:in `draw_lunatic'

    from Window_Base:204:in `block in draw_lunatic'

    from Window_Base:203:in `each'

    from Window_Base:203:in `draw_lunatic'

    from Menu Luna:5527:in `block in refresh'

    from Menu Luna:5526:in `each'

    from Menu Luna:5526:in `refresh'

    from Menu Luna:5430:in `initialize'

    from Scene_Status:13:in `new'

    from Scene_Status:13:in `start'

    from Scene_Base:12:in `main'

    from SceneManager:23:in `run'

    from Main:10:in `block in <main>'

     

    @Dr.Yami 

     

    Thank you, I will upload and send your way if need be. It’s a small file, thankfully, due to being a newer project.

     

     

    @Shaz 

     

    I started fresh with the scripts, so as of right now I am only using Luna Engine and the scripts that came with it minus the Add-ons.

     

     

    EDIT:  It seems that if I copy the scripts to a different project they work fine, strange. 
  6. Were you able to solve this?
  7. I wasn`t able to solve it with the project it initially happened on, but I have no problems using Luna on another project, which is good enough for me. 
  8. alright :D

    If the issue happens again please tell us.
  9. Sorry to bring this thread up, however, I am having the same issue(Same error, same exact error log) and have had it on multiple tries with clean projects. The one I'm most concerned about is the current project that I'm undertaking. Initially the scripts worked fine and I didn't have any errors even when I went to the dreaded Status screen in the menu, sadly now I'm getting the error. I can start fresh with a project but what worries me is that the same error will come back when I'm further down the line.

    I've updated to Luna Engine 1.02 and copied the base files and pretty much set everything with the Luna Engine settings back to factory - if you can say that - but to no avail. The menu works without the scripts without a hitch, but I would very much like to use Luna Engine. And to be noted, the scripts from Luna are the only ones I'm using. 

    Any help would be much appreciated!
  10. Go to the Game tab and select show console. Start up the game and find the error, and take a screen shot of the console.

    The script could be searching for an image or file that doesn't exist. That is a pretty common error.

    The console should show this.
  11. I must be doing something wrong, nothing is displayed in the console. I've googled to see if I need to enable it somewhere, as it may show nothing by default, but no such luck. Unable to type in it, as well. 
  12. You will not be able to type in it either way. show me a screenshot of the console when you open your game up and after the error occurs.

    Also a lot of the times you can find out where the error is by opening up your scripts and looking at where the default location is.

    The only time i've encountered where the Console didnt show is when there would be an error loading a file before the console loads.

    If that is the case then that could narrow your problem down. Perhaps to a file that doesn't exist or a path you changed in the script that is calling up and failing to execute before the console loads?

    Check all your files and make sure they are all there, else the script calls for something that doesn't exist when it tries to load said file.
  13. Screenshot 1(Console before the error)

    Screenshot 2(After error)

    I don't know how much help those are. But I have looked through the scripts and I have touched nothing - it's the actual script data file from the Luna Engine base. I agree that it seems like there is something missing, I just have no idea what or where to look for it. I'm no coder, sadly. 
  14. As a scripter, I can say I see this type of error rather frequently.  Lots of times what happens is I load a save game after creating a script and the error pops up.  Lots of stuff will be created when you start a New Game, but you try to load a Save Game that was saved prior to the installation of a script, this error can happen.

    For those of you that are getting this error, does it happen when you start a New Game or Load a Save Game?
  15. Can you also show us a screenshot of your complete script list?
  16. @Heretic86  It has always been a new game, I'm well aware of how errors can occur with you load previous saves. 

    @Archeia

    Script shot 1

    Script shot 2

    And also along with that is where the cursor pops up in the scripts after the error. 
  17. Can you pm me your demo?
  18. Sent!  I very much appreciate the time you folks are taking to look into this and try to help. Thank you.
  19. I found out the bug, it seems to error out whenever you set a faceset to none. Which makes sense. We'll have to add a fix for that in lunatic. But for now, adding a blank image should avoid the error.