Ben
fotopic... whats that?
Posts: 4,282
|
Post by Ben on Nov 1, 2010 0:23:59 GMT
How are such things implemented in games?
Probably a way more complex question to answer than to ask!
Locomotion!, Railroads! and Trainz for example all have their own versions. Railroads has what seems the most advanced algorithm for automatic routing, however it doesnt allow any user signalling, only whats generated automatically upon track laying. It also wont allow level diamonds, something 'Trainz' does physically allow but wont natively recognise.
Are there any principals that they all might share in common? How easy would it be to create such a routine in something like VB? I'm guessing though that it'd require a custom engine built in a lower level language?
I've always been curious as to the process that these things follow; I'd create a flowchart for myself as a whim but is there some sort of hidden heirarchy that it must follow?
Are other people also curious as to how such a routing thing works?
|
|
mrfs42
71E25683904T 172E6538094T
Big Hair Day
Posts: 5,922
|
Post by mrfs42 on Nov 1, 2010 0:50:26 GMT
Are other people also curious as to how such a routing thing works? I can ask a mate of mine - but he doesn't do signal sims, only big stuff for big people (which I shouldn't really mention, so I'm not going to!) - I can say though that there is a relatively famous game that has 'with thanks to MRFS, Karen and David' that appears in the credits.... rincew1nd will know of whom I talk and who the other people are in the credits.
|
|
Ben
fotopic... whats that?
Posts: 4,282
|
Post by Ben on Nov 1, 2010 1:58:17 GMT
Any info atall would be appreciated! I really want to try and do something myself, but I'm not going to attempt it properly unless I know more accurately what I'm trying to do Sounds like an uphill job though...
|
|
|
Post by den on Nov 1, 2010 20:02:28 GMT
|
|
|
Post by railtechnician on Nov 1, 2010 20:54:57 GMT
You might want to look at CATrain if you have never seen it. www.catrain.org/It uses user programmed itineraries to create a routing for each train. Like all such apps it has limitations but it is designed to operate model railways directly when interfaced to DCC kit and it has some nice features. I believe there used to be some information on how it did what it did but I haven't looked at the program or the webpage for three or four years now so I don't know what the current position may be.
|
|