Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ACC with QlV and TF - (C) 2025 ALSTOM
- -- Code by FoxWorn3365 - @foxworn (Discord)
- -- Setting up all the pos vars for the QlV
- pos_segnali = {[1] = {40, 14}, [2] = {40, 12}, [3] = {40, 10}, [4] = {40, 8}, [5] = {40, 6}, [6] = {40, 4}, [7] = {22, 16}, [8] = {22, 14}, [9] = {22, 12}, [10] = {22, 10}, [11] = {22, 8}, [12] = {22, 6}, [13] = {14, 10}, [14] = {13, 10}, [15] = {10, 10}, [16] = {9, 10}, [17] = {48, 10}, [18] = {49, 10}, [19] = {52, 10}, [20] = {53, 10}}
- pos_deviatoi = {[1] = {{20, 13}}, [2] = {{18, 11}}, [3] = {{17, 11}, {17, 9}}, [4] = {{19, 9}}, [5] = {{21, 7}}, [6] = {{41, 5}, {41, 7}}, [7] = {{43, 7}, {43, 9}}, [8] = {{42, 13}}, [9] = {{44, 11}}, [10] = {{45, 11}, {45, 9}}}
- c = term.redirect(peripheral.wrap("monitor_3"))
- -- Test
- for k, v in pairs(pos_segnali) do
- term.setTextColor(colors.orange)
- term.setCursorPos(v[1], v[2])
- term.write("S")
- end
- for k, v in pairs(pos_deviatoi) do
- for i = 1, #v do
- term.setTextColor(colors.red)
- term.setCursorPos(v[i][1], v[i][2])
- term.write("D")
- end
- end
- term.redirect(c)
Advertisement
Add Comment
Please, Sign In to add comment