FLC video not working

Started by , Tue 02/08/2005 17:45:50

Previous topic - Next topic

farhanx

on a user click i want to show a video which is in .FLC format and i did that by using smacker RAD tool from www.smacker.com . But when i try to run i get error that File not found or format is not supported ...
my script
PlayVideo("g:\myvedio.flc",2,0);
i put it inside its game folder too like
PlayVideo("myvedio.flc",2,0);

but nothing works

strazer


WreckCGI

Nah cuz I tried PlayVideo ("test.wmv" 1,1)  and test.avi and test.mpg  (tried all formats) with the file put in the game directory and it's never worked for me.  It's a matter of where you're putting it in in the script.  Most people out here rarely give more than 2-3 word answers when newbs need help.  Don't take it to heart.

Gilbert

So, what's the problem? I think Strazer had given a clear enough answer already. To play flic we have another function to handle it.

WreckCGI

Because I've tried to run wmvs, avi's, mpgs, etc  useing

PlayVideo ("test.avi" 1, 1,);   

and it never works. Just errors.  Says "Unexpected PlayVideo"

They're no way to troubleshoot the problem since the manual says

"just do"
PlayVideo ("test.avi" 1, 1,);   

Gilbert

Dis you read the manual section on scripting first? It's really important if you're not familiar with the conventions.

farhanx

thanks for the answers, Now i am using .FLC inside as intro but wondering why after i convert an AVi of 1.MB into FLIC it became 3 MB in side i thought FLIC some how would be smaller anyway....
yes its true that newbee always see problems especially when they come to this AGS forum where peoples mostly dont take anything serious and rather then solving newbee problem teased or piss them which is really an unhealthy attitude. Plus professional forums like others e.g. code guru, game dev (the place where i found AGS) etc where ppls help every single newbee even their so stupid questions just because after doing HARD CORE programming they dont think they are the champs, while they are. :) Anyway  thanks for the answers.

monkey0506

#7
Well actually what you're supposed to do first is:

Read the manual.* (Gilbot mentioned this)
Read the BFAQ.
Search the forums.

If you didn't do all three of these things, then you should expect a "2 - 3 word answer".

Quote from: WreckCGI on Wed 03/08/2005 05:19:33Because I've tried to run wmvs, avi's, mpgs, etc useing

PlayVideo ("test.avi" 1, 1,);

and it never works. Just errors. Says "Unexpected PlayVideo"

They're no way to troubleshoot the problem since the manual says

"just do"
PlayVideo ("test.avi" 1, 1,);

You can't just call a function from the script.  I.E., you can't do:

Code: ags
//main global script file
PlayVideo("test.avi", 1, 1);


You have to call it from within a function.  For example, you would open the room you want to call the video from, click on the "i" button to open the Interaction Editor, go to "player enters screen (after fade-in) (maybe "before fade-in"...I don't know), set the interaction to "Run Script" then edit the script to read:

Code: ags
// player enters screen (after fade-in)
PlayVideo("test.avi", 1, 1);


I believe that if you had read the above resources (and possibly read through the tutorial) then you would have found this information somewhere.  If not you would have come across some reference of not being able to call functions from anywhere in the script, but rather only from within other functions.

I'm sorry if this isn't a thorough enough answer BTW.

Edit:
*You don't necessarily have to read the entire manual (help file), but you should at least be sure to read the entries related to your problem (there is a search function in the manual for a reason).

TerranRich

This is in the BFAQ, under "Where do I put my code?" or something like that.
Status: Trying to come up with some ideas...

monkey0506

Quote from: TerranRich on Thu 04/08/2005 18:23:56
This is in the BFAQ, under "Where do I put my code?" or something like that.

Quote from: monkey_05_06 on Wed 03/08/2005 18:52:48Read the BFAQ.

I told you! :D ;)

SMF spam blocked by CleanTalk