Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Start direct on the first map (SDK 2.2)

Hello..

How i?m able to let the player start on the first map ( without titlescreen)???

I?ve done it with that before SDK:
#==============================================================================
# â–  Scene_Title
#------------------------------------------------------------------------------
#  タイトル画面の処理を行うクラスです。
#==============================================================================

class Scene_Title
#--------------------------------------------------------------------------
# ● メイン処理
#--------------------------------------------------------------------------
def main
# 戦闘テストの場合
if $BTEST
battle_test
return
end
# データベースをロード
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
# 初期パーティをセットアップ
$game_party.setup_starting_members
# 初期位置のマップをセットアップ
$game_map.setup($data_system.start_map_id)
# プレイヤーを初期位置に移動
$game_player.moveto($data_system.start_x, $data_system.start_y)
# プレイヤーをリフレッシュ
$game_player.refresh
# マップに設定されている BGM と BGS の自動切り替えを実行
$game_map.autoplay
# マップを更新 (並列イベント実行)
$game_map.update
# マップ画面に切り替え
$scene = Scene_Map.new
end
#--------------------------------------------------------------------------
# ● コマンド : コンティニュー
#--------------------------------------------------------------------------

#--------------------------------------------------------------------------
# ● 戦闘テスト
#--------------------------------------------------------------------------
def battle_test
# データベース (戦闘テスト用) をロード
$data_actors = load_data("Data/BT_Actors.rxdata")
$data_classes = load_data("Data/BT_Classes.rxdata")
$data_skills = load_data("Data/BT_Skills.rxdata")
$data_items = load_data("Data/BT_Items.rxdata")
$data_weapons = load_data("Data/BT_Weapons.rxdata")
$data_armors = load_data("Data/BT_Armors.rxdata")
$data_enemies = load_data("Data/BT_Enemies.rxdata")
$data_troops = load_data("Data/BT_Troops.rxdata")
$data_states = load_data("Data/BT_States.rxdata")
$data_animations = load_data("Data/BT_Animations.rxdata")
$data_tilesets = load_data("Data/BT_Tilesets.rxdata")
$data_common_events = load_data("Data/BT_CommonEvents.rxdata")
$data_system = load_data("Data/BT_System.rxdata")
# プレイ時間計測用のフレームカウントをリセット
Graphics.frame_count = 0
# 各種ゲームオブジェクトを作成
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
# 戦闘テスト用のパーティをセットアップ
$game_party.setup_battle_test_members
# トループ ID、逃走可能フラグ、バトルバックを設定
$game_temp.battle_troop_id = $data_system.test_troop_id
$game_temp.battle_can_escape = true
$game_map.battleback_name = $data_system.battleback_name
# バトル開始 SE を演奏
$game_system.se_play($data_system.battle_start_se)
# バトル BGM を演奏
$game_system.bgm_play($game_system.battle_bgm)
# バトル画面に切り替え
$scene = Scene_Battle.new
end
end


What i?ve to do with the SDK 2.2????? I know, i?m not allowed to edit the SDK direct... but need this..it?s very very very important... thx:yes:
 
Add this before main. I've added a new feature not in your script, in which if there's any save file, the loading window will show. You can remove it, deleting the red lines in my code.
Code:
SDK.log('Title Skipping', 'tibuda', '1.10', '04.12.2007')
SDK.check_requirements(2.0, [1, 3])

if SDK.enabled?('Title Skipping')
#============================================================================
class Scene_Title
  #--------------------------------------------------------------------------
  alias_method :tibuda_skiptitle_scntitle_init, :initialize
  def initialize(force_newgame = false)
    tibuda_skiptitle_scntitle_init
    @force_newgame = force_newgame
  end
  #--------------------------------------------------------------------------
  SDK.log_overwrite(:Scene_Title, :main)
  def main
    return if main_battle_test? # Battle Test & Return if in Battle Test Mode
    main_database # Database Initialization
[COLOR=Red]    # Checks For Save Files
    main_test_continue
    # If continue is enabled, move to Load Scene
    if @continue_enabled && !@force_newgame
      $scene = Scene_Load.new # Continue
    # If disabled, start a new game
    else[/COLOR]
      command_new_game # New Game
[COLOR=Red]    end[/COLOR]
  end
  #--------------------------------------------------------------------------
  SDK.log_overwrite(:Scene_Title, :commandnewgame_audio)
  def commandnewgame_audio
    return
  end
[COLOR=Red]  #--------------------------------------------------------------------------
  SDK.log_overwrite(:Scene_Title, :command_continue)
  def command_continue
    # If continue is disabled
    unless @continue_enabled
      return
    end
    # Switch to load screen
    $scene = Scene_Load.new
  end[/COLOR]
  #--------------------------------------------------------------------------
end
[COLOR=Red]#============================================================================
class Scene_Load
  #--------------------------------------------------------------------------
  SDK.log_overwrite(:Scene_Load, :main)
  def on_cancel
    # Play cancel SE
    $game_system.se_play($data_system.cancel_se)
    # Switch to title screen
    $scene = Scene_Title.new(true)
  end
  #--------------------------------------------------------------------------
end[/COLOR]
#============================================================================
end
You don't need to give me credit for this. All the hard work is on the powerful SDK Scene_Base.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top