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

Not loading file correctly?

Started by Alice, 02 March 2014 - 06:58 AM
Alice #1
Posted 02 March 2014 - 07:58 AM
I have a program on my GitHub repo and I want to load a 'language pack' with the 'startup' file. The installer should work on computers.
ERROR: Not loading language pack file.
SOLUTION: Load 'BiOS/.lgpacks/english' file and run it.
LINES: ~50-60.
Edited on 02 March 2014 - 09:10 PM
Lyqyd #2
Posted 02 March 2014 - 08:16 AM
"This paste has been removed."

Are we to assume you solved this yourself?
Alice #3
Posted 02 March 2014 - 08:22 AM
"This paste has been removed."

Are we to assume you solved this yourself?

I'm going to kill Pastebin if it deletes it again.
http://hastebin.com/hemukaqiqe.lua
Edited on 02 March 2014 - 07:23 AM
Alice #4
Posted 02 March 2014 - 06:32 PM
Question still stands - can someone help?
Lyqyd #5
Posted 02 March 2014 - 06:56 PM
Can you show a screenshot of running `textutils.tabulate(fs.list("/BiOS"))` after running this script on a new computer?
Alice #6
Posted 02 March 2014 - 07:12 PM
Fixed an error, now 'english' wasn't installing in the right directory. Time to work on that.
Alice #7
Posted 02 March 2014 - 09:27 PM
Bump for new question.
Engineer #8
Posted 02 March 2014 - 10:02 PM
Bump for new question.
What is the question? And please give some information so we can look at some lines specifically, because this is just searching a needle in a haystack.
Eloberate moar! :P/>
Alice #9
Posted 02 March 2014 - 10:10 PM
Bump for new question.
What is the question? And please give some information so we can look at some lines specifically, because this is just searching a needle in a haystack.
Eloberate moar! :P/>/>
New question in OP
Added information about question
theoriginalbit #10
Posted 02 March 2014 - 10:33 PM
line 55 there is no file called "/.lg"
line 62 there is no variable called language it used to be a file handle, now it's nil.
Edited on 02 March 2014 - 09:33 PM
Alice #11
Posted 02 March 2014 - 10:40 PM
I found the problem, thanks.
Multiple bugs occured, but the biggest being that my file I was trying to load didn't have anything in it, so I had to remake it.
Edited on 02 March 2014 - 10:11 PM