Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Needing help with scripting Moghunter's Advanced Load Bar VX (v1.0)
tribalhero
post Oct 26 2011, 04:24 PM
Post #1


Level 2
Group Icon

Group: Member
Posts: 24
Type: Event Designer
RM Skill: Beginner




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!
Go to the top of the page
 
+Quote Post
   
Night_Runner
post Oct 28 2011, 04:38 AM
Post #2


Level 50
Group Icon

Group: +Gold Member
Posts: 1,528
Type: Scripter
RM Skill: Undisclosed




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


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
tribalhero
post Oct 28 2011, 12:04 PM
Post #3


Level 2
Group Icon

Group: Member
Posts: 24
Type: Event Designer
RM Skill: Beginner




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.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 05:11 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker