So I downloaded a script and it isn't really working. For some reason whenever I try to start my project, this error message pops up, "unexpected keyword_end, expecting $end" Again, I didn't write this script, and I have no idea how I can make it work. Does anyone know how to fix this issue, it happens with pretty much every script I've downloaded.
Script Issue
RGSSx Script SupportI've moved this thread to Script Support. Thank you.
It would help if you mentioned and linked which script you're using.
Please provide:
a link to the script
a screenshot of the error message
when you get the error message, close the game, press F11, and give a screenshot of what's in the script editor as soon as the window opens - do not select any scripts and do not scroll up or down the visible script.
More detail would be good. What is "this script"? If it happens with "pretty much every script I downloaded" then maybe you've damaged one of your default scripts and it's not an issue with the downloaded script.
Next time please provide more info in your thread title. It'd be nice to have an inkling of what the issue is without having to open the thread to look.
a link to the script
a screenshot of the error message
when you get the error message, close the game, press F11, and give a screenshot of what's in the script editor as soon as the window opens - do not select any scripts and do not scroll up or down the visible script.
More detail would be good. What is "this script"? If it happens with "pretty much every script I downloaded" then maybe you've damaged one of your default scripts and it's not an issue with the downloaded script.
Next time please provide more info in your thread title. It'd be nice to have an inkling of what the issue is without having to open the thread to look.
Those errors usually happen with incomplete scripts, or if the scripts were added at the wrong place.
Without details we can't tell if the script you tried is even working or not - it could simply be that you copied them wrong, or it could be that they were damaged before you copied them.
Without links and more details from you, there isn't much we can do.
You can follow the link "how to use a script" in my signature to learn if you might have done something wrong, because it is very unlikely that a lot of scripts have the same problem, that points to something wrong in your project.
Here is a link to the script,
https://ramirormvxa.wordpress.com/scripts/mother-3-status-style/

Here is the error message.
That script is not giving that error message.
This is probably why it's happening to every script you download. You have added a script and not given it a name, so we can't see what the script is that's producing the error.
Go through your script list and ensure all scripts that have content in the panel on the right have a name in the list on the left. Then play your game again to get the error, and tell us the full error message, which will now include the name of the script (or at least the name you gave to the slot the script is in).
This is probably why it's happening to every script you download. You have added a script and not given it a name, so we can't see what the script is that's producing the error.
Go through your script list and ensure all scripts that have content in the panel on the right have a name in the list on the left. Then play your game again to get the error, and tell us the full error message, which will now include the name of the script (or at least the name you gave to the slot the script is in).
You gotta know a few things in order to handle scripts properly.
class, module, def, if, unless, while, until, loop or loop do, times, do, for and sometimes even each are reserved terms in Ruby. If you used any of them, you need a corresponding end reserved term to finish that block of code.
Check out if you've got less end's or more of them than you actually need in a given script. Usually any default script you've never modified directly nor hasn't been completely replaced can be automatically discarded.
You shouldn't complain about this tedious verification method because you happen to be quite lucky since it throws an error just in line 17. It could have been in line 1248 or something the like. 😛
class, module, def, if, unless, while, until, loop or loop do, times, do, for and sometimes even each are reserved terms in Ruby. If you used any of them, you need a corresponding end reserved term to finish that block of code.
Check out if you've got less end's or more of them than you actually need in a given script. Usually any default script you've never modified directly nor hasn't been completely replaced can be automatically discarded.
You shouldn't complain about this tedious verification method because you happen to be quite lucky since it throws an error just in line 17. It could have been in line 1248 or something the like. 😛
You need to put it in a new slot under Materials and above Main. If you're just starting out, I recommend you have a look at the tutorials in Andar's signature above. There's one there about using scripts.
new scripts always go in this location, unless you really know what you're doing.
Original thread: https://forums.rpgmakerweb.com/threads/script-issue.117976/
