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.

Skip Title Screen & NeoABS Compatability Issue?

Well, I wanted to use an evented title screen system for my game and I used the editted Main to jump straight to the Scene_Map. I also wanted to incorporate the NeoABS in it, but it seems that some issues occur.

The Main Script:
Code:
begin
 
   # Start in Full Screen
   #showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
   #showm.call(18,0,0,0)
   #showm.call(13,0,0,0)
   #showm.call(13,0,2,0)
   #showm.call(18,0,2,0)
    
 $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")
  $defaultfonttype = "Times New Roman"
  $defaultfontsize = 22
    
  $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
    $game_map.autoplay
    $game_map.update
    $scene = Scene_Map.new
    


    
  Graphics.freeze
  while $scene != nil
    $scene.main
  end
  Graphics.transition(20)
rescue Errno::ENOENT
  filename = $!.message.sub("No such file or directory - ", "")
  print("File #{filename} not found.")
end

NeoABS: http://www.rmxp.org/forums/index.php?topic=19797.0 (I am not using the SBABS Add-on or the caterpillar script or the icon overhead display)

Whenever I start the game, it says :

Script' o Player Process' line 457: NoMethodError Occured
Undefined Method `dash_lenght' for nil:NilClass

Anyone know how to fix it? Thanks.
 
Well I did a quick search for you and found this made by Tibuda. Basically this script will skip the title screen, starting a new game or showing the loading scene if save file available. I'm not sure if its what you wanted or not but I thought it was better than nothing seeing as I couldn't solve your original problem. :)

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
    # 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
      command_new_game # New Game
    end
  end
  #--------------------------------------------------------------------------
  SDK.log_overwrite(:Scene_Title, :commandnewgame_audio)
  def commandnewgame_audio
    return
  end
  #--------------------------------------------------------------------------
  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
  #--------------------------------------------------------------------------
end
#============================================================================
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
#============================================================================
end
 

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