CRSSAS is a ComputerCraft-based system designed to manage and display railway system status and announcements.
- Server: Manages the railway system status and broadcasts updates.
- Client: Displays the status and announcements on a 2x3 monitor.
- Announcements: Supports large announcements and custom messages.
- Status Updates: Displays the line status.
- Server: Requires a wireless modem and must be chunk-loaded.
- Client: Requires a 2x3 monitor and a wireless modem (preferably wireless).
- Place the
server.luaandbasalt.luascript on a ComputerCraft computer. - Provide it with Poster Files which consist of an image(see format below)
- Ensure the computer has a wireless modem attached.
- Run the script on the server computer.
- Place the
client.luascript on a ComputerCraft computer. - Attach a 2x3 monitor and a wireless modem to the computer.
- Run the script on the client computers.
- Start the server: Run the
server.luascript on the server computer. - I recomend adding
startup.luato the computer to automaticlly run the code - Configure GUI: Use the GUI to add lines and customize.
- Broadcast updates: Press Send to update the information on all clients.
- Start the client: Run the
client.luascript on the client computer. - I recomend adding
startup.luato the computer to automaticlly run the code - Display status: The client will receive updates from the server.
- View announcements: Large announcements can be displayed on a separate screen.
The status screen uses the "Poster1" file for the background and static texts but the status information are currently hardcoded int place so i recomend using the same poster image as provided in the repo.
Poster Image: The poster image file must be 18x19 pixels. You can use this tool to achieve the desired file format.
Text File Format: The text file associated with the poster image should follow this format:
|xPosition|yPosition|The text|text color|background color|
License
This project is licensed under the MIT License. Authors:
Stacode
For more details, refer to the source code comments in server.lua and client.lua or make an issue.