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.
[Solved] Advanced Crafting System error.

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 74
RMRK Junior
Posted this on Rpgmakervx as well, but had no replies, so I'll ask here. My game relies heavily on crafting.

Whenever an item crits, I get this error.


Code: [Select]
????? 'Window_Crafting_Message' ? 17 ??? NoMethodError ????????

undefined method 'contents_z='for
#<Window_Crafting_Message:0x32bc5a0


Which links to this:


Code: [Select]
self.contents.draw_text(128, 24, 280, WLH, critNameString)
self.contents_z = 9

Any help is appreciated. I already changed self.contents_z to self.contents.z but got the same error. Just let me know if you need any more details.
« Last Edit: May 10, 2011, 11:17:22 PM by hexgame »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
I need a link to the script you are using.

**
Rep: +0/-0Level 74
RMRK Junior

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Try just deleting the line. It might have been the scripter's error leaving it in at all, as I can find no other reference in any of the scripts to contents_z and I am not even sure what it would be intended to do. My guess is that the scripter was experimenting with a new feature and decided to take it out, but forgot to delete that line.

If not, you can try changing it to self.z, but it's hard to imagine that was the intention.

**
Rep: +0/-0Level 74
RMRK Junior
Try just deleting the line. It might have been the scripter's error leaving it in at all, as I can find no other reference in any of the scripts to contents_z and I am not even sure what it would be intended to do. My guess is that the scripter was experimenting with a new feature and decided to take it out, but forgot to delete that line.

If not, you can try changing it to self.z, but it's hard to imagine that was the intention.

I removed the line, and it worked..... I don't know why I didn't think of that, since I couldn't find anything else that contents_z would refer to. Much appreciated. Thanks. :)