Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dogtanian

#1
Quote from: Khris on Thu 25/06/2015 16:53:13
I tried something else and took a random text file, copied it over "splash.ogv" and ran the game again. That resulted in a pretty nasty crash, which probably means that in your case AGS actually can't find the file.

I assume you use Windows Explorer? (I use TotalCommander, which I dearly recommend to anyone who occasionally does stuff that involves files)
Can you make sure the file is actually called "splash.ogv", and not "splash.ogv.avi" or something like that?
Because Windows likes to hide known file extensions unless you disable that in the folder options.
And it would explain why VLC plays it but AGS can't find it.

Bam! Right on the head without even looking. (laugh)
Well done Khris, yep that was the culprit.

Also a thankyou to CW, that ogv sample video helped too.
#2
Thankyou Khris. :)

The video plays in VLC Player but you might be right, I don't know for certain if the video converted properly to OGV format. I converted from a YouTube FLV video to OGV using Any Video Converter, it could be a bad conversion so I'll try an OGV that definitely works and come back here later.

Btw, the actual error message was Unable to load theora video 'splash.ogv'

#3
Urrghhhh, either my computer is mentally challenged or I am. Okay, first up I think I have put the video file into the right place. I first tried an avi. file which I put into the "compiled" folder and I get a "cannnot find video" message. so I tried converting to ogv. format and I put that file into the Game folder (where the agf. file is) and I get a "cannot load theora video" message.

here is my code (hotspot number 2):

Code: ags

function hHotspot1_Look()
{

    Display("I am about to play sound!");
    AudioChannel* soundChannel = gold1.Play();
    soundChannel.Volume = 100;

}

function hHotspot2_AnyClick()
{
PlayVideo("splash.ogv",eVideoSkipNotAllowed, 0);
}


Have I made a mistake?
#4
Thankyou Crimson and Khris. I believe I have made some progress. :)
I ran the "Build EXE" and then ran the "Run Game Setup" and changed Digital Sound from "Default Direct Sound Device" to "Default Wave Out Device" and when I ran it, the sound worked! I really don't have much of a clue what any of that means, I just pressed the buttons at random and crossed my fingers.

So now I'm wondering, is there a way to keep AGS in that "Default Wave Out" mode? At the moment I can only get the sound working when I use the "Run Game Setup". I'm guessing it's something to do with my Xonar DS sound card, I bet the program would work normally if I was using onboard sound.

A second minor issue (at least I hope it's minor) is that I selected the "Any Click" for the hotspot, but it only works with the "Eye" icon.

EDIT* Oh.. wait a sec, it continues to work! I now have sound! (nod)
Okay, so if I run Game Setup and select Wave Out Device before I start on a project, that should fix my problem. :cheesy:

Thankyou again to Crimson Wizard, Khris, Monsieur OUXX and Snarky.
#5
Quote from: Monsieur OUXX on Mon 22/06/2015 16:03:51
At this stage I'd recommend uploading your game files so that we can try.

Thankyou Monsiuer. I don't really have anything much to upload, but here it is: http://s000.tinyupload.com/?file_id=83774531228068138218
#6
Thanks Snarky. :smiley:
No difference. I'm tired and I'm not quite thinking clearly at the moment so I'll try it again tomorrow when my brain is up to speed, but I did discover that when I downloaded an AGS game, when I ran the "app icon" the game had no sound, but when I ran it from the Windows exe, the sound worked fine. I don't know if that means anything.

My OS is Windows 7 64-bit and I am running AGS v3.3.3
Also, the mp3 music track I am using is about 3 minutes long.
#7
No luck. I started from scratch (it only took a minute) and added the code; the message text appears ("I am about to play a sound!" but the sound doesn't play. It's MP3 format. I checked that the MP3 is working in AGS and it seems to be fine.

Sound is not disabled.
I think I'll call it an evening and have another go tomorrow. Thankyou Crimson.
#8
Yaay, a reply. Thankyou Crimson :smiley:

I think I added the music file correctly, in the Project Tree I right-clicked on the Music folder and added the song. The song is in the Music folder.
I changed the name to "gold1" so the ScriptName is gold1

Whatever it is I got wrong, it's very likely something embarrassingly obvious and I'm just not seeing it. I'll start fresh and follow the tutorial again.
#9
Three hours.. three HOURS I have spent trying to figure this out! I've scoured the internet and checked the FAQ and tutorial manual but I've come up empty except for a guide that is from 2004 so is a little out of date. TBH I don't understand codes and I have no interest in spending years and years trying to learn complicated stuff, but since all my "game" is going to consist of is pushing buttons to play music and video clips, it shouldn't be beyond my ability.

I have started by using the default game and I am following the tutorial, I can make a message appear but I can't figure out how to play an audio file. This is the code I have typed:
Code: ags

// room script file

function spot1_Look()
{
gold1.Play();
}



What could possibly be wrong?
SMF spam blocked by CleanTalk