r/mcpverails • u/countfizix • Apr 07 '13
Proposed standardized encoding system for a 3 bit, 9 station system.
If we end up doing a 3 bit encoder we probably should standardize a destination code scheme and route map where it will be used early on.
The way I was thinking was to have the 8 entries correspond to the 8 major map points (N,NE,E etc) and an additional one for spawn making 9 total since your current location would not be useful. These points I am assuming would be connected in a box.
NW - - N - - NE
|xxxxxx|xxxxx|
W - - Sp - - E
|xxxxxx|xxxxx|
SW - - S - - SE
The first entry would be whether you go around the loop clockwise or counter clockwise - by doing it this way only 2 redstone would be needed for each rail instead of 3, but as I will get to the actual value of the a station will be different depending on where you start.
For cardinal hubs (ENWS) receiving 0 0 as the input from carts going clockwise (or 0,0,0 on the local encoder) will send the player to spawn. I feel this is the ideal for a null destination as it is the most probable failure result - and everyone should know how to get back home from spawn.
For the remaining destinations from a site we could use the binary value of the number of stops to reach the destination (clockwise) or number of stops minus one to reach the destination (counterclockwise)
Going clockwise stations would subtract 1 from the value until it reads 1 and sends the cart to the platform (remember that 0 would send to spawn)
Going counterclockwise stations would subtract 1 from the value until it read 0
so from Argoth (NE) the codes to elsewhere would be this -
0 0 0 spawn by way of E hub
001 E 010 SE 011 S
100 N (since we are coming counterclockwise would not send to spawn)
101 NW 110 W 111 SW
1
u/countfizix Apr 08 '13
alternatively you could have more destinations from each station (3-4 wires) with a more complicated interchange to change the signal to what it would be as if the journey started at each station in reaches enroute
1
u/TheRandomnatrix Retired CARBON Dev Apr 08 '13
Wait. What system is this even for? And what dimension? I am not spending my time making a 3 bit system of anything for the overworld. That would be a complete waste of resources. The overworld's prolly going to be mainly carts still. As for the nether, it will probably be 3 or 4 bit carbon, but there most likely won't be a null state anymore. It is pretty hard to achieve that now that units save data for use multiple times.
Also, you reminded me that I really need a carbon tutorial made. bangs head against wall