Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.

Visit our new games list, blog aggregator, IRC channel, and Discord (new).
Activation problem? Email pytom@bishoujo.us.
It is currently Tue Jun 27, 2017 6:42 pm

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Videos not playing
PostPosted: Wed Mar 15, 2017 4:09 pm 
Newbie

Joined: Sat Mar 04, 2017 8:19 am
Posts: 15
I made a breathing animation for one of my characters but it doesn't always work.
I have it as a webm

The define code for it is this:
Code:
image nep_body normal = Movie(channel="nep_body", play="sprites/nep/nep_body.webm", mask = "sprites/nep/nep_body_mask.webm")


And the call function is simply this:
Code:
show nep_body normal at right


But the animation doesn't always start. Sometimes it get's stuck on a specific frame, sometimes it doesn't start at all. I noticed that it has something to do with how fast I'm clicking. Is this a performance issue?

I don't understand what could be causing this.


Top
 Profile Send private message  
 
 Post subject: Re: Videos not playing
PostPosted: Wed Mar 15, 2017 11:43 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 14676
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Twitter: @renpytom
Github: renpytom
itch.io: renpytom
It could be, but video decoding should be fast. It should catch up if it gets stuck, also.

_________________
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Code > Drama
https://www.patreon.com/renpytom


Top
 Profile Send private message  
 
 Post subject: Re: Videos not playing
PostPosted: Thu Mar 16, 2017 1:18 am 
Miko-Class Veteran
User avatar

Joined: Sat Sep 03, 2016 4:00 am
Posts: 528
@Cristiander : can I borrow your sprite for testing?

I tried using a random webm movie from the web as a sprite and it didn't get stuck. The problem is, it disappears when I push the "back" button.... :o

_________________
My avatar is courtesy of Mellanthe


Top
 Profile Send private message  
 
 Post subject: Re: Videos not playing
PostPosted: Thu Mar 16, 2017 12:59 pm 
Newbie

Joined: Sat Mar 04, 2017 8:19 am
Posts: 15
indoneko wrote:
@Cristiander : can I borrow your sprite for testing?

I tried using a random webm movie from the web as a sprite and it didn't get stuck. The problem is, it disappears when I push the "back" button.... :o



Ok, so these are the resources of the image: https://we.tl/wmy2ljcPPF

And this is how it's called:
Code:
   
show whitetint zorder 100:
  alpha 1.0
with Dissolve(5.0)

show nep_body normal at Tright_small
show nep_face closed_happy at Tright_small
show nep_hair normal at Tright_small
show nep_mought smile at Tright_small
show nep_eyebrows normal at Tright_small


where Tright_small is:
Code:
transform Tright_small:
    xalign 1.2
    yalign 1.0
    zoom 1.2


And whitetint is:
Code:
image whitetint:
  Solid("#ffffff")
  additive 1.0


Top
 Profile Send private message  
 
 Post subject: Re: Videos not playing
PostPosted: Thu Mar 16, 2017 8:28 pm 
Miko-Class Veteran
User avatar

Joined: Sat Sep 03, 2016 4:00 am
Posts: 528
Thanks~ :D

I tried your code + the nep sprite in a new project using Renpy 6.99.12.4.2168 with New Gui on Windows. It loads fine; I don't see it get stuck... until I push the back button :shock: :shock:

Attachment:
screenshot0001.png
screenshot0001.png [ 68.38 KiB | Viewed 277 times ]


Only the PNG parts of the sprite remains. Where did the webm parts go? :lol:
It happens with other webm files I use... so I don't think the problem came from the webm file itself. Did I do something wrong? Is this a bug? Can anybody else confirm this?

_________________
My avatar is courtesy of Mellanthe


Top
 Profile Send private message  
 
 Post subject: Re: Videos not playing
PostPosted: Sat Mar 18, 2017 10:56 am 
Newbie

Joined: Sat Mar 04, 2017 8:19 am
Posts: 15
indoneko wrote:
Thanks~ :D

I tried your code + the nep sprite in a new project using Renpy 6.99.12.4.2168 with New Gui on Windows. It loads fine; I don't see it get stuck... until I push the back button :shock: :shock:

Only the PNG parts of the sprite remains. Where did the webm parts go? :lol:
It happens with other webm files I use... so I don't think the problem came from the webm file itself. Did I do something wrong? Is this a bug? Can anybody else confirm this?


Odd. I don't have this problem...
When I go back all the images are the way they should be ...


Top
 Profile Send private message  
 
 Post subject: Re: Videos not playing
PostPosted: Sun Mar 19, 2017 12:49 am 
Miko-Class Veteran
User avatar

Joined: Sun Jun 05, 2016 8:29 pm
Posts: 507
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
Twitter: @BionicPenguinTH
itch.io: bionicpenguin
I have the same problem of webm video displayable not playing when rollback. Add a second pause before load the displayable seem to help.

_________________
Completed:
Image


Top
 Profile Send private message  
 
 Post subject: Re: Videos not playing
PostPosted: Sun Mar 19, 2017 3:01 am 
Miko-Class Veteran
User avatar

Joined: Sat Sep 03, 2016 4:00 am
Posts: 528
Divona wrote:
I have the same problem of webm video displayable not playing when rollback. Add a second pause before load the displayable seem to help.

Thanks for your suggestion. I tried it, but it still didn't work. :roll:

Can you test it on a new project using the nep sprite above, with the new GUI of newest Renpy (6.99.12.4) on Windows system? The sprite consistently disappeared when I rollback at the line right under the line which shows the last part of the sprite (using Cristiander code above but without the whiteint part)

_________________
My avatar is courtesy of Mellanthe


Top
 Profile Send private message  
 
 Post subject: Re: Videos not playing
PostPosted: Sun Mar 19, 2017 4:04 pm 
Miko-Class Veteran

Joined: Mon Dec 14, 2015 5:05 am
Posts: 638
Location: Your monitor
I always rolpback twice when I have any kind of animation or video.
Its annoying, but works perfect. I always assumed it was to do with how Ren'Py loads assets.

_________________
Image
Ren'Py Raspberry Pi portable console build


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group