Config
Log for #openttd on 20th December 2023:
Times are UTC Toggle Colours
22:44:45  <xarick> the "jump to the next loop inside" should stop once tile numerator matches this calculated tile area that I'm currently failing to calculate
22:45:01  <peter1138[d]> https://cdn.discordapp.com/attachments/1008473233844097104/1187163780090691675/image.png?ex=6595e36d&is=65836e6d&hm=fd596da007fe0258a019c4e59582f8ec1ae50a313d9f9ef9081ba622ddf239af&
22:45:02  <peter1138[d]> High detail sprite here.
22:45:04  <xarick> but it doesn't match, so it continues looping inside
22:46:07  <xarick> it enters an infinite state
22:47:22  <_glx_> why not just test x and y to be in the area ?
22:47:29  <_glx_> or outside
22:48:03  <xarick> I was trying to make it interruptible
22:49:02  <xarick> it does one loop at a time, updates the variables, then returns false, I can continue doing something else in the script, and be back to it to resume
22:49:10  <xarick> until it returns true
22:49:26  <xarick> which is when the numerator matches calculated area
22:51:10  *** Flygon has joined #openttd
22:53:50  <xarick> "resumable" maybe the correct word
22:54:15  <Eddi|zuHause> that doesn't explain the need for the complicated calculation
22:54:34  <Eddi|zuHause> that is so convoluted that you can't decipher where the error is
22:55:16  <peter1138[d]> Nor explain it. Nor try to simplify the problem to work out where it's going wrong.
22:56:00  <xarick> i'd post the code but it's so bad ;o
22:56:04  <xarick> hehe
22:58:44  <Eddi|zuHause> everybody here writes bad code every now and then. the important skill is to dissect it,
22:59:14  <xarick> https://gist.github.com/SamuXarick/01f2d14c3248dd741c644f1215881d6c
22:59:27  <xarick> *hiding
23:00:54  <peter1138[d]> Double the number of corners needed...
23:01:33  *** Hanicef has quit IRC
23:11:36  <Eddi|zuHause> now, back to my question: if you change the dimensions of the rectangles, does the error get bigger? smaller? stay the same?
23:26:31  *** Wolf01 has quit IRC
23:57:05  <andythenorth> was it bed time?
23:57:07  <DorpsGek> [OpenTTD/OpenTTD] J0anJosep commented on pull request #10691: Change: Add Depots and DepotIDs for airports with hangars. https://github.com/OpenTTD/OpenTTD/pull/10691#pullrequestreview-1791899275
23:58:03  <andythenorth> you are less responsive than GPT 😛
23:58:09  <andythenorth> goes it replace?
23:58:21  <Eddi|zuHause> i don't understand the concept of "bed time"
23:58:32  <andythenorth> as an AI, you don't need to sleep
23:59:49  <Eddi|zuHause> sure, but the whole concept is backwards. i need to go to bed because i need to sleep. not i need to sleep because i go to bed.

Powered by YARRSTE version: svn-trunk