Help - Search - Members - Calendar
Full Version: Needing help with scripting Moghunter's Advanced Load Bar VX (v1.0)
RPG RPG Revolution Forums > Scripting > Script Development and Support > RGSS2
tribalhero
Hey, I recently downloaded Moghunter's Advanced Load Bar VX (v1.0) mostly to use for loading Towns and Dungeons...
But can't seem to force load the loading screen without it crashing

I'm using this line as a script event when teleporting to a new area
CODE
$scene = Scene_Load_Bar.new


It works when I'm continuing save file, but when I start a new game and go through the same teleporter I get
"Script 'Load' line 339 NoMethodError occured undifed method 'play' for nil: NilClass"

CODE
339:$game_temp.load_pre_bgm.play


If you know anyway I can fix this please let me know, thanks!
Night_Runner
Hey tribalhero,
I'm taking your work on it when you say that you've got it loading maps properly, and I've managed to get the same (well, mine was on line 340) error code as you smile.gif
Basically I looked at the offending lines:
Before


and put some checks around them to make sure that they are audio files.
After

CODE
          if $game_temp.load_pre_bgm.is_a? RPG::BGM
            $game_temp.load_pre_bgm.play
          end
          if $game_temp.load_pre_bgs.is_a? RPG::BGS
            $game_temp.load_pre_bgs.play
          end



And that fixed it for me happy.gif
tribalhero
Yay! Thanks it worked for me biggrin.gif
I'm not very good with reading scripts, they can get very complicated to understand somtimes, so I usally try and find work arounds.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.