Serviceマイコンは、各車1両設置し、R-BUS制御情報を受け取り、TPBの制御情報を送信する。運転台情報もこのマイコンで送信する都合、出力情報は非常に多くなっている。alpha10より前のバージョンではRXという名称であった。
チャンネル | 内容 | 備考 |
---|---|---|
Input-N21 | 故障情報 |
from PIL import Image, ImageFilter | |
def maku(im, ff, sx, sy, sw, sh): | |
print('function W(x,y,h)screen.drawRectF(x,y,2,h+1)end function B(x,y,w)screen.drawRectF(x,y,w+1,2)end function V(x,y,h)screen.drawRectF(x,y,1,h+1)end function H(x,y,w)screen.drawRectF(x,y,w+1,1) end', file=ff) | |
print('function onDraw()screen.setColor(255, 255, 255)', file=ff) | |
pxorig=[[0 for j in range(sh)] for i in range(sw)] | |
pxflag=[[0 for j in range(sh)] for i in range(sw)] | |
for y in range(0,sh,1): | |
for x in range(0,sw,1): | |
# ドット絵エディタが256色pngを出力して、今回ドットを打つべき場所が7番パレットだったので。 |
v0.2.3
R-BUS CAT3リファレンスモデル
https://steamcommunity.com/workshop/filedetails/?id=2353038138
整合性チェックビークル
https://steamcommunity.com/workshop/filedetails/?id=2615025075
v2系の下書きを公開しました 下書き段階ですが、信号リストほぼ確定しており、v1系とも十分な互換性があります。そのため、移行を推奨します。
Niner Supplyの一般鉄道車両の車両間通信用R-BUS拡張。
基本的に数値チャンネルは制御権車両およびドア扱いを行った車両で書き換え、On/Offチャンネルは全ての車両が必要に応じて書き換える方式をとる。
書き換えを実施しない車両ではパススルー、書き換えを行う車両では前後に適切に処理した情報を送信する。
function onCustomCommand(full_message, user_peer_id, is_admin, is_auth, command, arg1, arg2, arg3, arg4, arg5) | |
if command == "?spawnLocation" and is_admin == true then | |
local addon_index = server.getAddonIndex() | |
server.spawnAddonLocation(matrix.translation(arg2,arg3,arg4), addon_index, (server.getLocationIndex(addon_index, arg1))) | |
end | |
if command == "?spawnAll" and is_admin == true then | |
local addon_index = server.getAddonIndex() | |
k={"oneill_airbase","oneill_north","oneill_delta","north_lake","north_harbour"} |
本規格草案は廃止となり、NS-TPB (https://gist.github.com/nona-takahara/f12f5e00e5769e5c80a754d7eb40cda3) で置き換えとなりました。
自分が参考にするため残していますが、不要になったら消える予定です。
本規格の仮名称はNT-PSPとします(Nona's Train system - Passenger Service Protocolの頭文字)
R-BUSの派生システム領域のみを使用し、多くのユーザ間で互換性のある旅客サービス提供を可能にします。
機能が膨大であるためカテゴリ分けを行い、不要なカテゴリの機能は実装をしなくてもよいことにします。