Back to Home / #openttd / 2018 / 08 / Prev Day | Next Day
#openttd IRC Logs for 2018-08-16

---Logopened Thu Aug 16 00:00:08 2018
00:05-!-agentw4b_ [~agentw4b@] has quit []
00:23-!-Progman [] has joined #openttd
00:23-!-Progman is "Peter Henschel" on #openttdcoop #openttd
01:06-!-snail_UES_ [] has quit [Quit: snail_UES_]
01:20-!-Progman [] has quit [Remote host closed the connection]
01:36-!-Supercheese [] has joined #openttd
01:36-!-Supercheese is "Supercheese" on #openttd
01:38-!-ttech2 [ttech@2600:3c00::17:8abf] has quit [Read error: Connection reset by peer]
01:38-!-ccfreak2k [] has quit [Read error: Connection reset by peer]
01:38-!-Extrems [] has quit [Read error: Connection reset by peer]
01:39-!-ccfreak2k [] has joined #openttd
01:39-!-Extrems [] has joined #openttd
01:39-!-Extrems is "" on #openttd
01:40-!-Ttech [] has joined #openttd
01:40-!-Ttech is "Thomas Techinus" on #botters #munin #moocows #help #qemu #openttd #archlinux @#transcendence #swift #linode #oftc
01:47-!-Supercheese [] has quit [Remote host closed the connection]
01:48-!-Supercheese [] has joined #openttd
01:48-!-Supercheese is "Supercheese" on #openttd
02:06-!-andythenorth [] has joined #openttd
02:06-!-andythenorth is "andythenorth" on #openttd
02:19-!-sla_ro|master [] has joined #openttd
02:19-!-sla_ro|master is "slamaster" on #sla #openttd
02:28-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has joined #openttd
02:28-!-keoz is "Grmph" on #openttd
03:12-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has quit [Ping timeout: 480 seconds]
03:36-!-eirc [c21ee502@] has joined #openttd
03:36-!-eirc is "[] Development release" on #openttd
03:39-!-eirc [c21ee502@] has quit [Remote host closed the connection]
03:40-!-eirc [c21ee502@] has joined #openttd
03:40-!-eirc is "[] Development release" on #openttd
04:04-!-eirc [c21ee502@] has quit [Remote host closed the connection]
04:15-!-Supercheese [] has quit [Quit: Valete omnes]
04:22-!-andythenorth is now known as Guest1041
04:22-!-andythenorth [] has joined #openttd
04:22-!-andythenorth is "andythenorth" on #openttd
04:23-!-andythenorth [] has quit []
04:27-!-Guest1041 [] has quit [Ping timeout: 480 seconds]
05:04-!-eirc [~eirc@] has joined #openttd
05:04-!-eirc is "Errikos" on #openttd
05:06-!-eirc [~eirc@] has quit []
05:06-!-eirc [~eirc@] has joined #openttd
05:06-!-eirc is "Errikos" on #openttd
05:20-!-andythenorth [~andytheno@] has joined #openttd
05:20-!-andythenorth is "andythenorth" on #openttd
06:25-!-andythenorth is now known as Guest1054
06:25-!-andythenorth [~andytheno@] has joined #openttd
06:25-!-andythenorth is "andythenorth" on #openttd
06:30-!-Guest1054 [~andytheno@] has quit [Ping timeout: 480 seconds]
06:49-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has joined #openttd
06:49-!-keoz is "Grmph" on #openttd
07:06-!-eirc [~eirc@] has quit [Quit: The Lounge -]
07:12-!-eirc [~eirc@] has joined #openttd
07:12-!-eirc is "Errikos" on #openttd #openttdcoop
07:14-!-Wolf01 [] has joined #openttd
07:14-!-Wolf01 is "Wolf01" on #openttd
07:16<crem2>Why am I 2
07:16-!-crem2 is now known as crem
07:16-!-eirc [~eirc@] has quit []
07:18-!-stefino [] has joined #openttd
07:18-!-stefino is "OFTC WebIRC Client" on #openttd
07:21<stefino>hi, has OTTD any limit of sprites? number of sprites in all newgrf files
07:22<@peter1138>Yes but no.
07:27-!-eirc [~eirc@] has joined #openttd
07:27-!-eirc is "Errikos" on #openttd #/r/openttd
07:31<Eddi|zuHause>limitation disturbs me very sprites
07:35<@peter1138>goes it throw out limitation?
07:35<stefino>yes but no? :D
07:37<stefino>i read something that there is a limit +-65k
07:37<@peter1138>It's around 16.7 million. There is a limit, but you won't reach it.
07:37<Eddi|zuHause>no, that was increased
07:38<Eddi|zuHause>like 10 years ago
07:39<stefino> this is ok :D that's good to know. I was scared caue due long vehicles we have really a lot of sprites.
07:44<stefino>but on the other hand, big grf files make the game more laggy or not? It is due multiplayer maybe but when we built big infrastructure, it was laggy when zoom out the map. Is it general problem of big 32bpp graphics sets?
07:46<Eddi|zuHause>that is a general problem of how zoom out works
07:47-!-sla_ro|master [] has quit []
07:48<stefino>okay, thanks :)
07:49-!-stefino [] has quit [Quit: Page closed]
08:00-!-andythenorth [~andytheno@] has left #openttd []
08:34-!-snail_UES_ [] has joined #openttd
08:34-!-snail_UES_ is "Jacopo Coletto" on #openttd
08:41-!-Samu [] has joined #openttd
08:41-!-Samu is "OFTC WebIRC Client" on #openttd
09:05-!-snail_UES_ [] has quit [Quit: snail_UES_]
09:22-!-eirc [~eirc@] has quit []
09:24-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has joined #openttd
09:24-!-AndroUser2 is "Android IRC Client" on #openttd
09:29-!-eirc is "Errikos" on #debian #/r/openttd
09:29-!-eirc [~eirc@] has joined #openttd
09:33-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has quit [Remote host closed the connection]
09:34-!-Mahjong [~qq@2a00:23c5:6507:1a00:3423:df48:cdf7:e6c8] has joined #openttd
09:34-!-Mahjong is "realname" on #openttd #ohnx
09:34-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has joined #openttd
09:34-!-AndroUser2 is "Android IRC Client" on #openttd
09:36-!-Maraxus [] has joined #openttd
09:36-!-Maraxus is "Maraxus" on #openttd #factoriocoop @#openttdcoop.stable @#openttdcoop
09:47-!-sla_ro|master [] has joined #openttd
09:47-!-sla_ro|master is "slamaster" on #sla #openttd
09:50-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has quit [Remote host closed the connection]
09:53-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has joined #openttd
09:53-!-AndroUser2 is "Android IRC Client" on #openttd
09:59-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has quit [Remote host closed the connection]
09:59-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has joined #openttd
09:59-!-AndroUser2 is "Android IRC Client" on #openttd
10:07-!-sim-al2 [] has quit [Ping timeout: 480 seconds]
10:10-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:81a4:e1c7:546:9c4e:7998] has joined #openttd
10:10-!-Gustavo6046 is "Non volo annuntiare nomen mei, discede hoc solum!" on #openttd
10:13-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has quit [Remote host closed the connection]
10:14-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has joined #openttd
10:14-!-AndroUser2 is "Android IRC Client" on #openttd
10:14-!-Thedarkb-T60 [] has joined #openttd
10:14-!-Thedarkb-T60 is "realname" on #openttd
10:18-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has quit [Remote host closed the connection]
10:18-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has joined #openttd
10:18-!-AndroUser2 is "Android IRC Client" on #openttd
10:26-!-agentw4b [] has joined #openttd
10:26-!-agentw4b is "KlubusL" on #openttdcoop #openttd
10:30-!-agentw4b_ [~agentw4b@] has joined #openttd
10:30-!-agentw4b_ is "KlubusL" on #openttdcoop #openttd
10:33-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has quit [Remote host closed the connection]
10:34-!-Thedarkb-T60 [] has quit [Ping timeout: 480 seconds]
10:34-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has joined #openttd
10:34-!-AndroUser2 is "Android IRC Client" on #openttd
10:34-!-agentw4b [] has quit [Ping timeout: 480 seconds]
10:36-!-Alberth [] has joined #openttd
10:36-!-mode/#openttd [+o Alberth] by ChanServ
10:36-!-Alberth is "purple" on @#openttd
10:36<@Alberth>hi hi
10:38-!-Wormnest [] has joined #openttd
10:38-!-Wormnest is "Wormnest" on #openttd
10:57-!-roidal [] has joined #openttd
10:57-!-roidal is "roland" on #openttd
11:07-!-Samu [] has quit [Remote host closed the connection]
11:09-!-Samu [] has joined #openttd
11:09-!-Samu is "OFTC WebIRC Client" on #openttd
11:26-!-synchris [~synchris@] has joined #openttd
11:26-!-synchris is "Synesios Christou" on #openttd
11:29-!-agentw4b_ [~agentw4b@] has quit [Ping timeout: 480 seconds]
11:32<Samu>is there anything you can do about "excessive CPU usage in valuator function"?
11:45-!-Flygon [] has quit [Read error: Connection reset by peer]
11:51-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:81a4:e1c7:546:9c4e:7998] has quit [Quit: Sleeping cosily, not alone, is yet just a dream...]
11:59-!-agentw4b_ [~agentw4b@] has joined #openttd
11:59-!-agentw4b_ is "KlubusL" on #openttdcoop #openttd
12:01<Samu>there is a Valuate inside a Valuate, is this what causes excessive cpu usage?
12:04<Samu>tileList.Valuate(Utils.valuateTruckStopTile, cargoClass, stationId);
12:05<Samu>and inside valuate truck stop tile there is: cargoList.Valuate(AICargo.HasCargoClass, cargoClass);
12:07<Samu>Looking at LuDiAI source code
12:13<acklen>cargoList is probably pretty small though? tileList may be huge
12:13-!-Progman [] has joined #openttd
12:13-!-Progman is "Peter Henschel" on #openttdcoop #openttd
12:20<Samu>I see rectangles
12:22<Samu>there's another square
12:22<Samu>It adds rectangles to rectangles?
12:23<Samu>that's confusing, I better give up
12:23<LordAro>Samu: it's defining an area of tiles to search
12:24<LordAro>if it decides to define an overly large area (could be that a coordinate is mismatched or something), that could take a long time to search through
12:25<Samu>the town it was working on, was a big one, already serviced with a bus stop and with an airport, it crashed evaluating here
12:27<Samu>the evaluation should return 0, meaning it was already serviced
12:30-!-Thedarkb-T60 [] has joined #openttd
12:30-!-Thedarkb-T60 is "realname" on #openttd
12:30<Samu>here's the evaluator:
12:30<Samu>is it big?
12:34-!-AndroUser2 [~androirc@2607:fea8:2a20:34d:a5b9:37d6:3ab:addd] has quit [Ping timeout: 480 seconds]
12:39<Samu>strange that I'm not getting it to crash
12:39<Samu>seems to be very rare
12:39<acklen>perhaps you should reduce the amounts of valuations in valuateTruckStopTile()
12:39<Samu>it was the first time I had a excessive CPU usage on LuDiAI
12:39<acklen>the cargoList could be created once and then passed in
12:40<acklen>other valuations like AITile.IsBuildable, etc could reduce the tile set as well
12:40<acklen>then pass the reduced array to valuateTruckStopTile()
12:44-!-wodencafe [] has joined #openttd
12:44-!-wodencafe is "Woden Cafe" on #openttd #oftc #moocows
13:09-!-frosch123 [] has joined #openttd
13:09-!-frosch123 is "frosch" on #openttdcoop.devzone #openttd
13:28-!-KouDy [] has quit [Remote host closed the connection]
13:41-!-HerzogDeXtEr [] has joined #openttd
13:41-!-HerzogDeXtEr is "purple" on #openttd
13:44-!-Supercheese [] has joined #openttd
13:44-!-Supercheese is "Supercheese" on #openttd
13:47<Eddi|zuHause>i'm screwing up my system now, was nice knowing you guys...
13:47-!-Eddi|zuHause [] has quit []
13:48-!-andythenorth [] has joined #openttd
13:48-!-andythenorth is "andythenorth" on #openttd
13:50<LordAro>rip eddi
13:53-!-gelignite [] has joined #openttd
13:53-!-gelignite is "gelignite" on #openttd
13:53<Samu>I think I found the issue
13:54<Samu>local rectangleCoordinates = estimateTownRectangle(town);
13:54<Samu>this creates a rectangle consisting of tiles where the town has influence
13:55<Samu>if the town is too large
13:55<Samu>it will be valuating all those tiles
13:55<Samu>to build a station
13:57<Samu>i got to retry this AI with very large towns, and hope it crashes early
13:57<LordAro>still, i wouldn't expect that to go over the cpu limit
13:57<LordAro>unless it's doing something expensive inside
13:58-!-KouDy [] has joined #openttd
13:58-!-KouDy is "KouDy" on #openttd
14:00<Samu>holy moly
14:01<Samu>it crashed right away
14:01<Samu>right on the first service
14:03<Samu>town was sized like that
14:03<Samu>23k population
14:03<LordAro>guess you need to check what that valuator function is doing
14:04<LordAro>unless you've fiddled with the AI execution count
14:04<LordAro>i seem to recall you doing that?
14:04<Samu>no, im using 1.8.0
14:04<LordAro>i mean the config setting
14:04<LordAro>can't remember what it's actually called
14:05<Samu>ah, it's at #10.000
14:05-!-tokai [] has joined #openttd
14:05-!-mode/#openttd [+v tokai] by ChanServ
14:05-!-tokai is "Christian Rosentreter" on +#openttd
14:06<LordAro>mm, that's the default
14:06<Samu>line 143
14:06<Samu> tileList.Valuate(Utils.valuateTruckStopTile, cargoClass, stationId);
14:07<Samu>that's this
14:07<Samu>gonna try edit the code a bit
14:07<Samu>do what acklen said
14:09<Samu>the tileList at this point is a giant rectangle
14:09<Samu>given by that estimation
14:09<Samu>local rectangleCoordinates = estimateTownRectangle(town);
14:12-!-tokai|noir [] has quit [Ping timeout: 480 seconds]
14:19-!-synchris [~synchris@] has quit [Quit: yeeha!]
14:21<Samu>@calc 40 * 40
14:21<@DorpsGek>Samu: 1600
14:21<Samu>it is valuating 1600 tiles
14:23<acklen>is that just the count of tileList?
14:23<Wormnest>Looks like it wants to do too much inside the Valuator. Valuators should be short functions
14:23<Samu>tileList contains 1600 tiles
14:24<Samu>and it does this 1600 times I guess
14:25<Wormnest>yes, which has another for loop in it and another valuator
14:27-!-agentw4b__ [~agentw4b@] has joined #openttd
14:27-!-agentw4b__ is "KlubusL" on #openttdcoop #openttd
14:34-!-agentw4b_ [~agentw4b@] has quit [Ping timeout: 480 seconds]
14:45-!-Thedarkb-T60 [] has quit [Remote host closed the connection]
14:49-!-andythenorth is now known as Guest1077
14:49-!-andythenorth [] has joined #openttd
14:49-!-andythenorth is "andythenorth" on #openttd
14:51-!-Guest1077 [] has quit [Ping timeout: 480 seconds]
14:52<Samu>i got a crash in CargoList now
14:53-!-Eddi|zuHause [] has joined #openttd
14:53-!-Eddi|zuHause is "Johannes E. Krause" on #openttd
14:53-!-glx [] has joined #openttd
14:53-!-mode/#openttd [+v glx] by ChanServ
14:53-!-glx is "Loïc GUILLOUX" on +#openttd
14:58-!-gelignite [] has quit [Quit: Match found!]
15:06-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:81a4:e1c7:546:9c4e:7998] has joined #openttd
15:06-!-Gustavo6046 is "Non volo annuntiare nomen mei, discede hoc solum!" on #openttd
15:08-!-Supercheese [] has quit [Read error: Connection reset by peer]
15:08-!-Supercheese [] has joined #openttd
15:08-!-Supercheese is "Supercheese" on #openttd
15:13<Samu>forgot something
15:14<Samu>if I use break inside 2 for cycles, does it break only the last for cycle? or breaks all fors?
15:20<LordAro>only breaks the inner most
15:26<Samu>I think I fixed the AI
15:26<Samu>or probably broke it
15:26<Samu>somewhere else
15:42-!-Maraxus [] has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
15:51-!-cHawk [] has quit [Quit: Leaving]
15:59-!-sla_ro|master [] has quit []
16:00<Samu>how do I square a number in code?
16:02-!-roidal [] has quit [Quit: WeeChat 2.2]
16:03<Samu>oh, i would have to use a variable to store the first result :(
16:04<Samu>I want to ^2 here local areasize = (AIMap.GetTileX(rectangleCoordinates[1]) - AIMap.GetTileX(rectangleCoordinates[0]) + 1);
16:05<Samu>areasize = areasize * areasize;
16:09<Samu> local areasize = (AIMap.GetTileX(rectangleCoordinates[1]) - AIMap.GetTileX(rectangleCoordinates[0]) + 1); areasize = areasize * areasize; AILog.Info("Estimated " + AITown.GetName(town) + " area: " + areasize + " tiles [(" + AIMap.GetTileX(rectangleCoordinates[0]) + "," + AIMap.GetTileY(rectangleCoordinates[0]) + ") - (" + AIMap.GetTileX(rectangleCoordinates[1]) + "," + AIMap.GetTileY(rectangleCoordinates[1]) + ")]");
16:09<Samu>this works
16:12-!-cHawk [] has joined #openttd
16:12-!-cHawk is "realname" on #openttd
16:14-!-Alberth [] has left #openttd []
16:22-!-agentw4b__ [~agentw4b@] has quit [Ping timeout: 480 seconds]
16:26<Eddi|zuHause>anyone familiar with hwmon/fancontrol stuff?
16:26<Samu>I use HWInfo
16:26<Eddi|zuHause>i have 3 fans connected to my mainboard, and hwmon provides me with 3 pwm controls
16:26<Eddi|zuHause>but they don't match up
16:27<Samu>guess it's not the same program
16:27<Eddi|zuHause>fan1 seems to be controlled by both pwm1 and pwm3, and fan3 is unaffected by everything
16:27<Eddi|zuHause>is that a driver fail? or a bios fail? or what?
16:29<Eddi|zuHause>that fan running at constant speed is driving me nuts
16:36-!-Thedarkb-T60 [] has joined #openttd
16:36-!-Thedarkb-T60 is "realname" on #openttd
16:50-!-sim-al2 [] has joined #openttd
16:50-!-sim-al2 is "sim-al2" on #openttd
17:10-!-Eddi|zuHause [] has quit []
17:21-!-Eddi|zuHause [] has joined #openttd
17:21-!-Eddi|zuHause is "Johannes E. Krause" on #openttd
17:35-!-HerzogDeXtEr [] has quit [Read error: Connection reset by peer]
17:41-!-andythenorth [] has left #openttd []
17:43-!-Eddi|zuHause [] has quit []
17:56-!-Wormnest [] has quit [Quit: Leaving]
18:01-!-chomwitt is "chomwitt" on #debian #debian-games
18:01-!-chomwitt [] has joined #openttd
18:04-!-Progman [] has quit [Remote host closed the connection]
18:24-!-frosch123 [] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
18:27-!-Eddi|zuHause [] has joined #openttd
18:27-!-Eddi|zuHause is "Johannes E. Krause" on #openttd
19:01-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has quit [Ping timeout: 480 seconds]
19:11-!-Supercheese [] has quit [Quit: Valete omnes]
19:15-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
19:28-!-Supercheese [] has joined #openttd
19:28-!-Supercheese is "Supercheese" on #openttd
19:45-!-Supercheese [] has quit [Read error: Connection reset by peer]
19:45-!-Supercheese [] has joined #openttd
19:45-!-Supercheese is "Supercheese" on #openttd
20:00-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has joined #openttd
20:00-!-keoz is "Grmph" on #openttd
20:22-!-Samu [] has quit [Quit: Page closed]
20:31-!-chomwitt [] has quit [Ping timeout: 480 seconds]
20:35-!-Thedarkb-T60 [] has quit [Ping timeout: 480 seconds]
20:49-!-glx [] has quit [Quit: Bye]
21:07-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has quit [Ping timeout: 480 seconds]
21:36-!-Flygon [] has joined #openttd
21:36-!-Flygon is "Flygon" on #openttd
21:54-!-snail_UES_ [] has joined #openttd
21:54-!-snail_UES_ is "Jacopo Coletto" on #openttd
23:13-!-haudrauf [] has quit [Ping timeout: 480 seconds]
23:14-!-haudrauf [] has joined #openttd
23:14-!-haudrauf is "Haudrauf" on #openttd #frickelplatz @#ffod @#ffnord @#ffki @#ffhl @#ffhh @#fffl #cryptoparty @#ccchh
---Logclosed Fri Aug 17 00:00:09 2018