Jump to content
Rpg²S Forum

Jukebox


siengried
 Share

Recommended Posts

Jukebox

 

Descrizione

Permette di visualizzare una scelta in più al menù dove potrai ascoltare musica

 

Autore

PHLiM2

 

 

Screenshot

 

             http://i41.tinypic.com/255suh1.png

 

Istruzioni per l'uso

Seguite le istruzioni direttamente dentro lo script.

 

Script

 

 

 

=begin
=========================================================
* PHLiM2's Music Player Lite v1.01 for RPG Maker VX Ace *
=========================================================
#################
# RELEASE NOTES #
#################
|
| 22-Feb-2013 [v1.01]
|- Made the player a lot more customizable.
|--- Added TEXTSTOP, TEXTPLAY, TEXTMARK addons.
|--- Added INCREMENT addon.
|--- Added the ability to remove window backgrounds.
|--- Added the ability to flip window positions.
|--- Added the ability to change the command text
|--- Added the PAUSE addon.
|--- Removed the FILLSCREEN addon, as this has no real use in the Lite version.
|- The music now stops when loading the Music Player from the Title Screen.
|- Adjusted to run on both 544x416 and 640x480 resolutions
|
| 22-Feb-2013 [v1.00]
|- Initial Release
|
################
#  HOW TO USE  #
################
|
| Using this script is pretty simple. All you have to do is edit the list below,
| including all the songs you want to include, and such.
|
| SONGTITLE: This section is pretty much the title of the song. Feel free to
|            change this to whatever you wish.
|
| PLAYSONG:  To use this section properly, you must use the FILENAME of the song
|            you wish to play.
|
| SONGPIT:   This adjusts the pitch of the song. You can choose any value
|            between 1 and 454. (Seriously, you can exceed the maker's limits.)
|
| TEXTSTOP:  The text which appears when nothing is playing.
|
| TEXTPLAY:  The text which appears when a song is playing.
|
| TEXTMARK:  The mark which appears next to the song number.
|
| INCREMENT: Choose whether to start the song numbers from 0 or 1.
|
| LISTNOBG:  Remove window BG for List window?
|
| PLAYNOBG:  Remove window BG for Now Playing window?
|
| FLIPWIN:   Flip the positions of the List/Now Playing windows?
|
| CMDTEXT:   The command text for the music player.
|
| PAUSE:     Choose whether or not to have a fake "Loading" pause.
|
##############################
# WHAT ABOUT VOLUME CONTROL? #
##############################
|
| Well, as most songs are USUALLY normalized, I have decided to not include this
| section. However, you can change the overall volume by editing this line:
| # @volume = 100 #
|
=end
module P2MUSICPLAY
  ##########################################
  # Song Title                             #
  ##########################################
  SONGTITLE = [
                "Airship",
                "Battle1",
                "Battle2",
                "Battle3",
                "Battle4",
                "Battle5",
                "Battle6",
                "Battle7",
                "Battle8",
                "Battle9",
                "Dungeon1",
                "Dungeon2",
                "Dungeon3",
                "Dungeon4",
                "Dungeon5",
                "Dungeon6",
                "Dungeon7",
                "Dungeon8",
                "Dungeon9",
                "Field1",
                "Field2",
                "Field3",
                "Field4",
                "Scene1",
                "Scene2",
                "Scene3",
                "Scene4",
                "Scene5",
                "Scene6",
                "Ship",
                "Theme1",
                "Theme2",
                "Theme3",
                "Theme4",
                "Theme5",
                "Town1",
                "Town2",
                "Town3",
                "Town4",
                "Town5",
                "Town6",
                "Town7"]
               
  ##########################################
  # File Name (without the file extension) #
  ##########################################
  FILENAME = [
                "Airship",
                "Battle1",
                "Battle2",
                "Battle3",
                "Battle4",
                "Battle5",
                "Battle6",
                "Battle7",
                "Battle8",
                "Battle9",
                "Dungeon1",
                "Dungeon2",
                "Dungeon3",
                "Dungeon4",
                "Dungeon5",
                "Dungeon6",
                "Dungeon7",
                "Dungeon8",
                "Dungeon9",
                "Field1",
                "Field2",
                "Field3",
                "Field4",
                "Scene1",
                "Scene2",
                "Scene3",
                "Scene4",
                "Scene5",
                "Scene6",
                "Ship",
                "Theme1",
                "Theme2",
                "Theme3",
                "Theme4",
                "Theme5",
                "Town1",
                "Town2",
                "Town3",
                "Town4",
                "Town5",
                "Town6",
                "Town7"]
               
  ##########################################
  # Song Pitch                             #
  ##########################################
  SONGPIT  = [
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100,
              100]
             
  ##########################################
  # Music Stopped Text                     #
  ##########################################
  TEXTSTOP = "STOPPED"
 
  ##########################################
  # Music Playing Text                     #
  ##########################################
  TEXTPLAY = "NOW PLAYING"
   
  ##########################################
  # Song Index Increment                   #
  ##########################################
  TEXTMARK = ":"
 
  ##########################################
  # Song Index Increment                   #
  ##########################################
  INCREMENT = true
 
  ##########################################
  # Remove List Background?                #
  ##########################################
  LISTNOBG  = false
   
  ##########################################
  # Remove Player Background?              #
  ##########################################
  PLAYNOBG  = false
   
  ##########################################
  # Flip Window Positions?                 #
  ##########################################
  FLIPWIN   = false
   
  ##########################################
  # Command Text                           #
  ##########################################
  CMDTEXT   = "BGM Player"
     
  ##########################################
  # Song Loading Pause?                    #
  ##########################################
  PAUSE   = true
  #Attivare gli Extra dall'inizio?
  Active = false #false: dovrà essere sbloccato con il comando "unlock_extra"
   
end
################################################################################
# Window_MusicList                                                             #
################################################################################
class Window_MusicList < Window_Command
  def initialize(x,y)
    super(x,y)
    self.openness = 0
    if P2MUSICPLAY::LISTNOBG
      self.opacity=0
    end
  end
  def window_width
    return Graphics.width - 16
  end
  def visible_line_number
    if Graphics.height == 416
      return 9
    elsif Graphics.height == 480
      return 11
    else
      return 10
    end
  end
  def make_command_list
    add_multiple
  end
  def add_multiple
    songs = Array.new(P2MUSICPLAY::SONGTITLE)
    for i in songs
      add_command(i, :playsong)
    end
  end
  def draw_item(index)
    if P2MUSICPLAY::INCREMENT
      @new_index = index + 1
    else
      @new_index = index
    end
    @new = sprintf("[%03d]",@new_index)
    change_color(normal_color, command_enabled?(index))
    draw_text(item_rect_for_text(index), @new+" "+P2MUSICPLAY::TEXTMARK+" "+command_name(index), 0)
  end
end
################################################################################
# Window_MusicNowPlaying                                                       #
################################################################################
class Window_MusicNowPlaying < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(line_number = 5)
    super(0, 0, window_width, fitting_height(line_number))
    self.openness = 0
    if P2MUSICPLAY::PLAYNOBG
      self.opacity=0
    end
  end
  def window_width
    return Graphics.width - 16
  end
  
  #--------------------------------------------------------------------------
  # * Set Text
  #--------------------------------------------------------------------------
  def set_text(text)
    if text != @text
      @text = text
      refresh
    end
  end
  #--------------------------------------------------------------------------
  # * Clear
  #--------------------------------------------------------------------------
  def clear
    set_text("")
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    contents.clear
    draw_text_ex(0, 0, @text)
  end
  #--------------------------------------------------------------------------
  # * Draw Text with Control Characters
  #--------------------------------------------------------------------------
  def draw_text_ex(x, y, text)
    reset_font_settings
    text = convert_escape_characters(text)
    pos = {:x => x, :y => y, :new_x => x, :height => calc_line_height(text)}
    process_character(text.slice!(0, 1), text, pos) until text.empty?
  end
end
################################################################################
# Scene_MusicPlayer                                                            #
################################################################################
class Scene_MusicPlayer < Scene_MenuBase
  def start
    super
    Graphics.fadein(10)
    create_command_window
    @nowplaying = Window_MusicNowPlaying.new
    @nowplaying.x = @command_window.x
    if P2MUSICPLAY::FLIPWIN
      @nowplaying.y = 16 if Graphics.height == 416
      @nowplaying.y = 24 if Graphics.height == 480
      @command_window.y = @nowplaying.y + @nowplaying.height
    else
      @nowplaying.y = @command_window.y + @command_window.height
    end
    @info = "\\c[2]CONFIRM: \\c[0]Play Song\n\\c[2]DASH: \\c[0]Stop Song\n\\c[2]CANCEL: \\c[0]Return"
    nothingplaying
    @command_window.open
    @nowplaying.open
    @volume = 100
  end
  def nothingplaying
    @nowplaying.set_text("\\c[4]"+P2MUSICPLAY::TEXTSTOP+":\\c[0] No Song Playing\n\n"+@info)
  end
    def create_command_window
    @command_window = Window_MusicList.new(8,24)
    @command_window.y = 16 if Graphics.height == 416
    @command_window.set_handler(:playsong, method(:cmd_playsong))
    @command_window.set_handler(:cancel, method(:cmd_cancel))
  end
  def cmd_playsong
    if P2MUSICPLAY::PAUSE
      @nowplaying.set_text("\\c[3]LOADING SONG:\\c[0] "+P2MUSICPLAY::SONGTITLE[@command_window.index]+"\n\n"+@info)
      Audio.bgm_fade(1200)
      Graphics.wait(60)
    end
    Audio.bgm_play("Audio/BGM/"+P2MUSICPLAY::FILENAME[@command_window.index],@volume,P2MUSICPLAY::SONGPIT[@command_window.index])
    @nowplaying.set_text("\\c[4]"+P2MUSICPLAY::TEXTPLAY+":\\c[0] "+P2MUSICPLAY::SONGTITLE[@command_window.index]+"\n\n"+@info)
    @command_window.activate
  end
  def cmd_cancel
    @command_window.close
    Audio.bgm_fade(360)
    SceneManager.call(Scene_Title)
  end
  alias upall update_all_windows
  def update_all_windows
    upall
    if Input.press?(:A)
      Audio.bgm_fade(600)
      nothingplaying
    end
  end
end
################################################################################
# Music Player Title Addon                                                     #
################################################################################
class Window_TitleCommand < Window_Command
  alias addplayer make_command_list
  def make_command_list
    addplayer
    add_command(P2MUSICPLAY::CMDTEXT, :player)
  end
end
class Scene_Title < Scene_Base
  alias playercommand create_command_window
  def create_command_window
    playercommand
    @command_window.set_handler(:player, method(:command_player))
  end
  def command_player
    close_command_window
    Audio.bgm_stop
    SceneManager.call(Scene_MusicPlayer)
  end
end
 


 

 

 

 

Bugs e Conflitti Noti

N/D

 

P.S.  Qualche scripter potrebbe riuscire a metterlo che si visualizza il comando solo dopo l' attivazione di una certa switch?

Edited by siengried
Link to comment
Share on other sites

@Alexander : non so tu ma gli script di Mog non mi sono mai piaciuti, troppi fronzoli, preferisco più le cose minimalistiche ed essenzialistiche. Oltre al fatto che se si utilizza uno dei suoi script o si è bravi a pixellare oppure stona con il gioco.

Per qualsiasi motivo non aprite questo spoiler.

 

 

Ho detto di non aprirlo !

 

 

Se lo apri ancora esplode il mondo.

 

 

Aaaaaa è un vizio.

 

 

Contento? Il mondo è esploso, sono tutti morti

per colpa della tua curiosità .

 

 

Vuoi che ti venga anche il morbillo, la varicella e l'AIDS???

 

 

O bravo ora sei un malato terminale e nessuno

ti puo curare, sono tutti morti !

 

 

Se clicchi ancora una volta il PC esplode.

 

 

E dai smettila !!

 

Uff!! Hai cliccato tante volte che ho dovuto sostituirlo con un codebox.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

http://s8.postimg.org/yntv9nxld/Banner.png

http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif

Link to comment
Share on other sites

Però ti conviene inserirlo in un code box e in uno spoiler, io da telefono o dovuto sditare mezz'ora per arrivare qui in fondo xD

 

Se non sai come si fa

 

[spoiler ] [code ] script [/code ] [/spoiler ]

 

togli gli spazi dentro alle quadre ^ ^

Premi: http://rpg2s.net/gif/SCContest3Oct.gif

Link to comment
Share on other sites

@Alexander : non so tu ma gli script di Mog non mi sono mai piaciuti, troppi fronzoli, preferisco più le cose minimalistiche ed essenzialistiche. Oltre al fatto che se si utilizza uno dei suoi script o si è bravi a pixellare oppure stona con il gioco.

 

Beh non sò cosa tu voglia dire ma io non ci vedo tutto questo problema :D io alla fine modifico le immagini, l'interfaccia e tutto il resto per adattarlo al progetto per quando riguarda la pixel art non è necessaria in tutte le cose che ha fatto :)

Link to comment
Share on other sites

Buono script, magari sì, un po' semplice senza opzioni per switch o musiche sbloccabili >

Di solito è un'opzione nel menù del titolo  ^ ^

(\_/)
(^ ^) <----coniglietto rosso, me!
(> <)


Il mio Tumblr dove seguire i miei progetti, i progetti della Reverie : : Project ^ ^

http://i.imgur.com/KdUDtQt.png disponibile su Google Play, qui i dettagli! ^ ^

http://i.imgur.com/FwnGMI3.png completo! Giocabile online, qui i dettagli! ^ ^

REVERIE : : RENDEZVOUS (In allenamento per apprendere le buone arti prima di cominciarlo per bene ^ ^) Trovate i dettagli qui insieme alla mia intervista (non utilizzerò più rpgmaker) ^ ^

 

SUWOnzB.jpg 🖤
http://www.rpg2s.net/dax_games/r2s_regali2s.png E:3 http://www.rpg2s.net/dax_games/xmas/gifnatale123.gif
http://i.imgur.com/FfvHCGG.png by Testament (notare dettaglio in basso a destra)! E:3
http://i.imgur.com/MpaUphY.jpg by Idriu E:3

Membro Onorario, Ambasciatore dei Coniglietti (Membro n.44)

http://i.imgur.com/PgUqHPm.png
Ufficiale
"Ad opera della sua onestà e del suo completo appoggio alla causa dei Panda, Guardian Of Irael viene ufficialmente considerato un Membro portante del Partito, e Ambasciatore del suo Popolo presso di noi"


http://i.imgur.com/TbRr4iS.png<- Grazie Testament E:3
Ricorda...se rivolgi il tuo sguardo ^ ^ a Guardian anche Guardian volge il suo sguardo ^ ^ a te ^ ^
http://i.imgur.com/u8UJ4Vm.gifby Flame ^ ^
http://i.imgur.com/VbggEKS.gifhttp://i.imgur.com/2tJmjFJ.gifhttp://projectste.altervista.org/Our_Hero_adotta/ado2.png
Grazie Testament XD Fan n°1 ufficiale di PQ! :D

Viva
il Rhaxen! <- Folletto te lo avevo detto (fa pure rima) che non
avevo programmi di grafica per fare un banner su questo pc XD (ora ho di
nuovo il mio PC veramente :D)

Rosso Guardiano della
http://i.imgur.com/Os5rvhx.png

Rpg2s RPG BY FORUM:

Nome: Darth Reveal

 

PV totali 2
PA totali 16

Descrizione: ragazzo dai lunghi capelli rossi ed occhi dello stesso colore. Indossa una elegante giacca rossa sopra ad una maglietta nera. Porta pantaloni rossi larghi, una cintura nera e degli stivali dello stesso colore. E' solito trasportare lo spadone dietro la schiena in un fodero apposito. Ha un pendente al collo e tiene ben legato un pezzo di stoffa (che gli sta particolarmente a cuore) intorno al braccio sinistro sotto la giacca, copre una cicatrice.
Bozze vesti non definitive qui.

Equipaggiamento:
Indossa:
60$ e 59$ divisi in due tasche interne
Levaitan

Spada a due mani elsa lunga

Guanti del Defender (2PA)
Anello del linguaggio animale (diventato del Richiamo)

Scrinieri da lanciere (2 PA)

Elmo del Leone (5 PA)

Corazza del Leone in Ferro Corrazzato (7 PA)

ZAINO (20) contenente:
Portamonete in pelle di cinghiale contenente: 100$
Scatola Sanitaria Sigillata (può contenere e tenere al sicuro fino a 4 oggetti curativi) (contiene Benda di pronto soccorso x3, Pozione di cura)
Corda
Bottiglia di idromele
Forma di formaggio
Torcia (serve ad illuminare, dura tre settori)

Fiasca di ceramica con Giglio Amaro (Dona +1PN e Velocità all'utilizzatore)
Ampolla Bianca

Semi di Balissa

 

CAVALLO NORMALE + SELLA (30 +2 armi) contentente:
66$
Benda di pronto soccorso x3
Spada a due mani

Fagotto per Adara (fazzoletto ricamato)


 

Link to comment
Share on other sites

@Alexander : non so tu ma gli script di Mog non mi sono mai piaciuti, troppi fronzoli, preferisco più le cose minimalistiche ed essenzialistiche. Oltre al fatto che se si utilizza uno dei suoi script o si è bravi a pixellare oppure stona con il gioco.

È quello che stavo per dire io! XD

Gli script di Mog hanno in genere una grafica disordinata e troppo appariscente, unita al fatto che a causa del fatto che gli script sono quasi tutti basati su picture, è poco compatibile con altri script.

"Io non volevo solo partecipare alle discussioni. Volevo avere il potere di farle fallire" [cit.]

http://holyres.altervista.org/UserBoard/BannerOverdrive35.png
http://holyres.altervista.org/UserBoard/Cap3.png

http://www.indiexpo.net/signature/578.png

Miei script per RPG Maker VX Ace:


*NB Tutti i miei script sono protetti da licenza CC - BY http://i.creativecommons.org/l/by/3.0/88x31.png

Questa licenza permette a terzi di distribuire, modificare, ottimizzare ed utilizzare la tua opera come base, anche commercialmente, fino a che ti diano il credito per la creazione originale. Questa è la più accomodante delle licenze offerte. É raccomandata per la diffusione e l'uso massimo di materiali coperti da licenza.

 

 



I miei tutorial:


Come distribuire il gioco - e anche come creare un'installazione professionale!
RGSS in pillole - Guida completa e facile all'RGSS2 e RGSS3 per novizi ed esperti
Come mappare con VX (e VX Ace) - guida base all'uso degli strumenti del mapping
Loop delle musiche - come tagliarle in modo da far venire musiche continue senza interruzioni finali
Creare backup dei progetti - per evitare di uccidervi dopo un errore che ha fatto perdere tutto!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...