Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Tenoukii

Script error

Question

D: I've just added a new menu option using Leon's tutorial (yay for finally getting it to work!) but now i get an error after the first scene thingy! it says:

 

SyntaxError occured while running script.

 

:S any ideas?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

A syntax error would mean that some of the ruby syntax was used incorrectly. Did it give you a line number? If so that's a good place to start looking. If you can't figure it out, if you send me the script I can tell you what went wrong and explain it to you :)

 

EDIT: Are you learning to script then? If so, good luck! Do you have previous programming knowledge?

And if you ever have a question about scripting drop me a pm and I can answer it for you.

Edited by kellessdee

Share this post


Link to post
Share on other sites
  • 0

1. no, it didn't give a line number. the little box pops up with that message (copied exactly ^_^ ) after the first little "interactive cutscene" (no idea what else to call it :P )

and 2. I would like too... but i really don't get any of it :P I was just using Leon's thingy for adding menu options because it was one of the few that actually make it easy to understand and do :D

I suppose i'm just better at the storying and eventing side of things.

The scripts I added/changed are here:

http://www.rpgrevolution.com/forums/index.php?showtopic=49653 (3rd post down)

 

I really can't sit and C&P everything again (sorry! :D )

 

Thankss!

 

EDIT: Fixed it!

It turns out that the script call to add a new mission (from the event) wasn't written right!

 

Thanks for the time :D

Edited by Tenoukii

Share this post


Link to post
Share on other sites
  • 0

Learning programming is like learning a new language! It takes a lot of time and practice, but eventually you will get there if you stick to it! I will take a look at it for yea. And you are right, to learn programming you cannot just copy and paste everything. Take the time to type it all yourself, it will give you a feel how to do it. And remember practice all the simple basic stuff, it may seem boring and tedious at first but they are the building blocks to learning the language.

 

If I find the error as well, I will explain it to you. An explanation helps a lot more than just "this is the error. Do this instead."

in the meantime (if you haven't already) check out these tutorials:

http://www.rmxpunlimited.net/forums/topic/100-ultimate-rgss-tutorials-collection/

 

and in terms of learning ruby (the scripting language for rmxp is called RGSS, but it is just ruby scripting with extra libraries with classes created specifically for making rpgs) check out:

http://www.ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html

http://www.ruby-doc.org/core-1.8.6/index.html

 

for ruby syntax (i gave you the 1.8.6 version because rmxp uses ruby 1.8.6)

 

http://www.ruby-lang.org/en/ this site has more ruby-specific tutorials, great for getting started.

 

Good luck!

 

EDIT: Sorry I was posting as you editted your post! Good job, that means you are beginning to learn :)

Edited by kellessdee

Share this post


Link to post
Share on other sites
  • 0

Glad to see it got fixed, and moreso pleased to see someone learning from my tutorials some 3-4 years later... Can't believe it's been so long...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...