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
> Yanfly Status menu ERROR
Xer0
post Jan 22 2012, 03:09 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 12
Type: Developer
RM Skill: Beginner




CODE
Script 'Yanfly 6 - Status Menu' line 857: ZeroDivisionError occurred.

divided by 0


This error occurred when I checked that status screen with nothing equipped..

So if anyone can help that would be great. I've tried contacting Yanfly and no luck. So I am hoping someone can help.
Go to the top of the page
 
+Quote Post
   
Shaddow
post Jan 22 2012, 03:25 PM
Post #2


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




QUOTE (Xer0 @ Jan 22 2012, 05:09 PM) *
CODE
Script 'Yanfly 6 - Status Menu' line 857: ZeroDivisionError occurred.

divided by 0


This error occurred when I checked that status screen with nothing equipped..

So if anyone can help that would be great. I've tried contacting Yanfly and no luck. So I am hoping someone can help.


Ok, I am also using this script and when I check line 857, This is what I see.

CODE
#===============================================================================
# Window_ReDuxMenuStatus
#===============================================================================


So, I believe yours shows up a bit differently then mine, if you'll post lines 850-860 in a codebox, I might be able to figure out what went wrong for you.


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   
Xer0
post Jan 22 2012, 07:14 PM
Post #3


Level 1
Group Icon

Group: Member
Posts: 12
Type: Developer
RM Skill: Beginner




QUOTE
So, I believe yours shows up a bit differently then mine, if you'll post lines 850-860 in a codebox, I might be able to figure out what went wrong for you.



That's a different script all together.

http://yanflychannel.wordpress.com/rmvx/me...ts/status-menu/

This post has been edited by Xer0: Jan 22 2012, 07:16 PM
Go to the top of the page
 
+Quote Post
   
Shaddow
post Jan 22 2012, 08:41 PM
Post #4


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




my mistake was looking at the yanfly menu script not the status menu script happy.gif give me a moment and i'll see if i can fix your problem.

Edit: Ok that line is very vague about what could be causing the issue. I tried to duplicate it by checking my menu with nothing equipped and did not get the same error. So a few things

1. did you change anything in the Yanfly Status Menu script?

2. Can you list what other scripts you are using? One of them may be causing a conflict with the Yanfly Status Menu Script.

I will continue to check and see if I can duplicate the problem, but without knowing exactly what you've changed or added I may not be able to.

This post has been edited by shaddowval: Jan 22 2012, 08:46 PM


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   
Xer0
post Jan 23 2012, 01:02 PM
Post #5


Level 1
Group Icon

Group: Member
Posts: 12
Type: Developer
RM Skill: Beginner




Yanfly 6 - Core Engine
Yanfly 6 - Help Window Advance
Yanfly 6 - Item Limit
Yanfly 6 - Message System
Yanfly 6 - Battle Stats
Yanfly 6 - Elemental Amplifiers
Yanfly 6 - Status Menu
Yanfly 6 - Performance Screen
Yanfly 6 - Call Events
Yanfly 6 - Debug Menu Extension

Those are all the ones I am currently using in order.

Here is a bit of code maybe I messed it up..
CODE
  #--------------------------------------------------------------------------
  # draw_visual_gauge
  #--------------------------------------------------------------------------
  def draw_visual_gauge(dx, dy, stat)
    array = Y6::STATUS::STAT_GAUGE_COLOURS[stat]
    gc0 = gauge_back_color
    gc1 = Color.new(array[0], array[1], array[2])
    gc2 = Color.new(array[3], array[4], array[5])
    value = eval("@actor." + stat.to_s)
    gh = 22
    gy = dy + WLH - 8 - (gh - 6)
    gfw = @maximum - @minimum
    modifier = (contents.width / 3)
    dw = contents.width - 8 - modifier
    dw -= 24 if $imported["Y6-Iconview"]
    gw = dw * (value - @minimum) / gfw + modifier
    contents.fill_rect(dx, gy, gw, gh, gc0)
    dx += 1
    gy += 1
    gh -= 2
    gw -= 2
    contents.gradient_fill_rect(dx, gy, gw, gh, gc1, gc2)
    draw_gauge_icons(dx, dy, stat, gw) if $imported["Y6-Iconview"]
    draw_param_names(dx, dy, stat, gw)
    draw_param_values(dx, dy, stat, gw)
  end

I've also tested it, with only one thing equip on each slot at a time, and it worked fine. It just happens when I have nothing equipped. I will test some more too. Perhaps I will delete it and paste it again.

Thanks with your help so far.


edit: so I deleted and pasted, and it still comes up.
edit2: So the error comes up again but this time I was messing with the atk formula in the battle stats script. So perhaps the problem is in the battle stat script and the menu can't display something; which would explain it having the error, because the syntax on the battle stats are fine.
I have been using " ^ " in my formula. if that helps.

This post has been edited by Xer0: Jan 23 2012, 01:38 PM
Go to the top of the page
 
+Quote Post
   
Xer0
post Jan 25 2012, 08:03 PM
Post #6


Level 1
Group Icon

Group: Member
Posts: 12
Type: Developer
RM Skill: Beginner




bump
Go to the top of the page
 
+Quote Post
   
Shaddow
post Jan 27 2012, 12:08 AM
Post #7


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




I know it seems a bit silly, but try moving the script with the error to the bottom of your script list, I'm not a very good scripter so I'm still looking to see if I could figure it out, but I've not found anything yet.


__________________________




I support these projects! -------------





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: 23rd May 2013 - 12:36 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker