I can't tell if SourceCoder is being dumb or it's my own fault but my code keeps returning the error message below, however, when I plug it into my Ti-83+ it has no issue running that section of the code.

Error at Line 2 at "...SKIL<br />{5,8 -> Di...".<br />


Code:
2 -> V
6 -> dim(∟SKIL
{5,8 -> Dim([F]
List>matr({3,1,1,3,5,5,.1,5},{3,2,1,1,3,1,0,8},{3,3,1,3,7,7,.25,2},{3,4,1,5,3,.02,6},{3,5,7,10,6,1,.15,1},[F])
"Sword   Dagger  Hammer  Spear   Axe     " -> Str2

{3,6 -> dim([G]
List>matr({4,1,1,3,1,1},{4,2,1,5,3,3},{4,3,1,4,2,2},[G])
"Helm    Tunic   Leggings" -> Str3

{5,3 -> dim([H] //Levels
List>matr({1,1,1},{1.5,1.5,1.25},{2,2,2},{3,3,4},{4.5,4.5,6},{6.5,6.5,10},[H])

{5,8 -> dim([E]
List>matr({1,1,1,3,1,10,0,0},{1,2,1,3,1,0,0,5},{1,3,1,20,1,0,1,0},{1,4,1,15,0,0,0,0},{1,5,15,1,0,0,0,0},[E]
"Heal PotMana PotSkill UpIngot   Scroll  " -> Str4

{4,8 ->dim([C]) //Inventory
SC sometimes has an issue with whitespace. I would suggest removing as much whitespace as you can. In this case it looks like you have an invalid token. Specifically with "dim(∟SKIL" the "∟" right before SKIL isn't a token SC recognizes, you need to use "|L" to get the List L token.

SC's error reporting is, sadly, sub-optimal. Hopefully it'll be improved in the future.
It also doesn't work if you have a
Code:
piecewise(
command within your program.
ShinyGardevoir wrote:
It also doesn't work if you have a
Code:
piecewise(
command within your program.

No, that's a legit command as of 5.3
When I tested it on the TI Program Editor and /sc3, it would not load one of my projects that had the new command in.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement