IRC logs for #openttd on OFTC at 2013-08-12
⏴ go to previous day
00:01:30 <krinn> well, maybe the language will accept that, but sure gcc will throw a warning
00:02:58 <Eddi|zuHause> krinn: but ~1 is not 0
00:03:16 <krinn> didn't say that Eddi|zuHause don't try fool me :)
00:03:17 <Eddi|zuHause> and "in" doesn't have to return 1
00:03:47 <krinn> well, if C doesn't have a boolean type "in" should return 1 or 0 no ?
00:04:18 <Eddi|zuHause> squirrel docs specifically say "in" returns non-zero
00:04:49 <Eddi|zuHause> so it can return 2, or 65535, or ...
00:06:08 <krinn> yep but it says also it return null on success
00:07:08 <Eddi|zuHause> depending on whether you interpret it signed or unsigned
00:08:52 <Eddi|zuHause> no, - and ~ are different things :)
00:09:51 <Eddi|zuHause> ~0 = -1, ~1 = -2, ~2 = -3, etc.
00:10:08 <Eddi|zuHause> it's "off by one" (see 2-complement)
00:10:13 *** megakacktus has joined #openttd
00:10:25 <krinn> well, i was think it was ~x == max_uint -x
00:11:26 <Eddi|zuHause> yes, again, just depending on whether you interpret it signed or unsigned
00:12:07 <krinn> ah ok, i suppose sign return max_int version, and non sign return the negative one ?
00:12:42 <Eddi|zuHause> for all intents and purposes, internally, max_uint == -1
00:13:12 <Eddi|zuHause> so if you replace it as ~x == -1-x, it's the same expression
00:13:51 <krinn> ok thank you for the lesson guys, i should do c one day :)
00:14:07 <Eddi|zuHause> this has nothing to do with C, anyway
00:15:45 <krinn> i don't remember how pascal handle that, but i think it's language specific how this is implemented
00:16:04 <glx> pascal does exactly like C
00:16:24 <krinn> in pascal boolean is a type, so ~ is not allow on boolean
00:16:41 <Eddi|zuHause> yes, but there is the ord() function
00:17:52 <Eddi|zuHause> but this 2-complement is implemented on all modern processors (where "modern" is at least the 1980's)
00:20:11 <Eddi|zuHause> other common methods of representing negative numbers are 1-complement (not used anymore) and sign/absolute (used with floating point numbers)
00:21:37 <Eddi|zuHause> 1-complement has the advantage of the same number of negative numbers as positive numbers (2-complement has 1 additional negative number, which cannot be converted to a positive number without leaving the value range), but the disadvantage of having two representations of 0
00:22:54 <Eddi|zuHause> sign/absolute has that same problem, but for floating point maths, things are more complicated anyway
00:22:56 <krinn> you mean 1 complement : ~1 is just -1 ~100 is -100... hence why ~0 = 0
00:23:36 <Eddi|zuHause> yes, 0 and -0 are different internal values internally
00:23:52 <Eddi|zuHause> -0 would be FF...FF
00:25:04 <Eddi|zuHause> since this means, the very common "check for 0" and the "is this equal" operations get more complicated (in hardware!), this format is not used anymore
00:25:48 <glx> "is this equal" being "is the difference is 0"
00:26:18 <krinn> to not get a if (0 < ~0) failure
00:26:52 <Eddi|zuHause> you need a special case for "000000 == FFFFFF"
00:27:14 <glx> as I guess ~0 is assumed to be unsigned
00:27:17 <Eddi|zuHause> which makes the hardware more complicated
00:27:40 <krinn> glx i speak about the 1-complement 0
00:29:06 <krinn> i just cannot remember how i was handling that in pascal (it's old)
01:09:35 *** roboboy has joined #openttd
01:59:16 *** DarkAceZ has joined #openttd
02:13:23 *** montalvo has joined #openttd
04:13:47 <Supercheese> Forum database backup seems to be taking quite a whilwe
04:56:17 *** Eddi|zuHause has joined #openttd
05:32:57 <dihedral> TrueBrain, how quickly cann you add gnutls to the admin port?
05:33:11 <dihedral> i would love a patch and get my bot to support it :-)
06:27:30 *** sla_ro|master has joined #openttd
06:34:24 *** amiller has joined #openttd
06:48:03 *** Twofish has joined #openttd
07:28:19 *** |2rB is now known as Twofish
07:33:24 *** valhallasw has joined #openttd
07:42:07 *** Devroush has joined #openttd
07:54:31 *** LordAro has joined #openttd
08:53:34 *** Midnightmyth has joined #openttd
09:07:28 <peter1138> shutting down a vm works better when you do it on the right host o_O
09:21:17 <__ln__> you're jumping into conclusion without adequate research
09:31:53 *** Pensacola has joined #openttd
09:35:27 *** Ristovski has joined #openttd
09:40:25 *** Pensacola has joined #openttd
09:42:31 *** Polleke has joined #openttd
10:01:47 *** oskari89 has joined #openttd
11:23:18 <LordAro> so, what do we think of elementary OS ?
11:30:28 <peter1138> oh, yet another debian via ubuntu derivative
11:30:35 <peter1138> why so fucking many
11:32:37 <LordAro> people are saying good things about it
11:32:58 <peter1138> people say good things about ubuntu, doesn't mean it's good
11:33:58 *** oskari892 has joined #openttd
11:38:58 <LordAro> indeed, at the end of the day, people like me and you aren't going to want the 'totally user friendly' type of thing (like osx)
11:39:21 <LordAro> however, it does make it a lot easier for new people, and more people using linux == better ?
11:40:56 <Zuu> Better depends on what you measure
11:46:28 <Twofish> Like how LordAro asked: so, what do __we__ think of elementary OS ?
11:47:15 <Twofish> feeling like beeing at the doctors office :)
11:47:40 <Twofish> (heading to the dentist later, so don't know why i "liked" it...
11:55:27 *** valhallasw has joined #openttd
12:08:00 <Eddi|zuHause> who has time to try out all these OSes, and then decide which one fits the best?
12:20:20 *** valhalla1w has joined #openttd
12:26:52 *** HerzogDeXtEr has joined #openttd
14:09:42 <dihedral> Eddi|zuHause, that's why everybodi* uses windows
14:11:50 *** sla_ro|master has joined #openttd
14:51:16 *** megakacktus has joined #openttd
15:26:35 *** ntoskrnl has joined #openttd
15:32:56 <DorpsGek> Commit by translators :: r25719 /trunk/src/lang (korean.txt lithuanian.txt) (2013-08-11 17:45:14 UTC)
15:32:57 <DorpsGek> -Update from WebTranslator v3.0:
15:32:58 <DorpsGek> korean - 23 changes by telk5093
15:32:59 <DorpsGek> lithuanian - 39 changes by Stabilitronas
15:34:14 <DorpsGek> Commit by translators :: r25719 /trunk/src/lang (korean.txt lithuanian.txt) (2013-08-11 17:45:14 UTC)
15:34:15 <DorpsGek> -Update from WebTranslator v3.0:
15:34:16 <DorpsGek> korean - 23 changes by telk5093
15:34:17 <DorpsGek> lithuanian - 39 changes by Stabilitronas
15:37:18 <Eddi|zuHause> it's not even 19:45
15:38:14 <Eddi|zuHause> or it's groundhog day and we haven't realised
15:39:12 <peter1138> it's not even the 11th
15:41:53 <peter1138> telnet: Unable to connect to remote host: Connection refused
15:42:01 <peter1138> woo, connection limit works
15:42:41 <peter1138> yes, handy for debugging
15:43:03 <peter1138> i can never be bothered :p
15:43:28 <peter1138> i do get a bit miffed that i can't uninstall openssh-*client* sometimes :(
15:55:14 *** amiller has joined #openttd
16:01:01 *** MadaraUchiha has joined #openttd
16:06:32 *** valhallasw has joined #openttd
16:30:16 *** Lord_Aro has joined #openttd
16:46:08 *** Progman has joined #openttd
16:49:22 *** amiller has joined #openttd
16:54:16 <dihedral> TrueBrain, feedback on tls admin port?
16:57:56 <peter1138> he's been busy with me today ;)
17:03:28 *** Lord_Aro is now known as LordAro
17:21:11 *** frosch123 has joined #openttd
17:32:09 *** Stimrol has joined #openttd
17:45:23 <DorpsGek> Commit by translators :: r25720 /trunk/src/lang (indonesian.txt lithuanian.txt) (2013-08-12 17:45:15 UTC)
17:45:24 <DorpsGek> -Update from WebTranslator v3.0:
17:45:25 <DorpsGek> indonesian - 64 changes by UseYourIllusion
17:45:26 <DorpsGek> lithuanian - 4 changes by Stabilitronas
17:48:44 <krinn> where can i get the dest too far value?
17:50:16 <krinn> i don't mean the value of the error, but the value that trigger the error (so the max distance limit)
17:51:00 <Zuu> krinn: For aircraft or ships?
17:51:24 <krinn> it's like a pathfinder limitation
17:52:08 <Zuu> Not sure, but you could for example lookup the relevant order AI API method and see which DoCommand it uses, read that code and eventually find the check.
17:53:31 <Zuu> The DoCommand is probably in src/order.cpp or possible order_cmds.cpp
18:08:31 <krinn> return_cmd_error(STR_ERROR_TOO_FAR_FROM_PREVIOUS_DESTINATION);
18:10:01 <krinn> must say i'm a bit surprise it's an hardcode number
18:10:15 <krinn> frosch123, i don't touch wiki, i don't want put hell there :)
18:10:33 <planetmaker> krinn, then it will remain wrong and not useful
18:10:47 <planetmaker> consider it *your* documentation
18:10:57 <krinn> better than damage by stupidity
18:11:15 <frosch123> reverting is easy :p
18:11:39 <planetmaker> if you do nothing for fear of doing wrong you'll never ever achieve anything
18:11:45 <planetmaker> Things get done by people being bold
18:12:04 <Rubidium> what if doing nothing is doing the wrong thing?
18:12:43 <frosch123> i think tb's forum signature is also on that topic :p
18:14:15 <krinn> some people are good at doing it, i prefer let them keep doing that
18:16:29 *** zeknurn has joined #openttd
18:17:51 <krinn> it's not like i wasn't sharing the info...
18:25:08 *** amiller has joined #openttd
18:32:25 *** mindlesstux has joined #openttd
18:48:26 *** Devroush367 has joined #openttd
18:51:21 *** andythenorth has joined #openttd
19:32:02 <Rubidium> yay... the forum loads fast again :(
19:32:53 <andythenorth> also all the whining is gone
19:33:15 <Rubidium> Olivia, make sure it stays that way ;)
19:33:26 <MNIM> What, did you remove all the users?
19:34:43 <krinn> The Transport Tycoon Forums are currently down for maintenance. (yeah pretty fast)
20:06:51 <andythenorth> so why does searching my newgrf list for 'isr' get me CHIPS and FIRS?
20:06:57 *** Devroush has joined #openttd
20:07:52 <Rubidium> ask it on the forums ;)
20:08:01 <andythenorth> they were pretty quiet on the issue
20:08:34 <frosch123> it searches grfname filename and description
20:09:09 <frosch123> "isr" might also hit on "misread"
20:09:21 <andythenorth> description is attributing graphics
20:09:28 <andythenorth> valid I guess :P
20:17:42 <andythenorth> need to do a bulk terminal for FIRS
20:20:30 <andythenorth> or I should post it at forums?
20:21:53 <frosch123> the combination of blue and pink looks weird
20:22:01 <frosch123> aren't all tiles cc?
20:22:19 <andythenorth> photoshop mockup ;)
20:22:43 <frosch123> well, i guess the harbor should be bigger overall
20:22:47 <frosch123> if it gets more buildings
20:22:57 <frosch123> there should be some free space :p
20:23:28 <frosch123> the tanks might also not be directly at the water
20:24:21 <Nat_aS> what looks weird to me
20:24:30 <Nat_aS> is the pier looks like it's hovering
20:24:52 <Nat_aS> or rather the part that connects it looks like it ought to either be thicker, or slanted
20:29:47 <andythenorth> Nat_aS: it looks like it's flying in space?
20:30:05 <Nat_aS> but the pier should be thicker
20:30:11 <Nat_aS> it's not the same thickness as a normal tile
20:30:24 <Nat_aS> but it sticks out straigh from the land
20:30:30 <Nat_aS> so it should be the same thickness
20:31:17 <andythenorth> you mean the pier is not tall enough?
20:31:36 *** HerzogDeXtEr1 has joined #openttd
20:35:06 <Nat_aS> it should either be the same height of a normal tile, or it should start partway down the slope instead at the top of it
20:36:35 * andythenorth wonders how many pixels short it is
20:39:42 <krinn> and the 2nd crate looks too much closed to be useful to anyone
20:48:40 *** andythenorth has left #openttd
21:05:18 *** megakacktus has joined #openttd
21:17:11 *** tokai|noir has joined #openttd
21:17:12 *** ChanServ sets mode: +v tokai|noir
22:41:29 <Eddi|zuHause> is that just me or is the forum awfully slow today?
23:07:54 *** valhalla1w has joined #openttd
23:33:50 *** roboboy has joined #openttd
continue to next day ⏵