Ruby/RGSSx questions that don't deserve their own thread

Use Ctrl+Shift+F and search all of the alias methods of the newly added script. Assuming that error screen does not give you a line number, which would make it super simple.
No line number. It would be easier. 

Would the console screen show it? or any way to make it show it?
I use this script to debug SystemStack errors.


http://himeworks.wordpress.com/2013/08/12/system-stack-debugger/


A tutorial is included.


This is what you see now


systemstackdebugger1.jpg



This is what you want to see


systemstackdebugger2.jpg



This is what will help you (or a scripter anyways)


systemstackdebugger3.jpg
Check that you haven't inserted the same script more than once.  That's a common cause of this error.
@Tsukihime WOW! That is great!! Gona go try it.

@Shaz ROFLMAO! That was the first thing I did!!
Check again - including the unnamed slots, and make sure you haven't pasted the same script twice in the same slot.  You'd be amazed at how many people swear they haven't got the script in there twice, despite us asking them repeatedly to check, and that's exactly what it ends up being.
Who do I credit for the VXAce_SP1 Ace script? It's one of the few scripts in my project I don't know who to credit.

Edit-found it on my own using google

Deenos
How would I dispose the graphics of this code

@stars1=Plane.new @stars1.bitmap=Cache.picture("stars 1") @stars2=Plane.new @stars2.bitmap=Cache.picture("stars 2") @stars1.blend_type=1 @stars2.blend_type=1I am not a good scripter at all but I can fiddle and understand some things.
@stars1.bitmap.dispose

@stars2.bitmap.dispose

I think. I'm at work so don't have access to my computer.  Sorry for the near-guess.

I would look at the Game_Map class (and maybe more accurately, the Spriteset_Map class) to see how Parallaxes are handled, as that's based on the Plane class.  Just find where parallaxes are disposed, and see if it does the above.  You might also need to do @stars1.dispose and @stars2.dispose afterwards to clean it up properly.
Is there a method to allow a script snippet to display a variable in the title of a weapon, armor, accessory, skill name?  I can get it to display in a description, but under normal usage a variable v[n] will not display in the actual name of the item.
I'm assuming you'd want this possible for every location a equipment/skill name could be drawn? If that is the case, you're probably going to want to modify the draw_item_name method, which handles the above as well as regular items. Basically you'd want to change the draw_text method to draw_text_ex and change the parameters accordingly:

draw_text_ex(x + 24, y, item.name)The side effect to this is because draw_text_ex draws the text a character at a time, it would not longer auto-squish the text if it did not fit the space.An alternative method would be to just replace the variable and then draw it normally. Whiiich is probably the better method now that I've played with it.

Code:
  #--------------------------------------------------------------------------  # * Draw Item Name  #     enabled : Enabled flag. When false, draw semi-transparently.  #--------------------------------------------------------------------------  def draw_item_name(item, x, y, enabled = true, width = 172)    return unless item    draw_icon(item.icon_index, x, y, enabled)    change_color(normal_color, enabled)    text = convert_escape_characters(item.name)    draw_text(x + 24, y, width, line_height, text)  end
Basically, the first option gives you a couple more options (color, icons outside the item one, font size changes) at the price of the auto-shrinking text. The second one just replaces with the appropriate text and then acts like before.
Basically, the first option gives you a couple more options (color, icons outside the item one, font size changes) at the price of the auto-shrinking text. The second one just replaces with the appropriate text and then acts like before.
Pasted into Window_Base Line 547 and worked perfectly in place of the original.  Thank you kindly for two alternatives, that was a tremendous help to me.  I'll be fiddling with both to see what works best.
Okay I'm pretty new to Rpg Maker and also not very good at script writing yet, but i wanted to change my game so the characters faces would show, so I uses Yanfly's battle engine but every time I enter a battle in play test I get an error message saying something is wrong with  this line

840:     return if @battler.pseudo_ani_id <= 0

if anyone can help or tell me if its something wrong I'm doing it would be appreciated if more info is needed just ask.
Uhm, make a new thread for it in script support... it's about a specific script so it doesn't fit in this thread...
ORIGINAL ISSUE IN SPOILER...but I fixed it.

Spoiler
Having an issue that confounds me... Using RPGVX ( NOT Ace) and I am experiencing an error that just—seemingly randomly, might I add—started giving me an error from a default script... The error comes up before I even hit the title screen.

It looks like this:

RandomError1_zps2ec499ee.png


Then I go into the script editor and examine the line it's calling...and I can't even tell what that section of script is doing...let alone what the issue is.

RandomError2_zpse11a67b3.png


I've started going through my scripts and removed them one at a time to see if it changes anything. I've discovered that without the Skill-on-Equip Lite script I've been using in this project for MONTHS now it somehow works again. This problem only recently started happening. Just today. So needless to say, I'm confused about why all of the sudden there's an issue that I can't solve involving default scripts and a script I've been using for months and haven't edited in nearly as long as I've had it.

Here's a link to the script I'm talking about: http://www.rpgmakervx.net/index.php?showtopic=23261&st=0&p=207481entry207481

p.s. If  this is another script issue that needs it's own topic, I apologize... and feel free to move it wherever.
Holy clown shoes, batman! I think I figured it out...evidently a character I'm not even using has a piece of equipment equipped that teaches a skill. That seems to remove the issue.
Yes, it's not the default scripts that are causing this - it's the added script that's CALLING the default scripts. Since you've found a way around it, we can leave it as-is. But if something like this ever happens again, it needs its own thread with full details (and links) of any other scripts you've added/modified.
I want to make a shop where the vendor replies differently depending on whether you have spent money, earned money or didn't buy anything.

How can I call the party gold variable and store it inside a variable I can use in events?

(Not sure if this is a ruby script issue, but I didn't find an event for that).
There is an event for it: Control Variables -> Game Data -> Other -> Gold.


But just in case, this is how you would do it with a script call:

Code:
$game_variables[id] = $game_party.gold
Changing id to whatever variable number you want to use (no leading zeros).
There is an event for it: Control Variables -> Game Data -> Other -> Gold.

But just in case, this is how you would do it with a script call:

$game_variables[id] = $game_party.goldChanging id to whatever variable number you want to use (no leading zeros).
The event wasn't useful (You cannot call for the current amount of gold the party has, unless I missed something completely)

The script is perfect though, thanks! 😀
That event command gives you the current gold the party has... so yeah, maybe you missed something?

Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/