Problem with Tiny Travel Script

Hey, it's me again.

I'm having problems with Tiny's Travel script, i added some map locations and i get this error: http://i.imgur.com/4nr8g4J.png

Any solution?

  •  
You added the map locations at the wrong place - in a script, even a space added or missing can count and create errors.


Please link to the script so that we can check how it is done correctly.
Here's the modified script: http://puu.sh/ciyhu/73b2ba918e.txt sorry for a late response, i forgot to look at it.
Do you see the line with the comment "Don't put a comma if it is the last target"?


That also means of course that there needs to be a comma if it is NOT the last target, and you haven't placed that comma there.
Do you see the line with the comment "Don't put a comma if it is the last target"?

That also means of course that there needs to be a comma if it is NOT the last target, and you haven't placed that comma there.
Well, i tried to put commas except the last one, but i don't know why it doesn't work, can you locate the mistakes?
:mountain => { :text => "Mountain", :graphic => [900, 800,"berge", 232], :teleportdest => [2, 0, 6] ====> } # Don't put a comma if it is the last target #█ OWN TARGETS :northamerica => {:text => "North America", :graphic => [31, 51,"NorthAmerica", nil], :teleportdest => [?, ?, ?] },The line with ====> is the problem.Because that is no longer the last line, it needs to be changed to

Code:
             },   # comment
:mountain => { :text => "Mountain", :graphic => [900, 800,"berge", 232], :teleportdest => [2, 0, 6] ====> } # Don't put a comma if it is the last target #█ OWN TARGETS :northamerica => {:text => "North America", :graphic => [31, 51,"NorthAmerica", nil], :teleportdest => [?, ?, ?] },The line with ====> is the problem.Because that is no longer the last line, it needs to be changed to

}, # comment
Ooooh...now i understand...thank you.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-tiny-travel-script.33081/