Back to Home / #openttd / 2016 / 05 / Prev Day | Next Day
#openttd IRC Logs for 2016-05-28

---Logopened Sat May 28 00:00:34 2016
00:12<Eddi|zuHause>someone should slap me every time i think 54 divided by 9 is 8 instead of 6...
00:14<Eddi|zuHause>i think my brain is confusing it with 56 divided by 7, which is 8
01:02-!-roidal [] has joined #openttd
01:29-!-Snail [] has quit [Quit: Snail]
02:00-!-Biolunar [] has joined #openttd
02:45<@Rubidium>Eddi|zuHause: you know that the last digit of the product plus the last digit of the multiplicand have to result in the last digit of the sum being 0 when using multiplier 9? 1x9=9 (1+9=10), 4x9=36 (4+6=10), 13x9=117 (3+7=10), 10*9=90 (0+0=0)
02:47<@Rubidium>so in that case you know 4+x=10 -> x=6
02:53-!-Japa [~Japa@] has joined #openttd
03:26-!-Progman [] has joined #openttd
03:27-!-Hiddenfunstuff [] has joined #openttd
03:42-!-Japa [~Japa@] has quit [Quit: Leaving]
03:45-!-Myhorta [] has joined #openttd
03:54-!-Myhorta [] has quit [Ping timeout: 480 seconds]
04:09-!-Wolf01 [] has joined #openttd
04:29-!-FLHerne [] has joined #openttd
04:45-!-Quatroking [] has joined #openttd
04:49<Wolf01>where's V?
04:51<TrueBrain>he is scared of you
04:51<Wolf01>nah, too much hype
04:55<Wolf01>"When the player is on the rails, the signals are reserved by the circuit network, and the train has to wait until the player leaves." ha!
04:56<Wolf01> this is really cool
04:56<TrueBrain>awh, that is too bad
04:56<TrueBrain>those deaths were so much fun!
04:58<Wolf01>we should make level crossings acting like a signal too, when a vehicle is over the crossing the trains stops, so no more wasted vehicles and everybody is happy
04:58<TrueBrain>I LIKE DISASTER! :D
04:59<Wolf01>make it toggleable XD
04:59-!-Samu [] has joined #openttd
04:59<Wolf01>I usually put a PBS signal if I really have to build a level crossing, but it is still useless with double tracks
05:06*Rubidium agrees with Wolf01. More unrealistic features!
05:06<@Rubidium>(like cargodist)
05:23<Samu>the author of uTorrent was the first author of OpenTTD?
05:35-!-FLHerne [] has quit [Ping timeout: 480 seconds]
05:36-!-rahtgaz [] has joined #openttd
05:48-!-Stimrol [~Stimrol@] has quit [Remote host closed the connection]
05:50-!-Stimrol [~Stimrol@] has joined #openttd
06:04-!-rahtgaz [] has quit [Read error: Connection reset by peer]
06:26-!-ConductCat [] has quit [Read error: Connection reset by peer]
06:26-!-ConductCat [] has joined #openttd
06:28-!-NoShlomo [~NoShlomo@] has joined #openttd
06:32-!-roidal_ [] has joined #openttd
06:39-!-roidal [] has quit [Ping timeout: 480 seconds]
06:42-!-Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has joined #openttd
06:42-!-mode/#openttd [+o Alberth] by ChanServ
06:45-!-gelignite [] has joined #openttd
06:55<Samu>*strrchr.c - find last occurrence of character in string * * Copyright (C) 2009-2010 Intel Corporation. All rights reserved.
06:56<Samu>i don't understand licenses sometimes
06:57<Samu>*Purpose: * defines strrchr() - find the last occurrence of a given character * in a string.
06:57<Samu>how can a source code be copyrighted?
06:58<@Alberth>it's a work made by someone, so that someone has copyright
06:59<@Alberth>in this case, that someone did that for "Intel Corp", so it has ownership
07:00<@Alberth>all source code you write is automatically copyrighted by you
07:02<@Alberth>it makes that I cannot claim I wrote that code
07:02<@Alberth>if I did, I'd be violating your copyright
07:03-!-kais58|AFK is now known as kais58__
07:05-!-roidal_ [] has quit [Ping timeout: 480 seconds]
07:06<Samu>it's using SSE 4.2 just to do this function
07:08<@Alberth>I am not surprised, tbh
07:08<@Alberth>Intel wants to show you should buy a CPU with SSE 4.2
07:12<@Alberth>programmer time is quite expensive, if you can buy a new computer to solve the problem, it's likely cheaper
07:13<@Alberth>even though it's crazy that you use strrchr at all if you're in a hurry :)
07:17-!-HerzogDeXtEr [] has joined #openttd
07:19-!-FLHerne [] has joined #openttd
07:22<Samu>the ridiculous amount of code written just to pass number 3
07:23<Samu>microsoft code
07:26<@Alberth>:o atoi is a nice function to write yourself
07:32<Samu>I need to write down my findings
07:32<Samu>in console, i typed startai wormai.3 - I don't have wormai with version 3 in my system, only 4 and 5.
07:33<Samu>what is supposed to happen?
07:34<Samu>let's see if i can interpret this
07:34<@Alberth>we already concluded docs are out of date, right?
07:35<Samu>hum... I need a guidance of some sort, to understand what's intended or not
07:36<Samu>it appears to be various interpretations to what's supposed to happen
07:37<@Alberth>yep, that's the two clock problem, if you have more than one clock, you don't know the time anymore
07:39<@Alberth>you should find a global aim or rule that makes sense
07:40<@Alberth>and use that aim as guide
07:41<Samu> . I've also found this during yesterday's research
07:43<Eddi|zuHause>Rubidium: yes, i know that. but that is rule is complicated enough not to use it on first glance at things
07:45<Samu>yexo fix, works for savegames, but the implementation changed the rules a bit for the console command
07:49<Samu>in short, it can't accomodate for both
07:52-!-FLHerne [] has quit [Quit: There's a real world out here!]
07:52-!-FLHerne [] has joined #openttd
07:54-!-LadyHawk- [] has joined #openttd
08:00-!-LadyHawk [] has quit [Ping timeout: 480 seconds]
08:00-!-LadyHawk- is now known as LadyHawk
08:08-!-frosch123 [] has joined #openttd
08:09<Samu>this is bad :(
08:09<Samu>start wormai.3 -> launches v5
08:10<Samu>save the game -> saves as wormai.3, saves version as v5
08:16<Samu>load the game -> loads v5, keeps wormai.3 in the name, loads v5 saved data with my fix
08:16<Samu>i really shouldn't have my fix implemented when I'm checking what it's currently doing
08:26<Samu>without my fix: load the game -> loads NULL at first attempt, loads v5 on second attempt, discards saved damage, prints a message in console about loading latest version, but without save data
08:26<Samu>damage? lol, data*
08:32-!-Supercheese [] has quit [Read error: Connection reset by peer]
08:32-!-Supercheese [] has joined #openttd
08:59-!-Samu [] has quit [Remote host closed the connection]
09:21-!-sim-al2 is now known as Guest2363
09:21-!-sim-al2 [] has joined #openttd
09:27-!-Guest2363 [] has quit [Ping timeout: 480 seconds]
09:43-!-Samu [] has joined #openttd
09:46<Samu>dbg: [script] The savegame has an AI by the name 'wormai.3', version 5 which is no longer available.
09:49-!-Progman [] has quit [Remote host closed the connection]
09:54-!-kais58__ is now known as kais58|AFK
09:55-!-kais58|AFK is now known as kais58__
10:13<Samu>i found another issue :(
10:14<Samu>start wormai.4 -> launches v4
10:14<Samu>savegame -> saves with name wormai.4 / version = 4
10:14-!-Wormnest [] has joined #openttd
10:14<Samu>loadgame -> loads v5, without data
10:14<Samu>2nd savegame -> saves with name wormai.4 / version = 5
10:17<Samu>2nd loadgame -> loads v5, without data
10:18<Samu>and from now on, it will save as wormai.4 / version = 5
10:18<Samu>hi Wormnest
10:18<Wormnest>hi Samu
10:19<Samu>i'm still examining this whole issue, to see what I can do
10:19<Samu>I'm too slow/stubborn about it but I'm getting somewhere eventually
10:20-!-andythenorth [~Andy@] has joined #openttd
10:20<Wormnest>Why not let it rest for a while it´s not like it´s a major issue
10:30<andythenorth>ha ha HEQS
10:30<andythenorth>stupid, but quite well drawn
10:30*andythenorth hasn’t used it in a game for years
10:38<@Alberth>always nice to rediscover your own work :)
10:39<Wolf01>... when it's good
10:39<@Alberth>it never is :p
10:39<Wolf01>btw o/
10:39<@Alberth>hi hi
10:39<@Alberth>natural progress of your abilities prevents that :)
10:41<Wolf01>not in my case, I have a nice superpower which implies regression of abilities, even while I'm doing the same work everyday
10:42<@Alberth>maybe do something new everyday instead :)
10:44<Wolf01>that's what I try to do, the downside is that I'm not able to finish anything :P
10:44<@Alberth>haha, true :)
10:44<@Alberth>your whole house filled with partially built lego models :)
10:46<Wolf01>some partially, some finished but neverhappy with them, so I change them a bit every now and then
10:46<Wolf01>but the problem is when that applies to the job :/
10:46<@Alberth>improving is a never ending process :)
10:47<@Alberth>luckily I get bored with my work once all the thinking is done
10:47<@Alberth>so I just want to finish it to get something else
10:49*andythenorth feels approximately same right now :P
10:50<andythenorth>I want to ship Road Hog 1.0 :P
10:50<@Alberth>hmm, I read that as Ship Road Hog :p
10:51<andythenorth>Road Squid Pony
10:51<@Alberth>something like that
10:52<andythenorth>I should just make one grf
10:52<andythenorth>with everything in it
10:54<Wolf01>hardly maintainable, may have lots of critical flaws
10:55<Wolf01>like my arocs semi trailer... it bends under the weight of 6 motors, I need to make it like one of the overweight transports
10:55-!-FLHerne [] has quit [Read error: No route to host]
10:56<Wolf01>and I need to finish it soon, then next exhibit is the first week of july
10:56<andythenorth>building big with Lego is…trouble :P
11:13-!-NGC3982 [] has quit [Quit: leaving]
11:16-!-rahtgaz [] has joined #openttd
11:19-!-rahtgaz [] has quit [Read error: Connection reset by peer]
11:19-!-rahtgaz [] has joined #openttd
11:28-!-Arveen [] has joined #openttd
11:32-!-Myhorta [] has joined #openttd
11:44-!-Guest2374 [] has joined #openttd
12:02-!-NoShlomo [~NoShlomo@] has quit [Quit: NoShlomo]
12:03-!-Gja [] has joined #openttd
12:11<Samu>I need an opinion
12:12<Samu>about that same question again, suppose I got wormai version 4 and 5 in the system, and I want to startai wormai.3
12:12<Samu>what is preferible to do?
12:12<Samu>load the latest version, or error out without loading anything?
12:13<Samu>the easy way to fix would be to error out without loading
12:14<Samu>the hard way to fix would be loading the latest version, but then I have to fix the name of the script
12:14<Samu>and this last part is still complicated for me
12:14<Samu>what is preferible?
12:34-!-HerzogDeXtEr1 [] has joined #openttd
12:36-!-NGC3982 [] has joined #openttd
12:39-!-HerzogDeXtEr [] has quit [Ping timeout: 480 seconds]
12:47-!-Biolunar [] has quit [Quit: leaving]
12:52-!-Snail [] has joined #openttd
12:54-!-glx [] has joined #openttd
12:54-!-mode/#openttd [+v glx] by ChanServ
13:15<Wormnest>Since you can only do that in the console I would go for a console error message
13:19-!-Guest2374 [] has quit [Quit: There's a real world out here!]
13:20-!-FLHerne [] has joined #openttd
13:24-!-Snail [] has quit [Quit: Snail]
13:26<Samu>I came to realize bool force_exact_match is only true when passed around via console startai command, no other function anywhere else passes it as true. This may simplify a lot of my research
13:26-!-Snail [] has joined #openttd
13:27<Samu>and only for AI scripts, not even GS scripts
13:27<Samu>makes it much easier
13:27-!-Snail [] has quit []
13:41-!-Progman [] has joined #openttd
13:42-!-Myhorta [] has quit [Ping timeout: 480 seconds]
14:06*andythenorth ponders
14:07<frosch123>pondering pondering?
14:07<andythenorth>pondering pixels
14:08<@peter1138>antialias them
14:09<andythenorth>might not be room
14:09<andythenorth>8bpp trucks at traditional 1x zoom :P
14:25-!-sla_ro|master [] has joined #openttd
14:26-!-tokai|noir [] has joined #openttd
14:26-!-mode/#openttd [+v tokai|noir] by ChanServ
14:33-!-tokai [] has quit [Ping timeout: 480 seconds]
14:51-!-Wolf03 [] has joined #openttd
14:51-!-Wolf01 is now known as Guest2387
14:51-!-Wolf03 is now known as Wolf01
14:52-!-Snail [] has joined #openttd
14:57-!-Guest2387 [] has quit [Ping timeout: 480 seconds]
15:11-!-michi_cc [] has quit [Remote host closed the connection]
15:17-!-andythenorth [~Andy@] has quit [Quit: andythenorth]
15:33-!-D-HUND [~debdog@2a02:8070:4584:4200:7a24:afff:fe8a:d04d] has joined #openttd
15:39-!-debdog [~debdog@2a02:8070:4584:4200:7a24:afff:fe8a:d04d] has quit [Ping timeout: 480 seconds]
16:03-!-Alberth [~alberth@2001:981:c6c5:1:be5f:f4ff:feac:e11] has left #openttd []
16:13-!-Myhorta [] has joined #openttd
16:16-!-andythenorth [~Andy@] has joined #openttd
16:17-!-Arveen [] has quit [Read error: Connection reset by peer]
16:36-!-michi_cc [] has joined #openttd
16:36-!-mode/#openttd [+v michi_cc] by ChanServ
16:44-!-rahtgaz [] has quit [Read error: Connection reset by peer]
16:45-!-rahtgaz [] has joined #openttd
17:00-!-andythenorth [~Andy@] has quit [Quit: andythenorth]
17:02-!-sla_ro|master [] has quit []
17:09-!-luaduck [] has quit [Quit: CHOO CHOO MOFOS]
17:09-!-luaduck [] has joined #openttd
17:29-!-Snail [] has quit [Quit: Snail]
17:51<Samu>how do I pass an updated value of force_exact_match from a child function to the parent function?
17:52<Samu>the parent force_exact_match is false, child does something that requires passing force_exact_match as true so that the parent function can handle it
17:55-!-kais58__ is now known as kais58|AFK
17:55-!-kais58|AFK is now known as kais58__
18:00-!-Wormnest [] has quit [Quit: Leaving]
18:18-!-kais58__ is now known as kais58|AFK
18:21-!-Progman [] has quit [Remote host closed the connection]
18:21-!-Hiddenfunstuff [] has quit [Quit: HydraIRC -> <- IRC with a difference]
18:33-!-Snail [] has joined #openttd
18:34-!-frosch123 [] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
18:44-!-Gja [] has quit [Quit: Going offline, see ya! (]
18:47-!-Wolf01 [] has quit [Quit: Once again the world is quick to bury me.]
18:50-!-kais58|AFK is now known as kais58__
18:51*NGC3982 has issues with Soap.
18:56-!-JGR_ [] has joined #openttd
18:57-!-JGR [] has quit [Ping timeout: 480 seconds]
18:57-!-JGR_ is now known as JGR
19:13-!-gelignite [] has quit [Quit:]
19:14-!-Biolunar [] has joined #openttd
19:14<Samu>just finished part of the code
19:15<Samu>there's only 2 things that need fixing, out of so many possibilities
19:16<Samu>out of 12 possible cases
19:16<Samu>10 behave as I intend them to
19:18<argoneus>>warcraft 3 was 13 years ago
19:18<argoneus>. . .
19:19<Samu>replicating the case I have trouble
19:20<Samu>i have a savegame with wormai.5 in the name, and with version 5, but I load it on a system that only has wormai version 4 installed
19:21<Samu>the intention is to make it use the latest available wormai on the system, and discard the saved data on the savegame
19:21<Samu>in other words, make it load wormai version 4, but not use the save data which was for v5.
19:22<NGC3982>argoneus: Oh my.
19:22<Samu>however, it's not doing that. What's doing is starting a random available AI on the system
19:23<Samu>The system still got a wormai, so I don't want it to load a random one
19:24<Samu>replicating the case #2 I have trouble
19:25<Samu>i have a savegame with wormai.4 in the name, and with version 4 data saved, but I load it on a system that only has wormai version 5 installed.
19:25<Samu>the intention is to use the latest compatible version of wormai that can load that data
19:26<Samu>wormai version 5 can load it
19:27<Samu>the system actually does this, but it needs to update the name from wormai.4 to wormai, because the system does not have version 4 installed
19:27<Samu>and it's not updating it :(
19:28<Samu>the name is important to preserve saving and loading of the correct data
19:30<Samu>if I were to save it afterwards, it would take wormai.4 as the name, but would be saving data from version 5. I can't let this to happen
19:31<NGC3982>Should Soap host always be if the server is on the local computer?
19:45-!-FLHerne [] has quit [Quit: There's a real world out here!]
19:46-!-FLHerne [] has joined #openttd
19:54-!-Biolunar [] has quit [Ping timeout: 480 seconds]
20:01-!-Quatroking [] has quit [Read error: Connection reset by peer]
20:06-!-Samu [] has quit [Ping timeout: 480 seconds]
20:07-!-FLHerne [] has quit [Remote host closed the connection]
20:33-!-smoke_fumus [~smoke_fum@] has joined #openttd
20:43-!-Snail [] has quit [Quit: Snail]
20:47-!-rahtgaz [] has quit [Read error: Connection reset by peer]
20:54-!-Snail [] has joined #openttd
21:37-!-Myhorta [] has quit [Ping timeout: 480 seconds]
21:59-!-kais58__ is now known as kais58|AFK
22:16-!-kais58|AFK is now known as kais58__
23:11-!-HerzogDeXtEr1 [] has quit [Read error: Connection reset by peer]
23:12-!-glx [] has quit [Quit: Bye]
23:40-!-Snail [] has quit [Quit: Snail]
---Logclosed Sun May 29 00:00:36 2016