Video Clips in AGS?

Started by theninjoh, Mon 20/02/2012 17:59:50

Previous topic - Next topic

theninjoh

Hello :) I'm new to using Adventure Game Studio, and I'm currently working on a game right now. (AGS is an amazing program  ;D). And, I have a question (I wasn't sure where to ask this question, so I just put it here, in the technical questions board). So, my question is: "Can I insert/add a video in AGS?" - I'm not really good with creating cutscenes, so can I use a video clip as a cutscene?

Thanks in advance :)

DoorKnobHandle

Welcome! ;D

If you open AGS and hit F1 you'll be presented with the manual. You can easily search that and find your answer! There isn't really anything to say - it's perfectly possible. In the future, it's easiest for everyone if you first look in that manual (maybe even just read through it kinda like a book once or twice, it really has soooo much info) and then create a thread, only if it didn't have the information you were looking for of course.

theninjoh

Oh. I see. It says I can use videos, but the problem is ... how do I import it?

Khris


theninjoh

I did read the manual. I just don't get it. I have the video in the main game folder (OGG file)... and I tried the script but it doesn't work.

Khris

#5
Could you post the file name, the code you're using, where and how you put it in the game and maybe be a tad more specific about what's happening...?

Since, we, like, can't see your screen and stuff.

Edit: Also, did you read the manual before asking how to "import" videos...?

Arjunaz78

Manually you need to place your video file (OGG file) inside the Compiler folder in the main game folder, then in game script (room script) you can call the video by using..

Code: ags

PlayVideo("blablabla.ogg", eVideoSkipEscKey, 1);


p/s: If your video still cannot be played,you need to convert it to other video format such as .wmv .mpg

good luck!  :)

THX.
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

Khris

The manual clearly states that OGG videos are supposed to have the file extension OGV and must be placed in the main game folder, not the Compiled folder.
I don't know if .ogv is important, but the location certainly is.

Nobody's perfect, but in a thread that is precisely about details such as this, MAKE SURE YOU KNOW WHAT YOU'RE TALKING ABOUT.  ::)

Arjunaz78

Oh REALLY?

Where the video goes after you compiled the games?

Is it we need to put the video inside the compiler folder before compiled it?

well..dude..don't underestimate me because i'm rookie on AGS, besides i think you're  not good enough if i comparing you using the wintermute engine.
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

theninjoh

here is the code that I used: (the video is named Intro, and I placed it in the main game folder)

PlayVideo(intro.ogv, eVideoSkipNotAllowed, 0);

but it doesn't play.

I get this error all the time:

Failed to save room room32.crm; details below
room32.asc(4): Error (line 4): Parse error in expr near '1.'

Khris

Quote from: Arjunaz78 on Fri 24/02/2012 18:21:59Oh REALLY?

Where the video goes after you compiled the games?
YES, REALLY. ::) ::) ::)
Quote from: manualOGG Theora videos are also built into the game EXE file when you compile the game (just make sure the file has a .OGV extension and is placed in your main game folder).

theninjoh:
Try:
  PlayVideo("intro.ogv", eVideoSkipNotAllowed, 0);
(Note the quote marks around the filename, also make sure you put the command inside a properly linked function (e.g. room_AfterFadein), not directly into the room script.

theninjoh

#11
I think you only put other video formats in the compiled folder, and OGV/OGG formats in the main game folder.. but thanks anyway :)

Oh, and I do have a function at the beginning.

I just forgot to put the quotation marks ... my bad.

EDIT: by the way, the video doesn't actually play when I preview the game.

SMF spam blocked by CleanTalk