cheesestraws / rdip

RailDriver-over-IP
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

rdip

rdip is a project to do two things:

There are a number of things in this repository, which may be useful separately or together. rdip was originally designed for the train simulator in the Human Factors Research Group at the University of Nottingham.

RDShark

RDShark (with apologies to Wireshark) is a train simulator simulator: you can put it in your plugins folder with RailDriver.dll and run it instead of Rail Simulator to get a list of the requests that are coming in from the RailDriver.dll client. Requests to set rail simulator values are just dumped to the screen; requests to get a rail simulator value are also dumped but responed to with a demo value. You can also simulate locomotive changes either with or without combined throttle and brake.

Note: if you want to scroll up and down in the list, turn off Follow new requests in the View menu. If you want to copy a list item to the clipboard, use Edit -> Copy.

rdip-server

This is a tool which listens on a UDP port, receives control signals, and pushes those signals into the rail simulator. Each UDP packet consists of a Name=Value pair. The Name should be taken from the list of control names in RailDriver.cs. The value is a float, as a string. Most controls this goes from 0.0 to 1.0. Buttons are 0 or 1. Examples of valid packets:

By default, rdip-server listens on UDP port 3333. There is as yet no UI to change this.

TinyUDP

This is a very simple tool which just fires off UDP packets. It's for testing/debugging rdip-server with

RD-Demos

These are demos for how to drive RailDriver.dll. They are companion pieces to blog posts in which I wrote about RailDriver.dll, thus: