RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Window_Base error

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 89
What will that crazy ape do next?
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..."

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
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.

*****
Ancient Mummy
Rep:
Level 90
you need to delete the line thats it

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
Lol, don't do what Snailer said.

Just give us the script in code.

****
Rep:
Level 89
What will that crazy ape do next?
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
« Last Edit: May 12, 2007, 05:48:00 AM by darkelementwars »
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..."

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
  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.