Multimedia questions : videos, musics...

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Multimedia questions : videos, musics...

Postby Simon » Thu Jun 28, 2012 10:47 am

Hello, since my AM full version works, I could try a lot of things, and I can say my playable demo is going well :) You should be able to try it soon !

I have a few questions about video and music. I've been searching a lot over the forums to try and find answers, but didn't really find what I wanted, so I made a new post...

1/ Videos

Using vid?os in AM is just perfect, everything works when I use videos inside hotspots, and it also works great using VBS + the procedure (playvideowin7).

The real problem is that, when I use the procedure, the mouse cursor changes in a hand, even if I use the VBS code to change the cursor. And on top of that, when I click on the video, it either :
- closes the video and goes to the next frame (which I don't want to)
- or pauses the video (which is not a very very big problem, but not really wanted too)
It seems to be linked to the Windows Media Player functionalities, and I wondered if there was a way to avoid that ???

2/ Music

A good game needs music for the ambiance, so I do need to add music in my game :) Didn't find any thread on the best way to do that, so I use the following option : frame properties/audio/channel 1 and I add the music.

Doing this, I have a biiiiiiiig problem, and I already saw it on another thread with no solution given :
when the game is saved, and when you load the saved game, the music is not loaded !! You come back to the exact place you were, but no music !

I read somewhere that it was possible to use the "set resume location" instead, but I don't understand how it can replace the save/load function.

So, how would you advise me to add music ?

That's all for now, thanks !
User avatar
Simon
Expert Member
 
Posts: 418
Joined: Sun Jun 10, 2012 1:47 pm
Location: France

Postby reneuend » Thu Jun 28, 2012 12:40 pm

I wish I had more time to work on your issues. I'll give you my thoughts and possible work-arounds. However, someone like CBSection would probably have a better answer (He builds commercial games with AM).

VIDEO: Since you are running a video in a hotspot, it naturally is expecting to perform some kind of event when you click on it. I don't recall having the issues you are having, but one way to avoid this issue is to use KeyGuard and not allow the cursor to move over these hotspots. It's fairly easy to do this and there examples that came with KeyGuard (not sure if the examples are in the lastest version though).

Audio: I created a plugin for Save/Load Game, but I don't think I handled this issue. I'll have to fix that for a future release.
In order to cook up your own solution, you'll need to be able to KNOW when the game is being loaded. I'm not sure this is possible with the built-in AM Load game functionality. If it is then you could store the current playing ambient sound in a Variable. Create a subroutine that you will call anytime the ambient sound changes. Save the current ambient sound to the variable inside this subroutine. On game load, check this variable and play the sound.

Good luck and I hope you get a better answer.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Simon » Fri Jun 29, 2012 9:45 am

Hi reneuend,

- Video :
In fact I think you misunderstood me, maybe I didn't explain well. When I use videos in the hotspots, I have no problem, it's perfect. But in special cases, I need to use the "playvideowin7" procedure, and it's with thoses videos that I have the issue (as I explained before, a "hand cursor" appears and I can't change it, and when I click on the video called via this procedure, it either pauses the video or skips it !)

- Audio :
Do you know how to store the current ambiant store in a variable ? Seems to be an interesting solution !
Does someone know if a variable can automatically be called each time a saved game is loaded ???

Thanks !!!
User avatar
Simon
Expert Member
 
Posts: 418
Joined: Sun Jun 10, 2012 1:47 pm
Location: France

Re: Multimedia questions : videos, musics...

Postby mercedes » Sun Jul 01, 2012 3:49 am

The real problem is that, when I use the procedure, the mouse cursor changes in a hand, even if I use the VBS code to change the cursor. And on top of that, when I click on the video, it either :
- closes the video and goes to the next frame (which I don't want to)
- or pauses the video (which is not a very very big problem, but not really wanted too)
It seems to be linked to the Windows Media Player functionalities, and I wondered if there was a way to avoid that ???


Hey there..

Where videos are concerned;

When it comes to the cursor outside the frame...I don't beleive there is a way to change the cursor..or control it, with AM default settings..

As for a hotspot cursor change..As Renuend was saying..I think one of the only options, that I can think of as well..is with KG, using Limited Cursor functions..
User avatar
mercedes
VIP
 
Posts: 2460
Joined: Sun Mar 09, 2008 10:43 pm
Location: Canada..~

Postby Simon » Sun Jul 01, 2012 6:13 pm

Thanks Mercedes ! In fact I'm speaking of the cursor INSIDE the frames ! Because yes, when videos are playing, the cursor becomes a HAND, but this cursor cannot be changed with the code "change defaultcursor" !
And when you click on the video, it's skipped, and I don't want to !!!
You can see it if you try my demo...
The cursor outside the frames doesn't bother me, because I made a "skip" cursor. It really is the one inside the frames that poses problem... :(

Btw, is there a way to go from fullscreen to window mode via an option menu, without using the basic launcher ? I don't need it to be in-game, but in the main menu. I saw "alt+enter" sometimes works, sometime doesn't...
User avatar
Simon
Expert Member
 
Posts: 418
Joined: Sun Jun 10, 2012 1:47 pm
Location: France

Postby Simon » Wed Jul 11, 2012 10:09 am

Noone can help me with this ???
I try to reformulate my problem :

1/ Audio

- I want to save the music beeing played in a variable and I don't know how to do that...
- I want this variable to be auto-loaded when a saved game is loaded, and I don't know how to do that too... I saw there is an OnLoadGame function, but I don't understand how to use it.

Edit : I didn't see GM posted a kind of solution for my Audio problem here : http://www.adventuremaker.com/phpBB2/vi ... php?t=6482
Cool ! I'll try this soon :D Happy ! Still have the following video problem :

2/ Video

- When I add a video in my game (a video not being played inside a hotspot), the cursor is not the one I define with the ChangeDefaultCursor function, but a hand cursor, whatever I do in the code ! ... And if i click on the video, it pauses it or skips it.

2 pictures to explain this :

- top picture : a video is being played, and the cursor is not over the video. It changed as I defined it with the ChangeDefaultCursor function, so it's OK in this case. But !!! as soon as I leave the red zone, it goes to a hand cursor that I cannot change (bottom picture).

- bottom picture : the video is still being played. The cursor is within the red zone and is the hand cursor I don't want ! If I click, it skips the video.

Hope you understand what I mean...
Attachments
cursor2.jpg
cursor2.jpg (29.4 KiB) Viewed 4761 times
cursor1.jpg
cursor1.jpg (27.2 KiB) Viewed 4761 times
User avatar
Simon
Expert Member
 
Posts: 418
Joined: Sun Jun 10, 2012 1:47 pm
Location: France

Postby GM-Support » Wed Jul 11, 2012 6:10 pm

Thanks Simon for the screenshots detailing the problem of the cursor during videos.
I am going to look into the possibility of changing this in the next version.

IMPORTANT:
Does everybody agree that in the next version of Adventure Maker the cursor should not become a hand when a full screen video is playing?

Thanks for your input,
Best regards,
GM-Support
GM-Support
Forum Admin and Games Page admin
 
Posts: 2221
Joined: Thu Jun 05, 2003 7:52 pm

Postby reneuend » Wed Jul 11, 2012 11:26 pm

Yes. I agree. It would be nice to have the option to disable the mouse at full screen.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Simon » Thu Jul 12, 2012 8:04 am

That would be awesome :D

The best would be :
you can't click on the video + the cursor doesn't appear = mouse totally disabled during videos.

If not possible, then it would be cool to have the possibility to change the cursor, at least. So we can put a "skip" cursor or something that warns the user : "when you click it skips the video".

Well, if everybody agrees with this, of course...
User avatar
Simon
Expert Member
 
Posts: 418
Joined: Sun Jun 10, 2012 1:47 pm
Location: France

Postby reneuend » Thu Jul 12, 2012 1:11 pm

Peronally, it would be nice to have the option to disable or enable the mouse (programmatically would be okay). But if stuck with only one choice, then disable.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby CBSection31 » Mon Jul 16, 2012 12:18 am

Yes, GM, I would agree.
CBSection31
Code Master
 
Posts: 564
Joined: Tue Jun 10, 2003 4:00 am

Postby Vairon » Mon Jul 16, 2012 4:04 pm

I agree with reneuend.
User avatar
Vairon
Forum Master
 
Posts: 500
Joined: Sat Jul 14, 2007 12:40 pm
Location: Spain

Postby time-killer-games » Sat Jul 21, 2012 12:45 am

I agree, the cursor should be a cursor of the user's choice. Instead of the video being skipped when clicked, that really should be optional. Like a checkbox if the video is skippable, leaving it unchecked if the user doesn't want to allow the video to be skipped. Checked as the default.
User avatar
time-killer-games
Expert Member
 
Posts: 400
Joined: Fri Dec 24, 2010 6:10 pm
Location: Virginia Beach, VA

Postby Candle » Sat Jul 21, 2012 2:55 am

Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar

Postby reneuend » Sat Jul 21, 2012 3:53 am

autohotkey is great for setting up your own macros for your own computer, but I don't see how it would work with a game.

I use autohotkey to switch between headset and speakers.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby Candle » Sat Jul 21, 2012 3:54 am

You can run exe files with AM :)
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3077
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron