Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Icey on Tue 12/04/2011 03:06:41

Title: Video not working, keeps freezing![solved]
Post by: Icey on Tue 12/04/2011 03:06:41
at the end of my game I have a video that plays. However it just freezes the game and you can't even exit it.
Title: Re: Video not working, keeps freezing!
Post by: TheRoger on Tue 12/04/2011 06:03:52
Check format of the video, maybe AGS don't recognise it. Also try to set graphics driver to DirectDraw  instead of Direct3D.
Title: Re: Video not working, keeps freezing!
Post by: Icey on Tue 12/04/2011 19:55:37
it's wmv. And I will check the settings now.

It's not work. it just freezes the game.
Title: Re: Video not working, keeps freezing!
Post by: Icey on Tue 12/04/2011 21:49:56
What would be the best WMV output for AGS?
Title: Re: Video not working, keeps freezing![solved]
Post by: mode7 on Sun 17/04/2011 09:37:12
Just use OGV (theora) it works best for me in AGS and it gets compiled into the exe which is an advantadge to.

This encoder works very well for me:
http://sourceforge.net/apps/phpwebsite/theoraconverter/
Title: Re: Video not working, keeps freezing![solved]
Post by: Icey on Mon 18/04/2011 20:45:24
I can't use that for this game because there is some type of var with the same name as something in the plugin.
Title: Re: Video not working, keeps freezing![solved]
Post by: Matti on Mon 18/04/2011 20:55:39
Then change its name..
Title: Re: Video not working, keeps freezing![solved]
Post by: Icey on Tue 19/04/2011 00:22:55
When ever I work with a var it's there for a reason and if I change I will mess up the game.
Title: Re: Video not working, keeps freezing![solved]
Post by: monkey0506 on Tue 19/04/2011 00:26:08
So you're referencing SOMENAME.OGV in a custom runtime plugin, but it's not actually in any way related to an OGV video, and changing the name (whether of the actual file or within your own custom plugin) is completely impossible without breaking your entire game?

..I wish I were as amazing a programmer as you. Really, I do.
Title: Re: Video not working, keeps freezing![solved]
Post by: Icey on Tue 19/04/2011 01:21:48
There is a variable in game script that has the same name as one in the theora plugin. I can't try to change the one in the theora plugin because it has no script. There for I would have to figure out a way to work around the problem or just rename the variable in my script and suffer as I try to figure out a way to fix my game.
Title: Re: Video not working, keeps freezing![solved]
Post by: monkey0506 on Tue 19/04/2011 01:32:38
Yes, because doing a Find+Replace for the variable name within your own scripts would be inconceivable.

Then doing a Rebuild All Files to ensure that you haven't missed anything and using the error log provided to directly open the remaining scripts and replace any other instances that haven't been replaced yet..that would just be..I don't think that such technology to make that feasible could ever exist!!

You're right. That would be beyond the realms of possibility.

Oh, and the fact that nobody ever said anything about the Theora plugin for AGS (except you). AGS now natively supports OGG Theora video files..well, provided you're using at least AGS 3.1.1.
Title: Re: Video not working, keeps freezing![solved]
Post by: Icey on Tue 19/04/2011 01:48:00
I am using 3.21

I could of swore mode7 men't that when he said (theora)

I am still learn how to use ags this is the first time I used variables & structs on my own. I do not want to try something different because of 1 video.

Also all I have to do is convert my video in to a OGV format to have it compiled in my game?
Title: Re: Video not working, keeps freezing![solved]
Post by: Khris on Tue 19/04/2011 02:02:30
Quote from: Studio3 on Tue 19/04/2011 01:48:00men't
:o

YOU assumed he was talking of the plugin.

Out of curiosity, what's the variable name that conflicts with the plugin?
Title: Re: Video not working, keeps freezing![solved]
Post by: monkey0506 on Tue 19/04/2011 02:04:34
Provided that your video is converted into a proper OGG Theora video (with the OGV extension) then it can be successfully compiled into your game and used with the same PlayVideo function that you're already using (just update the filename in your function calls).
Title: Re: Video not working, keeps freezing![solved]
Post by: Icey on Tue 19/04/2011 02:40:34
Quote from: Khris on Tue 19/04/2011 02:02:30
Quote from: Studio3 on Tue 19/04/2011 01:48:00men't
:o

YOU assumed he was talking of the plugin.

Out of curiosity, what's the variable name that conflicts with the plugin?

I think it's time or playvideo. If it was time I
Quote from: monkey_05_06 on Tue 19/04/2011 02:04:34
Provided that your video is converted into a proper OGG Theora video (with the OGV extension) then it can be successfully compiled into your game and used with the same PlayVideo function that you're already using (just update the filename in your function calls).
really don't wont to try and switch that because that time variable must fit somewhere with the RPG part of the game.

Ok, I will try that.