Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Anralore on Fri 03/09/2021 08:37:43

Title: 'Unable to load theora video '1a.ogv"' Error when trying to play video [Solved]
Post by: Anralore on Fri 03/09/2021 08:37:43
I want to play a video, the video file file "1a.ogv" is in the game folder and I have this code:

Code (ags) Select
PlayVideo("1a.ogv",eVideoSkipNotAllowed, 0);

But everytime I click the hot-spot to trigger it this error appears: 'Unable to load theora video '1a.ogv"'. Why is this and how can I fix it?
Title: Re: 'Unable to load theora video '1a.ogv"' Error when trying to play video
Post by: Khris on Fri 03/09/2021 09:23:55
By "game folder", do you mean "project folder" (where it's supposed to go) or "compiled game folder" where the .exe ends up?
Title: Re: 'Unable to load theora video '1a.ogv"' Error when trying to play video
Post by: Anralore on Fri 03/09/2021 09:29:40
Quote from: Khris on Fri 03/09/2021 09:23:55
By "game folder", do you mean "project folder" (where it's supposed to go) or "compiled game folder" where the .exe ends up?

The video file is in the same folder that stores the room(.asc and .crm) data. I also have it in the game folder in documents and neither seem to work.
Title: Re: 'Unable to load theora video '1a.ogv"' Error when trying to play video
Post by: Khris on Fri 03/09/2021 09:36:43
Good, one other possible reason: Windows hides known extensions, so is it possible that the file is called "1a.ogv.ogv"? I assume it's associated with VLC or something, so if you don't see .exe but see .ogv, that means the name is bad.
You can turn the option off in Windows explorer or use Total Commander to see the actual name.
Title: Re: 'Unable to load theora video '1a.ogv"' Error when trying to play video
Post by: Anralore on Fri 03/09/2021 09:45:29
Quote from: Khris on Fri 03/09/2021 09:36:43
Windows hides known extensions, so is it possible that the file is called "1a.ogv.ogv"? I assume it's associated with VLC or something, so if you don't see .exe but see .ogv, that means the name is bad.
You can turn the option off in Windows explorer or use Total Commander to see the actual name.

That was the problem, I removed the .ogv at the end and now it works.

Thank you!