Having a major problem with call shop when i sell weapons.
RGSSx Script SupportThere's something going wrong with the Yanfly script that you're using. Could you provide any script calls that you may be using on the weapons?
The error got nothing to do with the shop scene, it is from a wrong message code you use in a message box.
I guess, you show something in a message box before opening the shop scene, and that's when the error happens.
It is most probably a non-existent weapon icon/name that you wanted to show in the message box or another incorrectly formatted message code.
Or it can be a message code used in the description for one of your weapons. That text is the only one which uses the draw_text_ex method for drawing the text, and the error comes from that method.
If you edited the shop scene or got a custom one from a custom script, we will need to see these edits/script to know what causes the error (if none of the above did).
I guess, you show something in a message box before opening the shop scene, and that's when the error happens.
It is most probably a non-existent weapon icon/name that you wanted to show in the message box or another incorrectly formatted message code.
Or it can be a message code used in the description for one of your weapons. That text is the only one which uses the draw_text_ex method for drawing the text, and the error comes from that method.
If you edited the shop scene or got a custom one from a custom script, we will need to see these edits/script to know what causes the error (if none of the above did).
I get that error when I accidentally do a \ then right after it is an illegal character that the engine has no idea to process. For example, \[ will *always* crash Yanfly's message system 100% of the time. So check your show text commands and see if you have a \ followed by an illegal character, as that is what that error message usually means.
thank you i had in the discription for an axe speed -5 \ +5 critical that was the problem thanks for all your help guys.
That is the same error, it points to the same method and to the same line.
Ohh, too late. 😀
Glad you found the culprit!
Although, I think, you can still display that in the description by using a double \ sign instead of a single one, so the text should look like this:
-5 \\ +5
thank you
Original thread: https://forums.rpgmakerweb.com/threads/having-a-major-problem-with-call-shop-when-i-sell-weapons.67812/


