Recent posts

Pages1 2 3 ... 10
1
Ask a Pro / Make a bell ring at a specific...
Last post by Juliet119 - Today at 06:26 am
I'm making a clock tower with a bell and a computer hidden inside. I want the bell to ring 6 times every morning at 6. I know this has something to do with os.time() so I tried this:
Code Select
while true do
    if os.time() == 6 then
          ringBell(6)
    end
end
I tested the ringBell() function separately and it works fine, and the program doesn't throw any errors when run. I'm new to Lua and coding in general. Can someone tell me what I'm missing here?
2
General / PineJam 2023
Last post by bano - Jun 01, 2023, 02:51 am
looking forward to next year
3
APIs and Utilities / Betterreq
Last post by CadenCoaster - May 26, 2023, 10:24 pm
This is a program that I made for the intent of making using libraries easier on big servers no I'm not sure this will actually serve it purpose but I had fun making it and I hope someone will find use of it just to clarify you can edit and re-upload this program and any others related to this project as long as you credit me somewhere as-well as a link to this post.
Anyways let me get to the installation process:
all you need to run to install the client script which will have the require function is:
pastebin get KDgMVq8H /startup/betterreq.lua
you need it in startup you cannot require it like a normal api because it modifies _G to allow you to use it even if you haven't run require("betterreq").
How you use the program is by using brequire(<module>,?<is url>)
For the server you will need to download a diffrent program:
pastebin get jCKpD32u betterreq_server.lua
I also made a utility program to make adding new libraries easier:
pastebin get 5TScGxQR newlib.lua


So let me give a quick rundown on the server end. All you need to do is run the server everything else is handled by the server but you need to run the server before you use newlib because the server will generate that data file for the libraries that your server will host.
I recommend using bg or fg to create a new window and in one run the server and in the other use newlib because I set up the server in a way that you don't need to restart the server every time you add a new library.


There are 3 different ways to send a library:
1. pastebin: you will give a pastebin id for use
2. web: you will give a url for use
3. file: you will give the path to a file for use

Now how to use newlib:
the command line syntax goes:
newlib <name> <method> <contents>
the name is want you want other people to require
the method is one of the ones mentioned above
the contents is stuff like pastebin id url or file path

*sorry if my formatting was a mess*
4
Operating Systems / BurlaOS
Last post by DrBurlao - May 26, 2023, 09:32 am
Hi guys!!! I present to you BurlaOS v2.0, the operating system in which I am working. For now I think I'm on the right track.
Last version is avalible at: "pastebin run es2TyLuj"

Pastebin:https://pastebin.com/es2TyLuj
Github.
No message is associated with this attachment.

Set up:

-Turn on the computer, press space when black screen, press again to bios setup, if not wait 3s.
-It will ask your nickname
-Computer will crash, it will prompt multishell error. Let it shutdown.


*At this point you can´t loggin because only the name was created and Loggin.lua need to compare the password too.

Setting the password and user's folder.
-Turn on the computer again, press space when black screen, press again to bios setup, if not wait 3s.
2. Create user accounts :
    -Menage user accounts,
    -Change password, ---> First time is "admin", don´t care your usernick. Set the password.
    -Create user account ---> This time is the nickname that you setted before. Set the same password that you setted too
    -Now you can loggin as admin with your nickname and password and run BurlaOS.

*Hypervisor.lua is a modded console that has keylogger features, storing all keys and commands typed at two logs on realtime (disabled by default). You can edit Boot.lua and change BurlaCMD by the keylogger console.

-Launcher:
*Clock represents the real world hour.
*Categories autoscan the folder, so you can add your own lua programs to the desired one using "drag and drop" on its respective folders.
*You can erase the pink bar or change it editing the file "BurlaOS.lua"
*Cntrl left = shutdown.
*User can terminate the loading bar screen at start before run BOOT.lua and Boot.lua.

-Software Suite:

Control Panel SW:
-BurlaOS Updater:
*It downloads the BurlaOS last version from github repository.

-BurlaCMD:
*Console.

-Hypervisor:
*Console with keylogger, two log files will be created at root.

-Colorfull Lamps Manager:
*Turn on all lamps.
*Turn off all lamps.
*Turn on a lamp.
*Turn off a lamp
*Change the color of a lamp.

-Floppy backup:
*Detects if there is a floppy in the drive.
User can backup the floppy, format and edit the label.

-Monitor Manager:
*Edit a message on a monitor.
*Clear a monitor.
*Clear all monitors.
*Clone monitor.
*Broadcast a message to all monitors.

-Printer Manager:
*Shows all txt files in computer with the path.
*User can select a file, and input the number of desired copies (max5)
*Printer will show on a monitor the quantities of paper, and ink remaining.
Also there is a counter of printed pages.

-Tape Drive Manager:
*Allows to select a Tape Drive to work:
Play Tape.
Record Tape.
Clone a tape to another.
Rename tape.

-Task Manager:
*Show the actual running threads.
Reload the list.
Run on a new shell or close.


Explorers SW:
-Hidden Files Locator:
*Looks for hidden files and shows name and path.

-Search Files:
*Allows to search files by name, extension,and size.

-Lua Explorer.
*Scan the whole computer for .lua files.
Name, path and size. You can run lua files from here.

-Txt Explorer.
*Scan the whole computer for .txt files.
Name, path and size. You can edit txt files from here.

-Nbs Explorer.
*Scan the whole computer for .nbs files.
Name, path and size. You can edit nbs files from here.

-Ntb Explorer.
*Scan the whole computer for .ntb files.
Name, path and size. You can edit ntb files from here.

Programs:
-Notepad.
*Read, write, delete, rename and list txt files.

-Agenda & Notes.
*Create, view and delete notes.
*Agenda to witch you can add and delete events by date.

-SciCalc.
*An scicalc with ascii interface.
5
Turtle Programs / Survival Toolkit
Last post by Shadow3641 - May 20, 2023, 02:04 pm
Awesome I will go check it out!
6
Forum Discussion / V e r i f i c a t i o n X 3
Last post by Shadow3641 - May 20, 2023, 02:00 pm
the year is 2023 and this is still a problem it's really hard to use this site.
7
Turtle Programs / Survival Toolkit
Last post by Inksaver - May 20, 2023, 07:09 am
Thanks for pointing this out.

The menu system returns 2 values, where the first is nil if the user chooses "q" or 'h'
There are a number of ways to fix it, but all I did was to check for nil first.

I wanted 'q' on the second menu to return to the root menu, rather than quit entirely, so R.choice is set to 0. Change this to -1 for total exit.
Code Select
if subChoice ~= nil then
if subChoice > 9 then -- need more than 9 sub-options
R.choice = subChoice + (mainChoice * 100) -- 10 = 10 + 1000 = 1100
else -- eg main option 1 (mining), sub-option 1 (create mine) = 1 + 10 = 11
R.choice = subChoice + (mainChoice * 10) -- 9 = 9 + 9 * 10 = 99, 1 + 10*10 = 101
end
end
-- eg chosen option 1 mining or option 10 measuring
if modifier == "q" then
R.choice = 0 -- return to root menu. change this to -1 if quit application preferred
return R -- quit task system so it re-starts first menu
elseif modifier == "h" then -- get help on main menu items
R = lib.getHelp(R, itemsRequired) -- if R.choice reset to 0 then will continue
end


Version 20230520.0700 now live.
8
Turtle Programs / Survival Toolkit
Last post by Shadow3641 - May 19, 2023, 05:56 pm
version = 20230515.1500
if you run tk.lua and try hit q on the second option you get this error

/tk.lua:9381: attempt to compare number with nill

you just need to flip the if statements and it seems to work just fine

Code Select
if modifier == "q" then
 R.choice = 0
 return R -- quit task system so it re-starts first menu
 elseif modifier == "h" then -- get help on main menu items
 R = lib.getHelp(R, itemsRequired) -- if R.choice reset to 0 then will continue
 end
 if subChoice > 9 then -- need more than 9 sub-options
 R.choice = subChoice + (mainChoice * 100) -- 10 = 10 + 1000 = 1100
 else -- eg main option 1 (mining), sub-option 1 (create mine) = 1 + 10 = 11
 R.choice = subChoice + (mainChoice * 10) -- 9 = 9 + 9 * 10 = 99, 1 + 10*10 = 101
 end
9
Turtle Programs / Survival Toolkit
Last post by Inksaver - May 19, 2023, 05:06 pm
Yes

The files on pastebin have a version embedded in them: eg version = 20230515.1500 which gives the YYYY/MM/DD:HHMM date.

I am making major updates at the moment, and that is introducing errors, so keep updating your copy with
"pastebin run 8qbeZevX". Report any errors with the version no and the error message.

Will be updated again later today.
10
Turtle Programs / Survival Toolkit
Last post by Shadow3641 - May 19, 2023, 04:33 pm
Hey Inksaver Love your program I use it all the time just wondering if you're still actively working on it.
Pages1 2 3 ... 10