XS - Pre Title

Vhirous

Villager
Member
Joined
Nov 24, 2012
Messages
11
Reaction score
0
First Language
US English
Primarily Uses
Erm, is the link to the script still up? ^^; I went to download the script, however I keep getting a 403 Forbidden.
 

Nicke

Fortune seeker
Veteran
Joined
Apr 4, 2012
Messages
549
Reaction score
552
First Language
Swedish
Primarily Uses
RMMV
Try again. Working for me at least.
 

Vhirous

Villager
Member
Joined
Nov 24, 2012
Messages
11
Reaction score
0
First Language
US English
Primarily Uses
The link works again, thanks Nicke :D
Gah, another problem >.< The script won't activate for some reason. I configured it to my liking (I put my movie in the movies folder and plugged it into the script) and when I playtest, it just goes to the title without playing anything before the title :( I have the Core Script installed too. Any solutions?
 

Nicke

Fortune seeker
Veteran
Joined
Apr 4, 2012
Messages
549
Reaction score
552
First Language
Swedish
Primarily Uses
RMMV
Try without a movie then you will know if the movie format/name is correct, else you could paste your script in here and I can have a look.
 

Vhirous

Villager
Member
Joined
Nov 24, 2012
Messages
11
Reaction score
0
First Language
US English
Primarily Uses
Try without a movie then you will know if the movie format/name is correct, else you could paste your script in here and I can have a look.
Hmm...I deleted the movie from the Resource Manager and playtested (I expected an error) and it gave me no error at all even though it was plugged into the script. ISo, that didn't work. So, I'm going to post my script here for extra looking into:


Code:
#==============================================================================
#   XS - Pre Title
#   Author: Nicke
#   Created: 31/08/2012
#   Edited: 08/11/2012
#   Version: 1.0f
#==============================================================================
# Instructions
# -----------------------------------------------------------------------------
# To install this script, open up your script editor and copy/paste this script
# to an open slot below ? Materials but above ? Main. Remember to save.
#==============================================================================
# Requires: XS - Core Script.
#==============================================================================
# Pre title script.
# This will enables you to show pictures, texts and play movies before the title
# scene is presented.
#
# *** Only for RPG Maker VX Ace. ***
#==============================================================================
($imported ||= {})["XAIL-PRE-TITLE"] = true
module XAIL
  module PRE_TITLE
  #--------------------------------------------------------------------------#
  # * Settings
  #--------------------------------------------------------------------------#
    # FONT = [name, size, color, bold, shadow]
    FONT = [["Anklada™", "Verdana"], 32, Color.new(255,255,255), true, true]

    # Setup music to be played.
    # Can be set to nil to disable.
    # MUSIC = [name, pitch, volume]
    MUSIC = [nil]

    # Setup the pictures here.
    # PICTURES = [name, opacity, delay (can be nil), fade_in, fade_out]
    PICTURES = {
    0 => [nil],
    1 => [nil],
    2 => [nil]
    } # Don't remove this line.

    # Setup the text here.
    # TEXTS = [name, x, y, delay (can be nil), fade_in, fade_out]
    TEXTS = {
    0 => [nil],
    1 => [nil],
    2 => [nil]
    } # Don't remove this line.

    # Setup the movies here.
    # MOVIES = [filename, goto_title?]
    MOVIES = {
    0 => ["kuroshitsuji II opening_libtheora", true],
    } # Don't remove this line.

    # Set the order. ID 0 begin the first one to be shown.
    # SHOW_ORDER[id] => symbol
    # symbol:
    # :m = movies
    #  = pictures
    # :t = texts
    SHOW_ORDER = {
    0 => :m,
    1 => :t,
    2 => 
    } # Don't remove this line.

    # Set the button to manually skip trough each texts and pictures.
    # BUTTON = symbol
    BUTTON = :C

    # Use this if you wish to skip the pre title scene.
    # Can be used when debugging your game.
    # SKIP_PRE_TITLE = true/false
    SKIP_PRE_TITLE = true

  end
end
# *** Don't edit below unless you know what you are doing. ***
#==============================================================================#
# ** Error Handler
#==============================================================================#
  unless $imported["XAIL-XS-CORE"]
    # // Error handler when XS - Core is not installed.
    msg = "The script %s requires the latest version of XS - Core in order to function properly."
    name = "XS - Pre Title"
    msgbox(sprintf(msg, name))
    exit
  end
#==============================================================================#
# ** SceneManager
#==============================================================================#
class << SceneManager
  alias xail_pre_title_scenemanager_first_scene_class first_scene_class
  def first_scene_class(*args, &block)
    # // Method for first scene class.
    return xail_pre_title_scenemanager_first_scene_class(*args, &block) if XAIL::PRE_TITLE::SKIP_PRE_TITLE
    $BTEST ? Scene_Battle : Scene_Pre_Title
  end

end
#==============================================================================#
# ** Scene_Base
# If YEA - Menu Cursor is installed change update_menu_cursors method to
# prevent bug.
#==============================================================================#
if $imported["YEA-MenuCursor"]
class Scene_Base

  alias xail_pre_title_yea_upd_menu_cur update_menu_cursors
  def update_menu_cursors(*args, &block)
    # // Method to update menu cursors.
    return if @menu_cursors.nil?
    xail_pre_title_yea_upd_menu_cur(*args, &block)
  end

end
end
#==============================================================================#
# ** Scene_Pre_Title
#==============================================================================#
class Scene_Pre_Title < Scene_Base

  def initialize
    # // Method to initialize the scene.
    Graphics.fadeout(0)
    setup_music unless XAIL::PRE_TITLE::MUSIC.nil?
    for i in XAIL::PRE_TITLE::SHOW_ORDER.values
	  case i
	  when  ; setup_pictures
	  when :t ; setup_texts
	  when :m ; setup_movies
	  end
    end
  end

  def update
    # // Method to update the scene.
    super
    goto_title
  end

  def setup_music
    # // Method to play a bgm.
    bgm = XAIL::PRE_TITLE::MUSIC
    Sound.play(bgm[0], bgm[1], bgm[2], :bgm)
  end

  def setup_pictures
    # // Method to setup the picture(s).
    pics = XAIL::PRE_TITLE::PICTURES
    pics.keys.each {|i| display_picture(pics[i])}
  end

  def setup_texts
    # // Method to setup the text(s).
    texts = XAIL::PRE_TITLE::TEXTS
    texts.keys.each {|i| display_texts(texts[i])}
  end

  def setup_movies
    # // Method to setup the movie(s).
    movies = XAIL::PRE_TITLE::MOVIES
    movies.keys.each {|i| display_movie(movies[i])}
  end

  def delay?(amount)
    # // Method to delay.
    if amount.nil?
	  loop do
	    update_basic	   
	    break if Input.trigger?(XAIL::PRE_TITLE::BUTTON)
	  end
    else
	  amount.times do
	    update_basic	   
	    break if Input.trigger?(XAIL::PRE_TITLE::BUTTON)
	  end
    end 
  end

  def display_picture(picture)
    # // Method to display a picture.
    return if picture.nil?
    begin
	  pictures = Sprite.new
	  pictures.bitmap = Cache.picture(picture[0])
	  pictures.opacity = picture[1]
    rescue
	  msgbox("Error. Unable to locate picture: " + picture[0])
	  exit
    end
    Graphics.fadein(picture[3])
    delay?(picture[2])
    Graphics.fadeout(picture[4])
    delay?(60)
    pictures = nil, pictures.dispose unless pictures.nil?
  end

  def display_texts(text)
    # // Method to display a text.
    return if text.nil?
    Graphics.fadein(60)
    texts = Sprite.new
    texts.opacity = 0   
    texts.bitmap = Bitmap.new(Graphics.width, Graphics.height)
    texts.bitmap.font.name = XAIL::PRE_TITLE::FONT[0]
    texts.bitmap.font.size = XAIL::PRE_TITLE::FONT[1]
    texts.bitmap.font.color = XAIL::PRE_TITLE::FONT[2]
    texts.bitmap.font.bold = XAIL::PRE_TITLE::FONT[3]
    texts.bitmap.font.shadow = XAIL::PRE_TITLE::FONT[4]
    texts.bitmap.draw_text(text[1], text[2], Graphics.width, Graphics.height, text[0])
    for i in 1..text[4]
	  update_basic
	  texts.opacity = i * (255 / text[4])
    end
    delay?(text[3])
    for i in 1..text[5]
	  update_basic
	  texts.opacity = 255 - i * (255 / text[5])
    end
    delay?(60)
    texts = nil, texts.dispose unless texts.nil?
  end

  def display_movie(movie)
    # // Method to display a movie.
    return if movie.nil?
    begin
	  Graphics.play_movie("Movies/" + movie[0])
    rescue
	  msgbox("Error. Unable to locate movie: " + movie[0])
	  exit
    end
    delay?(60)
    goto_title if movie[1]
  end

  def goto_title
    # // Method to go to title scene.
    RPG::BGM.fade(1000)
    delay?(500)
    RPG::BGM.stop
    SceneManager.goto(Scene_Title)
  end

end # END OF FILE
#=*==========================================================================*=#
# ** END OF FILE
#=*==========================================================================*=#
 

Vhirous

Villager
Member
Joined
Nov 24, 2012
Messages
11
Reaction score
0
First Language
US English
Primarily Uses
Hmm...I deleted the movie from the Resource Manager and playtested (I expected an error) and it gave me no error at all even though it was plugged into the script. ISo, that didn't work. So, I'm going to post my script here for extra looking into:
I'm sorry for posting this long script here, I didn't know how to put it into a spoiler or anything :( And I can't edit my post so :(
 

Nicke

Fortune seeker
Veteran
Joined
Apr 4, 2012
Messages
549
Reaction score
552
First Language
Swedish
Primarily Uses
RMMV
Set the settings "SKIP_PRE_TITLE" to false and you should be good.
 

Vhirous

Villager
Member
Joined
Nov 24, 2012
Messages
11
Reaction score
0
First Language
US English
Primarily Uses
Set the settings "SKIP_PRE_TITLE" to false and you should be good.
Ah, that made sense haha. Now it gives me this error that's pointing to the Core Script: Script 'Core Script' line 100: TypeError occurred. can't convert nil into String.Does that have anything to do with me puting nil for the pictures, text, and music?
 

Nicke

Fortune seeker
Veteran
Joined
Apr 4, 2012
Messages
549
Reaction score
552
First Language
Swedish
Primarily Uses
RMMV
Yes. You don't need to do put nil. Just remove the ones you don't need from the list. (The hash)
 

vashgabriel

Warper
Member
Joined
Dec 19, 2012
Messages
1
Reaction score
0
First Language
English
Primarily Uses
I mean, after the picture was shown. Blackscreen for a long time,kind of annoying (;
If you change the delay amount to 0 on line 246, and 245 if you are playing music, the black screen will not be nearly as long. That should be the only thing causing that. Hope that solves your problem :)
 

quitnau

Warper
Member
Joined
Dec 22, 2012
Messages
1
Reaction score
0
First Language
german
Primarily Uses
Skip my movies with using button c, space or enter is not working.

Nothing happens :(
 

Ja Boniwell

Game Designer
Member
Joined
Jun 20, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Awesome Script! Will try it out once I install windows ;)  
 

SoftCreatR

Warper
Member
Joined
Jul 18, 2013
Messages
3
Reaction score
1
First Language
German
Primarily Uses
Is there any possibility to disable the automatic fullscreen thing?
 
Joined
Apr 22, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Hi, you might not read these anymore, but here goes :)

I'm making a horror game, and this would be AMAZING to have at the start. But when I run the program, it just goes straight to the title screen. I can't find any tutorials on this and I can't see any instructions on here or the script, how do I use it??

Thanks :)
 

R-Soul

Battle Sonata
Veteran
Joined
May 22, 2013
Messages
56
Reaction score
12
First Language
Spanish
Primarily Uses
Hi, you might not read these anymore, but here goes :)

I'm making a horror game, and this would be AMAZING to have at the start. But when I run the program, it just goes straight to the title screen. I can't find any tutorials on this and I can't see any instructions on here or the script, how do I use it??

Thanks :)
Did you try setting "SKIP_PRE_TITLE" to false? Because setting it to true skips everything on pre-title so you can test the game fast (good if you are making/debugging your game).

And, I have a question too~

Is there a way to skip a movie (via button input, like :C) the same way it skips the images and such? Like skip it while it is playing, so you don't have to wait the movie to finish everytime.

Thank You In Advance~
 

DarthVollis

Moogle Master
Veteran
Joined
May 5, 2012
Messages
409
Reaction score
85
First Language
English
Primarily Uses
Great Script. Now all we need is one that does a Title Timer. What I mean is that after a while on the title it will fade out to play a movie, pictures, and/or etc.
 
Joined
Jun 24, 2014
Messages
2
Reaction score
0
First Language
Español
Primarily Uses
This bug happens please help me :v 

Script " line 151: NoMethodErrorOcurred.

undefined method ´play´  for Sound:Module

thanks  that happens when i start the game
 

Diretooth

Lv. 25 Werewolf
Veteran
Joined
Mar 10, 2013
Messages
1,231
Reaction score
444
First Language
English
Primarily Uses
RMMV
All this needs is a script call or something to return to title.
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top