Jump to content


qsysmine's Content

There have been 5 items by qsysmine (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#201601 qNAS: Access files from all of your computers.

Posted by qsysmine on 27 December 2014 - 07:28 PM in Programs

Install: pastebin get hsaUDfJu nas
Note: When settings are changed, the app must be restarted in order for changes to take effect.

qNAS
Network Accessible Storage for ComputerCraft.
qNAS allows file sharing between a cloud device and a client device; you are able to set the server to serve a custom directory, as well as the root directory. The program also allows password protection [enabled by setting the pass variable within the settings file].

All code is at http://pastebin.com/hsaUDfJu.

Screenshots
Feedback needed.



#201422 QZInstaller

Posted by qsysmine on 24 December 2014 - 03:43 AM in APIs and Utilities

This is a tool for developers who do not want to make an installer for their files [hosted either at Github, Pastebin, or on their own website].

Code: http://pastebin.com/HgNi5Ci8
Command to get: pastebin get HgNi5Ci8 /installerTemplate
On download, you can edit the first few lines of the script to supply the location and other information of your file.
Please refrain from editing below the
--NON USER-MODIFIABLE FROM HERE ON
comment.



#201387 Program Skips Called Function.

Posted by qsysmine on 23 December 2014 - 08:10 PM in Ask a Pro

View Postawsumben13, on 23 December 2014 - 08:03 PM, said:

There are 2 problems here:
1) You have 2 too many ends closing the mainMenu() function.
2) You are writing "else if" rather than "elseif" - it's just one word, having it as 2 words is confusing the interpreter and making it think you have an if statement inside an else statement, which is why it was saying there should be more ends.
Thanks for the help, but it still appears to skip the menu after removing the extra ends and changing all else ifs to elseif.
Edit: I found the error: I was referring to menu[i] instead of menu.menu[i]. I'm sorry if I wasted anyone's time, and I hope you all have a nice day.



#201383 Program Skips Called Function.

Posted by qsysmine on 23 December 2014 - 07:05 PM in Ask a Pro

When running this file, it entirely skips the mainMenu function; I placed extra
end
calls at the bottom, for it was protesting a lack thereof which I could not seem to place.
I would like help with [1] the need for extra ends, and [2] the skipping.
The code is run from another file which opens it as a multishell tab, if that's any help.



#164562 Lua Problem :(

Posted by qsysmine on 11 February 2014 - 11:45 PM in Ask a Pro

I am creating a rednet client with a loop to check if you're supposed to receive the message.
while true do
  id,message = rednet.recieve()
  local splitMessage = splitter.split(message, ";..;")
  local broadcastOS = splitMessage[1]
  broadcastType = splitMessage[2]
  broadcastRecipient = splitMessage[3]
  broadcastContent = splitMessage[4]
  if tonumber(broadcastRecipient) != os.getComputerID() then
	break
  end
end
When I tested the code in computercraft I got this error:
bios:399: [string "networkClient"]:27: 'then' expected
Line 27 is the if statement. Someone please help me find the error in my if statement.