Preload Manager

Discussion in 'JS Plugin Releases (RMMV)' started by Galenmereth, Oct 24, 2015.

    Tags:
  1. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,650
    Likes Received:
    14,404
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Can you give me a sample project?
     
  2. Sc0wly

    Sc0wly Veteran Veteran

    Messages:
    46
    Likes Received:
    9
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm afraid not. Sorry.
     
  3. lawina

    lawina Veteran Veteran

    Messages:
    147
    Likes Received:
    28
    First Language:
    English
    Can anyone confirm that this plugin doesn't work when you encrypt your pictures/audio during deployment? I have an endless loading screen when I use encryption. It works flawlessly when I disable encryption though.
     
  4. Geoff Moore

    Geoff Moore Composer for Hire Veteran

    Messages:
    1,402
    Likes Received:
    739
    First Language:
    English
    Primarily Uses:
    N/A
    Can anyone smarter than me tell me how I can have the plugin preload files from a non-standard folder at startup? I'm using a plugin which requires images to be placed in a folder called 'layers', so they're not being preloaded. Thanks!

    I should point out that I'm using the modified version Archeia posted on the last page as the default plugin apparently doesn't work with the latest version of MV. Archeia's post:
    https://forums.rpgmakerweb.com/index.php?threads/preload-manager.46515/page-11#post-758534
     
    Last edited: Oct 11, 2017
  5. Talonos

    Talonos Veteran Veteran

    Messages:
    49
    Likes Received:
    39
    Location:
    Utah
    First Language:
    English
    Is 1.1.1 still the latest version? Because man, I ran into show-stopping bugs within minutes, and had to dig into the code to fix them.

    First off: The exception handler at line 242 crashes when triggered because "use strict" is on and "e" is undefined. (To fix, change line to "var e = ..."

    Secondly, you cannot preload stuff from SvActor or SvEnemy because line 240 naively converts all characters in the string to lower case, turning loadSvEnemy into loadSvenemy, which crashes the plugin when you try to pull that function from ImageManager. (To fix, remove the ".toLowerCase()" at the end of line 40 and assume the user is smart enough to handle their own capitalization, which to be fair is a safer bet than assuming the user is smart enough to delve into the code to figure out why "SvEnemy" isn't a valid key when the help file claims it is.)

    I mean, it took half an hour to diagnose and fix these bugs, but still, it makes me really nervous. Is there a more up-to-date version of this plugin anywhere?
     
  6. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,650
    Likes Received:
    14,404
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Here's a version of TDDP Preloader that's compatible with 1.6.0
     

    Attached Files:

    sefeloth, SOC, Rozel and 1 other person like this.
  7. hyuugacln

    hyuugacln Veteran Veteran

    Messages:
    98
    Likes Received:
    81
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Does "compatible" mean it will also work with 1.5.0? I cannot patch it because 1.6.0 is not compatible with several of my plugins.
     
  8. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,650
    Likes Received:
    14,404
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    It works for 1.5.1 too
     
    hyuugacln likes this.
  9. Rozel

    Rozel Villager Member

    Messages:
    27
    Likes Received:
    30
    First Language:
    English
    Thank you so much!
    I think you accidentally left code to preload certain files on boot, which causes an error for those who don't have the file. If anyone has this issue, just go into the js and find "xx_strange_radio_broadcast" then replace it with something else or comment it out by typing // to the left of it. Same for "[SE]swish"
     
    sefeloth, Archeia and SOC like this.
  10. Radis3D

    Radis3D Just a Devilz Veteran

    Messages:
    172
    Likes Received:
    33
    Location:
    Surabaya, East Java, Indonesia
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    Archeia likes this.
  11. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,650
    Likes Received:
    14,404
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Oh oops, sorry about that everyone!
     
    Rozel likes this.
  12. ramza

    ramza Lunatic Coder Veteran

    Messages:
    558
    Likes Received:
    308
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    RMMV
    The problem with 'e' not being defined is still an issue in the version @Archeia linked, but it's on line 262 now instead of 242. The toLowercase thing might still be an issue too, but I didn't pre-load any svactors or enemies, so I'm not sure.

    That being said, it works, and that's better than what I had earlier. Thanks.
     
  13. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,294
    Likes Received:
    1,267
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    After 1.52 it doesn't work.
     
  14. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,650
    Likes Received:
    14,404
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    How exactly does it not work? This doesn't tell anything.
     
  15. sefeloth

    sefeloth Veteran Veteran

    Messages:
    33
    Likes Received:
    4
    First Language:
    english
    wow, great work!
     
  16. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,294
    Likes Received:
    1,267
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Stuff in status don't preload properly. They are invisible the first time that I go to the menu. That's the reason I need preloader in the first place.

    It doesn't preload pictures even when I put them into the advanced stuffs and specifically tell it to preload said pictures.
     
    Last edited: Mar 6, 2018
  17. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,650
    Likes Received:
    14,404
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Actually some menus don't display some stuffs immediately depending on their update code. I have this problem with status effects in my Battle UI but the preloader works as intended when testing on other parts of my UI like the item menu on map.

    If you also have the Community_Basic Plugin, Increase the cache limit to 99999999 or something.
     
    Last edited: Mar 6, 2018
  18. Tuomo L

    Tuomo L Oldbie Veteran

    Messages:
    2,294
    Likes Received:
    1,267
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    The thing is, one of the characters preloads and displays correctly while others don't which looks really weird. This issue didn't happen when using SRD's preloader, as oppossed to this.
     
  19. Allan Bays

    Allan Bays Veteran Veteran

    Messages:
    42
    Likes Received:
    82
    Location:
    Denver, CO
    First Language:
    English
    Primarily Uses:
    RMMV
    I had the new version for 1.6 working fine, but now suddenly I get a crash any time I try to start a new game or load a save file, it says it cannot find the asset files, here is a screenshot of the error log. I have already commented out the two extra lines under preloaded audio.
     

    Attached Files:

  20. Archeia

    Archeia Level 99 Demi-fiend Staff Member Developer

    Messages:
    14,650
    Likes Received:
    14,404
    Location:
    Game Dev Salt Mines
    First Language:
    Filipino
    Primarily Uses:
    VNM
    Maybe you accidentally deleted a file?
     

Share This Page