Address - ShadowJonathan/ByteCart GitHub Wiki
Definition
Address are used by Bytecart to identify a specific station in the world.
Address are composed of 3 parts :
Address are represented by putting the 3 parts together, separated by a dot : region.ring.station
Subnet
Any address belong to a subnet. The subnet is identified by the region and the ring number.
Address sharing the same region numer and the same ring number are in the same subnet. Stations in the same ring must have an address in the same subnet, i.e same region and ring number.
Example
22.7.11 designates station #11 in the subnet 22.7.0 (i.e in region #22, track #7).
22.7.7 is an address in the same subnet: the station is located in the same ring.
22.4.10 is an address in another subnet, and necessarily in another ring.
Station names
In many cases, an address can be replaced by the station name recorded in the database. Address and names are interchangeable in many BC7XXX signs.
Tickets
ByteCart use signed books as tickets. Parameters are written litteraly in books and are readable by anyone.
Setting or modifying address
Address can be set in inventory by several means:
Commands
mego for the player himself
sendto sets address in storage cart
bcticket for any player
Signs
Left-click the signs or pass over them while riding a cart to activate them.
BC7010 gives a ticket to the player, has no effect on storage cart.
BC7011 gives ticket to storage carts and to players riding a cart passing on it.
Travelling
When a player wants to travel to a specific station from any point of the network, he needs to get a ticket and set his destination address before riding a cart. The inventory is the place where each ByteCart device will look for a ticket when performing routing operations.
When one wants to send a storage cart, one will use the inventory of the storage cart to store a ticket.
Return address
Along with the destination address, ticket can contain a return address.
BC7015 sign sets a return address in an existing ticket when a player or a storage cart is passing on it.
BC7018 sign change the destination address field of a ticket with the return address field.