Preload Manager

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

    Tags:
  1. Galenmereth

    Galenmereth Not so Grump

    Messages:
    2,171
    Likes Received:
    1,710
    Location:
    Norway
    First Language:
    English
    Primarily Uses:
    N/A
    [​IMG]

    Introduction

    TDDP - PreloadManager lets you preload resources on both map load (in between map transfers) and/or upon starting the game to ensure resources such as pictures, music and sound effects are preloaded and guaranteed ready to go for player interaction.

    Before asking for help, please read the documentation page to see if it might already be covered there. That page will be updated over time and always be the most current documentation available for the plugin.

    Features

    • Preload all resources found on a map upon loading the map. Cache is used so reloading the same map will be near-instant
    • Preload specified resources on game boot using the advanced configuration options
    How to use

    Add the plugin to your game and check the documentation page for help. The Help section contains general information and a link the plugin's documentation page.

    Last updated

    2015-12-03 - 1.1.1

    Documentation

    Official documentation page and changelog

    Download

    GitHub
    1.5.0 compatible by Archeia and Yami

    Dependencies

    None

    FAQ

    No items yet

    Credit

    Tor Damian Design

    Terms of use

    Free for non-commercial and commercial use. See terms of use for the full terms.

    A big thank you to Degica for making this plugin free for commercial use for everyone!
     
    Last edited by a moderator: Sep 27, 2017
    #1
  2. Killuki Zaoldyeck

    Killuki Zaoldyeck キルアの双子の兄

    Messages:
    212
    Likes Received:
    18
    First Language:
    Spanish
    Github's link is down, can you fix it? Thank you :)
     
    #2
  3. Galenmereth

    Galenmereth Not so Grump

    Messages:
    2,171
    Likes Received:
    1,710
    Location:
    Norway
    First Language:
    English
    Primarily Uses:
    N/A
    My apologies, it was still set to private. Github link should work now :)
     
    #3
  4. Galenmereth

    Galenmereth Not so Grump

    Messages:
    2,171
    Likes Received:
    1,710
    Location:
    Norway
    First Language:
    English
    Primarily Uses:
    N/A
    New version: 1.0.1

    A new version of this plugin has now been released. The changes are:
     

    Be sure to check the documentation page for a full changelog and most up-to-date help files.
     
    #4
  5. Galenmereth

    Galenmereth Not so Grump

    Messages:
    2,171
    Likes Received:
    1,710
    Location:
    Norway
    First Language:
    English
    Primarily Uses:
    N/A
    I apologize for the double bump but this is pretty important:

    New version: 1.0.2

    A new version of this plugin has now been released. The changes are:
     

    Be sure to check the documentation page for a full changelog and most up-to-date help files.
     
    #5
  6. Tuomo L

    Tuomo L Oldbie

    Messages:
    1,852
    Likes Received:
    858
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    When I have it in my game it loads forever.
     
    #6
  7. Galenmereth

    Galenmereth Not so Grump

    Messages:
    2,171
    Likes Received:
    1,710
    Location:
    Norway
    First Language:
    English
    Primarily Uses:
    N/A
    Did you download the latest version (1.0.2)? Please also check the debug console (F8) to see if there's any files it can't find :) They'll be in red letters if so.
     
    #7
  8. Tuomo L

    Tuomo L Oldbie

    Messages:
    1,852
    Likes Received:
    858
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Yes nothing happens and nothing logs into the console.  I am running 1.0.2 version.
     
    #8
  9. Galenmereth

    Galenmereth Not so Grump

    Messages:
    2,171
    Likes Received:
    1,710
    Location:
    Norway
    First Language:
    English
    Primarily Uses:
    N/A
    Hmm, I'm not sure what might be going on then. What OS are you running, and have you got any other plugins activated?
     
    #9
  10. Tuomo L

    Tuomo L Oldbie

    Messages:
    1,852
    Likes Received:
    858
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    Windows 10. I have most of  the plugins included within the Pre order thing, this was inlucded with it too but I did update it.
     
    #10
  11. abreyer3

    abreyer3 Villager

    Messages:
    11
    Likes Received:
    1
    Location:
    U.S.A.
    First Language:
    English
    Sorry in advance if this is a stupid question, but is there a way to load all the files from within a folder rather than manually typing every name? My game is going to have hundreds of pictures, and I don't want to have to type every single file name.
     
    #11
  12. Kane Hart

    Kane Hart Elmlor.com

    Messages:
    649
    Likes Received:
    163
    Location:
    Barrie, Ontario, Canada
    First Language:
    English
    wow I will have to try this out on mobile. I wonder if this will help performance at all. Though Map transferring I assume a lot I always wondered moving around the map performance caching would help at all. 
     
    #12
  13. Galenmereth

    Galenmereth Not so Grump

    Messages:
    2,171
    Likes Received:
    1,710
    Location:
    Norway
    First Language:
    English
    Primarily Uses:
    N/A
    @Tuomo L: I am not able to reproduce the problem here. Could you try using the plugin in a completely fresh project and then see if you still have that problem? I'm sorry I can't offer any direct help but there's a lot of variables involved, so I have to exclude the bigger issues first.

    @abreyer3: That is actually a good idea for a feature and I'm going to implement that :) But do also remember that all assets found on a map will be preloaded on map start by default, including pictures shown using Show Picture.

    @Kane Heart: It is possible, since streaming in larger resources as you go could potentially easily cause slowdowns on mobile devices where asset acquisition is often slower due to sandboxing. Let me know if you test it out :)
     
    Last edited by a moderator: Oct 28, 2015
    #13
  14. Jenza

    Jenza Veteran

    Messages:
    40
    Likes Received:
    7
    First Language:
    English
    Would it also be possible to add some kind of loading bar or text to show what is being loaded just to show that the game hasn't frozen or something :p
     
    #14
    Lucas Kich likes this.
  15. Tuomo L

    Tuomo L Oldbie

    Messages:
    1,852
    Likes Received:
    858
    Location:
    Finland!
    First Language:
    Finnish
    Primarily Uses:
    RMMV
    It works on a totally fresh project but not the project with the other scripts that came in the DLC folder.
     
    #15
  16. abreyer3

    abreyer3 Villager

    Messages:
    11
    Likes Received:
    1
    Location:
    U.S.A.
    First Language:
    English
    Thanks for your help! Yeah, the show picture would be mainly used for in-battle events, so having that pre-load manager script will be very helpful. ;)
     
    #16
  17. Kane Hart

    Kane Hart Elmlor.com

    Messages:
    649
    Likes Received:
    163
    Location:
    Barrie, Ontario, Canada
    First Language:
    English
    I will have to look through this more later. I tried testing by 100% default but had sound missing issues but they had no extensions and I did not enabled any the options.

    [​IMG]
     
    #17
  18. Galenmereth

    Galenmereth Not so Grump

    Messages:
    2,171
    Likes Received:
    1,710
    Location:
    Norway
    First Language:
    English
    Primarily Uses:
    N/A
    @Kane Hart: It doesn't report the file extension because it checks if either .ogg or .m4a formats exist for the given sound file. The reason for this is that the preloader can't know (and shouldn't care about) what audio format your target platform requires, so it checks if either of those are there. If the sound file is in another format it assumes it doesn't exist because other formats are not officially supported. Is the Move sound effect there in either .ogg or .m4a format? :)

    @abreyer3: Hmm I actually haven't considered battles. I'll see about implementing support for preloading all battle assets too, in addition to the folder preloading I mentioned.

    @Tuomo L: It would help me a lot if you could send me a screenshot of the other plugins you have enabled, to narrow down what might be incompatible. Or is it every single one from the dlc folder?
     
    #18
  19. Kane Hart

    Kane Hart Elmlor.com

    Messages:
    649
    Likes Received:
    163
    Location:
    Barrie, Ontario, Canada
    First Language:
    English
    Derp I had a old Ace Import I guess and it was calling for the move file :) I was like but I swore Move does not exist only 1+ Does hehe.

    Thanks for the info also :)
     
    #19
  20. Kane Hart

    Kane Hart Elmlor.com

    Messages:
    649
    Likes Received:
    163
    Location:
    Barrie, Ontario, Canada
    First Language:
    English
    Just tried it on the phone.

    Seems to work for moving from map to map and not having as much of a slowdown. Sadly the way the tiles render in the game it's going to always be slow till it's changed but works nicer at least crossing maps :)
     
    #20
    Galenmereth likes this.

Share This Page