Author Topic: Pushed to the limit - movie layers VP  (Read 870 times)

dave_h

  • Wizard
  • *****
  • Posts: 185
    • View Profile
Pushed to the limit - movie layers VP
« on: August 22, 2015, 06:11:21 PM »
Can't get passed crashing in the loadIntoCache whilst in VP.

Code: [Select]
2015-08-22 22:59:37,913 - game.assets - ERROR - ===ASSET MANAGER - ASSET FAILURE===
2015-08-22 22:59:37,913 - game.assets - ERROR - Animation: [m]: Video/Jackpot/m.avi
2015-08-22 22:59:37,913 - game.assets - ERROR - ======
2015-08-22 22:59:37,914 - vpcom - INFO - game instantiation error(ValueError: Movie failed to load filename: './assets/dmd/Video/Jackpot/m.avi')
2015-08-22 22:59:37,914 - vpcom - INFO - PYTHON FAILURE (Visual Pinball Bridge is now broken)
2015-08-22 22:59:37,914 - vpcom - INFO - Exception Name Movie failed to load filename: './assets/dmd/Video/Jackpot/m.avi'
2015-08-22 22:59:37,914 - vpcom - INFO - Traceback (most recent call last):
2015-08-22 22:59:37,914 - vpcom - INFO -   File "C:\P-ROC\tools\register_vpcom.py", line 221, in Run
2015-08-22 22:59:37,914 - vpcom - INFO -     self.game = klass()
2015-08-22 22:59:37,915 - vpcom - INFO -   File "C:\P-ROC\games\ED\Game.py", line 44, in __init__
2015-08-22 22:59:37,915 - vpcom - INFO -     super(Game, self).__init__('config/GameConfig.yaml', self.curr_file_path)
2015-08-22 22:59:37,915 - vpcom - INFO -   File "C:\P-ROC\games\ED\procgame\game\skeletongame.py", line 179, in __init__
2015-08-22 22:59:37,915 - vpcom - INFO -     self.load_assets()
2015-08-22 22:59:37,915 - vpcom - INFO -   File "C:\P-ROC\games\ED\procgame\game\skeletongame.py", line 612, in load_assets
2015-08-22 22:59:37,915 - vpcom - INFO -     self.asset_mgr = assetmanager.AssetManager(game=self)
2015-08-22 22:59:37,915 - vpcom - INFO -   File "C:\P-ROC\games\ED\procgame\assetmanager.py", line 115, in __init__
2015-08-22 22:59:37,915 - vpcom - INFO -     self.load()
2015-08-22 22:59:37,915 - vpcom - INFO -   File "C:\P-ROC\games\ED\procgame\assetmanager.py", line 267, in load
2015-08-22 22:59:37,915 - vpcom - INFO -     self.loadIntoCache(k,ft,f,r,h,o,c,x,y,streaming_load)
2015-08-22 22:59:37,915 - vpcom - INFO -   File "C:\P-ROC\games\ED\procgame\assetmanager.py", line 176, in loadIntoCache
2015-08-22 22:59:37,915 - vpcom - INFO -     self.animations[key] = dmd.MovieLayer(opaque, hold=holdLastFrame, repeat=repeatAnim, frame_time=frametime, movie_file_path=self.dmd_path + file)
2015-08-22 22:59:37,915 - vpcom - INFO -   File "C:\P-ROC\games\ED\procgame\dmd\layers.py", line 219, in __init__
2015-08-22 22:59:37,917 - vpcom - INFO -     movie = Movie().load(movie_file_path)
2015-08-22 22:59:37,917 - vpcom - INFO -   File "C:\P-ROC\games\ED\procgame\dmd\movie.py", line 56, in load
2015-08-22 22:59:37,917 - vpcom - INFO -     raise ValueError, "Movie failed to load filename: '%s'" % filename
2015-08-22 22:59:37,917 - vpcom - INFO - ValueError: Movie failed to load filename: './assets/dmd/Video/Jackpot/m.avi'


Total number of videos == 80
Total size of Videos == 11.6mb

Tried renaming as you can see to just 'm' and replacing known clips that do work in the assetlist before it reaches this file. Clip loads if placed before a working clip. It just has seemed to reach a limit now. The size of the videos is ridiculously small to be fair for the amount of them and all set to streaming load.

What is the limit and why? A fair amount could probably be converted to frames or dmd but would be nice to know so it can be prevented.
« Last Edit: August 22, 2015, 06:21:34 PM by dave_h »

dave_h

  • Wizard
  • *****
  • Posts: 185
    • View Profile
Re: Pushed to the limit - movie layers VP
« Reply #1 on: August 22, 2015, 06:20:47 PM »
Fixed by using the streaming tag set to False on the recent additions to assetlist.

I probably just have a problem with mp4 pre-loading with VP, avi seems fine, this is the first time I've pre-loaded successfully with VP.