-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: udev and /dev file structure #877
Comments
This could be implemented as a custom filesystem. Generalizing it to all components would be virtually impossible, but making for instance a "redstone filesystem" wouldn't be too hard. ...In fact, I'm going to go write that right now. |
Place this in /bin and this in /lib, run |
Great, thank you. That works precisely what I had in mind for the redstone. For my use case I would have to have also bundled cable support. This way it would make full support for redstone. Would you be willing to add that? BTW I would really like to see that mount.redfs in OpenOS by default. Because it is perfect. |
With a bit of cleanup (which I'm mostly saying because SolraBizna declared "it's somewhat hideous on the inside") I'd happily accept a PR with this on a loot disk. Or make it available via OPPM. Or both. |
I didn't include bundled cable support because I don't have any bundled cable mods. Are there any mods that add bundled cable and little else? |
For example I'm using ProjectRed (it also adds some gates, lamps and lots of other stuff), but there are probably others too. In my oppinion bundled cables are one of the most impotant additions to minecraft wiring and especially if you want to controll whole base from single point (ie. computers). |
I uploaded a new version in OPPM-friendly format here. OpenComputers 1.4.7 is now required, as the new version no longer monkey-patches This version is a much better starting point for other custom filesystems; the component-simulating code itself can even be used without modification as long as your custom filesystem's tree fits entirely in memory. (Again, if you do use this as a base for your own fileystem, generate your own UUID.) As for bundled redstone and wireless redstone... I'm reluctant to add another mod to my list. However, I did include an attempt at support for wireless and bundled redstone. It has not been tested, but it may work. If it does, |
@SolraBizna, if you want I can add your github repo to OPPM, you'd just need to actually fix the programs.cfg file (line 11 should be changed to |
Fixed programs.cfg. Assuming it works at all, redfs's capacity to break other parts of the system is pretty limited. As for adding to OPPM, that's fine with me. As for OpenPrograms, I'm not at all sure what that would entail. All this newfangled git stuff is confusing to a graybeard like me... :P |
If I understand correctly this is / will be available via OPPM, so I'll be closing this. |
@SolraBizna Your repo is on OPPM now. |
First of all, thank you for your mod, it really makes Minecraft playing fun and challenge.
But as linux user, I'm somehow missing udev and /dev/ folder structure when I would be able to see all connected components, buses, drives and so on. It is my oppinion that, it is one of the highest advantages of Linux (and all of UN*X) systems, that in the end everything is just a file.
It would be extremely handy in case of buses if they would be in some structure like: /dev/bus/redstone///<pin number/color or general> and pins would be char devices with rw permissions so echo "1" > or cat could be used.
I'm not sure if such thing would require sort of modules, anyway I understand that it could be hell of the coding, but it would bring visible structure of components (when in case that will be provided by moder, otherwise just listed as binary under the type, if known).
The text was updated successfully, but these errors were encountered: