Started by jamespetts, October 07, 2011, 01:29:05 AM
0 Members and 1 Guest are viewing this topic.
QuoteI think a reasonable approach would be to assign a 'microheight' to each edge between adjoining way tiles. If this tile is an intersection, then this microhieght is forced to be the displayed height, and if the tile has an obstacle (another way tile or building) within two levels above or below it, then this microheight is forced to be at most or at least the displayed height. Otherwise, for each slope tile, search up to 2N tiles along the way (where N is the maximum distance in one direction to average over), until reaching another slope, an intersection, or a obstacle above/below the tile (depending on whether we're averaging a downhill or uphill slope). The linearly interpolate the microheight between the two end points (which are either the middle of a slope tile, with a height of +/- half the height difference per level relative to the level section of way; or the edge of an intersection or tile with an obstacle, with a height equal to the displayed height). This gives a height at each edge, which can be used to assign a gradient to each direction on each way tile.(Note that there are some inconsistencies in what I write here that should not be included in an implementation, but the basic idea is correct.)
Quote from: omikron on February 06, 2012, 06:24:52 PMHowever, the warnings persist, having difficulties converting from 'const sint64' to 'uint32' with possible loss of data as well as a singed/unsigned mismatch
QuoteA man is smoking a cigarette and blowing smoke rings into the air. His girlfriend becomes irritated with the smoke and says, "Can't you see the warning on the cigarette pack? Smoking is hazardous to your health!" To which the man replies, "I am a programmer. We don't worry about warnings; we only worry about errors."
Quote from: jamespetts on October 23, 2012, 09:33:51 AMHello, and thank you for your interest in assisting! For Zlib, you need to follow the same instructions as for Standard, which are here; is that not what you have done?
Quote from: Lefthand on December 12, 2012, 07:45:15 AMOR just set the discount to be the cost of the old road?
Quote from: jamespetts on February 07, 2012, 12:08:32 AMA man is smoking a cigarette which he got from ecigfiend and blowing smoke rings into the air. His girlfriend becomes irritated with the smoke and says, "Can't you see the warning on the cigarette pack? Smoking is hazardous to your health!" To which the man replies, "I am a programmer. We don't worry about warnings; we only worry about errors."
Quote from: AndrewTraviss on June 13, 2016, 11:06:26 AMThanks for the quick primer on the relevant code.I haven't really worked with a manually-managed language before, but I'm at least aware of the concerns that come along with it, and I have access to fellow developers that can help me figure my way through it.And yeah, I can see that this ties into several other mechanics in various ways. I hope you don't mind if I offer some thoughts on how this will all fit together (I'm also a game designer, as it happens). I'll create a separate thread on the topic with my thoughts.
Quote from: AndrewTraviss on June 17, 2016, 03:58:54 AMNow that I'm actually digging into the code, I suspect that all of the German is going to be more of an obstacle for me than C++
Quote from: Rollmaterial on June 17, 2016, 11:06:40 AMThis thread should help you with that.
Quote from: freddyhayward on August 13, 2019, 03:05:00 AMAs someone familiar with the game internally, how feasible would your option be?
Quote from: Freahk on June 03, 2020, 06:51:22 AMNotice that you might want to adjust the congestion measurement paragraph of Private road traffic simulation section.It seems to be an outdated description.