Jump to content


LDDestroier

Member Since 31 Jul 2014
Offline Last Active Yesterday, 09:27 PM
*****

Topics I've Started

Progdor2 - folder archiving and file transfering program

23 May 2019 - 05:56 AM

Now introducing, the complete rewriting of the previous version...


PROGDOR2

Burninating the previous version since 2016


wget https://raw.githubusercontent.com/LDDestroier/CC/master/progdor2.lua
std ld progdor2

Progdor2 is a utility that packages folders into archives for easy distribution.
There are several other features, too, such as compression (CCA, thanks to minizbot2012), self-extraction, and modem/HTTP file transferring with Skynet (thanks to Gollark).

(Progdor2 is super useful, I swear!)

Full list of arguments:
Spoiler

Tell me some tellings in the comments. It gives me validation.

I get that BBPack exists, I get it

Disknet: "Modem" communications through a disk drive!

02 May 2019 - 02:58 PM

Want to have modemless interdimensional communication, but Skynet is too slow? (it's not that slow)

Are you on a version of ComputerCraft that doesn't support websockets? (update, you luddite)

Or are you that guy?

Then Might I IntroDuce To You


DISKNET


The Only Network API That You Can Download By Executing The Command:

wget https://github.com/LDDestroier/CC/raw/master/disknet.lua

Disknet works by using a shared directory between two or more computers to emulate the functionality of a modem.

You open a "channel" file, then can send/receive messages to/from it.

While one machine is receiving, it is constantly checking the channel file for changes. If it finds one, it will re-read it and see if a new message was sent.

This reads one or more files every tick, so using several channels might slow it down a tad.


This might not seem useful, but if you have two duplicated floppy disks with the same ID, you can use this for private inter-dimensional communications!

Without that, you can also essentially double the maximum possible length of wired cables from 256 to 512 by sticking a disk drive w/ a disk at the halfway point. That's useful, probably.


I've always wanted to make something like this since 2014, but never knew how until now!


Here's the list of functions and their uses:
Spoiler

Tell me what you think in the comments, or I'll eat your shoes


Workspace - Desktop grid multitasking in ComputerCraft!

23 April 2019 - 08:43 PM

Ever use a Linux desktop and really like the way you could switch between different virtual desktops, or maybe you just don't like clicking through menus when multitasking?

look let's just get this over with I haven't eaten anything all day


INTRODUCING

Workspace

The Spiffiest Task Selector


wget https://github.com/LDDestroier/CC/raw/master/workspace.lua
pastebin get s0ehEQvA workspace.lua
std ld workspace


Workspace is a multitasking wrapper for ComputerCraft that lets you switch tasks by switching between different "virtual desktops" instead of clicking through a menu, as you would with "bg" or most CC operating systems.
Whenever a program exits, the workspace becomes "inactive", taking up no resources at all. Terminate in an inactive workspace to exit.

Push CTRL + SHIFT + ArrowKey to change your workspace.
Push CTRL + SHIFT + TAB + ArrowKey to swap the current workspace with another.
Push CTRL + SHIFT + [W or A or S or D] to add a new workspace relative to the currently focused workspace.
Push CTRL + SHIFT + P to toggle pausing a workspace.
Push CTRL + SHIFT + Q to delete the current workspace.

The grid is 3x3 by default.

ComputerCraft Battle Network [WIP] - Over 70 battlechips! Modem/Skynet multiplayer...

18 March 2019 - 05:50 AM

Posted Image

With 72 battlechips so far!

(Man! You'd think I'd move onto Love2D!)


Download the game with:
wget https://raw.githubusercontent.com/LDDestroier/CCBN/master/ccbn-autoextract.lua
Then run the auto-extractor:
ccbn-autoextract.lua ccbn
That will extract to "ccbn/". Run the game with ccbn/ccbn.lua. The game can also be moved out of that directory.
For netplay using Skynet (HTTP), use the skynet argument (so run "ccbn.lua skynet")





Ever want to play Megaman Battle Network, but...um...?


WELL NOW YOU CAN


Introducing ComputerCraft Battle Network, a modem slash Skynet (HTTP) multiplayer versus game where you and a friend (or partner) can square off against one another in the battle system of one of the best action RPGs on the Gameboy Advance!


Duke it out on a 6x3 grid of panels, each of which can be broken, set on fire, turned to sand, completely poisoned, and outright stolen from your enemy! (with the right battlechip)

Master panel ownership and use quick reflexes to not miss



Default Controls:
  • [Arrow Key] - Move your character.
  • [Z] or [Zed] - Fire the MegaBuster.
  • [X] - Use the currently selected battlechip.
  • [C] - When the custom bar is full, open up the chip selection screen.

Fire attacks at the enemy until their HP drops to 0! I don't think that's so obtuse.


If you need help with the mechanics, the game comes with additional HOW TO PLAY instructions on the main menu.


Screenshots:
Spoiler

The game doesn't run super well on SwitchCraft, but it is what I'd call """"playable"""". Give it a shot if it looks fun.

[Snippet] Argument Parser

24 February 2019 - 09:03 PM

This code snippet will allow your programs to interpret arguments much like a Linux command would!

https://raw.githubus...r/argparser.lua

Using this, your program can have arguments like:
program.lua -s -c 2 -b Spaghet mamamia ravioli

Example (in progdor2):
Spoiler