6 ms·
A railroad simulation using discrete event simulation
- taddevries 2y agoI'm just gonna say that I belive Factorio is the best railroad simulator. Second only to OpenTTD.
- nalzok 2y agoHow do you like Simutrans? https://www.simutrans.com https://www.simutrans.com
- TylerE 2y agoI can't stand it because of the insanely low built in fixed framerate. It's something weird like 20fps. UI responsiveness is also terrible for the same reason, because everything is apparently spaghetti coded together and the game logic is tied to the framerate.
- ssl-3 2y agoFactorio is a wonderful video game that includes aspects of using railroads, but it is not a simulation of how railroads work on Earth.
- MadnessASAP 2y agoIt is however a simulation of how railroads work as predators. Choo Choo
- xedrac 2y agoFactorio's railroads are so fun to build and play with. Add a circuit network and robots to the mix, and you have yourself endless hours of enjoyment. I eagerly anticipate the release of 2.0 this fall.
- jjmarr 2y agoFactorio is a bad railroad simulator because you cannot do grade separation (bridges or tunnels). This means all of your rail networks are artificially limited to being planar graphs which kills your throughput. OpenTTD allows grade separation at least but imho is inferior to Simutrans which ensures cargo and passengers have destinations and will not use your network unless you can path them to their destination. Because OpenTTD doesn't have this it devolves into forcing cargo or people to travel the longest possible distance for the most money, instead of to where they actually want to go. Simutrans-extended is something I'm really hyped for because the simulation of passenger desires is even more in-depth than the original. https://simutrans-germany.com/wiki/wiki/en_extended_Passengers https://simutrans-germany.com/wiki/wiki/en_extended_Passenge... The most satisfying rail network for me is one that has both complex form and function.
- eterm 2y agoYou'll be pleased to hear Factorio 2.0 is adding a second rail layer: https://www.factorio.com/blog/post/fff-378 https://www.factorio.com/blog/post/fff-378
- NoboruWataya 2y agoOpenTTD does have this: https://wiki.openttd.org/en/Manual/Passenger%20and%20cargo%20distribution https://wiki.openttd.org/en/Manual/Passenger%20and%20cargo%2...
- jjmarr 2y agoCargodist isn't the same as what I'm describing. It creates destinations for cargo and passengers based on the existing network you have. In other words, "demand" is changed to fit your playstyle. In regular Simutrans, passengers want to go to a specific destination regardless of whether your network allows them to go there. This means you have to change your playstyle to fit what passengers want to do, since otherwise, people won't take trips. I believe Simutrans handles this better. If you're someone who wants to go to Europe but the only plane ticket you can buy is to South America, you won't take that trip (Simutrans model). But in OpenTTD, passenger demand is basically "yeah I just want to go somewhere" and then you deliver them to Antarctica. Cargodist means that if you now offer service to Greenland, they'll evenly distribute themselves between Antarctica and Greenland. I'm more of a product-minded person so I prefer Simutrans. Demand is the constant I want to optimize around; I don't want demand to be optimized around my transport network. But this also creates a much more difficult game.
- paxys 2y agoSo then...OpenTTD is the best railroad simulator?
- burgerrito 2y agoClearly you folks haven't tried playing A-Train, a Japanese train tycoon game... Seriously though, try it out! It's actually one of the best games I've ever played. I'd even say that it's so underrated. It's a train tycoon game, but also silently focuses on being a real estate simulator, just like how a lot of Japanese companies don't make money primarily on train tickets, but instead real estate or other non-farebox income.
- zem 2y agoone of my favourite games ever was "railroad tycoon 2"; it was not a particularly deep railway simulator, but it was a superbly immersive treatment of "railroads helped settle a continent". few games achieved that sort of immersive feeling for me, civ 1 and stellaris are the other ones that come to mind.
- nathan_compton 2y agoPicolisp - what a weird thing. I have to admire the temerity of a guy who in 2023 is still team "dynamic scope is better."
- actionfromafar 2y agoIt's like monkey patching in Ruby. It can be used for good and for evil.
- DemocracyFTW2 2y agoIn a less balanced both-sides view Ruby as a social construct is an outlier, monkey patching being (rightly so IMHO) regarded as a more-than-questionable practice in most other mainstream PL communities. I mean, yeah, GOTO can be used for good and for evil, and so can GOSUB 200.
- nerdponx 2y agoWait, is it global by default (Lua, Bash) or truly dynamic? The latter would be kind of mind-bending to program with as the sole or default style. Was that ever a thing? Maybe I'm just too young to have experienced that.
- markasoftware 2y agoEmacs Lisp had dynamic binding as the default (without any true support for lexical binding) until 2012.
- tmalsburg2 2y agoPeople talk as if dynamic scoping was objectively a mistake, but the fact that it works well and is really useful in a complex piece of software like Emacs seems to suggest otherwise.
- p_l 2y agooriginal opposition to lexical binding in Lisp circles was that lexical would be slower. That turned out to be false. Emacs Lisp explicitly kept to dynamic binding for everything because it made for simpler overriding of functions deep in, but resulted in lower performance and various other issues, and ultimately most benefit from such shadowing seems to be focus of defadvice and the like.
- ngcc_hk 2y agoDoing one using lua and love2d and hence found some difference or things to ponder - use ds and discrete event simulation instead of the usual dt (and continuous …)? Why? Seems all game engine offer dt … - shall the track be one way and if two way traffic has to use 2 tracks? Otherwise if >1 train or train-group … crash ? And if there are junction … route and timing would be issues otherwise crash ? - picolisp vs fennel ?
- cess11 2y ago"- picolisp vs fennel ?" Not really comparable. Picolisp is really small, really simple, and that makes it kind of weird. It has fexprs rather than sexprs, there are no seatbelts (as in you will segfault when reaching out of bounds), the numbers are fixnums, the database is object oriented and you query it with logic programming, and so on. As far as I know, no one has used it for 2D game scripting. If you want to be the first you probably can be, but it will be quite an adventure compared to Fennel.
- isr 2y agoI think you meant "fexprs instead of macros". Picolisp does have a function named 'macro', but it's not the same thing (it's more like 'string map' from tcl). There's a lot if interesting stuff in picolisp, but the one thing I found unbearably ugly was it's use of strings ("transient symbols") as a kind of lexically scoped symbol.
- cess11 2y agoRight, yes. In some sense it's not sexpr as usual either, the evaluation strategy gives it a rather different feel than one might be used to from other parens syntaxed languages. 'macro can be used to control evaluation, https://software-lab.de/doc/refM.html#macro https://software-lab.de/doc/refM.html#macro , but there is no compilation in Picolisp, hence no compile time macros. Don't see the problem with that. How is it different from using strings without quotation marks as global symbols?
- 2y ago
- W-Stool 2y agoNo one interested in railroad simulations running Run8 here?
- rob74 2y ago> However, for a comprehensive track network, a simple linked list of track elements is insufficient. It must be possible to traverse it in both directions and accommodate switches (turnouts) and loops. Loops present a particular challenge. Fun fact: there is at least one track network (the Munich U-Bahn) that avoids loops and interconnecting lines "the wrong way around", so trains always face the same way (https://www-u--bahn--muenchen-de.translate.goog/fahrzeuge/?_x_tr_sl=de&_x_tr_tl=en&_x_tr_hl=de&_x_tr_pto=wapp https://www-u--bahn--muenchen-de.translate.goog/fahrzeuge/?_...). Because of this, two-carriage trainsets have a "north carriage" and "south carriage", and the newer six-carriage trainsets have north and south end cars plus four middle cars. Of course, not all tracks run north-south, but the name is taken from the way the carriages point in the first (and at the moment still the only) maintenance yard in Fröttmaning.
- AstroJetson 2y agoLate to this conversation but a favorite game with my children was Lego Loco https://en.wikipedia.org/wiki/Lego_Loco https://en.wikipedia.org/wiki/Lego_Loco You could build little villages with train layouts. The big thing for them, is you could put tunnels that would connect to another user. It let you send trains and the mail card had "post cards" you could send messages. I miss it.
- interloxia 2y ago>With some (considerable) effort, you could even replace the ASCII representation by something more visually appealing Connect it to OSRD! Open-Source Railway Designer (posted a few days ago) https://news.ycombinator.com/item?id=40733705 https://news.ycombinator.com/item?id=40733705
- greathones 2y agoAny link to blogs/materials about programming train simulation (like in openttd)?