Problem with Tiny Travel Script

● ARCHIVED · READ-ONLY
Started by ScoopJohn 7 posts View original ↗
  1. 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?

    •  
  2. 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.
  3. 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.
  4. Andar said:
    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?
  5. :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
  6. Andar said:
    :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.