--- Log opened Sun Mar 09 00:00:17 2014 --- Day changed Sun Mar 09 2014 20140309 00:00:17< Soliton> aquileia: as for the curly braces, i'd always use them. less room for confusion (like in apple's the last security vulnerability). 20140309 00:02:52< Aishiko_laptop> Soliton, I agree, plus it makes it eaiser to add other tasks and not have to worry about the {} as they are already there you just plop you statements between them knowing it'll go off when intended 20140309 00:05:39< aquileia> Soliton, Aishiko_laptop: So I should convert that to http://pastebin.com/gqKCR8ha ? 20140309 00:07:50 * Soliton nods. 20140309 00:13:00< aquileia> the version for paste will be even uglier... let's see... 20140309 00:17:07-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 252 seconds] 20140309 00:18:53-!- SigurdFD [~SigurdFD@24.154.98.89] has quit [] 20140309 00:20:28< Aishiko_laptop> aquileia, it might be "uglier" but in terms of readability and the next user to maintain your code it'll help 20140309 00:21:32< aquileia> Aishiko_laptop: No, I meant that expaning this to accept srings instead of chars will lead to worse readability 20140309 00:21:42< aquileia> *strings 20140309 00:21:57< Aishiko_laptop> ohhh yes 20140309 00:29:43< shadowm> mattsc: How could you confirm color cursors being slower on 1.11.11 if they are forcefully disabled on OS X since 1.11.8 or so? 20140309 00:31:27< mattsc> shadowm: that's because I am just making up stuff on that page at the moment. 20140309 00:32:08< mattsc> But thanks for the reminder, I had forgotten that. 20140309 00:33:09< mattsc> shadowm: but seriously, for now I am just wondering if this is the kind of information you are looking for (and the format). I will go over this over the next week or two and make sure that the information in it is actually correct. 20140309 00:33:36< shadowm> mattsc: mattsc Well, some don't have an attached bug report, some bug reports are closed. 20140309 00:34:33< mattsc> shadowm: right - see my last comment. If you are worried about the content, then ignore that I asked, I'm not anywhere close to being done with this yet. 20140309 00:34:38< shadowm> I'm not saying everything needs a bug report. 20140309 00:35:16< shadowm> For example, we don't use bugs to track packaging changes. However, it is possible that using newer cairo or pango would fix https://gna.org/bugs/?21649. 20140309 00:35:44< shadowm> Which, by the way, I can't remember whether you said it also affects OS X or not. If it does then that'd be something to add to that bug report. 20140309 00:35:47-!- cib0 [~cib@p20030067CE5CD701267703FFFEE75B84.dip0.t-ipconnect.de] has quit [Ping timeout: 245 seconds] 20140309 00:36:10< mattsc> It does affect OS X and I agree, I should add that. 20140309 00:36:43< shadowm> mattsc: As I said my intention is to have a list of OS X-specific bugs to include in 1.12.x release announcements (under Known Bugs) so we don't get duplicate reports from people who expected those to be fixed since 1.10.x. 20140309 00:37:13< shadowm> I also intend to hurl them at mordante so he can pester you or other OS X people as Wesnoth becomes runnable with SDL 2.0. 20140309 00:37:50< mattsc> Ooo, pester. That's the word crimson_penguin used also and what I should do to him! 20140309 00:38:01< shadowm> Well, 'hurl' may be a bit too strong. 20140309 00:38:57< shadowm> But we really should make sure problems on OS X are known and can be worked on, and for that we need useful bug reports. 20140309 00:39:38< shadowm> For example, I can't know for sure how useful https://gna.org/bugs/?13639 is since the last comments are from 2011 and on 1.9.x and on an older OS X version. 20140309 00:40:36< shadowm> In the end the goal is also to promote these fixes. "Hey, this thing that didn't work at all on 1.10.x and 1.12.x for OS X users is finally fixed in 1.14, rejoice!" 20140309 00:40:48< mattsc> That one is on my list to verify. 20140309 00:41:25-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has joined #wesnoth-dev 20140309 00:41:30< mattsc> Right - I agree. I just haven't had much time for this yet, so I just wanted to get a quick feeling for whether this is the kind of information you were thinking about. 20140309 00:41:55< mattsc> I'll keep working on this and let you/mordante/crimson_penguin know when I feel that the information is more complete and generally correct. 20140309 00:41:55< shadowm> It is. 20140309 00:42:22< Aishiko_laptop> mattsc, what do you think? http://www.tiikoni.com/tis/view/?id=8f45532 I'm still tracking down all the functions that need to be changed to make it work but its coming along don't you think? 20140309 00:43:25< mattsc> shadowm: I'll be traveling again for the next 12 days, so progress will be slow, but I'll do what I can. 20140309 00:43:40-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 00:44:53< mattsc> Aishiko_laptop: looks nice to me. I don't remember though what you said on whether this will be displayed if everything defaults to 20 gold too. 20140309 00:45:58< mattsc> Another question would be if this is too wide for Pandora (and possibly other portable devices). 20140309 00:46:39< shadowm> mattsc: Oh, take your time. 1.12.0 won't be here until ~May. 20140309 00:47:35< shadowm> mattsc, Aishiko_laptop The easiest way to tell is to start with -r 800x480 in the command line. 20140309 00:47:53< shadowm> That is the minimum resolution we support, specifically for the Pandora. 20140309 00:48:01-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 240 seconds] 20140309 00:48:30< Aishiko_laptop> mattsc, at the moment no clue on the Pandora (first I've heard it mentioned as a constraint) and second I'm thinking of ways to remove the cost list if its all the same 20140309 00:50:33< mattsc> shadowm: okay, sounds good. I'll slowly work on verifying that the information is correct then (rather than just claiming that I did; it's really mostly just a copy and paste job so far) and make it as complete as I can manage. 20140309 00:50:45< mattsc> And yes, if an important issue does not have a bug report, I'll open one. 20140309 00:50:52< Aishiko_laptop> at that resolution the word "gold" for all turns into "..." Perhaps renaming the Cost to Gold and removing the text from the field would work better? 20140309 00:52:00< aquileia> shadowm: boost algorithm isn't part of the dependencies, right? 20140309 00:52:47< aquileia> because this is the third time I think 'if I could use ...' 20140309 00:52:55< Aishiko_laptop> aquileia, I thought all of boost was 20140309 00:53:26< mattsc> Aishiko_laptop: if you look at the recruit dialog, the cost is a second row under the unit type. You should be able to do that here too and get rid of the extra column altogether. 20140309 00:53:29< shadowm> aquileia: No idea, but grepping for '#include Under CompilingWesnoth it is stated that not all of Boost is needed to compile 20140309 00:54:09< Aishiko_laptop> mattsc, alright 20140309 00:55:00< mattsc> Ooo, I just managed to reproduce the cursor offset from screen position bug! Now if I only knew how I did that... 20140309 00:55:48< shadowm> aquileia: http://pastebin.com/zjF2cg5f 20140309 00:56:24< aquileia> shadowm: I tried it myself and it seems that the algorithm/string lib is in 20140309 00:56:30< aquileia> thanks! 20140309 00:56:55< aquileia> at least one part of my code is now obsolete 20140309 00:57:47< Aishiko_laptop> boo for writing obsolete code that was recreating something already available..... YAY for simplify code! aquileia +1 20140309 00:58:53< aquileia> Sorry for the stupid question, but... I include it in my header not the .cpp, right? I saw lots of cases where libs were included in the latter 20140309 00:59:32< aquileia> Is there a reason for that? 20140309 00:59:40< shadowm> Preferably not in the header if you don't need to use that code in the header, since that increases compile times for other files including that header. 20140309 01:00:23< aquileia> ah, ok 20140309 01:00:33< shadowm> Unless inlining/performance or readability are a priority, most actual code (definitions rather than declarations) shouldn't be in the header. 20140309 01:00:53-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20140309 01:01:40< aquileia> I learned to pack all includes in my headers... but then, it was the standard C course and not high-performance computing 20140309 01:02:27< shadowm> As a corollary, our headers usually only include the bare minimum dependencies needed for the code in the header and the header only to make sense to the compiler. 20140309 01:02:53< aquileia> Good to know 20140309 01:03:09< shadowm> Which is why you may see some forward declarations (`class config;`, etc.) for some heavier stuff that doesn't need to be completely pulle din. 20140309 01:05:03< shadowm> Boost in general is a bad candidate for including in headers because it tends to include a large amount of code itself. 20140309 01:05:24-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Remote host closed the connection] 20140309 01:06:23< shadowm> This is especially evident if you are using BOOST_FOREACH and screw up the invocation and the compiler throws at you an error pointing at the correct file and line number... with the column number over 1000. 20140309 01:29:11-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has quit [Ping timeout: 252 seconds] 20140309 01:32:02-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has joined #wesnoth-dev 20140309 01:32:17-!- irker352 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20140309 01:46:11< iceiceice> yes, aquileia, if you take a compilers course you'll learn about all the difficulties of making large projects actually compile and all the tricks needed to make the whole process actually work 20140309 01:46:30< iceiceice> in a large project if you include everything at all times, the compiler will grind to a halt because the symbol database becomes huge 20140309 01:46:41< iceiceice> actually the whole reason you have header files is to try to fix this, 20140309 01:47:03< iceiceice> if you only need to include something for the implementation it goes in .cpp 20140309 01:47:21< iceiceice> if you need it for the definition (e.g. its a member variable or input /output to a method) it has to go in .h 20140309 01:48:01< iceiceice> i guess this is one thing that is going to be a bit harder in open source projects, 20140309 01:48:08< iceiceice> if lots of people work on the same code, 20140309 01:48:11< iceiceice> each one changing little pieces, 20140309 01:48:21< iceiceice> if you keep adding includes each time you change things 20140309 01:48:32< iceiceice> and someone else changes or "fixes" your code later but they dont remove your includes 20140309 01:48:36< iceiceice> then pretty soon we include everything 20140309 01:48:46< aquileia> iceiceice: thanks for the explanation 20140309 01:48:57< iceiceice> i remember noticing in the commit history that ESR has a bunch of commits that are just "removed unnecessary include" 20140309 01:49:36< aquileia> I guess something like this will happen as soon as C++11 is allowed - it doubles a lot of boost functionality 20140309 01:52:45< aquileia> iceiceice: Would you mind checking an if-statement whether it works? 20140309 01:53:06< aquileia> Only logicacally, not running code 20140309 01:53:08< iceiceice> ok 20140309 01:53:36< aquileia> http://pastebin.com/u8J4Mnni 20140309 01:54:09< aquileia> only the second half is interesting 20140309 01:54:55< aquileia> I want to say: If dot=true (meaning there is already a dot) and you find another one, return 20140309 01:55:31< aquileia> the interesting part is dot & (dot |= (ch != '.')) 20140309 01:57:12< Espreon> Hmm, what might this be? 20140309 01:57:15< shadowm> Uh, why bitwise stuff? 20140309 01:57:39< aquileia> why not? 20140309 01:58:07< shadowm> What you are tring to say is to return if the character isn't a digit or a dot, right? 20140309 01:58:07< aquileia> I need some training 20140309 01:58:33< aquileia> a bit more complicated: return if you find 2 dots 20140309 01:58:34< shadowm> (Also, is only_integer a private class field? We use an underscore suffix for those and protected fields.) 20140309 01:59:02< shadowm> aquileia: So, dot is a store for the previous character? 20140309 01:59:25< aquileia> shadowm: You don't know how much this explains... all those underscores suddenly make sense! 20140309 01:59:47< aquileia> dot is a bool storing whether a first dot was found 20140309 01:59:48< shadowm> http://wiki.wesnoth.org/CodingStandards#End_non-public_class_data_members_with_an_underscore 20140309 02:00:00< iceiceice> aquileia: i would suggest to use standard string methods rather than foreach here... 20140309 02:00:06< iceiceice> e.g. 20140309 02:00:14< iceiceice> text.find('.') 20140309 02:00:22< iceiceice> will give you position of first dot, 20140309 02:00:32< iceiceice> then i would search for antoher, 20140309 02:00:35< iceiceice> if there are two, reject i guess 20140309 02:00:49< aquileia> but then you have to pass it twice 20140309 02:00:51< iceiceice> if there is one or none, check that the other positions are digits 20140309 02:00:57< iceiceice> and parse 20140309 02:01:14< shadowm> I'd word it more like if(!isdigit(ch) && (only_integer_ || (previous_char == '.' && ch == '.')) { return; } else { previous_char = ch; } 20140309 02:01:15< iceiceice> but also there might be a string method "to_real" or something that woudl do this 20140309 02:01:18< shadowm> For readability. 20140309 02:01:55< iceiceice> "but then you have to pass it twice" i think it will actually only scan the string once as implemented, the string functions are implemented quite well 20140309 02:02:19< iceiceice> not like there is actual overhead to be concerned about anyways 20140309 02:02:35< iceiceice> w/e your way works too :) 20140309 02:03:07< shadowm> if(!isdigit(ch) || (only_integer_ && (previous_char == '.' && ch == '.')) { return; } else { previous_char = ch; } 20140309 02:03:11< shadowm> Actually. 20140309 02:04:54< shadowm> if(!isdigit(ch) || (ch == '.' && (only_integer_ || previous_char == '.'))) { return; } else { previous_char = ch; } 20140309 02:04:58< shadowm> Okay, now for real. 20140309 02:05:17< aquileia> shadowm: The problem is I don't want to check for two consecutive dots... as soon as the string contains two dots, it should stop 20140309 02:05:40< aquileia> Perhaps my current implementation haas this error? 20140309 02:06:32< aquileia> *has 20140309 02:06:34< shadowm> if(!isdigit(ch) || (ch == '.' && (only_integer_ || found_dot))) { return; } else { found_dot = ch == '.'; } 20140309 02:07:10-!- trewe [~trewe@108.28.54.77.rev.vodafone.pt] has quit [Quit: quit] 20140309 02:07:19< shadowm> I'm not a fan of bitwise stuff, but that's probably just because I seem unable to think bitwise. 20140309 02:08:11< shadowm> So whenever I encounter a bitwise operator somewhere unexpected I get up and run in circles around the room flailing my arms. 20140309 02:08:15< aquileia> shadowm: that would work, right. 20140309 02:09:35< AI0867> it solves the problem of dealing with bitwise stuff, not of understanding it ;) 20140309 02:10:34< AI0867> I've read the bitwise stuff and the if statements, and I still haven't figured out what you're trying to do 20140309 02:10:59< shadowm> It's not like the original bitwise form didn't use an if statement. 20140309 02:11:21< AI0867> return if you find consecutive periods? is 0.0.0 valid then? 20140309 02:11:45< shadowm> No, they don't need to be adjacent to each other. 20140309 02:12:07< AI0867> ah, right, missed the text in between 20140309 02:12:19< aquileia> I want to make sure it is a valid float 20140309 02:12:21< shadowm> As I understand it we are trying to validate decimal numbers (i.e. 0.43 is valid, 0..43 isn't, and neither is 0.43.). 20140309 02:12:31< aquileia> yes 20140309 02:12:40< shadowm> Now, I'm going to ask a stupid question. 20140309 02:13:15< Aishiko_laptop> why not just do a character by character search and if you find more then 1 "." then its kicked as being invalid? 20140309 02:13:17< AI0867> shadowm: it would seem your if statement returns whenever a period is found 20140309 02:13:20< shadowm> Isn't trying lexical_cast and catching the exception enough? 20140309 02:13:34< AI0867> do you want people to enter 1e5? 20140309 02:13:37< shadowm> AI0867: My last one doesn't. 20140309 02:13:52< shadowm> found_dot is assumed false prior to entering the loop. 20140309 02:13:55< AI0867> if(!isdigit(ch) || whatever) 20140309 02:14:03< aquileia> shadowm: I hate exceptions, perhaps that's the reason I prefer bitwise stuff 20140309 02:14:09< shadowm> iceiceice: Oh, right. 20140309 02:14:19< shadowm> I mean AI0867 , not iceiceice 20140309 02:14:40< shadowm> aquileia: We use exceptions extensively in Wesnoth. 20140309 02:15:54< shadowm> Doing something with strtod() and checking that the original string isn't all zeroes would work too. 20140309 02:16:48< shadowm> Bonus points for it figuring out the locale stuff on its own. 20140309 02:16:53< AI0867> stick it in a config::attribute and ask for the double value ;) 20140309 02:18:16< aquileia> but then I couldn't do all the integer/double duality in a simple way 20140309 02:20:32< iceiceice> +1 AI0867: then we dont duplicate code 20140309 02:20:55< iceiceice> compiler may even optimize alot of the overhead away most likely 20140309 02:20:58< shadowm> http://wiki.wesnoth.org/HackingWesnoth#Guideline_1:_Don.27t_prematurely_optimize 20140309 02:22:04< aquileia> But now that the code is written... only the locale argument really applies, I guess 20140309 02:25:00< aquileia> Oh, and there is something else: The string is later on inserted in a decimal number which shouldn't have double periods as well. With my implementation, I can reuse dot for this check 20140309 02:31:00-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 244 seconds] 20140309 02:31:49-!- csttam [~csttam@154.20.32.245] has joined #wesnoth-dev 20140309 02:32:36-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 02:34:57-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20140309 02:36:49-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 240 seconds] 20140309 02:37:43-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has quit [Ping timeout: 244 seconds] 20140309 02:38:16-!- spoffy [~spoffy@152.78.201.14] has joined #wesnoth-dev 20140309 02:39:16-!- csttam [~csttam@154.20.32.245] has quit [Remote host closed the connection] 20140309 02:42:39-!- Fred [~Fred@154.20.32.245] has joined #wesnoth-dev 20140309 02:42:59-!- Fred [~Fred@154.20.32.245] has quit [Client Quit] 20140309 02:46:16-!- ancestral [~ancestral@75-161-229-57.mpls.qwest.net] has joined #wesnoth-dev 20140309 02:46:18-!- ancestral [~ancestral@75-161-229-57.mpls.qwest.net] has quit [Remote host closed the connection] 20140309 02:48:25-!- spoffy [~spoffy@152.78.201.14] has quit [Ping timeout: 240 seconds] 20140309 03:08:31-!- Ivanovic_ [~ivanovic@x2f4aa57.dyn.telefonica.de] has joined #wesnoth-dev 20140309 03:08:31-!- Ivanovic_ [~ivanovic@x2f4aa57.dyn.telefonica.de] has quit [Changing host] 20140309 03:08:31-!- Ivanovic_ [~ivanovic@wesnoth/developer/ivanovic] has joined #wesnoth-dev 20140309 03:11:41-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has quit [Ping timeout: 252 seconds] 20140309 03:12:31-!- Ivanovic_ is now known as Ivanovic 20140309 03:42:49-!- happygrue [~happygrue@wesnoth/developer/wintermute] has quit [Ping timeout: 240 seconds] 20140309 04:01:08-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has quit [Quit: Ik ga weg] 20140309 04:05:36-!- fabi [~fabi@wesnoth/developer/fendrin] has quit [Quit: Konversation terminated!] 20140309 04:06:10-!- fabi [~fabi@88-134-21-163-dynip.superkabel.de] has joined #wesnoth-dev 20140309 04:06:10-!- fabi [~fabi@88-134-21-163-dynip.superkabel.de] has quit [Changing host] 20140309 04:06:10-!- fabi [~fabi@wesnoth/developer/fendrin] has joined #wesnoth-dev 20140309 04:16:47-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: Ciao] 20140309 04:19:20-!- EliDupree_ is now known as EliDupree 20140309 04:21:17-!- aquileia [52d4193f@gateway/web/freenode/ip.82.212.25.63] has left #wesnoth-dev [] 20140309 04:21:21-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 04:25:13-!- vorobeez [~quassel@85.142.148.12] has joined #wesnoth-dev 20140309 04:25:47-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 252 seconds] 20140309 04:34:05-!- enchilad1 [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20140309 04:34:18-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Write error: Broken pipe] 20140309 04:56:24-!- shadowm_desktop2 [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20140309 05:00:00-!- enchilad1 is now known as enchilado 20140309 05:04:01-!- shadowm_1esktop2 [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20140309 05:05:10-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Killed (barjavel.freenode.net (Nickname regained by services))] 20140309 05:05:10-!- shadowm_1esktop2 is now known as shadowm_desktop 20140309 05:06:38-!- shadowm_desktop2 [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 240 seconds] 20140309 05:24:22-!- iceiceice [~chris@cpe-66-108-20-80.nyc.res.rr.com] has quit [Excess Flood] 20140309 05:25:35-!- chris__ [~chris@cpe-66-108-20-80.nyc.res.rr.com] has joined #wesnoth-dev 20140309 05:51:46-!- Aishiko_laptop [~unknown@cpe-065-191-176-226.nc.res.rr.com] has quit [Ping timeout: 264 seconds] 20140309 05:57:45-!- tomreyn [~tomreyn@megaglest/team/tomreyn] has quit [Quit: tomreyn] 20140309 06:10:13-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 06:14:49-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 240 seconds] 20140309 06:23:22-!- vfktymrbq [~vfktymrbq@188.190.127.11] has quit [Remote host closed the connection] 20140309 06:32:08-!- Crab_ [~Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20140309 06:40:24-!- Crab_ [~Crab_@wesnoth/developer/crab] has quit [Quit: Crab_] 20140309 06:52:07-!- Crab_ [~Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20140309 06:58:47-!- Crab_ [~Crab_@wesnoth/developer/crab] has quit [Quit: Crab_] 20140309 07:11:15-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 07:15:38-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 240 seconds] 20140309 07:22:04-!- rohits134 [~rohit@117.195.10.250] has joined #wesnoth-dev 20140309 07:32:57-!- Gallaecio [~quassel@84.120.112.146.dyn.user.ono.com] has quit [Read error: Connection reset by peer] 20140309 07:35:54-!- Gallaecio [~quassel@84.120.112.146.dyn.user.ono.com] has joined #wesnoth-dev 20140309 07:43:53-!- irker331 [~irker@ai0867.net] has joined #wesnoth-dev 20140309 07:43:53< irker331> wesnoth: Chusslove Illich (Часлав Илић) wesnoth:1.12 910c3f941a93 / l10n-track: Unfuzzied images fuzzied due to optimization. http://git.io/JiAmfw 20140309 07:57:58-!- rohits134 [~rohit@117.195.10.250] has quit [Ping timeout: 240 seconds] 20140309 08:10:47-!- Delfinisko [~Delfinisk@46.229.231.211.vnet.sk] has joined #wesnoth-dev 20140309 08:18:43< Delfinisko> are any translators present? :D 20140309 08:29:02-!- trademark [~trademark@nsg93-8-88-175-59-164.fbx.proxad.net] has joined #wesnoth-dev 20140309 08:32:22-!- thunderstruck [~zaibotren@cpc13-sgyl31-2-0-cust696.18-2.cable.virginm.net] has joined #wesnoth-dev 20140309 08:39:58-!- cib0 [~cib@p20030067CE5CD701267703FFFEE75B84.dip0.t-ipconnect.de] has joined #wesnoth-dev 20140309 08:46:52-!- EdB [~edb@85.69.242.6] has joined #wesnoth-dev 20140309 08:49:20-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20140309 08:53:47-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has joined #wesnoth-dev 20140309 08:54:18< Delfinisko> hi btw :) 20140309 08:56:12-!- EdB [~edb@85.69.242.6] has quit [Quit: Konversation terminated!] 20140309 09:00:03-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 09:02:37-!- mjs-de [~mjs-de@p508CB5A6.dip0.t-ipconnect.de] has joined #wesnoth-dev 20140309 09:02:42-!- mjs-de [~mjs-de@p508CB5A6.dip0.t-ipconnect.de] has quit [Client Quit] 20140309 09:04:18-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 240 seconds] 20140309 09:10:30-!- akp_ [67157f4c@gateway/web/freenode/ip.103.21.127.76] has joined #wesnoth-dev 20140309 09:11:37< vorobeez> anyone knows wrese is code of wesnoth.path_find() function? 20140309 09:14:48-!- akp_ [67157f4c@gateway/web/freenode/ip.103.21.127.76] has quit [Ping timeout: 245 seconds] 20140309 09:18:52-!- lipkab [~lipkab@apn-151-0-80-19.vodafone.hu] has joined #wesnoth-dev 20140309 09:19:40< lipkab> shadowm: What do I need to do so that my application page appears under the SDL2 section rather than other ideas? 20140309 09:44:54-!- cib0 [~cib@p20030067CE5CD701267703FFFEE75B84.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 20140309 09:47:17-!- vernon [~quassel@catv-89-133-164-152.catv.broadband.hu] has joined #wesnoth-dev 20140309 10:00:01-!- mordante [~mordante@roadie.xs4all.nl] has joined #wesnoth-dev 20140309 10:00:01-!- mordante [~mordante@roadie.xs4all.nl] has quit [Changing host] 20140309 10:00:01-!- mordante [~mordante@wesnoth/developer/mordante] has joined #wesnoth-dev 20140309 10:00:17< mordante> servus 20140309 10:02:01-!- _8680_ [~8680@2002:4404:712c:0:c893:24e1:f165:342a] has quit [Ping timeout: 240 seconds] 20140309 10:03:11-!- _8680_ [~8680@2002:4404:712c:0:c9b2:adf:759f:ee07] has joined #wesnoth-dev 20140309 10:03:37-!- _8680_ is now known as Guest81088 20140309 10:07:15< mordante> aquileia since the spinner inherits from the integer selector it only needs integral values so no issues with a decimal separator 20140309 10:07:48< mordante> aquileia however if we need one allowing decimals the decimal separator _must_ be locale specific 20140309 10:08:59< mordante> aquileia we went to great lengths to make the UI properly translated, then forcing a decimal point as decimal separator is completely the wrong direction 20140309 10:13:41< mordante> aquileia you can't use boost algorithm, we require boost 1.41, that library has been introduced in 1.50 20140309 10:14:36-!- Delfinisko [~Delfinisk@46.229.231.211.vnet.sk] has quit [Ping timeout: 253 seconds] 20140309 10:26:27-!- stikonas [~gentoo@cpc18-sgyl27-2-0-cust35.18-2.cable.virginm.net] has joined #wesnoth-dev 20140309 10:26:27-!- stikonas [~gentoo@cpc18-sgyl27-2-0-cust35.18-2.cable.virginm.net] has quit [Changing host] 20140309 10:26:27-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20140309 10:29:57-!- vernon [~quassel@catv-89-133-164-152.catv.broadband.hu] has quit [Ping timeout: 244 seconds] 20140309 10:31:36-!- Delfinisko [~Delfinisk@46.229.231.211.vnet.sk] has joined #wesnoth-dev 20140309 10:31:53-!- aquileia [52d4193f@gateway/web/freenode/ip.82.212.25.63] has joined #wesnoth-dev 20140309 10:38:15< mordante> hi aquileia 20140309 10:38:26< mordante> aquileia, do you normally read the logs? 20140309 10:38:26< aquileia> hi mordante 20140309 10:38:40< aquileia> not all of it, but usually yes 20140309 10:38:50< aquileia> I'm doing it right now 20140309 10:39:16< Delfinisko> found anything interesting? :) 20140309 10:39:49< mordante> aquileia, ok as long as you look for your name 20140309 10:40:11< aquileia> just read it 20140309 10:40:39< aquileia> I'm wondering... other files include algorithm/string as well 20140309 10:42:01< aquileia> Can I access a 'locale' object in Wesnoth? 20140309 10:42:02< mordante> you asked for boost algorithm, is a standard c++ header 20140309 10:42:10< mordante> idem for 20140309 10:42:35< shadowm> The strings algorithm lib was there before the algorithms lib: http://www.boost.org/doc/libs/1_41_0/doc/html/string_algo.html 20140309 10:42:38< mordante> note the absence of .hpp in the name 20140309 10:43:36< mordante> shadowm, oh I thought aquileia referred to boost algorithm… /me is confused 20140309 10:44:07-!- irker331 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20140309 10:45:57< aquileia> filesystem.cpp:51:#include 20140309 10:46:13< shadowm> The point of confusion here is that they share a subdir name ("boost/algorithm"). 20140309 10:47:43-!- vernon [~quassel@catv-89-133-164-152.catv.broadband.hu] has joined #wesnoth-dev 20140309 10:48:08< aquileia> If there was a 'locale' object, I could use the corresponding isdigit() and decimal_point() 20140309 10:48:28< aquileia> Then, all input would be localized 20140309 10:48:53-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 10:49:02< mordante> aquileia, you read the part, where I said we don't need decimal separators for integers? 20140309 10:49:18< mordante> and there are locale objects in C++, we use them for translations 20140309 10:50:23< mordante> and I really doubt we ever need real value input in Wesnoth 20140309 10:50:27< aquileia> mordante: I know of their existence in C++, I wanted to know if they exist in Wesnoth 20140309 10:50:38-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 240 seconds] 20140309 10:50:51< aquileia> how can I access it? 20140309 10:51:18< aquileia> which identifier? 20140309 10:51:33< mordante> imbue the stream with the wanted locale, like normal in C++, let me see whether I can dig up an example 20140309 10:52:08< aquileia> mordante: That won't work for my paste function I guess 20140309 10:53:03< aquileia> Sorry, have to go - I'll read the logs 20140309 10:53:30-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 265 seconds] 20140309 10:55:01< mordante> aquileia, have a look in the language.cpp, there we set the global locale 20140309 10:55:43-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has joined #wesnoth-dev 20140309 10:56:05-!- eldruz [~eldruz@lav35-1-82-236-137-179.fbx.proxad.net] has joined #wesnoth-dev 20140309 10:58:42-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20140309 11:09:45-!- ykanarev [~ykanarev@78.81.70.234] has joined #wesnoth-dev 20140309 11:10:27-!- eldruz is now known as baron_ponchausen 20140309 11:10:39-!- baron_ponchausen is now known as eldruz 20140309 11:26:42-!- vernon [~quassel@catv-89-133-164-152.catv.broadband.hu] has quit [Read error: Connection reset by peer] 20140309 11:38:49-!- lipkab [~lipkab@apn-151-0-80-19.vodafone.hu] has quit [Ping timeout: 240 seconds] 20140309 11:41:19-!- Gaben [~quassel@94-21-161-70.pool.digikabel.hu] has joined #wesnoth-dev 20140309 11:43:00-!- Duthlet [~Duthlet@wesnoth/mp-mod/Duthlet] has joined #wesnoth-dev 20140309 11:58:47-!- sachith500 [~kvirc@112.134.247.21] has joined #wesnoth-dev 20140309 12:01:11< aquileia> mordante: Yeah, right, that's beautiful code there... for (;;) 20140309 12:01:21< aquileia> I guess I have to use const language_def& get_language() ? 20140309 12:02:53< aquileia> But in the meantime another option appeared... hacky, but localized 20140309 12:03:13-!- mjs-de [~mjs-de@p508CB5A6.dip0.t-ipconnect.de] has joined #wesnoth-dev 20140309 12:04:12-!- lipkab [~lipkab@apn-151-0-80-19.vodafone.hu] has joined #wesnoth-dev 20140309 12:04:47< aquileia> I can use shadowm's suggestion to try catch parse the number - but not on the paste but on the result 20140309 12:05:05< aquileia> an if it doesn't work, revert to the old content 20140309 12:05:11< aquileia> shadowm: thanks 20140309 12:05:48-!- lipkab [~lipkab@apn-151-0-80-19.vodafone.hu] has quit [Read error: Connection reset by peer] 20140309 12:06:03-!- lipkab [~lipkab@apn-151-0-80-19.vodafone.hu] has joined #wesnoth-dev 20140309 12:10:37< aquileia> shadowm: Perhaps I was too excited - stod for strings is C++11, and stod from C doesn't support localization 20140309 12:26:01-!- lipkab [~lipkab@apn-151-0-80-19.vodafone.hu] has quit [Read error: Connection reset by peer] 20140309 12:33:36< aquileia> mordante: https://github.com/aquileia/wesnoth-resources/blob/master/other/num_box.cpp 20140309 12:34:30< aquileia> a first code specimen for you 20140309 12:36:31< aquileia> afk for 1 hour... 20140309 12:37:37-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 12:42:20< mordante> aquileia, did you try to compile this code? hint it won't 20140309 12:42:35-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 252 seconds] 20140309 12:42:51< aquileia> Of course... most parts are missing 20140309 12:43:18< aquileia> It's just two functions between which to choose 20140309 12:43:26< mordante> even if they weren't the code won't compile 20140309 12:43:54< mordante> you try to assign to a const variable 20140309 12:44:02< aquileia> where? 20140309 12:44:08< mordante> line 13 20140309 12:44:35< aquileia> oh... 20140309 12:45:06< mordante> but I would really suggest to drop support for real values and limit your code to integral values 20140309 12:45:49< aquileia> sorry, now really afk 20140309 12:46:23< mordante> as said before I think real values are not really needed and the make the code complexer 20140309 12:46:30< mordante> ok 20140309 12:47:50< mordante> regarding the paste_selection, better to first test whether the pasted code is valid, then replace the text in the widget 20140309 12:48:09< mordante> that avoids the restore part if lexical_cast throws 20140309 12:48:37< mordante> and I think that lexical cast already ignores white space 20140309 12:50:15-!- thunderstruck [~zaibotren@cpc13-sgyl31-2-0-cust696.18-2.cable.virginm.net] has quit [Quit: leaving] 20140309 12:50:16< mordante> and your exception handling code doesn't restore selection_start_ (another reason to test first and modify after validating ;-) ) 20140309 12:51:14< mordante> I won't mention negative numbers :-P 20140309 12:53:40-!- Gaben [~quassel@94-21-161-70.pool.digikabel.hu] has quit [Read error: Connection reset by peer] 20140309 12:58:07-!- Gallaecio [~quassel@84.120.112.146.dyn.user.ono.com] has quit [Read error: Connection reset by peer] 20140309 12:59:17-!- Gallaecio [~quassel@84.120.112.146.dyn.user.ono.com] has joined #wesnoth-dev 20140309 13:04:27-!- eldruz [~eldruz@lav35-1-82-236-137-179.fbx.proxad.net] has quit [Read error: Operation timed out] 20140309 13:08:21-!- theflamingskunk [ad30780b@gateway/web/cgi-irc/kiwiirc.com/ip.173.48.120.11] has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client] 20140309 13:09:43-!- tomreyn [~tomreyn@megaglest/team/tomreyn] has joined #wesnoth-dev 20140309 13:37:20-!- happygrue [~happygrue@c-66-30-155-184.hsd1.ma.comcast.net] has joined #wesnoth-dev 20140309 13:37:20-!- happygrue [~happygrue@c-66-30-155-184.hsd1.ma.comcast.net] has quit [Changing host] 20140309 13:37:20-!- happygrue [~happygrue@wesnoth/developer/wintermute] has joined #wesnoth-dev 20140309 13:37:43-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20140309 13:48:29-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 241 seconds] 20140309 13:50:34-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20140309 13:56:49-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has quit [Ping timeout: 240 seconds] 20140309 13:58:43-!- cib0 [~cib@p20030067CE5CD701267703FFFEE75B84.dip0.t-ipconnect.de] has joined #wesnoth-dev 20140309 14:14:25-!- stikonas [~gentoo@cpc18-sgyl27-2-0-cust35.18-2.cable.virginm.net] has joined #wesnoth-dev 20140309 14:14:25-!- stikonas [~gentoo@cpc18-sgyl27-2-0-cust35.18-2.cable.virginm.net] has quit [Changing host] 20140309 14:14:25-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20140309 14:26:25-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 14:30:17-!- kex [~kex@89.205.75.19] has quit [Read error: Operation timed out] 20140309 14:38:30-!- Gallaecio_ [~quassel@84.120.112.146.dyn.user.ono.com] has joined #wesnoth-dev 20140309 14:39:46-!- Gallaecio [~quassel@84.120.112.146.dyn.user.ono.com] has quit [Ping timeout: 264 seconds] 20140309 14:42:11-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has joined #wesnoth-dev 20140309 14:45:20< aquileia> mordante: The problem is that I can't check whether the combination of the existing string + the paste is valid if I don't substitute early 20140309 14:47:42< aquileia> If you want foreign number systems, you can't just do easy checks (e.g. in Japanese IIRC) 20140309 14:48:02< aquileia> So there is no option but to try catch 20140309 14:49:05< vultraz> aquileia: just curious, but what are you doing? 20140309 14:52:04< aquileia> a textbox that accepts numerical values and parses them 20140309 14:52:23< aquileia> It'll be part of the spinner widget 20140309 14:52:41< mordante> aquileia, why not? const std::string& text = text_.text() + copy_from_clipboard(mouse); (of course there need to be more smart parts) 20140309 14:52:43< vultraz> The what widget? 20140309 14:53:08< aquileia> mordante: You can paste at any position 20140309 14:53:41< aquileia> vultraz: A textbox with small buttons for increment and decrement 20140309 14:53:59< aquileia> And in Japanese it's context sensitive 20140309 14:54:01< vultraz> Why does it have to be a textbox, then? 20140309 14:54:06< mordante> hence the (of course there need to be more smart parts) 20140309 14:54:11< vultraz> Why not just a changing label 20140309 14:54:39< mordante> but you can store the new text in its own variable and only update the text after it have been checked 20140309 14:54:46< aquileia> a) You should be able to copy a previous seed into the box 20140309 14:55:04< aquileia> b) It should work for double values as well 20140309 14:55:19< mordante> in general I prefer validate -> update over update -> validate -> roll back 20140309 14:55:40< mordante> why insist on b? 20140309 14:55:51< vultraz> (I have no idea what mordante is talking about but I agree A sounds better) 20140309 14:55:57< vultraz> (more...logical) 20140309 14:56:00< aquileia> mordante: That's a lot of functions to emulate (delete selection and insert at a specific place) 20140309 14:56:36-!- trewe [~trewe@125.40.103.87.rev.vodafone.pt] has joined #wesnoth-dev 20140309 14:56:41< aquileia> It's easier to use the existing infrastructure 20140309 14:57:23< aquileia> I tried a validate->update model, but it's not compatible with different number systems 20140309 14:58:43< aquileia> vultraz: The double compability isn't needed for my use case, but it's a nice feature. 20140309 14:59:05< mordante> it's easier to refactor the current infrastructure to let the current code use the new code 20140309 14:59:22-!- mjs-de [~mjs-de@p508CB5A6.dip0.t-ipconnect.de] has quit [Quit: On the road again] 20140309 15:00:24< mordante> I disagree with the nice feature for doubles, it won't work since it requires a tdouble_selector_ interface and that interface will be incompatible with the tinteger_selector 20140309 15:01:51< aquileia> So without the interface there's no use? 20140309 15:02:23< mordante> no not really 20140309 15:02:31< aquileia> Ok 20140309 15:03:41< mordante> the goal of GUI2 is to be themable (it hasn't happened yet) so interfaces are the way to express the kind of data you expect 20140309 15:04:56-!- Nostromus [~strebel@e179233111.adsl.alicedsl.de] has joined #wesnoth-dev 20140309 15:05:12< aquileia> And in a decade we have GUI3... 20140309 15:05:23< aquileia> and GUI1 will be still in use 20140309 15:05:32< mordante> maybe, I don't expect the latter 20140309 15:06:44< Delfinisko> totally off topic... is it possible to add the amount of kills into wesnoth? for example into 1.14? 20140309 15:06:50< Delfinisko> like in starcraft 20140309 15:06:51< Delfinisko> http://www.mobygames.com/images/shots/l/27573-starcraft-brood-war-windows-screenshot-different-selection.gif 20140309 15:10:24< vultraz> mordante: random question I've been wondering, but will the SDL2 transition alleviate some GUI2 issues? 20140309 15:11:39< mordante> vultraz, no directly, but it will make implementing some new features, like drop down lists easier 20140309 15:13:21< mordante> Delfinisko, possible yes, but I see little benefit. In fact I'm quite sure it can already be done with WML 20140309 15:15:57< Delfinisko> well... units with 2 kills and with experience from only attacking/defending are the same 20140309 15:16:35< Delfinisko> but it might be interesting for the commentators 20140309 15:17:16< vultraz> What commentators? 20140309 15:17:46-!- irker221 [~irker@ai0867.net] has joined #wesnoth-dev 20140309 15:17:46< irker221> wesnoth: Mark de Wever wesnoth:master ff3588c99b7c / src/ (CMakeLists.txt SConscript sdl/window.cpp sdl/window.hpp video.cpp): Add the initial SDL_Window wrapper code. http://git.io/fTlIpA 20140309 15:17:46< irker221> wesnoth: Mark de Wever wesnoth:master 26aad8b7abe4 / src/ (sdl/window.cpp sdl/window.hpp video.cpp): Implement rendering with SDL 2. http://git.io/kVTUDA 20140309 15:17:46< irker221> wesnoth: Mark de Wever wesnoth:master 632710bdadec / src/game_controller.cpp: Move window caption initialisation code. http://git.io/KMfdVA 20140309 15:17:47< irker221> wesnoth: Mark de Wever wesnoth:master 7a0873f0aabd / src/ (sdl/window.cpp sdl/window.hpp video.cpp): Show the window caption with SDL 2. http://git.io/x_knRQ 20140309 15:17:49< irker221> wesnoth: Mark de Wever wesnoth:master 546ba048c2a7 / src/ (game_controller.cpp sdl/window.cpp sdl/window.hpp video.cpp): Show the window icon with SDL 2. http://git.io/FYc4XA 20140309 15:17:51< irker221> wesnoth: Mark de Wever wesnoth:master 6817aa33b762 / src/video.cpp: Let CVideo::window_state use main_window. http://git.io/ixldjg 20140309 15:17:53< irker221> wesnoth: Mark de Wever wesnoth:master 385885fea0a0 / src/video.cpp: Rename main_window to window. http://git.io/cAOy6Q 20140309 15:17:56< irker221> wesnoth: Mark de Wever wesnoth:master 9de59be3a7d5 / src/video.hpp: Update the Doxygen comments. http://git.io/3tjELw 20140309 15:17:57< irker221> wesnoth: Mark de Wever wesnoth:master eb27fcc48927 / src/ (7 files in 2 dirs): Merge branch 'SDL_Window' http://git.io/syiOOg 20140309 15:19:30< Delfinisko> yep, what comentators... there are a lot of them in starcraft for example, but wesnoth commentators are... almost none :( 20140309 15:20:30< shadowm> Do we really need ttypes tlike tthis everywhere? 20140309 15:22:01< mordante> Delfinisko, I don't expect to be a large eSports game any time soon 20140309 15:22:31< mordante> and to be honest I never heard a commentator refer to the number of kills of a unit 20140309 15:23:55-!- lipkab [~the_new_l@host-91-147-212-189.biatv.hu] has joined #wesnoth-dev 20140309 15:25:22< Nostromus> mordante: in starcraft, there were many of these refers especially when one unit killed a lot of drones 20140309 15:26:10< Delfinisko> widow mines are all about number of kills for example :) 20140309 15:26:56< mordante> I can't recall hearing commentators about it 20140309 15:27:17< mordante> but as said I'm quite sure it's possible in WML already 20140309 15:29:18< vultraz> It is, but I think Delfinisko wants a place for it in the UI 20140309 15:29:21< Nostromus> has anyone experience with wesnoth compiling on windows with visual studio 2013? 20140309 15:30:20< vultraz> Nostromus: I heard it doesn't compile on vs13. You could use codeblocks, though. 20140309 15:30:23< mordante> vultraz, right click and menu item kills. I don't think we need to clutter the UI with this kind of information 20140309 15:30:42< mordante> there is a lot more important information 20140309 15:31:03< vultraz> mordante: I believe he was referring to per unit. IIRC that only shows total 20140309 15:31:30< vultraz> Or does it show per unit? I can't remember... 20140309 15:31:46< Delfinisko> yep, thinking about adding it to be seen on UI, somewhere in the right side. like number of hitpoints etc 20140309 15:32:04< mordante> vultraz, if you keep track of it in WML you can add a menu item to show it 20140309 15:32:12< zookeeper> yeah it's not going to happen, this entire discussion is pointless 20140309 15:32:39< vultraz> mordante: ah, right. 20140309 15:33:15< vultraz> Delfinisko: you could always create your own theme with it and use it in your UMC, since as zookeeper, really not likely to happen in core 20140309 15:34:02< Nostromus> vultraz: i used vs13 and codeblocks with cmake but still libintl problems when it is linking, i'm now on linux and this is much more simple. But neverless i just want compile it on windows too 20140309 15:34:38< Delfinisko> just an idea. something that i think might be in core. active or waiting to be turned on in the game options 20140309 15:34:54< Delfinisko> but okay, only idea. going to do something useful : 20140309 15:35:47< vultraz> Nostromus: problem with linking in codeblocks? 20140309 15:36:00< mordante> options are bad 20140309 15:37:17< Nostromus> yeah same linking error as in vs13, something with libintl 20140309 15:37:37< vultraz> Nostromus: which version of windows? 20140309 15:37:42< Nostromus> i'm looking further into it when i'm on windows again 20140309 15:38:01< Nostromus> windows 7 64bit, but 32bit target 20140309 15:39:35< vultraz> Did you follow the steps in the README? (specifically downloading the 64 bit package?) I had a linking problem too and it turns out i was using a 32 bit compiler 20140309 15:40:07< shadowm> There is no 64-bits package, only 32-bits. 20140309 15:40:12< Nostromus> there is a 64bit package? 20140309 15:40:19< shadowm> No. 20140309 15:40:33< Nostromus> ok i'm using all libs and etc with 32 bit 20140309 15:41:21< vultraz> shadowm: the link, what was the link. 20140309 15:41:38< vultraz> the one where I downloaded x86 and not x86_64 and you had to add a note about it 20140309 15:41:41< shadowm> projectfiles/CodeBlocks/README.txt 20140309 15:42:08 * vultraz heads to github >_> 20140309 15:43:34< shadowm> You got your story backwards. 20140309 15:43:46< Nostromus> ok i saw this one, but i think i follow the install text. i will try this one 20140309 15:43:55< Nostromus> thanks 20140309 15:47:42-!- lipkab [~the_new_l@host-91-147-212-189.biatv.hu] has quit [Ping timeout: 244 seconds] 20140309 15:48:17-!- Nostromus [~strebel@e179233111.adsl.alicedsl.de] has quit [Quit: Leaving.] 20140309 15:51:54-!- lipkab [~the_new_l@host-91-147-212-189.biatv.hu] has joined #wesnoth-dev 20140309 15:53:08-!- Nostromus [~chatzilla@e179233111.adsl.alicedsl.de] has joined #wesnoth-dev 20140309 16:15:20-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 16:15:58-!- vorobeez [~quassel@85.142.148.12] has quit [Ping timeout: 240 seconds] 20140309 16:18:11-!- Guest81088 [~8680@2002:4404:712c:0:c9b2:adf:759f:ee07] has quit [Ping timeout: 244 seconds] 20140309 16:19:20-!- _8680_ [~8680@2002:4404:712c:0:d468:2a07:c3f5:1e8c] has joined #wesnoth-dev 20140309 16:19:44-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 244 seconds] 20140309 16:23:05-!- stikonas_ [~gentoo@46.246.45.208] has joined #wesnoth-dev 20140309 16:23:08-!- stikonas_ [~gentoo@46.246.45.208] has quit [Changing host] 20140309 16:23:08-!- stikonas_ [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20140309 16:23:37-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Ping timeout: 240 seconds] 20140309 16:23:48-!- Jetrel_ [~Jetrel@c-75-73-180-126.hsd1.mn.comcast.net] has quit [Read error: Connection reset by peer] 20140309 16:25:13-!- Jetrel [~Jetrel@c-75-73-180-126.hsd1.mn.comcast.net] has joined #wesnoth-dev 20140309 16:33:39-!- Madke [6f5d05c2@gateway/web/freenode/ip.111.93.5.194] has joined #wesnoth-dev 20140309 16:33:47-!- _8680_ [~8680@2002:4404:712c:0:d468:2a07:c3f5:1e8c] has quit [Ping timeout: 265 seconds] 20140309 16:34:18-!- _8680_ [~8680@2002:4404:712c:0:d468:2a07:c3f5:1e8c] has joined #wesnoth-dev 20140309 16:38:34-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 264 seconds] 20140309 16:39:40< Madke> Hello People. I just learnt about GSoC and they said it's a good idea to discuss things on this irc channel. So can anyone there tell me if its too late to join now? 20140309 16:39:48-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20140309 16:40:50-!- sachith500 [~kvirc@112.134.247.21] has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/] 20140309 16:45:13< lipkab> Madke: Too late? The application period hasn't even started yet! :P 20140309 16:48:14< lipkab> Madke: Read this: http://wiki.wesnoth.org/SummerOfCodeIdeas#I_want_to_be_one_of_your_Google_Summer_of_Code_students.2C_what_should_I_do.3F 20140309 16:48:27< Madke> Yes, bit it says it's better to talk to the devs earlier than that 20140309 16:48:27< lipkab> And this: http://wiki.wesnoth.org/SummerOfCodeIdeas 20140309 16:48:41-!- vorobeez [~quassel@85.142.148.12] has joined #wesnoth-dev 20140309 16:49:02< lipkab> You're absolutely in time. 20140309 17:02:08-!- Cristian_H [~Cristian_@141.85.0.106] has joined #wesnoth-dev 20140309 17:03:45< Cristian_H> hi guys.. may i talk with someone about a GSOC project ? 20140309 17:05:04< happygrue> You may! 20140309 17:06:52< Cristian_H> i want to submit a proposal on AI project.. but i want to talk with somebody about some things.. 20140309 17:07:42< happygrue> go ahead and post questions you have. If you know (eg from the who to contact at the bottom of the project page) ping them specifically with the question 20140309 17:08:11< happygrue> but others may be able to answer, and mentors will probably be catching up with the logs, so they will at least find their name if not here now. 20140309 17:08:30< Cristian_H> yes..it seems crab_on is my guy..i'll talk with him.. 20140309 17:19:41-!- Gallaecio_ [~quassel@84.120.112.146.dyn.user.ono.com] has quit [Read error: Connection reset by peer] 20140309 17:20:26-!- Gallaecio [~quassel@84.120.112.146.dyn.user.ono.com] has joined #wesnoth-dev 20140309 17:22:19< Nostromus> vultraz: i followed strictly the instructions in readme for codeblocks, now i get this error http://pastebin.com/9tZhbdsf, any idea? 20140309 17:24:19< vultraz> hm...never seen that before 20140309 17:24:21< vultraz> shadowm? 20140309 17:27:42< aquileia> What checkout do you use? Perhaps it's an issue with master due to the SDL2 conversion? 20140309 17:28:20< Nostromus> just clone command from github site 20140309 17:28:32< Nostromus> current dev version 20140309 17:29:16< aquileia> then you might ask mordante if that error is caused by the conversion 20140309 17:29:21< Nostromus> i build this version on linux without probs 20140309 17:30:01-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has quit [Ping timeout: 240 seconds] 20140309 17:30:28< Nostromus> i will try it with the tested version, given in readme 20140309 17:30:57< aquileia> Well, SDL2 probably needs more ifdefs for windows 20140309 17:31:22-!- vorobeez [~quassel@85.142.148.12] has quit [Ping timeout: 264 seconds] 20140309 17:32:03< aquileia> mordante: Perhaps you are interested in this? 20140309 17:35:15< lipkab> shadowm: Have you seen my question earlier today? 20140309 17:35:25< lipkab> Maybe yesterday for you. 20140309 17:36:12-!- Delfinisko [~Delfinisk@46.229.231.211.vnet.sk] has quit [Quit: HydraIRC -> http://www.hydrairc.com <- The alternative IRC client] 20140309 17:37:00-!- stikonas__ [~gentoo@cpc18-sgyl27-2-0-cust35.18-2.cable.virginm.net] has joined #wesnoth-dev 20140309 17:37:00-!- stikonas__ is now known as stikonas 20140309 17:37:23-!- stikonas [~gentoo@cpc18-sgyl27-2-0-cust35.18-2.cable.virginm.net] has quit [Client Quit] 20140309 17:37:32-!- stikonas [~gentoo@cpc18-sgyl27-2-0-cust35.18-2.cable.virginm.net] has joined #wesnoth-dev 20140309 17:37:32-!- stikonas [~gentoo@cpc18-sgyl27-2-0-cust35.18-2.cable.virginm.net] has quit [Changing host] 20140309 17:37:32-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20140309 17:37:54-!- vorobeez [~quassel@85.142.148.12] has joined #wesnoth-dev 20140309 17:40:59-!- stikonas_ [~gentoo@wesnoth/translator/stikonas] has quit [Ping timeout: 240 seconds] 20140309 17:42:03 * lipkab is the second person ever to run Wesnoth with SDL2! 20140309 17:43:01< stikonas> is there anything much better with SDL2? 20140309 17:44:00< lipkab> Sure. Hardware accelerated segfaults. 20140309 17:44:49< stikonas> what about ordinary graphics? Is it too hardware accelerated? 20140309 17:45:03< Nostromus> aquileia: same error with tag 1.11.7 which was tested 20140309 17:45:29< lipkab> stikonas: Not yet. 20140309 17:45:41< aquileia> Nostromus: ok, then it can't be SDL2 20140309 17:45:49< aquileia> no idea 20140309 17:47:46< irker221> wesnoth: Boldizsár Lipka wesnoth:master f909a9310771 / src/SConscript: Fix linking order in SCons. http://git.io/yNAAeg 20140309 17:51:03-!- EdB [~edb@85.69.242.6] has joined #wesnoth-dev 20140309 18:01:11< mordante> Cristian_H, yes best talk to Crab_ or mattsc 20140309 18:01:47-!- Crab_ [~Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20140309 18:02:46< mordante> Nostromus, no it has nothing to do with SDL, however the swig call looks highly suspicious, since we don't use swig 20140309 18:02:49< happygrue> Nostromus: I just updated my checkout and compiled fine 20140309 18:03:26< happygrue> Nostromus: one thing I noticed from your paste is that there is a line with both / and \ in the path... Maybe that doesn't matter, but it wouldn't hurt to check your paths I guess? 20140309 18:04:13-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 18:04:31< Nostromus> i check this 20140309 18:04:46< mordante> Nostromus, animated.i should not be compiled, just let codeblocks ignore the file 20140309 18:05:00< happygrue> not really sure what else to do other than checking that everything from the instructions was installed correctly too. 20140309 18:05:02< mordante> lipkab, which question? 20140309 18:05:27< Nostromus> i have an animated.cpp which is in codeblocks under the folder auto-generated but it seems it doeasnt exist 20140309 18:05:51< mordante> lipkab, for me accelerated hardware runs but visible it is unusable 20140309 18:06:50< mordante> stikonas, yes everything will be hardware accelerated it should also improve the 2D drawing speed 20140309 18:08:27< mordante> Nostromus, animated.cpp doesn't exist and animated.i will be automatically included from animated_game.cpp 20140309 18:08:42-!- Aishiko_laptop [~unknown@cpe-065-191-176-226.nc.res.rr.com] has joined #wesnoth-dev 20140309 18:08:45-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 244 seconds] 20140309 18:12:22-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 244 seconds] 20140309 18:12:27-!- thunderstruck [~zaibotren@cpc13-sgyl31-2-0-cust696.18-2.cable.virginm.net] has joined #wesnoth-dev 20140309 18:14:47-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has joined #wesnoth-dev 20140309 18:15:00-!- mjs-de [~mjs-de@p508CA5D8.dip0.t-ipconnect.de] has joined #wesnoth-dev 20140309 18:16:19< lipkab> mordante: "shadowm: What do I need to do so that my application page appears under the SDL2 section rather than other ideas?" 20140309 18:17:07< lipkab> mordante: I'm afraid I can't parse your second line. 20140309 18:17:51< mordante> a reply to Sure. »Hardware accelerated segfaults.« 20140309 18:19:08< lipkab> Oh, hehe. I didn't mean that the driver segfaults or something :) 20140309 18:19:49< Nostromus> now it seems to be ok, just right click and uncheck animated.i to compile 20140309 18:21:02< mordante> lipkab, I'm not entirely sure how to get your application at the proper place shadowm or Crab_ probably know the answer 20140309 18:21:07< mordante> Nostromus, good 20140309 18:21:14< Nostromus> maybe in the project file animated.i is default to compile for codebocks 13.12 20140309 18:21:46-!- spoffy [~spoffy@dhcp-201-14.wireless.soton.ac.uk] has quit [Ping timeout: 264 seconds] 20140309 18:21:47< mordante> no idea, I don't use CodeBlocks 20140309 18:22:14< vorobeez> Crab_: hello 20140309 18:23:42-!- eldruz [~eldruz@lav35-1-82-236-137-179.fbx.proxad.net] has joined #wesnoth-dev 20140309 18:23:59< vorobeez> Crab_: i wrote some draft about plan. It is very the raw and not well thought through. But I want to show you. 20140309 18:23:59< vorobeez> https://docs.google.com/document/d/1dNtvlAxHigWQejR5D0QjU2gsWPa6nAJ53SMujOdHiTc/edit?usp=sharing 20140309 18:25:14< vorobeez> Tomorrow I'll be working on a more specific description of things. 20140309 18:25:53< irker221> wesnoth: Mark de Wever wesnoth:master 5d0c8e581f5e / src/sdl/window.cpp: Add missing spaces in text output. http://git.io/AgENQg 20140309 18:25:55< irker221> wesnoth: Mark de Wever wesnoth:master 7f5006ed45ad / src/sdl/window.cpp: Include the proper header. http://git.io/iUYAZg 20140309 18:26:33< vorobeez> Crab_: so what you are think? 20140309 18:36:31-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth-dev 20140309 18:36:54< vorobeez> Crab_: and i have some questions about wesnoth.path_find(). Yesterday mattsc told me that i must implement another custom cost function for the avoided hexes? 20140309 18:36:54< vorobeez> First of all: what you mean at "avoided hexes"? 20140309 18:36:54< vorobeez> Second: i grep for 'scout' and 'usage' and find some useful recruitment code. But i don't understand how relate this part to pathfinding. 20140309 18:36:54< vorobeez> And where is code of wesnoth.path_find() function? 20140309 18:38:03< vorobeez> hi mattsc. i wrore at [22:23:47] link to main plan (draft). Can look at it? 20140309 18:38:44< mattsc> hi vorobeez. I will, but can't right now. 20140309 18:41:39-!- chris__ is now known as iceiceice 20140309 18:42:01< iceiceice> vorobeez: try "pathfind" 20140309 18:42:36< mattsc> vorobeez: what I was referring to yesterday is this: https://github.com/wesnoth/wesnoth/blob/master/src/ai/testing/ca_testing_move_to_targets.cpp#L52 20140309 18:42:56< mattsc> and in particular the penalty at line 66 20140309 18:43:57-!- thunderstruck [~zaibotren@cpc13-sgyl31-2-0-cust696.18-2.cable.virginm.net] has quit [Quit: leaving] 20140309 18:44:52< mattsc> vorobeez: also, I don't have time to go through the logs in detail right. I will do that later, or if you have a specific question right now, could you repeat it? 20140309 18:45:06< mattsc> s/right/right now 20140309 18:47:32< mordante> I'm off bye 20140309 18:47:40-!- lipkab [~the_new_l@host-91-147-212-189.biatv.hu] has quit [Ping timeout: 265 seconds] 20140309 18:47:47-!- mordante [~mordante@wesnoth/developer/mordante] has quit [Quit: Leaving] 20140309 18:47:53< Aishiko_laptop> bye mordante 20140309 19:11:37-!- cib0 [~cib@p20030067CE5CD701267703FFFEE75B84.dip0.t-ipconnect.de] has quit [Ping timeout: 245 seconds] 20140309 19:16:09-!- Octalot [~noct@31.185.149.167] has joined #wesnoth-dev 20140309 19:17:13-!- Cristian_H [~Cristian_@141.85.0.106] has quit [Ping timeout: 240 seconds] 20140309 19:19:28< aquileia> Is there any reason to include a file both in the .hpp and .cpp? I can't see any, so I'd erase one 20140309 19:20:19< Aishiko_laptop> aquileia, I honestly don't know, I've never seen that (but then I've never looked either) 20140309 19:21:23-!- Crab_ [~Crab_@wesnoth/developer/crab] has quit [Quit: Crab_] 20140309 19:24:07< timotei_> aquileia: If you include a header into a .hpp, you don't need to do that into the .cpp as well, provided that the .cpp includes the latter .hpp 20140309 19:24:33< aquileia> Just as I thought. Thanks! 20140309 19:24:38< timotei_> Unless... some preprocessor def/undef is happenning in there. 20140309 19:26:45< aquileia> but the #ifndef only acts if the header was never included... so this shouldn't interfere 20140309 19:27:11-!- wesbot changed the topic of #wesnoth-dev to: 1.12 branch created | string+feature freeze active on 1.12 | 220 bugs, 351 feature requests, 27 patches | Logs: http://irclogs.wesnoth.org | Alternate logs: http://wesnoth.debian.net | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20140309 19:28:32-!- Crab_ [~Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20140309 19:36:37-!- boucman [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20140309 19:36:38-!- lipkab [~the_new_l@host-91-147-212-189.biatv.hu] has joined #wesnoth-dev 20140309 19:47:28-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Remote host closed the connection] 20140309 19:47:33-!- Crab_ [~Crab_@wesnoth/developer/crab] has quit [Quit: Crab_] 20140309 19:47:43-!- timotei [~timotei@wesnoth/developer/timotei] has joined #wesnoth-dev 20140309 19:47:44-!- boucman [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20140309 19:48:23-!- timotei_ [~timotei@wesnoth/developer/timotei] has quit [Read error: Connection reset by peer] 20140309 19:48:40-!- vorobeez [~quassel@85.142.148.12] has quit [Remote host closed the connection] 20140309 19:49:38-!- esr [~esr@wesnoth/developer/esr] has quit [Quit: WeeChat 0.4.1] 20140309 19:50:17-!- esr [~esr@static-71-162-243-5.phlapa.fios.verizon.net] has joined #wesnoth-dev 20140309 19:50:17-!- esr [~esr@static-71-162-243-5.phlapa.fios.verizon.net] has quit [Changing host] 20140309 19:50:17-!- esr [~esr@wesnoth/developer/esr] has joined #wesnoth-dev 20140309 19:53:09-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 19:53:11-!- shikadibot [~shikadi@ai0867.net] has joined #wesnoth-dev 20140309 19:53:17-!- _8680_ [~8680@2002:4404:712c:0:d468:2a07:c3f5:1e8c] has quit [Ping timeout: 245 seconds] 20140309 19:53:56-!- shikadibot is now known as Guest20355 20140309 19:54:36-!- _8680_ [~8680@2002:4404:712c:0:4932:35fb:550:916] has joined #wesnoth-dev 20140309 19:57:45-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 265 seconds] 20140309 20:00:59< lipkab> Soliton: Could you please take care of the purple guy here? http://forums.wesnoth.org/viewtopic.php?f=16&t=38958&p=554870#p554870 20140309 20:01:01-!- exciton [chuck-the-@89.208.170.132] has quit [Read error: Connection reset by peer] 20140309 20:01:15-!- exciton [chuck-the-@89.208.170.132] has joined #wesnoth-dev 20140309 20:02:00-!- nevskoye [~nevskoye@95.215.140.92] has joined #wesnoth-dev 20140309 20:02:25-!- lipkab [~the_new_l@host-91-147-212-189.biatv.hu] has quit [Quit: Vannak idők, mikor menni kell] 20140309 20:04:42-!- Crab_ [~Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20140309 20:18:45-!- Nostromus [~chatzilla@e179233111.adsl.alicedsl.de] has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]] 20140309 20:47:17-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 21:04:30-!- spoffy [~spoffy@152.78.175.8] has joined #wesnoth-dev 20140309 21:10:29-!- spoffy [~spoffy@152.78.175.8] has quit [Ping timeout: 240 seconds] 20140309 21:20:50-!- Crendgrim_ is now known as Crendgrim 20140309 21:22:02< aquileia> My code would benefit if I could catch two (or all) exceptions at once: boost::bad_lexical_cast and a custom one 20140309 21:22:11< aquileia> should I 20140309 21:22:36< aquileia> a) derive my exception from the boost one even if they have no context 20140309 21:22:49< aquileia> b) catch any exceptions 20140309 21:23:19< aquileia> c) perhaps there is a way to list exceptions to be caught? 20140309 21:24:57-!- Madke [6f5d05c2@gateway/web/freenode/ip.111.93.5.194] has left #wesnoth-dev [] 20140309 21:26:20-!- Madke [6f5d05c2@gateway/web/freenode/ip.111.93.5.194] has joined #wesnoth-dev 20140309 21:30:06-!- spoffy [~spoffy@152.78.175.8] has joined #wesnoth-dev 20140309 21:32:13< aquileia> shadowm: Is it ok if I just throw boost::bad_lexical_cast ? 20140309 21:54:01-!- Nostromus [~Thunderbi@e179233111.adsl.alicedsl.de] has joined #wesnoth-dev 20140309 21:56:04-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Remote host closed the connection] 20140309 21:56:55-!- kex [~kex@89.205.75.19] has quit [Remote host closed the connection] 20140309 21:57:29-!- kex [~kex@89.205.75.19] has joined #wesnoth-dev 20140309 22:02:06-!- kex [~kex@89.205.75.19] has quit [Ping timeout: 252 seconds] 20140309 22:04:55< iceiceice> aquileia: http://stackoverflow.com/questions/315948/c-catching-all-exceptions 20140309 22:05:36< iceiceice> i think just use multiple catch blocks should work? 20140309 22:05:59< iceiceice> maybe i dont understand 20140309 22:06:29< aquileia> so I can use (...) ? 20140309 22:07:49< aquileia> Would you say it's bad to throw an existing exception without context? 20140309 22:08:58< aquileia> iceiceice: http://pastebin.com/TN930rjj 20140309 22:09:10-!- eldruz [~eldruz@lav35-1-82-236-137-179.fbx.proxad.net] has quit [Ping timeout: 264 seconds] 20140309 22:09:11< aquileia> is that ok? 20140309 22:09:49-!- ancestral [~ancestral@63.92.240.233] has joined #wesnoth-dev 20140309 22:10:38< aquileia> or do I have to create a custom one and then catch (...) ? 20140309 22:11:25< iceiceice> sure its fine to intentionally throw exceptions yourself as long as you / someone else is there to catch them 20140309 22:11:41< iceiceice> i think its ok to throw boost lexical cast 20140309 22:14:23< aquileia> ok, thanks 20140309 22:14:34< aquileia> then my code is nearly ready 20140309 22:14:38< aquileia> yay! 20140309 22:20:14< AI0867> iceiceice: multiple catchblocks work. ... catches *everything*, but just catching a base exception should be sufficient if you want everything (in C++, you can throw anything, not just exceptions, but we don't do that) 20140309 22:23:34< iceiceice> AI0867: i didnt actually know that about C++, that seems insane..., or about ... , I guess most of my experience with exceptions is from Java but principles seem to carry over 20140309 22:23:47< aquileia> AI0867: why, I ever wanted to throw '42' ;) 20140309 22:24:27< Aishiko_laptop> no no aquileia if you throw an everything exception then the response is 42 =) 20140309 22:25:29< aquileia> AI0867: Do you agree that throwing boost::bad_lexical_cast is ok? A second opinion can't hurt 20140309 22:26:34 * aquileia hopes iceiceice is ok with that 20140309 22:27:05< iceiceice> ofc 20140309 22:31:24< AI0867> aquileia: under what conditions? 20140309 22:31:31< AI0867> where? 20140309 22:31:48< aquileia> http://pastebin.com/TN930rjj 20140309 22:32:46< aquileia> It's not the fitting exception, but I don't risk to swallow others (that shouln't be possible, but...) 20140309 22:33:23< AI0867> we have our own bad_lexical_cast (which is a struct, for some reason) and our own lexical_cast 20140309 22:33:27< AI0867> see src/util.hpp 20140309 22:34:05< AI0867> again, what's the context? where is this called? 20140309 22:34:19< AI0867> this certainly isn't a lexical cast that's at fault though 20140309 22:34:42< aquileia> It's not for lexical casts, it's an exploit to catch only two exceptions 20140309 22:35:02< aquileia> so should I throw 42 instead? 20140309 22:36:01-!- trademark [~trademark@nsg93-8-88-175-59-164.fbx.proxad.net] has quit [Ping timeout: 240 seconds] 20140309 22:37:19-!- spoffy [~spoffy@152.78.175.8] has quit [Ping timeout: 252 seconds] 20140309 22:37:38< aquileia> or anything else... 20140309 22:37:44< AI0867> yes, but *where* are you catching these? 20140309 22:38:07< AI0867> is this some private code nobody will see ever, or? 20140309 22:38:27< aquileia> I do try { validate(boost::lexical_cast(text)); 20140309 22:39:04< aquileia> It's for a GUI widget nobody will ever look at 20140309 22:40:17< aquileia> It's just to handle both exceptions at once for only one function in only one file 20140309 22:41:56< AI0867> and the validate function is not exposed in any headers? 20140309 22:42:05< aquileia> no 20140309 22:42:18< AI0867> what do you do if an exception is thrown? Do you complain to the user or do you just ignore the input? 20140309 22:42:36< aquileia> Undo the change 20140309 22:42:37< AI0867> if the former, it might make sense to have separate errors 20140309 22:42:40< AI0867> okay 20140309 22:43:06< AI0867> then it makes sense 20140309 22:43:20< aquileia> ok 20140309 22:43:46-!- Crab_ [~Crab_@wesnoth/developer/crab] has quit [Quit: Crab_] 20140309 22:45:09-!- ancestral [~ancestral@63.92.240.233] has quit [Quit: i go nstuf kthxbai] 20140309 22:45:31< aquileia> I'll post the complete file in half an hour when I'm ready - just in case somebody wants to check it 20140309 22:45:53< aquileia> morante ... cough... 20140309 22:46:07< Aishiko_laptop> mordante 20140309 22:46:41< aquileia> I could say that was deliberate in order not to bother him... but it's just a typo 20140309 22:46:55< aquileia> he greps the logs 20140309 22:48:48< aquileia> Aishiko_laptop, iceiceice, AI0867 : thanks 20140309 22:50:28< Aishiko_laptop> aquileia, your welcome though I didn't do anything 20140309 22:51:51-!- ykanarev [~ykanarev@78.81.70.234] has quit [Remote host closed the connection] 20140309 22:59:29-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 240 seconds] 20140309 23:00:26-!- nevskoye [~nevskoye@95.215.140.92] has quit [Remote host closed the connection] 20140309 23:04:05< aquileia> Damn, I can't assume that a positive number has the highest absolute value... 20140309 23:04:19< aquileia> Ok, it'll take a lot more time 20140309 23:10:10-!- mjs-de [~mjs-de@p508CA5D8.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 20140309 23:13:13-!- Nostromus [~Thunderbi@e179233111.adsl.alicedsl.de] has quit [Quit: Nostromus] 20140309 23:23:32-!- iceiceice [~chris@cpe-66-108-20-80.nyc.res.rr.com] has quit [Remote host closed the connection] 20140309 23:30:46-!- aquileia [52d4193f@gateway/web/freenode/ip.82.212.25.63] has left #wesnoth-dev [] 20140309 23:41:55-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20140309 23:49:36< shadowm> lipkab, mordante: No idea. --- Log closed Mon Mar 10 00:00:15 2014