I don't know why, but I kept getting errors when using the brackets, but maybe that's an issue with square brackets. Anyway, thanks for the help, it does work just fine, maybe I kept making some weird spelling mistake with the brackets' order and I didn't realize.
Ruby/RGSSx questions that don't deserve their own thread
RGSSx Script SupportI don't know why, but I kept getting errors when using the brackets, but maybe that's an issue with square brackets. Anyway, thanks for the help, it does work just fine, maybe I kept making some weird spelling mistake with the brackets' order and I didn't realize.
Hey, i need help about something, do you know how can i add and remove a state via scripting by a party member number? (not by actor id)
Also do you know how to do the recover all command with scripting again for party member number? (not by actor id)
Also do you know how to do the recover all command with scripting again for party member number? (not by actor id)
@RpG LoVeR https://forums.rpgmakerweb.com/index.php?threads/script-call-collection-for-vxace.25759/
Look at recover all and change state
Look at recover all and change state
#--------------------------------------------------------------------------
# draw_equip_param
#--------------------------------------------------------------------------
def draw_equip_param(param_id, dx, dy, dw)
draw_background_box(dx, dy, dw)
change_color(system_color)
>>>>> draw_text(dx+4, dy, dw-8, line_height, Vocab:😛aram(param_id))
if $imported["YEA-EquipDynamicStats"]
draw_percentage_param(param_id, dx, dy, dw)
else
>>>>>> draw_set_param(param_id, dx, dy, dw)
end
end
# draw_equip_param
#--------------------------------------------------------------------------
def draw_equip_param(param_id, dx, dy, dw)
draw_background_box(dx, dy, dw)
change_color(system_color)
>>>>> draw_text(dx+4, dy, dw-8, line_height, Vocab:😛aram(param_id))
if $imported["YEA-EquipDynamicStats"]
draw_percentage_param(param_id, dx, dy, dw)
else
>>>>>> draw_set_param(param_id, dx, dy, dw)
end
end
Does anyone know what the command is to force the game to exit? Scene_Manager.exit isn't doing it for me for some reason.
small typo. SceneManager.exit
Still fails, even without the typo. What it does it is loops back to the beginning of the map when I call it. However, if I call it a 2nd time, then it shuts down. Any reason I would have to call it 2x to exit the game?
No idea. This is just what is in my title screen script.
def command_shutdown
Sound.play_ok
fadeout_all
SceneManager.exit
end
And Yanfly system options
def command_shutdown
fadeout_all
SceneManager.exit
end
They all work.
When you say loop back to the beginning of your map, what scripts do you have that could cause that?
def command_shutdown
Sound.play_ok
fadeout_all
SceneManager.exit
end
And Yanfly system options
def command_shutdown
fadeout_all
SceneManager.exit
end
They all work.
When you say loop back to the beginning of your map, what scripts do you have that could cause that?
I actually figured it out. It seems if you have HIME's backtrace script installed, SceneManager.exit doesn't end the game the first time it's called via a script call in an event (once I deleted it, it worked). So its only going to be an issue while I'm debugging the game.
Yes, I noticed that before as well. When I had that script in, more than 6 other scripts had problems. It was such a problem that I could not even start a new game.
If you have pasted that script in a new slot above Main, you will have to disable the default Main script.
Either that, or replace the default Main script with the backtracer script.
If you would have both of them, than yes, the game will simply restart after the 1st exit call, and only exit for real after the 2nd exit call (rgss_main is called twice this way).
It is impossible to get problems from having that script installed (properly).
Any issues you get is from another script.
I actually recommend keeping that script even after releasing your game, and if someone were to get into a crash issue, you can ask the error log from them to speed up the process of bugfixing.
@Sixth : That would be true, but I don't recall anywhere in the directions it said install it by replacing Main. So technically it is installed properly, per the directions. But, I will consider trying that as I would like to keep it once the game is released.
I just tried to disable the main script and it still gives me the same problems. With the backtracer disabled, I have no problems.
First my animated title screen does not play, then my menu cursor does not show up and before I get to the first map the game crashes.

So certainly a script incompatibility, but the incompatibility is with backtracer not with any of my other scripts in the game.
Nice to note is that it mentions cutscene skip, but that is not used at the beginning of the game. I only play animated title screen, difficulty select then on to first map.
So obviously the backtracer causes a problem with rpgmaker source cutscene skip script or the unequip script.
However if the backtracer is disabled, my console is much different for the same process.

Now I just moved the equip script to be above the backtracer and it did not crash. So that means that I did not have the backtracer in the right spot.
I just moved it down to the bottom and everything works. Sorry if I missed that step somewhere.
I guess the script disables all scripts below it? I definitely missed that.
I also do not have main deleted. Backtracer is just above it. But I guess I should disable main.
@Roninator2 : This probably needs its own thread. However, I found that for title screen skip scripts to work with the backtracer, you need to put the backtracer script below the title screen skip script. If you do it the other way, the title screen skip script will fail.
If that doesn't fix it, please start a new thread for this.
If that doesn't fix it, please start a new thread for this.
No it's good now. As I said, I definitely missed the part for needing to put the backtrace below all other scripts. I also have main deleted and everything is good.
But yes that was the issue. The backtrace was above several scripts. I just have my scripts grouped together by creator. So Hime just happened to be above MOG.
But yes that was the issue. The backtrace was above several scripts. I just have my scripts grouped together by creator. So Hime just happened to be above MOG.
I don't know if Hime actually put the install instructions of the backtracer script anywhere or not, I just know that it should replace the original Main script, which is just one line (and that same line is called in the backtracer with the addition of the extra rescue methods to store the error records before the crash would destroy the game process).
So, yes, anything else below the backtracer script will only run after you "force close" the game with the SceneManager.exit script call (regardless of where you call it), at which point the game will restart itself, because it will reach the next rgss_main call from the original Main script slot (if it is not disabled).
This is true for every single script actually. Anything put below the Main script slot (or the backtracer slot, if using that), will actually run when SceneManager.exit is executed from any source (this includes the hard-reset F12 method as well, which will indeed generate a crap-load of errors in the case of certain scripts).
Bottom line, leave nothing below the Main script slot (or the backtracer slot if using it), and as an extra, your game should NOT let the player use that broken F12 hard-reset key at all. Plenty of scripts out there to disable that pesky key.
@Roninator2
The second console log shows tons of undisposed objects (I guess, one of them is the title command window, the other one is maybe a sub-class of Sprite/Bitmap class). You should recheck your title script for any undisposed graphical objects (windows, sprites, bitmaps, viewports) and dispose them properly, or else your game will have a memory leak issue.
So, yes, anything else below the backtracer script will only run after you "force close" the game with the SceneManager.exit script call (regardless of where you call it), at which point the game will restart itself, because it will reach the next rgss_main call from the original Main script slot (if it is not disabled).
This is true for every single script actually. Anything put below the Main script slot (or the backtracer slot, if using that), will actually run when SceneManager.exit is executed from any source (this includes the hard-reset F12 method as well, which will indeed generate a crap-load of errors in the case of certain scripts).
Bottom line, leave nothing below the Main script slot (or the backtracer slot if using it), and as an extra, your game should NOT let the player use that broken F12 hard-reset key at all. Plenty of scripts out there to disable that pesky key.
@Roninator2
The second console log shows tons of undisposed objects (I guess, one of them is the title command window, the other one is maybe a sub-class of Sprite/Bitmap class). You should recheck your title script for any undisposed graphical objects (windows, sprites, bitmaps, viewports) and dispose them properly, or else your game will have a memory leak issue.
@Sixth I wouldn't know where to start with that. It's the MOG Rin Title screen script. I got it from a download that had several together.
Could you figure it out if I PM'd you the script?
That object disposal error happens 5 times then stops.
My gobj file says...
And as far as F12 goes, I cannot find a script that works. One page says it needs a dll file but the links are dead. I was using Acezon F12 fix because it stops the game from crashing, which is what I had at one point.
Could you figure it out if I PM'd you the script?
That object disposal error happens 5 times then stops.
My gobj file says...
Code:
In Scene Scene_Title
Creation Stack::
Script 0359 -- MOG | Rin Title Screen, Line: 200:in `block in create_commands'
Script 0359 -- MOG | Rin Title Screen, Line: 199:in `each'
Script 0359 -- MOG | Rin Title Screen, Line: 199:in `create_commands'
Script 0359 -- MOG | Rin Title Screen, Line: 167:in `create_sprites'
Script 0359 -- MOG | Rin Title Screen, Line: 65:in `execute_setup'
Script 0359 -- MOG | Rin Title Screen, Line: 50:in `main'
Script 0006 -- SceneManager, Line: 23:in `run'
Script 0350 -- Hime | Map Screenshot, Line: 971:in `run'
Script 0409 -- Main, Line: 8:in `block in <main>'
Script 0307 -- Acezon | F12 Reset, Line: 47:in `call'
Script 0307 -- Acezon | F12 Reset, Line: 47:in `block in rgss_main'
:1:in `block in rgss_main'
:1:in `loop'
:1:in `rgss_main'
Script 0307 -- Acezon | F12 Reset, Line: 37:in `rgss_main'
Script 0409 -- Main, Line: 8:in `<main>'
ruby:in `eval'
And as far as F12 goes, I cannot find a script that works. One page says it needs a dll file but the links are dead. I was using Acezon F12 fix because it stops the game from crashing, which is what I had at one point.
Nothing can fix F12 reset, not if you use custom scripts.
It was made for the default engine without any extras, anything else will create problems if it has some custom sprites displayed at the moment of triggering F12 (memory leaks and/or crashes will happen).
If these memory leaks happen after you reset the game with F12, than no, I can't fix them.
I just tried that Acezon F12 Fix, it fixes nothing, huge memory leaks from undisposed objects will remain.
If you can't find a working script which disables F12, you can send me a PM, and I will send the dll file for it to you (I use one which requires a dll, so I guess, that is what you found as well).
In any case, this is really a specific issue deserving it's own topic, so lets continue in PMs or in a topic made for this instead.
It was made for the default engine without any extras, anything else will create problems if it has some custom sprites displayed at the moment of triggering F12 (memory leaks and/or crashes will happen).
If these memory leaks happen after you reset the game with F12, than no, I can't fix them.
I just tried that Acezon F12 Fix, it fixes nothing, huge memory leaks from undisposed objects will remain.
If you can't find a working script which disables F12, you can send me a PM, and I will send the dll file for it to you (I use one which requires a dll, so I guess, that is what you found as well).
In any case, this is really a specific issue deserving it's own topic, so lets continue in PMs or in a topic made for this instead.
How can I read variables externally from a different file like i have a text file
life=2000
Attack=400
How can i read these values in RM and then store them as variables?
Pls someone help!
Also, how can I run an external program in the interface like running an external program ingame so it does not look like its external or a separate window
I am a beginner, hope its the right place to ask Questions!!
life=2000
Attack=400
How can i read these values in RM and then store them as variables?
Pls someone help!
Also, how can I run an external program in the interface like running an external program ingame so it does not look like its external or a separate window
I am a beginner, hope its the right place to ask Questions!!
Hey guys, I'm new here.
I'm having a problem with custom objects in RPG Maker Ace scripts. I'm using my own custom ruby objects to trigger certain events which works perfectly fine until I save the game, close it and reload from the save file. The event that created these objects only is triggered one time, before the savefile was created so I figured the objects are actually not saved within the savefile.
So my question is: How do I add new data to the savefile? And what is the most elegant way to do it?
I'm having a problem with custom objects in RPG Maker Ace scripts. I'm using my own custom ruby objects to trigger certain events which works perfectly fine until I save the game, close it and reload from the save file. The event that created these objects only is triggered one time, before the savefile was created so I figured the objects are actually not saved within the savefile.
So my question is: How do I add new data to the savefile? And what is the most elegant way to do it?
Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/