Scrolling Game Development Kit Forum

SGDK Version 1 => Help/FAQ => Topic started by: billybob884 on 2006-01-31, 05:41:09 PM

Title: video problem
Post by: billybob884 on 2006-01-31, 05:41:09 PM
after each time i save, i'm having a little problem. it saves ok, then i select continue on the menu, and it begins to play the little prelevel video clip (theres 1 before each major level). if i let it play through, it works fine, but if i press any key to skip it, it stops playing hte video and shows a black screen, with hte previous levels music playing, and then just does nothing. so far this has happened 3 times, on the first 3 levels, but doesnt happen if i try to skip the video after loading the save.
Title: Re: video problem
Post by: billybob884 on 2006-02-01, 06:38:06 AM
actually this only seems to happen occasionally, and so far only for the first 3 videos. it's very strange indeed.
Title: Re: video problem
Post by: billybob884 on 2006-02-01, 03:55:20 PM
I up'ed it on YouSendIt, so it should be there for another 6 days:
http://s53.yousendit.com/d.aspx?id=2NK5Y1JJQ3R1P2991KEVSG1OVA

its 50.66mb (the fully compressed installer)

Supposedly they have very fast d/l speeds, I don't personally remember, but that should help a good bit for a file this large.
Title: Re: video problem
Post by: bluemonkmn on 2006-02-02, 07:13:53 AM
I don't have time to download it at the moment, but let me see if I can get started asking some of the right questions at least:
Title: Re: video problem
Post by: billybob884 on 2006-02-02, 07:20:01 AM
  • Do you want the video clip to play after saving or is that just a side-effect that you could or would like to do without?

Yea its supposed to play;

  • Can you work around the problem by skipping the video clip after a save by changing the special function sequence that occurs during a save somehow?

i could try having the video clip play before it saves, but i was hoping to keep the present order of lvl, boss, save, clip;

  • Does the problem only occur when saving and not after loading?

Yep, only after saving (I'm pretty sure, have to check when I get home);
Title: Re: video problem
Post by: billybob884 on 2006-02-02, 02:26:25 PM
ok, putting hte videos b4 the saves worked great, have't seen the problem since ::) . heh, thanks
Title: Re: video problem
Post by: billybob884 on 2006-02-03, 01:54:54 PM
ok, i was wrong, its still a problem...


the only thing i can think of is maybe theres a problem with the video itsself..
Title: Re: video problem
Post by: bluemonkmn on 2006-02-04, 10:48:02 AM
I downloaded the project; how do you reproduce the problem?
Title: Re: video problem
Post by: billybob884 on 2006-02-04, 02:27:30 PM
well, quick way to do it is through the level select. at the nmain menu go to start, but press ctrl; that brings you to the level select. then just go to any white box with 3 horizontal ovals and a T followed by a number (i see it happen in 1-3 the most). jump up at once and it brings you to a short NPC-controlled level, then to a save screen. save it to any slot then go to ocntinue game. this will bring you to a little prelevel clip, and this is where it locks up, it will play the clip fine, but if you try to skip it or let it play through, nearly all of the time it just shows a blank scsreen with the previous level's music playing, and you have to alt-tab it to get out.
Title: Re: video problem
Post by: bluemonkmn on 2006-02-04, 05:19:37 PM
Well, I tried going through those levels a few times now; I tried skipping and not skipping the video.  I can't get it to fail in the way you describe.  I looked at the level where the problem happens and the design of the level looks remarkably simple.  All I can do is offer some tips on trying to help diagnose the problem next time you see it or things to try to see if it makes the problem go away.  First of all, you should probably put the sequencing back the way it was (the way it is in the copy I have, I presume) if that's the ideal sequencing.  Changing the sequence probably didn't help the problem, and I wouldn't want you to compromise your design for no reason.

So here's some more things to try:

These are just things to try to see if you understand the problem better.  You don't necessarily have to leave your project that way if new information suggests a better solution.

Best of luck.  Oh, and I don't care if this game is huge; I'm going to have to get it on the listing one way or another when you give it your blessing to be released! :)
Title: Re: video problem
Post by: billybob884 on 2006-02-04, 05:55:08 PM
  • Try putting the pre-level video as a function on the actual map that will be active instead of a map of its own.

so just as a function that 'activates once before gameplay begins'? hopefully that wont make it play each time the level starts (i.e. if the player dies). if it did i could always make it require an inventory

Best of luck.
Title: Re: video problem
Post by: bluemonkmn on 2006-02-04, 08:50:20 PM
The "Activate once before gameplay begins" only applies to the beginning of the game and not the beginning of the map.  But you could make it a global function that gets removed after it is activated.  As long as you save the game before the function is activated, that will allow the video to play after you load the game, but it won't play again after you die.