Back to Home / #openttd / 2015 / 10 / Prev Day | Next Day
#openttd IRC Logs for 2015-10-12

---Logopened Mon Oct 12 00:00:24 2015
00:43-!-penut [] has quit [Quit: Page closed]
00:56-!-Eddi|zuHause [] has quit []
00:56-!-Eddi|zuHause [] has joined #openttd
01:47-!-smoke_fumus [~smoke_fum@] has quit [Ping timeout: 480 seconds]
01:58-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
01:59-!-TrueBrain [] has joined #openttd
02:06-!-Progman [] has joined #openttd
02:10-!-Alaura [] has joined #openttd
02:54-!-Snail [] has quit [Quit: Snail]
03:00-!-andythenorth [] has joined #openttd
03:09-!-ryouma [] has quit [Remote host closed the connection]
03:24-!-andythenorth [] has quit [Quit: andythenorth]
03:25-!-andythenorth [] has joined #openttd
03:27-!-Progman [] has quit [Remote host closed the connection]
03:53-!-liq3 [] has quit []
04:04-!-Biolunar [] has joined #openttd
04:06-!-andythenorth [] has left #openttd []
04:12-!-JezK [~jez@2407:7800:400:107f:3db5:daca:8457:e66a] has quit [Quit: :q!]
05:16-!-Hiddenfunstuff [] has joined #openttd
06:59-!-Bluelight [~chatzilla@] has joined #openttd
07:06-!-TheMask96 [] has quit [Ping timeout: 480 seconds]
07:10-!-Defaultti [] has quit [Ping timeout: 480 seconds]
07:11-!-TheMask96 [] has joined #openttd
07:17-!-Defaultti [] has joined #openttd
07:31-!-Supercheese [] has quit [Read error: Connection reset by peer]
07:31-!-Supercheese [] has joined #openttd
07:36-!-Wolf01 [] has joined #openttd
07:41-!-Biolunar [] has quit [Quit: yo…]
08:23-!-Snail [] has joined #openttd
08:47-!-fjb [] has joined #openttd
09:00-!-Snail [] has quit [Quit: Snail]
09:26-!-Bluelight [~chatzilla@] has quit [Quit: ChatZilla 0.9.92 [Firefox 41.0.1/20150929144111]]
09:29-!-sim-al2 [] has joined #openttd
09:45-!-sla_ro|master [] has joined #openttd
10:22-!-shirish [~quassel@] has joined #openttd
10:28-!-Wormnest [] has joined #openttd
11:02-!-Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has joined #openttd
11:02-!-mode/#openttd [+o Alberth] by ChanServ
11:09-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
11:55-!-TheMask96 [] has quit [Ping timeout: 480 seconds]
12:01-!-TheMask96 [] has joined #openttd
12:11-!-DDR [] has joined #openttd
12:45-!-frosch123 [] has joined #openttd
12:50-!-glx [] has joined #openttd
12:50-!-mode/#openttd [+v glx] by ChanServ
13:06-!-HerzogDeXtEr [] has joined #openttd
13:19<_dp_>damn C, just spend 30 mins thinking why does this line work: int i = t->grow_counter - 1;
13:19<_dp_>seing signed and unsigned mixed in one expression makes me sick %)
13:21<Eddi|zuHause>using - on unsigned types should probably throw all sorts of warnings
13:22<Eddi|zuHause>that might be wishful thinking, though :p
13:23<@Alberth>unsigned is mostly intended for bitfields only
13:26<_dp_>I guess there is no warning here because behaviour is defined. But if you try compiling it on 16bit architecture there will be one probably.
13:28<@Alberth>how is a 16bit architecture less defined?
13:28-!-peter1138 [] has quit [Remote host closed the connection]
13:28-!-peter1138 [] has joined #openttd
13:28-!-mode/#openttd [+o peter1138] by ChanServ
13:30<_dp_>If I got it right, on 32 bit grow_counter is converted to int because 1 is int and int can hold any value of uint16
13:30<@Alberth>sounds likely
13:31<_dp_>on 16bit 1 will be converted to uint and result will be UINT_MAX that overflows int which is undefined behavior
13:32<@Alberth>if int is not 32bit at such an architecture
13:32<_dp_>if grow_counter is 0 I mean
13:33<_dp_>are there 16bit architectures with 32bit ints?
13:33<@Alberth>why not?
13:33<@Alberth>you can have long long on a 32bit architecture too
13:34<@Alberth>the compiler would need to split the int value over 2 addresses, but that's allowed
13:39<_dp_>yeah, but that's kind of illogical
13:40<_dp_>have 32bit int instead of 64 is understandable, that's for backwards compatibility
13:40<_dp_>but 32bit instead of 16 ... for what?
13:41<@Alberth>bigger int values than 32767
13:47<frosch123>_dp_: all classic processers multiple X bits with X bits to 2*X bits, and divide 2*X bits by X bits to X bits
13:47<frosch123>so, all classic 8 bit cpus know 16bit values, all 16bit cpus know 32bit values, all 32bit cpus know 64 bit values and so on
13:48<@Alberth>/me worries about sse4.2 processors
13:48<frosch123>for addition and subtraction no real cpu has any real limit
13:49<frosch123>Alberth: yeah, mmx started to differ from that :)
13:49<frosch123>by doing "saturated" arithmetics instead of overflowing ones
13:58-!-Pensacola [~quassel@] has joined #openttd
14:18-!-Mucht [] has joined #openttd
14:27-!-andythenorth [] has joined #openttd
14:29<@Alberth>hi hi
14:34<andythenorth>eh Sim City never really clicked for me, but some of you might like this
14:39<andythenorth>“Industrial Minerals"
14:39<andythenorth>as cargo :P
14:42-!-Raiz [] has joined #openttd
14:44-!-Raiz [] has quit []
14:45-!-Raiz [] has joined #openttd
14:51-!-sim-al2 [] has joined #openttd
14:52-!-Raiz_ [~raiz@] has joined #openttd
14:57-!-Raiz is now known as Guest4929
14:57-!-Raiz_ is now known as Raiz
14:59-!-Guest4929 [] has quit [Ping timeout: 480 seconds]
15:09-!-HerzogDeXtEr [] has quit [Quit: Leaving.]
16:02-!-drac_boy [] has joined #openttd
16:08-!-Pensacola [~quassel@] has quit [Remote host closed the connection]
16:08-!-shirish_ [~quassel@] has joined #openttd
16:09-!-liq3 [] has joined #openttd
16:12-!-sla_ro|master [] has quit []
16:15-!-Progman [] has joined #openttd
16:15-!-shirish [] has quit [Ping timeout: 480 seconds]
16:18-!-shirish_ [~quassel@] has quit [Ping timeout: 480 seconds]
16:19-!-frosch123 [] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
16:20<drac_boy>heh? ^
16:23<drac_boy>anyway be back later
16:23-!-drac_boy [] has left #openttd []
16:35-!-Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has left #openttd []
16:45-!-andythenorth [] has left #openttd []
16:50-!-shirish [~quassel@] has joined #openttd
16:55-!-shirish_ [~quassel@] has joined #openttd
17:00-!-shirish [] has quit [Ping timeout: 480 seconds]
17:03<_dp_>is it a gs limit that it can't execute more than one command per tick or is it a server one?
17:04<@Rubidium>bit of both
17:05<@Rubidium>to get an answer in MP, you need to wait until the event is sent to all clients which usually is the next tick
17:05-!-shirish_ [~quassel@] has quit [Remote host closed the connection]
17:05<@Rubidium>to make SP not be totally different, the same delay is forced by the GS/AI layer in SP as well
17:07<_dp_>can't it send multiple commands at once?
17:07<@Rubidium>not if you want the "command" to return whether it succeeded or not
17:08<@Rubidium>and sending a load of commands from your GS without any return values might not be the best as you'd need to check whether the result of all those actions is what you wanted
17:09<_dp_>hm, in my particular case I don't care about result
17:09<@Rubidium>e.g. if a player builds something where you as GS want to place something else in the same tick, then some of the commands might not have been executed
17:10<_dp_>I'm doing cb so calling town growth rate command
17:11<_dp_>I'm more concerned of it not being executed at same time for different towns(companies) than of its result
17:14<_dp_>Btw, why does it have to wait for clients to get result? I though if server executed it locally than it has the result, clients getting different one means desync
17:29<@Rubidium>it's not wait for client, but wait for sending to clients; there is a configuration setting which tells how often (in ticks) a set of commands is sent to the clients
17:33-!-Pereba [~UserNick@] has joined #openttd
17:33-!-Pereba [~UserNick@] has quit [Remote host closed the connection]
17:37-!-Progman [] has quit [Remote host closed the connection]
17:57<_dp_>network.frame_freq you mean? it's not in config so is always 0 I suppose
17:57<_dp_>and I don't think gs will work if it is set to smth else)
18:00<_dp_>as I see it commands are accumulated and executed all at the end of frame, after gs does, so it only can get result on next frame even though it's available already
18:03<Eddi|zuHause>that's a problem with sort-of-but-not-really asynchronous interface
18:04<Eddi|zuHause>just live with the fact that you can only send one command per tick
18:04<_dp_>with gs ;)
18:05<_dp_>don't rly care much about gs as long as server itself is capable :)
18:09-!-Raiz [] has quit [Quit: WeeChat 1.3]
18:23-!-Wormnest [] has quit [Quit: Leaving]
18:36-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
19:18-!-Snail [] has joined #openttd
19:25-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
19:44-!-JezK [~jez@2407:7800:400:107f:3db5:daca:8457:e66a] has joined #openttd
19:53-!-liq3 [] has quit []
20:00-!-Hiddenfunstuff [] has quit [Quit: HydraIRC -> <- Wibbly Wobbly IRC]
20:17-!-KenjiE20 [] has quit [Quit: WeeChat 1.2]
20:19-!-Rubidium [] has quit [Read error: No route to host]
20:22-!-Snail [] has quit [Quit: Snail]
20:24-!-KenjiE20 [] has joined #openttd
20:31-!-Snail [] has joined #openttd
20:58-!-fjb [] has quit [Ping timeout: 480 seconds]
21:52-!-kais58_ [] has quit [Ping timeout: 480 seconds]
22:04-!-kais58_ [] has joined #openttd
22:08-!-kais58_ is now known as kais58|AFK
22:18-!-sim-al2 [] has joined #openttd
22:48-!-glx [] has quit [Quit: Bye]
23:10-!-Alaura [] has quit [Ping timeout: 480 seconds]
23:12-!-Alaura [] has joined #openttd
23:16-!-liq3 [] has joined #openttd
23:17-!-DDR [] has quit [Ping timeout: 480 seconds]
---Logclosed Tue Oct 13 00:00:25 2015