Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: ojp2010 on September 05, 2010, 05:33:35 pm

Title: UMS Error [resolved]
Post by: ojp2010 on September 05, 2010, 05:33:35 pm
I am getting an error when I start up my game with UMS (by Ccoa) can anyone help me?

Here is a list of scripts I am using and the error.

Spoiler: ShowHide

MAWS - Modified Advanced Weather System / Ccoa
Mouse Map Menu / Nathmatt
Jackolas Advance GameOver Script / Jackolas
Final Fantasy Tactics Advance Shop System / Mac
Game Play Help script / Mr. Wiggles
Item Storage / game_guy
Tornado Quest Book / Storm
Emoticon on Event for RMXP / Nechigawara
Universal Message System / Ccoa
MOG_Location_Name / Moghunter
MOG_Treasure_Name / Moghunter
MOG Item Limit  / Moghunter
Ton of Addons / Blizzard
RMX - OS options / Blizzard
RMX - OS script / Blizzard
Global switches&variables / blizzard
Versioning / Blizzard
BABS / Blizzard
BABS HUD / Nathmatt
ABS Controller / Blizzard
Critical Sounds ABS / Blizzard
Auto Targeting ABS / Blizzard
ATES / Blizzard
Global ATES / Blizzard
Guild Office / Blizzard
Mouse controller / Blizzard
Mouse controller enchacement / Nathmatt
Mouse drop down menu / Nathmatt
RMX-OS Main / Blizzard


Here is a picture of the error that is getting returned and the part of code it is coming from.

(http://img843.imageshack.us/img843/7037/86382585.png)

Line Five (4) has error

#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
 def update_cursor_rect
   if @index >= 0
     n = $game_temp.choice_start + @index
     self.cursor_rect.set(8, n * 32, @cursor_width, 32)
   else
     self.cursor_rect.empty
   end
 end
end
Title: Re: CMS Error
Post by: WhiteRose on September 05, 2010, 05:34:39 pm
Which CMS do you mean, exactly?
Title: Re: CMS Error
Post by: ojp2010 on September 05, 2010, 08:14:16 pm
Edit my original post, it is by Ccoa
Title: Re: CMS Error
Post by: Ryex on September 06, 2010, 01:02:55 am
what exactly is the error?
Title: Re: CMS Error
Post by: WhiteRose on September 06, 2010, 10:32:18 am
I don't see any CMS in your list of scripts. Maybe you mean the UMS?

@Ryex: The error window can be seen in the screenshot.
Title: Re: UMS Error
Post by: ojp2010 on September 06, 2010, 03:39:25 pm
*sigh* yes I mean UMS, lol a fail on my part....sorry Yeah UMS...:/
Title: Re: UMS Error
Post by: Ryex on September 06, 2010, 05:22:59 pm
there wasn't a screen shot when i looked...

in any case you going to have to post the exact line
Title: Re: UMS Error
Post by: ojp2010 on September 06, 2010, 05:26:34 pm
I did post the error line it is in original post at the bottom
Title: Re: UMS Error
Post by: Ryex on September 06, 2010, 06:00:54 pm
no, you posted a method, I need the exact line.
Title: Re: UMS Error
Post by: ojp2010 on September 06, 2010, 06:03:44 pm
Quote from: ojp2010 on September 05, 2010, 05:33:35 pm

Line four (4) has error

#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
1  def update_cursor_rect
2    if @index >= 0
3      n = $game_temp.choice_start + @index
4     self.cursor_rect.set(8, n * 32, @cursor_width, 32)
5   else
     self.cursor_rect.empty
   end
 end
end
[/spoiler]
Title: Re: UMS Error
Post by: Ryex on September 06, 2010, 06:51:09 pm
why do you keep editing you post? the line thing used to say "Line (5)" which  tells me nothing, also Iwould of counted the comments as lines so thank you for finally making it clear.

any way add this above the afflicting line and screen shot the readout
p n, @index, @cursor_width
Title: Re: UMS Error
Post by: ojp2010 on September 06, 2010, 07:04:51 pm
Spoiler: ShowHide
(http://img34.imageshack.us/img34/3082/16515361.png)
Title: Re: UMS Error
Post by: Ryex on September 06, 2010, 11:39:31 pm
interesting... it seems that @cursor_width hasn't been initialized yet.
press ctrl+shift+f and do a search for
@cursor_width =
post any methods you find containing that line
also put a rescue at the end of the method

  def update_cursor_rect
    if @index >= 0
      n = $game_temp.choice_start + @index
     self.cursor_rect.set(8, n * 32, @cursor_width, 32)
   else
      self.cursor_rect.empty
    end
  rescue e
    print e.backtrace
  end
Title: Re: UMS Error
Post by: ojp2010 on September 06, 2010, 11:45:11 pm
I figured it out :) found a 0 that needed to be a 1. Everything works fine now. Thank you for you help. :) <3
Title: Re: UMS Error
Post by: Ryex on September 06, 2010, 11:46:03 pm
ah ok then...