Opening movie after pressing 'New Game'

Ayuki_Holmes

Villager
Member
Joined
Feb 16, 2014
Messages
14
Reaction score
2
First Language
English
Primarily Uses
Hey guys,

I was hoping there would be a script where when you press 'New Game' or whatever, instead of opening at the cutscene map as it usually does, it actually plays a movie once prior to opening at the scene map in question. I have looked at other video options, but they didn't work out for me, since I'm not that great in scripting.

One example of this occuring is a homemade indie game using RPG Maker VX called 'Treason' had an opening cutscene with words, which I did mine as a movie format as well. For those who want to see what I'm talking about, here's the video in question:

http://www.youtube.com/watch?v=pwuPAl6a5tY

I have tried various things using Events and the like, but for one reason or another it didn't work or it just skipped the whole movie entirely. It is formatted into .ovg and the like, but it didn't show up in the previews and the like. So, if anyone is willing to take on this script, I'd be grateful and yes, you'll be mentioned in the credits and you get to try out the new game that I'm currently developing.

Thanks for reading this, guys!

Ayuki Holmes.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
go to Scene_Title, find the method that process new game, then before the map set-up, play movie first

try this:

Code:
class Scene_Title  def command_new_game    DataManager.setup_new_game    close_command_window    Graphics.play_movie('Movies/' + 'filename')    fadeout_all    $game_map.autoplay    SceneManager.goto(Scene_Map)  endend
 
Last edited by a moderator:

Ayuki_Holmes

Villager
Member
Joined
Feb 16, 2014
Messages
14
Reaction score
2
First Language
English
Primarily Uses
Ah, it works, Shana... all I have to do is to get the ogv file to work... most likely, it's corrupt during its conversion, fault on my part DDDDX On the plus side, it worked like a charm... now to get that file working, if that's the last thing I do XP

Thank you for the script and yeah, you're going to be in my list of heroes XP

And a game, if that file stops being so corrupt DX

Ayuki Holmes

1 Edit Later... the file is working fine in Windows Media Player now that has been sorted out, but still won't play in-game, such as I put in the . It skips the movie entirely, should I change to another player to make it play, or keep the same player? Not sure about it XP

I don't know where I went wrong in that, looks like I'll have to find another way to get around it, maybe use my movie as a trailer... ah, well, thanks for the help, though.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
you can try using VLC to convert to ogv, I use that... you can try to play it first in VLC too before importing
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Why don't you want to use a cutscene map, or a blank map JUST for the movie and then go to another for the cutscene? If you make it a black map (no tiles) and turn off player visibility in the System tab of the database, the player wouldn't know the difference between doing that and doing it via a script before the map is loaded. Play the movie, fade the screen out, turn on player visibility, transfer to the cutscene map, and fade the screen back in again.
 

Ayuki_Holmes

Villager
Member
Joined
Feb 16, 2014
Messages
14
Reaction score
2
First Language
English
Primarily Uses
Okay, I'll give it a go and see what happens. As I pointed out, I'm not that great at scripts, and I'll be trying to figure out where I insert the movie file in before messing it up. Wish me luck!

Why don't you want to use a cutscene map, or a blank map JUST for the movie and then go to another for the cutscene? If you make it a black map (no tiles) and turn off player visibility in the System tab of the database, the player wouldn't know the difference between doing that and doing it via a script before the map is loaded. Play the movie, fade the screen out, turn on player visibility, transfer to the cutscene map, and fade the screen back in again.
Did all of that to the letter and it didn't work at all. Either it has a black screen without the movie, or it just skips it altogether and moves into the next scene as in it won't play the movie at all. I can't exactly preview it (because it doesn't have that option), so I don't know whether it happens to be the video file itself or the fact that it won't play on it. However, on another player seperately, it works fine.

One edit later: I see that you're from the same country as I am, Shaz... what part of Australia are ya from? Melbournite here :p

Two edits later: Ugh, looks like I'll have to think of something completely different now, since I epically failed on this one. Was hoping I could get it up and running but it won't let me at all. Anyways, thanks to everyone here who gave me advice and pointers on this. Maybe next time when I'm a tad more experienced I could revamp it a lot better and hopefully add that movie in. For those who are interested in the project, here's the movie that I failed to get into the game:



And yes, it was converted into ovg prior to importing.

But yeah, I'll mention all of you guys who helped out. Thanks, though.

Ayuki Holmes.

Ps: Mods, you can close it now, figured that I'll have to do something else instead. XP
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I am reopening this, because I don't see "I tried it, it didn't work, I'll have to find another way" as a valid reason to give up and close a thread, especially when those offering help have barely scratched the surface of your issue.


It is DESIGNED to be run from events, so the way I told you SHOULD work. If it doesn't, it's because you've made a mistake somewhere in the process.


Create a new map to start on, create a new autorun event on that map, add the commands and test it out. If it doesn't work, take a screenshot of that event (include the whole window), load it up, and add a link here so we can see what you've done. I don't know how experienced you are with RPG Maker, but you've only made 3 posts on this forum. So I'm going to guess you are really just finding your way around. Give the more experienced people here a chance to help you out, instead of just giving up because you couldn't find a way to do it on your own in just a few tries. :)


I'm in SE Qld. The fridge on the ridge ;)
 
Last edited by a moderator:

Ayuki_Holmes

Villager
Member
Joined
Feb 16, 2014
Messages
14
Reaction score
2
First Language
English
Primarily Uses
Okay Shaz, if ya say so XP

Just get yourself a couple of mint-choc cakes and probably a couple of beers afterwards because I'm one of those people who are "she takes THAT long to realize it before she finally gets it" people. And yes, I am quite new here, got the trial to test out for a few days prior to registering the whole thing, so I have a bit of knowing what events are and the like, but not that advanced to call myself an expert, though :p

Here are the pictures in question, including a movie or two. Sorry about the crabby quality, though, but I felt that if you see the situation via movie, it might help you see what I have attempted, thus far.



The pics



My bad, forgot to put it in .ovg file, silly me :p But either way, it does that when I attempt with a script, which is varied at

the moment, it does that and I have to restore the default script to make it work again. But the bottom three apply to the movie situation.







Now, I'll also open a new game to see if it's the file specifically, but as pointed out, it may be my laptop that couldn't handle it, even though it did handle some of the hard graphic-hogging, lag-loving games half the time o.o (Example, Final Fantasy 14: A Realm Reborn). But anyways, if you see an error that I'm missing out on, do let me know.

Side-note: I'm going to a job interview tommorow~ wish me luck, guys!

Ayuki Holmes.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I don't know if I followed that well, and I'm not really sure which bits are the issues and which aren't, but here's what I think you should check ...


In the System tab, check Transparent ON. That means the player won't be visible at the start.


Don't fadeout the screen before the movie - if your starting ("movie") map is completely empty (no tiles at all), it will be black. You don't need to fade out.


AFTER the movie, fade out the screen (or use a Tint Screen to make it black with no delay). Then do a Change Transparency: OFF to make the player visible again (you won't see them at this point, because the screen's faded out).


THEN do a transfer to the new map, and after the transfer, fade the screen back in, or tint the screen back to the normal setting.


Good luck with your job interview :)
 

Ayuki_Holmes

Villager
Member
Joined
Feb 16, 2014
Messages
14
Reaction score
2
First Language
English
Primarily Uses
Yeah, did that, but no movie is playing at all. If the movie doesn't work, I'll give you some screenshots of what happened:



Above, this is where the movie is supposed to be playing, but it's a black screen instead. After the movie, I want this to come after it:



But yeah, you can see I'm still scratching my head on this.

And thanks, Shaz ~ if I am successful, it'd be the first step to true indipendence... go me XD

Ayuki Holmes.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
So does the text happen straight away, or after a delay? Is the delay long enough that it COULD be the movie playing (is the delay the same length as the movie)?


You have NOT faded out or tinted the screen before this? Can you give a screenshot of your event again?


Are you able to load up the movie somewhere and provide a link to it, so I (or someone else) can have a play around with it?
 

Ayuki_Holmes

Villager
Member
Joined
Feb 16, 2014
Messages
14
Reaction score
2
First Language
English
Primarily Uses
Okay, to answer those questions:

1. The text happens immediately after pressing the start button. It's a 28 - 32 second video, but after playing it, for some reason or another, the video is deleted. I don't know why that happens, but it might be my system in general, so I'll have to look into that.

2. Here's the screenshot of the events used, following your post. Here it is:



3. Okay, here's the video in question. You may have to convert it to ovg, since it wouldn't let me upload it as an ovg file for some reason, which again, I'll look into it. The file would be in .mp4 and you can convert it fine, right? XP If not, I'll try it as an ovg, even though my laptop is very stubborn about it...

http://s1304.photobucket.com/user/Missi_Hollands/media/Trailer_zpsf38336e3.mp4.html

Here's the link to it, see if that helps. Good luck! o.o

Ayuki Holmes.
 

deathsia

Pegisister
Veteran
Joined
Feb 26, 2014
Messages
648
Reaction score
55
First Language
English
Primarily Uses
It's been in my experince that RPG maker's default video player is CRAP. I would suggest finding an ace script to run the movies becuase even if you do find a solution to this, you'll be doing a rediculious amount of workarounds by the time its over when something as simple as a script plays em easily. I have one for VX but I doubt it's ace compatable.

If I'm being ignorent here let me know but in VX it NEVER worked like people said it should and ended up using a script to play movies. Haven't tried it in Ace yet however.
 

Ayuki_Holmes

Villager
Member
Joined
Feb 16, 2014
Messages
14
Reaction score
2
First Language
English
Primarily Uses
Hey Deathsia,

Nah, it's not being ignorant at all, don't mind it. And far as I know, in some cases, they do work but in my case it didn't work for some reason.

Anyways, I also tried the scripts as well as far as I know to my knowledge. As I stated a lot earlier, I'm not that great of a scripter to figure out which files goes where, so I may end up messing up the whole thing instead of letting it play the movie that I wanted to play. It's okay, though, I think I found a solution that might work, but I'll have to figure a way to play it when the player chooses a new game. And I saw the ones with the seperate windows and in my honest opinion, I really don't like that as part of the game, but whatever floats their boat... if they like it in a seperate window, I can't stop them from doing so. 

By the way, I saw something that's odd in the parent scripts, where the movie parent script is missing. I'll post a piccie up here and let you see it. Is it normal to do that or is there something way wrong in that sense? If it is, should I add that in, or is there a script to correct that? And it's from the program itself, not just the game. Double-checked it.

==============================================================================
# ** Cache
#------------------------------------------------------------------------------
#  This module loads graphics, creates bitmap objects, and retains them.
# To speed up load times and conserve memory, this module holds the
# created bitmap object in the internal hash, allowing the program to
# return preexisting objects when the same bitmap is requested again.
#==============================================================================

module Cache
  #--------------------------------------------------------------------------
  # * Get Animation Graphic
  #--------------------------------------------------------------------------
  def self.animation(filename, hue)
    load_bitmap("Graphics/Animations/", filename, hue)
  end
  #--------------------------------------------------------------------------
  # * Get Battle Background (Floor) Graphic
  #--------------------------------------------------------------------------
  def self.battleback1(filename)
    load_bitmap("Graphics/Battlebacks1/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get Battle Background (Wall) Graphic
  #--------------------------------------------------------------------------
  def self.battleback2(filename)
    load_bitmap("Graphics/Battlebacks2/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get Battle Graphic
  #--------------------------------------------------------------------------
  def self.battler(filename, hue)
    load_bitmap("Graphics/Battlers/", filename, hue)
  end
  #--------------------------------------------------------------------------
  # * Get Character Graphic
  #--------------------------------------------------------------------------
  def self.character(filename)
    load_bitmap("Graphics/Characters/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get Face Graphic
  #--------------------------------------------------------------------------
  def self.face(filename)
    load_bitmap("Graphics/Faces/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get Parallax Background Graphic
  #--------------------------------------------------------------------------
  def self.parallax(filename)
    load_bitmap("Graphics/Parallaxes/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get Picture Graphic
  #--------------------------------------------------------------------------
  def self.picture(filename)
    load_bitmap("Graphics/Pictures/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get System Graphic
  #--------------------------------------------------------------------------
  def self.system(filename)
    load_bitmap("Graphics/System/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get Tileset Graphic
  #--------------------------------------------------------------------------
  def self.tileset(filename)
    load_bitmap("Graphics/Tilesets/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get Title (Background) Graphic
  #--------------------------------------------------------------------------
  def self.title1(filename)
    load_bitmap("Graphics/Titles1/", filename)
  end
  #--------------------------------------------------------------------------
  # * Get Title (Frame) Graphic
  #--------------------------------------------------------------------------
  def self.title2(filename)
    load_bitmap("Graphics/Titles2/", filename)
  end
 
When I loaded the previous scripts, it said that it was missing, and yet it was in the folder specified for it, including the importing. I looked in the scripts to see if that was the case and yeah... oddly enough, this file for movies that were supposed to be open was missing. I was also thinking of uninstalling and reinstalling it because I installed it as the trial version and updated it as the full registered version. Don't know if that's affected it or not, but there are those possibilities, though. Can't rule them out. 

But yeah, as I pointed out, I might as well figure out another way instead of playing a movie and do something that conveys the same message. If it's partially broken on my end, I can't fix it. And I did point out that I'm not that great of a scripter or an eventer to call myself an expert, so...  yeah. If anyone wants to attempt it, be my guest... I'm looking at other options other than putting in the one thing that I know that wouldn't work, even though I tried everything that I have done. It'd be a miracle if it does work, but in my program, it won't. Period. I know you guys have better things to do than to try something that the majority have theirs working.

But yeah... mods, as I said, do whatever you wish... close it, let it remain open, whatever... I know I can't do it, but I'll find another way that would subsitute it. There's more ways to skin a cat, if you know what I mean ^w~

But yeah, until then... thanks for the help, guys!

Ayuki Holmes.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top