This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DimitarBogdanov's profile picture

[WIP] TrainOS Alpha

Started by DimitarBogdanov, 06 February 2017 - 06:00 PM
DimitarBogdanov #1
Posted 06 February 2017 - 07:00 PM


Hello, guys! Do you love trains? If so, you need stations!
But on IRL train stations we see electronics everywhere, right?
Why not have it in ComputerCraft? I have made a small program
that will help you reaching your goal: ComputerCraft train indicator!
Now seriously, the TrainOS 0.0.2 will help you to show the passengers
is there a train here or not. Maybe put a monitor in the waiting room and
connect it using wired modem to a computer that shows the information?
Here's how to do it:
For example, we have this setup:
Spoiler

So if a redstone signal comes from the LEFT (VERY IMPORTANT!!!) the monitor will show up "The train is boarding". When there's no signal it will show: "The train is not here".
You may use Indicator Rails to send redstone signal.

Configuration
SpoilerTo change the settings of the OS simply type in the shell:

edit train
Then you will get the TrainOS script. On line 13 you can replace the "left" with "right", "back", "front" depending from where the redstone signal comes.
Installation:
pastebin get XNazPhwf train
OLD:
Spoiler
pastebin get 3RndK139 train
Using the TrainOS on a monitor:
monitor left/right/front/top train
Replace left/right/front/top with the side monitor is on.
Using the TrainOS on a monitor connected using wired modem.
1. Make sure the monitor's modem have a RED colour. You will see the id of the monitor in the chat (monitor_ID was connected to the network)
monitor monitor_ID train
Replace ID with the number of the monitor in the chat.
Known bugs:
SpoilerWhen a new message pops out it adds an line before the actual message.

Best regards,
Dimitar Bogdanov
Edited on 24 April 2017 - 06:30 PM
ObloxCC #2
Posted 06 February 2017 - 09:25 PM
This looks like it shouldn't be in the OS section, it should probably be in the program section. Other than that, it looks good.
Edited on 06 February 2017 - 08:26 PM
Lupus590 #3
Posted 07 February 2017 - 10:04 AM
Yes, it sounds more like a train observation/reporting system than a train operating/conducting system.
Bomb Bloke #4
Posted 08 February 2017 - 10:57 AM
Most of what makes it into our "OS" section tends to fall more into "menu system" territory anyway, but yes, this is a bit further afield than usual. Moved.
DimitarBogdanov #5
Posted 24 February 2017 - 09:56 PM
Hello again!
Just an update, TrainOS Alpha 0.0.2 is going to be released the next weekend (5.3.2017 (D/M/YYYY)!
It will have some graphical updates. BUT! IT WONT'T BE SOMETHING BIG!


Most of what makes it into our "OS" section tends to fall more into "menu system" territory anyway, but yes, this is a bit further afield than usual. Moved.
Thanks.

BTW I just added an banner :D/>
DimitarBogdanov #6
Posted 22 April 2017 - 11:30 PM
Guys there we go with a new (super late) update!
Sorry about that, I had some problems with Minecraft and my computer.
New in this update:
- Background color (Default: YELLOW)
The old version can be gotten by clicking the spoiler.