Video not working, keeps freezing![solved]

Started by Icey, Tue 12/04/2011 03:06:41

Previous topic - Next topic

Icey

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.

TheRoger

Check format of the video, maybe AGS don't recognise it. Also try to set graphics driver to DirectDraw  instead of Direct3D.

Icey

#2
it's wmv. And I will check the settings now.

It's not work. it just freezes the game.

Icey

What would be the best WMV output for AGS?

mode7

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/

Icey

I can't use that for this game because there is some type of var with the same name as something in the plugin.

Matti


Icey

When ever I work with a var it's there for a reason and if I change I will mess up the game.

monkey0506

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.

Icey

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.

monkey0506

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.

Icey

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?

Khris

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?

monkey0506

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).

Icey

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.

SMF spam blocked by CleanTalk