IRC logs for #openttd on OFTC at 2016-05-05
            
00:00:49 *** AdmiralKewl has quit IRC
00:01:12 *** AdmiralKewl has joined #openttd
00:16:59 *** DDR has quit IRC
00:18:53 *** roidal has quit IRC
00:19:30 *** sla_ro|master has quit IRC
00:22:04 *** womble has quit IRC
00:22:09 *** womble has joined #openttd
00:50:05 *** Gja has quit IRC
00:51:21 <Samu> question: DrawString(r.left + 10, r.right - 10, y + WD_MATRIX_TOP, cid);
00:51:53 <Samu> how do I calculate a distance offset to put on the 2nd DrawString?
00:52:36 <Samu> r.left + 10 + largest distance based on the first string it was drawn
00:53:58 <Samu> furst string will display string cid
00:54:32 <Samu> cid is "Company 1" or "Company 2" or etcc... "Company 15"
00:56:15 <Samu> guiding myself from this: http://i.imgur.com/4LpVKjN.png
00:57:52 <Samu> StringID cid = STR_AI_CONFIG_AILIST_COMPANY_ID_1 + i;
01:00:12 <Samu> erm, i guess i'm copy paste my code, better to visualize what I done so far
01:01:16 <Samu> https://paste.openttdcoop.org/pyjy8a4ym
01:02:42 <Samu> line 5 it draws the first string, the "Company #", line 16-17 draws the rest of it, but I'm using a random offset of 90 in that example
01:03:10 <Samu> I want instead, compute the offset into avariable
01:16:30 *** Progman has quit IRC
01:20:12 *** debdog has quit IRC
01:20:13 *** debdog has joined #openttd
01:38:45 *** liq3 has joined #openttd
01:41:15 <_dp_> Samu, there is GetStringBoundingBox function, check NetworkClientListWindow for example
01:44:53 <Samu> ok, thx
01:53:38 *** Supercheese has joined #openttd
01:59:01 *** gelignite has quit IRC
02:03:44 *** Samu has quit IRC
02:17:16 *** Tirili has quit IRC
02:31:34 *** JezK has joined #openttd
02:42:30 *** glx has quit IRC
03:03:40 *** LongyanG has quit IRC
03:03:41 *** LongyanG has joined #openttd
03:06:20 *** zeknurn has quit IRC
03:07:02 *** zeknurn has joined #openttd
03:09:07 *** Quatroking has quit IRC
03:36:08 *** Clockworker__ has joined #openttd
03:36:08 *** Clockworker_ has quit IRC
03:59:25 *** AdmiralKew has joined #openttd
04:05:32 *** AdmiralKewl has quit IRC
04:10:24 *** Ketsuban has quit IRC
04:35:42 *** Myhorta has quit IRC
04:49:33 *** Snail has joined #openttd
05:17:16 *** zeknurn` has joined #openttd
05:21:34 *** zeknurn has quit IRC
05:21:34 *** zeknurn` is now known as zeknurn
06:19:18 *** sim-al2 is now known as Guest2780
06:19:19 *** sim-al2 has joined #openttd
06:23:05 *** Guest2780 has quit IRC
06:26:44 *** Clockworker__ is now known as Clockworker
06:49:57 *** HerzogDeXtEr has quit IRC
06:53:52 *** AdmiralKew has quit IRC
07:04:48 *** Snail has quit IRC
07:55:19 *** sim-al2 has quit IRC
08:17:28 *** Alberth has joined #openttd
08:17:28 *** ChanServ sets mode: +o Alberth
08:21:29 *** KubeRoot has joined #openttd
08:21:48 *** KubeRoot has left #openttd
08:53:33 *** dvim has joined #openttd
08:53:33 *** Alberth has quit IRC
09:08:12 *** AdmiralKew has joined #openttd
09:14:49 *** Hiddenfunstuff has joined #openttd
09:16:18 *** smoke_fumus has quit IRC
09:26:04 *** Wolf01 has joined #openttd
09:26:09 *** Ketsuban has joined #openttd
09:27:55 <Wolf01> o/
09:29:57 *** liq3 has joined #openttd
09:31:27 *** Rejf has joined #openttd
09:42:58 *** Myhorta has joined #openttd
09:43:19 *** liq3 has quit IRC
10:19:06 *** JezK has quit IRC
10:22:14 *** Smedles has quit IRC
10:24:30 *** Smedles has joined #openttd
10:29:38 *** MonkeyDronez has joined #openttd
10:30:04 *** tokai has joined #openttd
10:30:04 *** ChanServ sets mode: +v tokai
10:32:22 *** Smedles has quit IRC
10:33:56 *** Smedles has joined #openttd
10:35:21 *** tokai|noir has quit IRC
10:55:05 *** rah_ is now known as rah
10:56:37 *** gelignite has joined #openttd
11:34:12 *** Alberth has joined #openttd
11:34:12 *** ChanServ sets mode: +o Alberth
11:36:31 *** Wormnest has joined #openttd
11:41:14 *** Quatroking has joined #openttd
11:44:28 *** zeknurn` has joined #openttd
11:48:35 *** zeknurn has quit IRC
11:48:35 *** zeknurn` is now known as zeknurn
11:48:48 <V453000> https://my.mixtape.moe/rauhdq.gif
11:54:18 <Wolf01> :D
11:55:34 <Wolf01> mmmh slow furnaces are slow
11:55:48 <V453000> that only signs that you need MOAR
11:56:55 <Wolf01> 8 of them and they are already at double speed
11:58:36 <V453000> MOAR.
11:58:49 <Wolf01> but only 2, ok?
12:01:42 <Wolf01> going to try the air filtering mod
12:23:41 *** AdmiralKewl has joined #openttd
12:28:00 *** AdmiralKew_ has joined #openttd
12:29:37 *** AdmiralKew has quit IRC
12:33:37 *** AdmiralKewl has quit IRC
12:35:04 *** AdmiralKewl has joined #openttd
12:35:42 *** AdmiralKew_ has quit IRC
12:38:49 *** Myhorta has quit IRC
12:42:16 *** Stimrol has quit IRC
12:44:12 *** AdmiralKew has joined #openttd
12:50:08 *** AdmiralKewl has quit IRC
12:52:13 *** Stimrol has joined #openttd
13:03:39 *** Samu has joined #openttd
13:12:46 <Samu> what's the difference between int and uint
13:15:35 <Samu> nevermind, uint it is
13:21:11 <Samu> max returns the max of 2 values, but I have 15 values
13:21:20 <Samu> i want to return the max of 15 values
13:23:25 <Wolf01> max_element() but you need to study how it works
13:37:23 *** Nijske has joined #openttd
13:37:34 <Nijske> hi guys who can help me ?
13:38:07 <Nijske> i wont to play multiplayer whitmy brother but he can noy find my server
13:41:55 <Wolf01> same network?
13:42:46 <Nijske> no
13:43:17 <Wolf01> you might need to forward the ports on the router
13:44:01 <Nijske> ow ok
13:58:36 <Wolf01> V453000, do you know if the exoskeleton speed stacks? I'm wondering if I could run aside a train :P
14:04:22 <Alkel_U3> it does
14:05:29 <Alkel_U3> I normaly use 4 to 5 at once
14:06:02 <Alkel_U3> although that requires 2 fusion generators for sustained operation
14:07:49 <Wolf01> np, I already have 2 fusion generators
14:08:19 <Wolf01> 2 energy shield mk2 and 2 personal roboports
14:08:32 *** Compu has quit IRC
14:09:22 *** ChanServ sets mode: +o orudge`
14:09:27 *** orudge` is now known as orudge
14:11:58 <Alkel_U3> I found out the hard way why it's a good idea to have batteries even with the generators. Went to clear a nest with plenty of shields and exoskeletons, spitters tore half of my shield up, I wanted to quickly retreat. Well, too bad, the exos aren't working, shields have to charge up first :P
14:12:24 <Wolf01> good advice, thank you
14:13:05 <Wolf01> I usually spawn laser turrets with the blueprints near the nests and gradually advance
14:13:21 <Alkel_U3> yeah, but that's kinda boring :D
14:13:59 *** Compu has joined #openttd
14:14:26 <Alkel_U3> combat shotgun + piercing shells hit&run with armour mk.II shreds everything
14:14:59 <Wolf01> I don't even use grenades or combat robots, too much work, and the personal laser defence is too weak
14:15:37 <Alkel_U3> once I got overwhelmed, ran out of ammo and capsules, whole hell on my tail. So I led them onto train tracks :3
14:16:05 <Wolf01> classic :D
14:16:11 <Alkel_U3> I found the robots extremely effective, especially the destroyers
14:17:17 <Wolf01> they are throw and waste, I would have liked a companion kind which works like the construction ones
14:17:37 *** MonkeyDronez has quit IRC
14:18:20 <Alkel_U3> well, it's not really that much trouble setting up a large factory just for capsule production in the lategame
14:18:35 <Wolf01> the problem is to launch the capules
14:19:30 <Alkel_U3> you can launch while shooting. But, yyeah, launching 100+ destroyers is kinda tedious :-)
14:19:44 <Wolf01> I don't have enough spare slots and I'm not going to install a mod for the toolbelt, I already have troubles finding what I want with 2 rows :P
14:21:54 *** AdmiralKew has quit IRC
14:22:29 <Alkel_U3> hm, something like a weapon just for rapid launching of capsules would be handy
14:24:01 <Alkel_U3> so the capsules would fit into ammo slot. Or an armour module which deploys them automaticaly in vicinity of enemies. I wonder if that's doable with a mod
14:25:11 <Samu> I'm doing something wrong, need advice https://paste.openttdcoop.org/pmshshhud
14:26:01 <Samu> line 4 is probably doing it wrong
14:27:15 <Samu> i'm trying to reuse the cid_width calculated for the previous cycle
14:27:25 <Samu> from* the previous for cycle
14:28:56 <Wolf01> is cid_width defined somewhere else? what's that "uint width" for?
14:29:59 <Samu> uint cid_width; ///< Width of Company # string.
14:30:05 *** Snail has joined #openttd
14:30:16 <Samu> it's without any value by default
14:30:32 <Samu> uint width - I don't know
14:30:37 <Wolf01> so, why one is uint and the other one is StringID?
14:32:16 <Samu> uint is the distance
14:32:33 <Samu> stringID is the string text itself
14:32:38 *** Supercheese has quit IRC
14:32:46 <Samu> I got 15 strings
14:33:06 <Wolf01> I'm asking because what I read doesn't mean anything, its a mix of things with no meaning
14:33:13 *** Supercheese has joined #openttd
14:33:35 <Samu> STR_AI_CONFIG_AILIST_COMPANY_ID_1 through STR_AI_CONFIG_AILIST_COMPANY_ID_15
14:34:59 <Samu> ok im removig uint width, seems useless
14:39:30 <Samu> i could copy paste the whole function, but it's giant
14:42:20 <Samu> https://paste.openttdcoop.org/pficrqgae
14:42:26 <Samu> uint cid_width is at line 7
14:43:01 <Samu> this for code are at line 55-58
14:46:59 <Samu> i'm doing something wrong, i can feel it
14:48:41 *** sla_ro|master has joined #openttd
14:50:07 <argoneus> good morning train friends
14:52:33 <Samu> actually, it looks like I got this right
14:53:35 <Samu> at least it's doing what I wanted it to do
14:53:45 <Samu> code is probably messed up
14:53:55 <Samu> have to improve
14:56:58 <Samu> http://i.imgur.com/CIhpZ2v.png
14:57:00 <Samu> tada!
14:59:15 *** Snail has quit IRC
15:00:20 <Samu> I used 15 strings, maybe it's possible to use this with just 1 string and use a parameter to set the # inside the string
15:15:45 <peter1138> Yikes :p
15:16:36 <Samu> hmm :(
15:20:01 <Wolf01> mmh, I should reactivate windows, but I think I'll wait for the new motherboard, I don't know how many times I could reactivate it
15:24:41 *** Samu has quit IRC
15:36:11 *** Clockworker_ has joined #openttd
15:36:11 *** Clockworker has quit IRC
15:43:40 *** Ketsuban has quit IRC
15:54:42 <supermop> yo
15:55:32 *** sla_ro|master has quit IRC
16:27:16 *** sla_ro|master has joined #openttd
16:29:47 *** ttech2 has quit IRC
16:30:23 *** jonty-co1p has joined #openttd
16:32:21 *** Mavy_ has joined #openttd
16:32:22 *** jonty-comp has quit IRC
16:32:27 *** Mavy has quit IRC
16:34:02 *** mikegrb has quit IRC
16:34:29 *** Ttech has joined #openttd
16:41:51 *** Samu has joined #openttd
16:45:24 <Samu> @logs
16:45:24 <DorpsGek> Samu: http://irclogs.qmsk.net/channels/openttd
16:45:50 <Samu> orly?
16:45:58 <Samu> rip irclogs
16:47:53 <Samu> --- Log closed Wed May 04 22:00:40 2016 what happened ever since?
16:55:43 *** HerzogDeXtEr has joined #openttd
17:27:22 *** sim-al2 has joined #openttd
17:36:18 <Samu> i fail at calculating the size
17:38:40 <Samu> Company (undefined string) t.t
17:39:13 *** Wormnest has quit IRC
17:39:50 <Samu> it's calculating the width of "Company (undefined string)" but then it displays it correctly, "Company 1"
17:40:05 <Samu> bah i fail
17:58:34 <Samu> AHA! SetDParamMaxValue(0, MAX_COMPANIES);
18:00:32 <Samu> uhm.. nope, it's still not right
18:16:26 *** jonty-co1p is now known as jonty-comp
18:32:15 *** HerzogDeXtEr1 has joined #openttd
18:34:22 *** ToneKnee has quit IRC
18:37:32 *** HerzogDeXtEr has quit IRC
18:37:45 *** ToneKnee has joined #openttd
18:39:21 <Samu> guys, i'm trying to use this string STR_FORMAT_COMPANY_NUM
18:39:41 <Samu> but it's randomly giving me different width sizes
18:39:45 <Samu> why's that?
18:41:42 <Alberth> are you setting the parameter? otherwise you get whatever the last string used that was displayed
18:43:03 <Samu> how do i set the parameter for this string?
18:43:07 <Alberth> you may also want to find some other use of the string to see how to set the paramter
18:43:29 <Samu> there's only one use of this string
18:43:37 <Samu> it's in strings.cpp
18:43:59 <Samu> that means I can't re-use it?
18:44:10 <Alberth> another string with the same {...} thingie then?
18:44:49 <Alberth> that should set the parameter in the same way
18:45:47 *** Progman has joined #openttd
18:46:26 <Samu> SetDParamMaxValue(0, MAX_COMPANIES); SetDParam(0, i + 1); StringID cid = STR_FORMAT_COMPANY_NUM;
18:46:41 <Samu> is this the correct way to set params?
18:46:55 <Samu> i is a value from 0 to 14
18:51:54 <Samu> uhm.. it's calculating the width of StringID = 0U
18:52:03 <Samu> i'm doing this wrong
18:52:45 <peter1138> surprise!
18:56:35 *** glx has joined #openttd
18:56:35 *** ChanServ sets mode: +v glx
18:57:41 <Samu> this->cid_width = max(GetStringBoundingBox(cid).width, this->cid_width);
18:57:57 <Samu> i hate for loops
18:58:21 *** Nijske has quit IRC
18:59:59 <Samu> must re-use cid_width inside the for loop, and i'm confused how it actually does it
19:01:36 <Samu> while defining a new value to cid_width, compare the width of the new cid stringid with the the old cid_width value
19:02:06 <Samu> get the max of those two values
19:02:15 <Samu> and use it for the new cid_width
19:02:24 <Samu> then repeat the cycle until it checks all 15 companies
19:03:05 <Samu> erm, all 15 strings
19:12:55 <Samu> what is this left to right to left text stuff?
19:13:37 <Samu> is this for those weirdo languages?
19:23:24 <Alberth> perhaps we have a weird language instead :)
19:27:26 <Samu> i seem arabic and such
19:27:37 <Samu> they write right to left, just checked
19:30:12 <Samu> for (CompanyID i = COMPANY_FIRST; i < MAX_COMPANIES; i++) { SetDParam(0, i + 1); this->cid_width = max(GetStringBoundingBox(STR_FORMAT_COMPANY_NUM).width, this->cid_width); }
19:30:19 <Samu> this was much simpler than I thought
19:31:18 <Samu> now I can finally use the cid_width on the other function that actually draws strings
19:33:32 <Clockworker_> https://dl.dropboxusercontent.com/u/71312462/ShareX/2016/05/1462410640769.jpg
19:33:34 <Clockworker_> heh
19:34:25 <Clockworker_> oh shit
19:34:26 <Clockworker_> wrong channel
19:34:36 <Clockworker_> haha
19:35:05 <Wolf01> https://onedrive.live.com/redir?resid=D5D7348BE1780505!34853&authkey=!AGxYXbNmzMGSsGo&v=3&ithint=photo%2cgif :D
19:40:05 <Wolf01> I made 1400 with that spaghetti metro
19:40:28 <Wolf01> usually I lost at 500 with less stations/lines
19:40:34 <Wolf01> *few
20:00:59 <Alberth> link just loads a zillion sites, and still fails :(
20:03:50 *** andythenorth has joined #openttd
20:08:32 <joepie91> Wolf01: what's that from?
20:09:01 *** Myhorta has joined #openttd
20:13:18 <andythenorth> o/
20:13:39 <Wolf01> o/
20:13:45 <Wolf01> joepie91: minimetro
20:13:49 <Eddi|zuHause> with things like "dropbox" or "live" in the name i don't even try anymore to load them
20:14:01 *** zeknurn` has joined #openttd
20:14:34 <Eddi|zuHause> it's almost guaranteed to end up as an empty page
20:15:01 <Samu> I'm gonna rename Random AI to (Random AI)
20:15:14 <Samu> will make more sense for what I'm gonna do
20:16:30 <Alberth> o/ andy
20:17:07 *** DDR has joined #openttd
20:18:45 <joepie91> mm
20:18:56 <joepie91> I should look into that
20:19:05 *** zeknurn has quit IRC
20:19:05 *** zeknurn` is now known as zeknurn
20:19:13 <joepie91> Eddi|zuHause: let's load 20MB of JS vomit to display a 200KB image!
20:19:15 <joepie91> :P
20:20:16 <Wolf01> oooh, this or next time I won't show you anything :)
20:20:24 *** sim-al2 has quit IRC
20:21:25 <joepie91> Wolf01: imgur! :P
20:21:32 <Wolf01> no?
20:23:27 <Samu> i found another bug, also present in 1.6.0
20:23:48 <Samu> random ai parameters can be configured in main menu, but not while in a game
20:23:57 <Samu> unless, you select random ai again on the same slot
20:24:27 <Samu> then again, the only configurable parameters is the start_delay
20:26:20 <Eddi|zuHause> joepie91: i read an article recently "the average web page now has the size of the original DOOM installer"
20:27:10 <Eddi|zuHause> Wolf01: just try to get a direct image link, instead of some redirect nonsense
20:27:50 <joepie91> Eddi|zuHause: http://idlewords.com/talks/website_obesity.htm :P
20:27:55 <joepie91> (video link at top)
20:27:59 <joepie91> (the video is much funnier)
20:28:45 <Wolf01> https://tv7grq.dm2301.livefilestore.com/y3p5KVO07CuZVOV55XcbgOSAaHzKIa-5lKZYzG7aJIkX3RTigsgkqwFbB2OuEhhhGH-u53Z9-YwGklDoDTFKcW39n7sbs6459m5AqY8MoaHVnzYggHQgzEi7I19O-FXhs11IhpQWg1OhG4Fw_XhrOFahJe9Gw4d1gF3KG3V7uCx_90/Londra%20%281437%29.gif?psid=1 are you able to see this?
20:29:18 <Eddi|zuHause> Wolf01: at least that gives me an error page that asks for javascript :p
20:30:21 <supermop> how do 32bpp base sets work
20:30:34 <supermop> like do you have a huge sprite sheet that is 200 MB?
20:30:44 <supermop> or can you do individual files?
20:30:52 <Eddi|zuHause> supermop: you can have individual files
20:31:43 <Eddi|zuHause> you can have one file per sprite, or one file per spriteset (usually 8 sprites, depending on type of object)
20:31:49 <Eddi|zuHause> or any mixture
20:32:52 *** Wormnest has joined #openttd
20:33:43 <supermop> and the sprites have to be the exact size as the original base set sprite they replace?
20:33:54 <Wolf01> argoneus: diablo 3 season 6 started
20:34:36 <Eddi|zuHause> supermop: i think not, but it would probably make a few things easier
20:35:09 <Eddi|zuHause> supermop: but you must provide an 8-bit sprite for every 32-bit sprite you provide
20:35:27 <Eddi|zuHause> for systems where 32bit is disabled
20:35:47 <supermop> hmm why is autocad using 1.5gb of ram when i only have a couple small drawings open
20:36:03 <Eddi|zuHause> because bloatware
20:36:23 <Eddi|zuHause> also, depends on what kind of RAM you're measuring
20:53:01 <argoneus> Wolf01: nice
20:53:04 <argoneus> too bad I have no time
20:54:17 <Wolf01> np, I have no bandwidth :P
21:06:53 *** Clockworker__ has joined #openttd
21:07:10 *** Clockworker_ has quit IRC
21:37:10 *** japhy has joined #openttd
21:38:05 <japhy> hi all, I am managing openttd server for friends and would like to ask, how to set, that when last player disconnect to pause the server ?
21:38:28 <japhy> i know that i have set it in openttd.config, but dont know true value
21:38:38 <japhy> thanks for advice
21:39:44 <ST2> I think is min_active_clients
21:40:50 <ST2> https://wiki.openttd.org/Min_active_clients
21:41:53 <japhy> so when i set i to 0, when there will not be an active player, server pause
21:41:55 <japhy> thanks
21:42:40 <ST2> "The game is automatically paused when the number of active players is less than this amount. This only works with dedicated servers! "
21:42:45 <ST2> set it to 1
21:42:51 <ST2> for example ^^
21:43:30 <ST2> with 0 will never pause, because number of players will never be below that (0)
21:43:31 <ST2> xD
21:50:33 *** sim-al2 has joined #openttd
21:51:52 *** japhy has quit IRC
21:54:01 <Wolf01> btw, what's the point to set that number above 1?
21:54:25 <ST2> all depends on what he wants ^^
21:54:33 * andythenorth plays openttd
21:54:35 <ST2> but you are right there :)
21:54:36 <andythenorth> has anyone tried it?
21:54:59 <Wolf01> if the server sets it to 3 and I enter that server and see the game is paused, I think I'll leave instantly
21:55:54 <ST2> as he said, it's for a group of friends so, maybe they want to unpause only when all are ingame
21:55:56 <Wolf01> if the server wants 4 players to be active, I think it's more suitable for a lanparty
21:56:01 <ST2> lots of possibilities ;)
21:57:32 <Wolf01> we don't pause a D&D session even when one goes to the bathroom :P
22:04:46 <Samu> i think it works too for multiplayer servers if the server is a spectator
22:04:56 <Samu> and there's nobody else playing
22:09:21 <Samu> i tracked down the issue. In-game, Random AI's are not doing a PushExtraConfigList()
22:09:39 <Samu> this->config_list->push_back(_start_date_config);
22:09:49 <Samu> so they're erroneously empty :(
22:09:58 <Samu> must fix, halp
22:16:20 <Samu> when i changeai() to random ai, the list is suddenly "not empty"
22:16:55 <peter1138> @seen belugas
22:16:55 <DorpsGek> peter1138: belugas was last seen in #openttd 16 weeks, 0 days, 4 hours, 31 minutes, and 49 seconds ago: <Belugas> I'm fine, thanks! Enjoying what i can, of course. And you?
22:17:17 <peter1138> fu
22:17:58 *** Gja has joined #openttd
22:21:14 *** andythenorth has left #openttd
22:34:26 *** Alberth has left #openttd
22:39:00 <Samu> i see, one config_list is <NULL>, the other config_list is 0
22:39:43 <Samu> it only adds the _start_date_config for the <NULL>
22:39:49 <Samu> but not for the 0
22:39:52 <Samu> t.t
23:25:42 *** sla_ro|master has quit IRC
23:30:20 <supermop> 2nd generation of my tiny monorail jewelry successfully 3d printed
23:30:36 *** Hiddenfunstuff has quit IRC
23:31:58 *** Progman has quit IRC
23:44:44 *** Wormnest has quit IRC