UMS Error [resolved]

Started by ojp2010, September 05, 2010, 05:33:35 pm

Previous topic - Next topic

ojp2010

September 05, 2010, 05:33:35 pm Last Edit: September 06, 2010, 11:45:58 pm by ojp2010
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.



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

WhiteRose

Which CMS do you mean, exactly?

ojp2010

Edit my original post, it is by Ccoa

Ryex

what exactly is the error?
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

WhiteRose

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.

ojp2010

*sigh* yes I mean UMS, lol a fail on my part....sorry Yeah UMS...:/

Ryex

there wasn't a screen shot when i looked...

in any case you going to have to post the exact line
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ojp2010

I did post the error line it is in original post at the bottom

Ryex

no, you posted a method, I need the exact line.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ojp2010

September 06, 2010, 06:03:44 pm #9 Last Edit: September 06, 2010, 06:07:21 pm by ojp2010
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]

Ryex

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
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ojp2010


Ryex

September 06, 2010, 11:39:31 pm #12 Last Edit: September 06, 2010, 11:45:30 pm by Ryexander
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
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ojp2010

I figured it out :) found a 0 that needed to be a 1. Everything works fine now. Thank you for you help. :) <3

Ryex

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />