Main Menu
  • Welcome to The RPG Maker Resource Kit.

Window_Base error

Started by darkelementwars, May 11, 2007, 08:59:21 AM

0 Members and 1 Guest are viewing this topic.

darkelementwars

I get an error on line 316 of Window_Base

it says undefined method icon_name
My Project: Dark Empire
http://rmrk.net/index.php/topic,7815.0.html
Official Site: http://darkempirerpg.tripod.com
Process: Getting back to work.

Always looking for sprites, if your interested, PM.

"But then I realized, why stop things from exploding, when in fact it is in exploding that things reach their perfect form. Of course, they only reach it for a few glorious seconds, but during that short time there is no object in the universe more beautiful." -Kite Rockswell, the Mad-Mad Bomber, from The Final War, my very own novel project.  PM me if you would like to read.

"Oh, sure, blaim the wizards..."

Falcon

Thank you for giving us all the information we need, like what scripts you use, what line 319 is. and where you got the error.

Snailer

you need to delete the line thats it

Irock

Lol, don't do what Snailer said.

Just give us the script in code.

darkelementwars

#4
sorry, it's

def draw_item_name(item, x, y)
    if item == nil
      return
    end
    bitmap = RPG::Cache.icon(item.icon_name)
    self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24))
    self.contents.font.color = normal_color
    self.contents.draw_text(x + 28, y, 212, 32, item.name)
  end
end

the     bitmap = RPG::Cache.icon(item.icon_name)    is the line that causes the error

the scripts I'm using:

Sthrattoff's Quest Log
Stormtonics CMS Metal Plate Edition
Tons of Addons
Catepillar Script
Letter by Letter Message System
Easy Level Up  Notifier, Easy Party Switcher

the error is caused at the end of battle

i just recently switched to Sthratoff's Quest Log from another Quest log system so i have a feeling it might have something to do with that but i dont see why
My Project: Dark Empire
http://rmrk.net/index.php/topic,7815.0.html
Official Site: http://darkempirerpg.tripod.com
Process: Getting back to work.

Always looking for sprites, if your interested, PM.

"But then I realized, why stop things from exploding, when in fact it is in exploding that things reach their perfect form. Of course, they only reach it for a few glorious seconds, but during that short time there is no object in the universe more beautiful." -Kite Rockswell, the Mad-Mad Bomber, from The Final War, my very own novel project.  PM me if you would like to read.

"Oh, sure, blaim the wizards..."

SirJackRex

  bitmap = RPG::Cache.icon(item.icon_name)

Ok, I'm pretty sure of this, but I haven't read the script.

Where "item.icon.name" is, go into the Resource Database and replace the "item.name_icon" with the name of an icon. Find the name of the icon in the database.

Hope that works.

But I recommend reading the script inside in script thing in RMXP and look for the green text.
That's directions.