CC-Tweaked
middleclass
CC-Tweaked | middleclass | |
---|---|---|
56 | 9 | |
847 | 1,685 | |
2.0% | - | |
9.4 | 0.0 | |
5 days ago | about 1 year ago | |
Java | Lua | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
CC-Tweaked
-
Hello, dev.to!
My main passion right now is working with the ComputerCraft mod for Minecraft, which adds a flexible Lua-based fantasy terminal to the game. I'm most known for CraftOS-PC, a cross-platform desktop and mobile C++ app which recreates the ComputerCraft environment outside Minecraft. I'm currently working on writing an operating system for it called Phoenix, which aims to implement a full-fledged POSIX/Linux-like environment all in Lua.
-
CC:Tweaked on Bedrock
For those that don't know, CC:Tweaked is the sucessor of ComputerCraft, a fabulous mod for Java Minecraft that adds computers that runs a Lua VM and are able to run programs, interact with some blocks and do redstone stuff. Also it add "mobile" computers/robots aka Turtles that have everything computers do plus they are mobile and can break and place blocks in the world. For large scale building and intricate redstone projects this is a must have mod.
-
Can I add features to the multishell program and ask for a pull request
Github repository here
-
Help beginner
https://tweaked.cc/ ## Other nice if you already know some basics of programming
-
Can someone please just give me code that lets me change Redstone output levels because I'm new and cant find anything about it
A better and updated version of the wiki is at https://tweaked.cc
-
How do I set up a simple "tank read" computer? I am unsure of how to wrap all of these tanks to the one computer and read the total value for all tanks.
if you want some documentation for all the bits and pieces there is https://tweaked.cc/
-
Is there a way to create namespaces/hierarchy in the documentation with LDoc?
LDoc isn't really meant for this, but you can generate on each file individually and then hack in links with some post-processing. Alternatively, if you have the time to dig into an even less documented format, illuaminate natively supports multi-file docs. (See here for an example config file.)
-
wont let me type in text editor for fucking coding
Oh dear, I hadn't quite appreciated how confusing this was. There's an open issue to make the fact that the file is read-only a little more obvious - I will bump that up my priority list.
-
Another problem with computer craft Montors screen goes black after leavening chunk load range.
Known issue that a fair amount of people have been reporting (in discord as well).
-
Is requared learn a lua to use CC Tweaked or ComputerCraft ?
For all CC specific things, the CC: Tweaked docs found here are very very useful. You can check out the turtle, redstone, and fs APIs here (listed in the sidebar under "Globals") if you want more precise info than what tutorials are able to give you.
middleclass
-
Is there a way to create namespaces/hierarchy in the documentation with LDoc?
I am trying to document my code and I am using LDoc for that and for OOP I am using the library middleclass. All of my classes are in a main framework folder and inside that I have each namespace as a folder and then classes that are specific to that namespace in those folders.
-
Lua: The Little Language That Could
The ConTeXt typesetting system tightly integrates Lua. One aspect of Lua that I dislike is its inability to easily write OOP-ish code. What's impressive about the language is that it can be extended to do so in astonishingly little code:
* https://github.com/kikito/middleclass
With OOP in place, I was able to typeset a hexagonal grid and a symbolic representation of a neural network on top, using a more OOP-like approach. The classes are straightforward.
A vertex defines a point in 2D space:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
An edge connects two vertices:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
A graph connects edges:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
A priority queue serves for ordering graph edges by weight of adjoining vertices:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
With these concepts in hand, we can typeset a grid and a "neural network" on top:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
Here's an example of the output for chapter 1:
* https://i.ibb.co/19DCDZy/ch-1.png
And chapter 14, where the "network" has grown in complexity:
* https://i.ibb.co/ncf16vg/ch-2.png
This is for my near future hard sci-fi book on AGI. I'm looking for alpha readers to give me feedback. See profile for contact details.
- Doing what you love when the money won’t follow
-
To all plugin authors: standard class realization
To reduce the amount of boilerplate code, I created the fork of middleclass repo suitable for Neovim plugin managers: it just adds a symlink to middleclass.lua file in lua/ directory. middleclass is well known and tested, so I suggest using it as a standard class realization. I also open a pull request to merge it upstream.
-
Is doing OOP in lua considered bad practice?
Not exactly what op asked, but if you want classes in Lua definitely check out https://github.com/kikito/middleclass
- Alternative to Love2d
-
OOP in Love2d
Like /u/TheMightyHUG pointed out below, there are patterns you can use to do OOP without any extra help. In the past I have used some libraries to improve the ease of doing so, specifically middleclass: https://github.com/kikito/middleclass
-
A complete implementation of the Set data structure in Lua
Same, but when I do I like when authors include everything in one file so it's easy to manage. Here we have the library, some small 10 line file with helper functions that's required and we also need to remember about the licence. Take middleclass as an example, one file, license included, ready to plug and develop.
What are some alternatives?
OpenComputers - Home of the OpenComputers mod for Minecraft.
awesome-lua - A curated list of quality Lua packages and resources.
FarPlaneTwo - Level-of-Detail renderer in Minecraft. Allows for render distances of millions of blocks. (Cubic Chunks-compatible) (WIP)
pyxel - A retro game engine for Python
Proxy-Server - Minecraft mod that allows you to connect to servers through a proxy
classic - Tiny class module for Lua
ImmersiveEngineering - Wires, transformers, high voltage! Bzzzzt!
TIC-80 - TIC-80 is a fantasy computer for making, playing and sharing tiny games.
AstralSorceryCC - ComputerCraft program to predict moon phases and constellations for Astral Sorcery and Thaumcraft 6
moonscript - :crescent_moon: A language that compiles to Lua
drmon - Draconic Reactor computercraft monitoring and failsafe interface
set-lua - `set-lua` is a complete implementation of the Set data structure in Lua