Jump to content




Lock please.


  • You cannot reply to this topic
11 replies to this topic

#1 Silverrune

  • New Members
  • 6 posts

Posted 20 December 2012 - 06:29 PM

I figured it out.

Edited by Silverrune, 20 December 2012 - 06:50 PM.
added code tags


#2 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 20 December 2012 - 06:35 PM

View PostSilverrune, on 20 December 2012 - 06:29 PM, said:

I am trying to imitate sethbling's code for "build" which is a mob trap creator.
Spoiler
I get the error "bios:338: [string "build"]:126: 'in' expected"
What is wrong? I would love a quick reply as I want to try and run this overnight.

I ain't counting to line 126 for you. Please put it on Pastebin, or show us the line that errors.

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 06:36 PM

Please use pastebin for long code, it has line numbers and makes our job so much nicer, we dont like to count. :P

EDIT: haha Dlcruz129 beat me to it. lol

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 20 December 2012 - 06:37 PM

You guys really can't copy/paste to your favorite text editors? Sheesh.

OP, I'm not seeing anything at line 126 that should need an "in". I'm really not sure why it would be erroring like that. Did you end up having to type this all in to computercraft? There may be a typo there causing the error.

#5 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 20 December 2012 - 06:38 PM

View PostLyqyd, on 20 December 2012 - 06:37 PM, said:

You guys really can't copy/paste to your favorite text editors? Sheesh.

OP, I'm not seeing anything at line 126 that should need an "in". I'm really not sure why it would be erroring like that. Did you end up having to type this all in to computercraft? There may be a typo there causing the error.

iPhone...

#6 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 06:40 PM

View PostLyqyd, on 20 December 2012 - 06:37 PM, said:

You guys really can't copy/paste to your favorite text editors? Sheesh.

I could, but it takes time to highlight it, would you expect us to do it with a 1000 line code. no you wouldn't. they are copy pasting it anyways, an extra step isn't going to kill them. Also the other issue with copy paste into a text editor from here is here doesn't preserve white space meaning line 126 is probably missing an in, but we cant see it because it may actually be line 80 without whitespace.

#7 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 20 December 2012 - 06:50 PM

The forums do seem to preserve line breaks relatively well, though. I dunno, just seems really pretty easy to quickly select the code and copy/paste it into a text editor. Eh. I was just teasing you guys, but neglected to append an emoticon to signify such. ;)

#8 ChunLing

  • Members
  • 2,027 posts

Posted 20 December 2012 - 06:53 PM

Pastebin is also a good solution for avoiding typos and copying errors, if that's the source of the problem.

#9 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 20 December 2012 - 06:56 PM

Don't edit your posts to remove the content. Don't edit your title to request a lock.

Please post the answer you found so that others with a similar question can find the answer without needing to ask.

#10 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 06:57 PM

View PostLyqyd, on 20 December 2012 - 06:56 PM, said:

Don't edit your posts to remove the content. Don't edit your title to request a lock.

How does one actually request a lock?

#11 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 20 December 2012 - 06:59 PM

View PostTheOriginalBIT, on 20 December 2012 - 06:57 PM, said:

View PostLyqyd, on 20 December 2012 - 06:56 PM, said:

Don't edit your posts to remove the content. Don't edit your title to request a lock.

How does one actually request a lock?

The best way is the Report button on each post. The original poster simply has to click that (usually for the original post in the topic, but not necessarily) and request a lock. It's best to provide a reason (discontinued project, conversation moved to a new topic, etc.). If the moderator handling that report agrees that a lock is appropriate, the topic will be locked. This procedure should also be used to request a topic be moved. The report feature should also be used (of course) to report inappropriate content.

#12 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 December 2012 - 07:04 PM

View PostLyqyd, on 20 December 2012 - 06:59 PM, said:

snip

The best way is the Report button on each post. The original poster simply has to click that (usually for the original post in the topic, but not necessarily) and request a lock. It's best to provide a reason (discontinued project, conversation moved to a new topic, etc.). If the moderator handling that report agrees that a lock is appropriate, the topic will be locked. This procedure should also be used to request a topic be moved. The report feature should also be used (of course) to report inappropriate content.

I had a feeling it was that but wasn't sure. thanx.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users