Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Solved] Advanced Crafting System error.

Started by hexgame, May 08, 2011, 07:24:06 PM

0 Members and 1 Guest are viewing this topic.

hexgame

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.


????? 'Window_Crafting_Message' ? 17 ??? NoMethodError ????????

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



Which links to this:


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.

modern algebra

I need a link to the script you are using.


modern algebra

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.

hexgame

Quote from: modern algebra on May 08, 2011, 10:04:52 PM
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. :)