This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Tuskyman2's profile picture

[Lua] Bios 338 error

Started by Tuskyman2, 15 December 2012 - 07:45 AM
Tuskyman2 #1
Posted 15 December 2012 - 08:45 AM
Code:
pastebin get gb9jF8eY
Error:
bios:338: [string "fell"]:1: '='
expected

Please help, Need wood and charcoal A.S.A.P! ;)/>
OmegaVest #2
Posted 15 December 2012 - 08:56 AM
Ah.

Okay so are you having this problem from the shell? Or are you trying to make a program that does this? Because, pastebin is not a Lua command, but a program, which can be called from the main screen.

What you were trying to do is this (from the start, not in a program):
pastebin get gb9jF8eY fell


If you wanted a program that would run pastebin to get that specific program, you would use this, in a differently-named program:

shell.run("pastebin", "get", "gb9jF8eY", "fell")
Tuskyman2 #3
Posted 15 December 2012 - 08:58 AM
I'm fairly new to this so please explain how to do this :P/>
OmegaVest #4
Posted 15 December 2012 - 09:17 AM


Okay, so first things first, go into the ComputerCraft config (located in the conveniently named config folder in your minecraft folder). In the config, make sure HTTP API enable is set to true.
Secondly, when you start the computer in game, don't open edit. Just type in "pastebin get gb9jF8eY fell" without quotes. Then run fell.



EDIT: Okay, I was wrong about one part. HTTP API, in the config, should look like this: enableAPI_http=1
theoriginalbit #5
Posted 15 December 2012 - 01:45 PM
you need to specify a filename. e.g. pastebin get gb9jF8eY startup