Jump to content


Member Since 12 Feb 2013
Offline Last Active Today, 03:58 AM

Posts I've Made

In Topic: Why don't working this program?

Yesterday, 10:09 PM

1. You have to use strings (MyFolder refers to a variable, "MyFolder" is a string).
2. Strings or nil variables can't be divided (a/b is division)
3. Strings can be combined ("Hello" .. "World" -> "HelloWorld")*
4. However, in this case it's probably better to use fs.combine.

*Note that -> is not actual code, this is just to indicate the result of combining the two strings.

In Topic: How do I use the speaker?

Yesterday, 04:56 PM

> help speakers
should give you everything.

The wiki will not be updated until a non-beta release.

In Topic: Secure Access Server (SAS) - My first actual program

18 November 2017 - 11:25 PM

May I suggest using some form of encryption so that it is not possible for me to listen for all rednet messages and extract the password from the conversation between client and server?

In Topic: Help with chatbox command system

16 November 2017 - 07:02 PM

Thanks :) I think this is the first time someone has actually used it (besides me), so I'm glad you found it useful.

In Topic: Help with chatbox command system

16 November 2017 - 05:23 PM

Yes. The API is designed to give you as much control as possible, without having to deal with co-routines.
Something like this would work:
local tFuncs = {} --# put a bunch of functions here
local tFuncAsyncs = {}
for k, v in pairs( tFuncs ) do
  tFuncAsyncs[ k ] = statemachine.unblock( v )
statemachine.setLoop( function()
  for k, v in pairs( tFuncAsyncs ) do
    if v() then
      tFuncAsyncs[ k ] = nil
end )

Edit: I have a project demonstrated here which shows a bit more of what you can do. It's not 100% working and I may have slightly abandoned the project, but it's there.