IRC logs for #openttd on OFTC at 2018-06-22
⏴ go to previous day
00:57:29 *** Thedarkb-X40 has joined #openttd
01:13:32 *** dihedral has joined #openttd
02:01:41 *** blathijs has joined #openttd
02:05:10 *** Supercheese has joined #openttd
02:12:57 *** snail_UES_ has joined #openttd
02:31:36 <ANIKTHOS> okey change the code and now there are no bugs !?!?!? but i do nto get why the bug was there to begin with grrrrr
02:50:20 *** tokai|noir has joined #openttd
02:50:20 *** ChanServ sets mode: +v tokai|noir
03:06:41 *** mikegrb_ is now known as mikegrb
04:02:58 *** Supercheese has joined #openttd
04:31:23 <ANIKTHOS> anyone here or all sleeping??
04:35:37 *** muffindrake1 has joined #openttd
04:39:33 *** Mahjong2 has joined #openttd
04:45:43 <ANIKTHOS> good night all see you tomorow
05:01:53 *** ToffeeYogurtPots has quit IRC
05:03:37 *** ToffeeYogurtPots has joined #openttd
06:27:02 *** Supercheese has joined #openttd
07:30:18 *** testuser123 has left #openttd
07:51:03 *** planetmaker_ has joined #openttd
08:16:11 *** andythenorth has joined #openttd
08:55:17 *** andythenorth has joined #openttd
09:03:40 *** Flygon_ has joined #openttd
09:18:16 *** chomwitt has joined #openttd
09:24:06 *** gelignite has joined #openttd
09:39:56 *** WWacko1976-work has joined #openttd
10:07:45 *** sim-al2 is now known as Guest6046
10:07:45 *** sim-al2 has joined #openttd
10:14:19 *** andythenorth has joined #openttd
10:21:57 *** chomwitt has joined #openttd
10:23:56 *** andythenorth has joined #openttd
10:51:23 *** ToffeeYogurtPots has quit IRC
10:51:50 *** ToffeeYogurtPots has joined #openttd
11:19:41 *** Thedarkb has joined #openttd
11:29:24 *** andythenorth has joined #openttd
13:01:37 *** Wacko1976 has joined #openttd
13:45:07 <peter1138> Well, that's odd. I managed to get 4 portions - 4 days - out of a big bag of crisps. They normally go in one sitting...
13:46:35 <Eddi|zuHause> that never happens
13:47:31 <Eddi|zuHause> with snacks like that, the bag size doesn't matter. as soon as it's open, it's empty
14:08:39 <planetmaker> dihedral, I give that bag a half-life time of about 60 minutes :D
14:08:48 <andythenorth> planetmaker: good point
14:08:50 <Eddi|zuHause> i mean, when i buy such stuff i must switch my mental heuristic from "look at the kg price and pick the lower one" to "pick the smaller bag, even though the per kg price is higher"
14:08:57 <andythenorth> and we have lots of new contributors
14:09:11 <planetmaker> yep, that's why :)
14:09:13 <andythenorth> so glad we ditched flyspray and forums
14:09:37 <Eddi|zuHause> nobody ditched the forum... except some ragequitters
14:09:47 <planetmaker> they still are there. But yeah, seems that switching to github did quite a lot to put some new life to OpenTTD development
14:09:59 <andythenorth> we ditched them as the pipeline for development
14:10:04 <planetmaker> Quite happy to see that.
14:10:05 <andythenorth> we did it by accident years ago
14:10:15 <andythenorth> we just never mentioned it :P
14:11:10 <andythenorth> 'Development' should be 'Patchpacks' ;)
14:11:32 <andythenorth> and 'Suggestions' should just be shuttered
14:11:33 <Eddi|zuHause> github tickets are fine for deeper one-to-one or one-to-few communications, but forums are better for things that need a larger audience
14:12:16 <andythenorth> can't we just leave the larger audience to reddit?
14:12:33 <Eddi|zuHause> you cannot have a "we need some input to find a railtype consensus" discussion on github
14:12:45 <Eddi|zuHause> i have never used reddit
14:13:14 <andythenorth> I think the forums are incredibly poor for any form of consensus
14:13:35 <Eddi|zuHause> that may be true, but github is definitely worse
14:14:20 <andythenorth> I don't have a solution for consensus, except irc
14:14:41 <Eddi|zuHause> "democracy is the worst type of government. except for all others"
14:14:55 <andythenorth> I also think forums are accidentally quite toxic
14:15:05 <andythenorth> specifically tt-forums
14:15:27 <Eddi|zuHause> nah, you haven't seen really toxic forums then :p
14:15:39 <andythenorth> but they're usually deliberate
14:16:34 <Eddi|zuHause> i've gotten threatening hatemail from posting into a forum once
14:28:35 <peter1138> dihedral, cheetos are not crisps, they're just disgusting.
14:29:40 *** TheMask96 has joined #openttd
14:30:27 <peter1138> tt-forums is very tame.
14:30:30 <dihedral> peter1138, but the size of the bag....
14:30:49 <dihedral> wanna see you finish that off in one sitting
14:31:10 <peter1138> I'm slim these days :p
14:31:12 <dihedral> apparently pm only needs 30 minutes
14:31:38 <peter1138> He said 60 minutes to get through half of it.
14:37:17 <Eddi|zuHause> i think the problem is the other half :p
14:37:41 <Eddi|zuHause> also, i don't really have a clue what cheetos taste like
14:38:42 <peter1138> Cheesey, but not good cheesey.
14:48:47 *** snail_UES_ has joined #openttd
14:55:51 <Eddi|zuHause> i don't actually like cheese
14:56:10 <andythenorth> cheese economy in FIRS?
14:56:46 <Eddi|zuHause> except when it was heated, like on pizza and stuff
15:05:40 <peter1138> Plenty of nice cheeses that wouldn't work on a pizza.
15:08:22 <peter1138> Damn, now I want a nice cheese platter.
15:08:47 <peter1138> gruyere is perfect for pizza, apparently. oops.
15:12:00 <andythenorth> peter1138 -> sainsburys
15:17:07 <peter1138> They have a good range of cheese?
15:19:22 <dihedral> they have good forzen pizza :-D
15:35:05 <LordAro> peter1138: am without bike until tuesday :(
15:41:34 <peter1138> Also, just add more :D
15:41:39 *** supermop_work has joined #openttd
15:44:00 <andythenorth> that's admin failure
15:45:24 <LordAro> peter1138: in t'shop get its drivechain replaced
15:45:35 <LordAro> i don't know terminology
15:46:00 <LordAro> chain, cassette, rear dereilleur, large chainwheel
15:46:41 <peter1138> If you wore out a chainring, the chain was long gone :p
15:46:49 <LordAro> but i've not been spending that money on a car, so eh
15:47:09 <peter1138> This is why you have a cheapish steel bike on the side.
15:47:21 <LordAro> but it has no rear brake
15:47:31 <peter1138> Oh. Well it needs to be rideable!
15:47:59 <LordAro> and there's a distinct possibility i might be able to get rid of it this weekend anyway
16:03:32 *** Alberth has joined #openttd
16:03:32 *** ChanServ sets mode: +o Alberth
16:04:05 <peter1138> Rid of it? You need N+1 bikes!
16:04:31 <peter1138> Hmm, maybe I should do a ride this evening.
16:04:44 <peter1138> Or merge NRT when andythenorth updates it.
16:06:51 *** ANIKHTOS has joined #openttd
16:07:21 <ANIKHTOS> hello how are you today??
16:15:31 <ANIKHTOS> damn i delete yesterday the files i have changed lol now i have to make them again
16:16:30 <nielsm> and you wouldn't have that problem
16:22:11 <ANIKHTOS> nielsm can i use printif to see if a function is executed??
16:23:26 <ANIKHTOS> printf(functionname?/) or printif only owrks for variables??
16:23:55 <nielsm> just put a printf call as the first thing in the function
16:24:06 <nielsm> printf("now inside thefunction");
16:25:08 <ANIKHTOS> i have the feeling that it skips a function
16:27:02 <LordAro> i can guarantee you have not found a compiler bug
16:27:07 <LordAro> it is an issue in your logic
16:29:09 <ANIKHTOS> if ( _settings_game.game_creation.slow_time_factor==_dayn){ this line
16:29:29 <ANIKHTOS> and this line if (_dayn== _settings_game.game_creation.slow_time_factor){
16:29:36 <ANIKHTOS> whats the difference lordara??
16:29:54 <ANIKHTOS> one makes the game to bug and not execute code
16:29:59 <ANIKHTOS> and the other is okey
16:30:19 <ANIKHTOS> when i runt the code with ine lien i have bug
16:30:25 <ANIKHTOS> when i run the code with the other line
16:30:43 <ANIKHTOS> no other change only this line
16:30:54 <Alberth> which two revisions do you talk about?
16:31:33 <ANIKHTOS> if (_dayn== _settings_game.game_creation.slow_time_factor){ this line make the gane to bug
16:31:34 <Alberth> I am sure you are convinced that's the only change, but it defies all logic
16:31:50 <Alberth> I need 2 revision hashes in a git repo
16:32:15 <Alberth> and proof that one of them has a problem and the other one has not
16:33:32 <ANIKHTOS> okey how i make them in the git the 2 hashes
16:34:14 <Alberth> verify a version has a problem, commit, change code, verify there is no problem, commit
16:34:55 <Eddi|zuHause> Alberth: that's missing a bunch of steps like "install git", and "make a clone" :p
16:35:50 <ANIKHTOS> well git is isntalled witht he compiller packages
16:36:11 <Alberth> however I don't see how you are going to get "no problem" after this change
16:37:05 <ANIKHTOS> well i am not gettign the issue any more
16:37:20 <ANIKHTOS> and thats what i am askign all this days
16:37:39 <ANIKHTOS> the change i amke ought to change nothign but i see a difference in the game
16:37:55 <Eddi|zuHause> so what happens if you change it back?
16:38:11 <Alberth> what change are you making exactly
16:38:33 <Alberth> not on chat, in a repository
16:38:55 <ANIKHTOS> can i upload all change file sin the forum???
16:39:06 <ANIKHTOS> the 2 date.cpp will be changed only by 1 line
16:39:06 <Eddi|zuHause> ANIKHTOS: we need the full code, that is easiest with git
16:39:24 <ANIKHTOS> all changed files are not all the code??
16:39:33 <Alberth> you cleaned the project and did a full rebuild between the changes?
16:40:13 <ANIKHTOS> clean ?? delete everythign and try again??
16:40:14 <Alberth> you are not running a compiler cache?
16:40:26 *** WWacko1976-work has quit IRC
16:40:30 <nielsm> clean means "make clean"
16:40:34 <Alberth> just remove all built artefacts, and build it again
16:40:47 <nielsm> that's a special make command that removes the compiled files but keeps all source code
16:41:02 <nielsm> to make sure nothing is unintentionally left behind from an old compile
16:41:10 <Eddi|zuHause> all the the temporary files that the compiler creates
16:41:59 <ANIKHTOS> okey wait i will 2 2 fresh compiles
16:42:09 <ANIKHTOS> 1 with one code and 1 witht he other code
16:43:08 <Alberth> result shouldn't change, but it does, so it's about elimination possible other sources of the error
16:45:06 <ANIKHTOS> so is it recomended to use the make clean every time??
16:45:17 <ANIKHTOS> or compile from cache thats faster??
16:46:36 <nielsm> a compiler cache can save time recompiling, but you need to be really careful if usince one since it can introduce errors
16:47:38 <andythenorth> peter1138: update what again?
16:48:06 <ANIKHTOS> so not recomended go the slow way
16:49:05 *** Wormnest has joined #openttd
16:50:34 <peter1138> andythenorth, fix the conflict.
16:50:49 <andythenorth> oh such conflicts :)
16:51:43 <andythenorth> "Was the merge successful [y/n]?"
16:52:41 <andythenorth> REMOTE is more likely to be correct, no?
16:54:28 <andythenorth> can't resolve the road_gui.cpp conflicts
17:05:56 <peter1138> For the language change, you want the newer text.
17:06:58 <peter1138> For road_gui.cpp you need to apply both sets of changes.
17:08:17 <peter1138> Specifically reapply the "_cur_roadtype_identifier.Pack() << 5 | (_ctrl_pressed << 2)" change to the new code, and make sure DDSP_CONVERT_ROAD is still in place.
17:10:11 <nielsm> peter1138 what's so bad about auto? :(
17:11:36 <peter1138> I realise that's kinda the point.
17:11:46 <peter1138> You don't have to care. But we care ;)
17:14:25 <LordAro> depends on the context, i'd say
17:14:42 <LordAro> shouldn't use auto if there's no reference to the type anywhere
17:15:24 <LordAro> but if it's something like a constructor, or the type really doesn't matter (loop iterators)...
17:15:45 <nielsm> auto bar = foo + 1; // will "obviously" be same type as foo
17:16:37 <andythenorth> where is Wolf? :P
17:16:41 <DorpsGek> andythenorth: Wolf01 was last seen in #openttd 18 hours, 45 minutes, and 37 seconds ago: <Wolf01> 'night
17:23:29 <nielsm> peter1138 how about lines like this? auto item_size = GetStringBoundingBox(STR_FRAMERATE_VALUE);
17:23:52 <nielsm> IMO that's sufficiently clear
17:24:20 <peter1138> 2. We don't do that anywhere else.
17:24:58 <nielsm> auto caption = this->GetWidget<NWidgetLeaf>(WID_FRW_CAPTION);
17:25:08 <nielsm> in that I'd be repeating NWidgetLeaf as the type
17:30:05 * nielsm avoids the problem in a different way
17:31:43 <ANIKHTOS> great i lost the files and now i can not compile the files i have are missing some changes grrrrrr
17:32:01 <Alberth> maybe you want a BaseWidget :)
17:33:16 <Alberth> widgets are extended with their functionality, but in general you should use the more generic type, imho
17:33:41 <Alberth> learn to use git, ANIKHTOS ?
17:34:01 <nielsm> in this case it's SetDataTip I need from the control
17:35:01 *** HerzogDeXtEr has joined #openttd
17:47:30 *** HerzogDeXtEr has joined #openttd
17:57:30 *** Progman has joined #openttd
17:58:26 <Eddi|zuHause> LordAro: ok, that clarification is necessary :p
18:00:41 *** Thedarkb has joined #openttd
18:04:20 <ANIKHTOS> i will go to the corner to cry see you all tomorow now i have to figure otu what changes i doen last 2 days :-(
18:04:50 <Eddi|zuHause> well, he could have spent these 2 days learning git
18:05:55 <Eddi|zuHause> also, usually the second implementation is better anyway. under the assumption that you learned how to avoid the mistakes from the first try
18:06:56 *** Progman_ has joined #openttd
18:11:16 *** Progman_ is now known as Progman
18:19:29 *** MasterDesaster has joined #openttd
18:21:20 <MasterDesaster> Hi, I'm currently having an issue with OpenTTD (1.8.0) but can't really find a solution. If I try to pan the minimap everything goes crazy and I'm stuck in a corner of the map.
18:21:36 <MasterDesaster> If anyone would have an idea that would be pretty neat.
18:22:02 <MasterDesaster> The one thread google shows me doesn't have a solution that seems to work for me.
18:22:03 <Eddi|zuHause> uhm, that was meant to be solved?
18:22:25 <LordAro> not fixed in any released version, iirc
18:22:53 <LordAro> the workaround is to use arrowkeys
18:23:39 <MasterDesaster> I'm able to scroll the big regular game map but the minimap (the one that shows industries, all the towns with names etc.) is bugging out.
18:23:58 <MasterDesaster> I'll give a nightly build a shot.
18:24:28 <LordAro> it occurs to me a prebuilt nightly might not work either...
18:26:20 *** frosch123 has joined #openttd
18:27:51 <MasterDesaster> Nope, nightly has the same bug for me. Guess I'll just work around it for now then.
18:29:00 <MasterDesaster> Could/Should I report it in some way?
18:30:17 <Eddi|zuHause> open a ticket at github.openttd.org
18:31:18 <MasterDesaster> Will do. I'll try to figure out some steps to make it reproduceable. Seems like it migt actually be an issue with my machine ... all of the sudden it's working in the nightly - most of the time.
18:33:45 <Eddi|zuHause> iirc we had some issues a few months ago, where windows changed the way mouse pointer movement was controlled. because when scrolling, we need to know how much the pointer moved, but also move it back to the original position
18:37:14 <MasterDesaster> I'll try to get some testing with a regular mouse. I'm currently on a laptop so the touchpad (dirvers) might be doing funky stuff.
18:38:03 <MasterDesaster> Thanks for your help and input!
18:42:31 <peter1138> Current nightly is out of date.
18:43:02 <nielsm> are you on windows, mac, linux?
18:43:39 *** synchris has joined #openttd
18:44:35 <MasterDesaster> Windows 10 1607 (Enterprise LTSB)
18:44:41 <nielsm> and you're using a touchpad to scroll?
18:44:56 <nielsm> with two-finger gesture scrolling, or click-drag panning?
18:46:12 <MasterDesaster> Those gestures should be off I'll to find them again. ... Looks like the menu for that is currently missing for some reason.
18:47:22 <MasterDesaster> And I can't currently use them to scroll in other programs.
18:48:32 <nielsm> I don't think OTTD does anything to specifically intercept multitouch gestures on windows, just take in "translated" mouse wheel style messages
18:48:47 <MasterDesaster> But it's a good point. After seeing that it kind of works sometimes it's one of the suspicions that popped up for me that the touchpad gestures might be funky. hence the idea to test with a regular mouse
18:49:13 <nielsm> maybe I should dig out my own laptop for a bit...
18:49:34 <nielsm> or try with that HTPC wireless-keyboard-with-touchpad I have around
18:50:59 <MasterDesaster> Don't do too much work. I'm probably some kind of special snow flake.
18:52:01 <Eddi|zuHause> MasterDesaster: doesn't mean the issue shouldn't be isolated and hopefully fixed
18:53:01 <nielsm> okay two-finger gestures in the main view definitely just do zooming for me
18:54:11 <nielsm> but can't reproduce any problems with scrolling or moving around the minimap
18:58:21 <MasterDesaster> Changing locaiton, be back in a bit
18:59:56 *** MasterDesaster has quit IRC
19:30:51 <nielsm> peter1138: Have you been able to reproduce any assert(newpoint.x <= lastpoint.x) errors? I mean I could take the line out and the worst that would happen was some visual glitching in a couple corner cases, but fixing it properly is preferable...
19:35:02 <LordAro> nielsm: ooh, i managed that last night - i opened a couple of graphs, turned on fast forward, then opened the sound graph
19:42:18 <LordAro> there was something weire about the graphs on fast forward as well, like it wae only using half the width of the graph to display it
19:42:39 <nielsm> that's because it records 512 points of data
19:42:54 <nielsm> if more than that is required to cover two seconds, it can't render it all
19:55:43 <nielsm> but I do reproduce the assert with the sound graph
19:57:07 <nielsm> hmm is there a good way to get a long list of values out of the debugger? :(
19:57:30 <nielsm> I'd really like to fetch the durations and timestamps arrays into excel and look at the numbers
19:59:56 <Alberth> write a function that prints them or writes them to file, call that function from the debugger
20:01:10 <Alberth> maybe you can tune the output of the debugger as well
20:08:31 *** MasterDesaster has joined #openttd
20:08:36 *** Cthulhux has joined #openttd
20:08:54 <nielsm> made a loop in the code that dumps it all to console
20:12:50 *** MasterDesaster has quit IRC
20:13:28 *** ANIKHTOS has joined #openttd
20:14:02 <ANIKHTOS> i foudn the files only lost last night changes which is nto that important
20:14:20 <ANIKHTOS> now make the 2 clean compiles
20:22:22 *** ToffeeYogurtPots has quit IRC
20:24:51 *** ANIKHTOS has joined #openttd
20:25:22 <ANIKHTOS> opera auto update grrr does anyone use opera portable?? and knows how to disable auto update??
20:27:43 *** andythenorth has joined #openttd
20:28:11 *** supermop_work has joined #openttd
20:29:40 *** sla_ro|master has joined #openttd
20:32:11 <nielsm> I'm staring at the numbers and everything looks fine... maybe it's a race?
20:42:51 *** andythenorth has joined #openttd
20:46:09 <ANIKHTOS> i am making a mess in my github account
20:55:36 <Alberth> that's normal while learning git
20:56:45 <andythenorth> I don't understand how to do a merge without doing a merge
20:58:33 *** gelignite has joined #openttd
20:59:04 <Alberth> git merge --ff-only ?
20:59:12 <ANIKHTOS> okey i make an empty repository
20:59:50 <Alberth> or git rebase could also do 'merge'
20:59:59 <nielsm> andythenorth, git pull --rebase ?
21:00:15 <andythenorth> yeah but I have conflicts
21:00:28 <andythenorth> it's probably all fine
21:00:35 <Alberth> that will then happen with any option you pick
21:01:00 <andythenorth> the problem I see
21:01:08 <andythenorth> is that I have to make manual edits to resolve the conflict
21:01:14 <andythenorth> but NRT needs to be a single commit
21:01:44 <Alberth> 1 fix conflict 2 rebase -i to fix the commit sequence
21:09:59 <glx> and of course don't push before the commit sequence is fixed
21:19:39 *** Smedles has joined #openttd
21:25:18 *** Smedles_ has joined #openttd
21:32:18 <nielsm> okay, the bug was integer overflow
21:33:54 <nielsm> in my graph drawing code
21:36:19 <ANIKHTOS> good you solve it :-_
21:36:56 <nielsm> multiplying values in the range around 10-20 million with 200 will yield values in the 2 to 4 billion range, which overflows 32 bit integers
21:37:03 <nielsm> obvious in retrospect :)
21:39:22 <ANIKHTOS> in retrospective a lot is obvious th eproblem is when you are trying to do smehtign there are no obvious
21:43:51 <LordAro> nielsm: you've taken a look at the warnings under gcc, right?
21:44:18 <nielsm> going to check those out when the current CI builds finish
21:45:40 <LordAro> nielsm: ah, i see what you mean about the graph width
21:45:48 <LordAro> still looks really weird though, like it's broken
21:45:54 <LordAro> could it not scale accordingly?
21:46:15 <nielsm> yeah I could try to decrease horz scale to 1 second if data is really tight
21:54:45 <nielsm> any chance of moving the VS projects to use /W4 instead of /W3 ?
21:57:28 <nielsm> hmm it does make a lot of noise... :s
21:59:10 <nielsm> that's with /Wall enabled
22:00:46 <LordAro> that's surely just recompiling framerate_gui.cpp
22:00:52 <LordAro> rather than everything :p
22:01:57 <nielsm> I like that it even produces warnings from the system headers
22:05:55 <Alberth> padding warnings are a bit silly
22:05:56 <LordAro> about adding padding too, the worst of the warnings
22:16:29 <nielsm> hopefully this is better...
22:37:18 *** Smedles has joined #openttd
22:56:13 <nielsm> hm one more warning from clang and gcc, pushing a fix for it next time I have other changes anyway
23:05:55 *** sim-al2 has joined #openttd
23:06:21 <ANIKHTOS> re writing my code to use less variables
23:23:33 *** andythenorth has joined #openttd
continue to next day ⏵