FoxWorn3365

ACC - QlV e TF

Feb 19th, 2025 (edited)
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. -- ACC with QlV and TF - (C) 2025 ALSTOM
  2. -- Code by FoxWorn3365 - @foxworn (Discord)
  3.  
  4. -- Setting up all the pos vars for the QlV
  5. 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}}
  6.  
  7. 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}}}
  8.  
  9. c = term.redirect(peripheral.wrap("monitor_3"))
  10.  
  11. -- Test
  12. for k, v in pairs(pos_segnali) do
  13. term.setTextColor(colors.orange)
  14. term.setCursorPos(v[1], v[2])
  15. term.write("S")
  16. end
  17.  
  18. for k, v in pairs(pos_deviatoi) do
  19. for i = 1, #v do
  20. term.setTextColor(colors.red)
  21. term.setCursorPos(v[i][1], v[i][2])
  22. term.write("D")
  23. end
  24. end
  25.  
  26. term.redirect(c)
Advertisement
Add Comment
Please, Sign In to add comment