--- Log opened Sat Apr 07 00:00:48 2012 20120407 00:02:56-!- Johannes13_ [~Johannes@p4FDEEC5F.dip.t-dialin.net] has joined #wesnoth-dev 20120407 00:02:58-!- Johannes13_ [~Johannes@p4FDEEC5F.dip.t-dialin.net] has quit [Changing host] 20120407 00:02:58-!- Johannes13_ [~Johannes@unaffiliated/johannes13] has joined #wesnoth-dev 20120407 00:04:54-!- Johannes13 [~Johannes@unaffiliated/johannes13] has quit [Ping timeout: 272 seconds] 20120407 00:09:36-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120407 00:18:35-!- fkhodkov [~user@ppp-188-65-8-69-bras1.istra.ru] has joined #wesnoth-dev 20120407 00:21:04< neph> mattsc, yeah, well, it will be a dfferent data structure 20120407 00:21:10< neph> but the data will be the same 20120407 00:23:26-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120407 00:25:34< mattsc> neph: thanks. 20120407 00:26:12< neph> mattsc, if you tell me, how exactly you want to see that data structure 20120407 00:26:21< neph> I'll make it your way 20120407 00:26:32-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Quit: Leaving.] 20120407 00:26:42< neph> since you are using it, and you should know how it can be used easier. 20120407 00:27:29< Ivanovic> AI0867, Alarantalara, anonymissimus, elias, Espreon, loonycyborg, Rhonda, shadowm, Soliton, zookeeper, everyone else who cares: i plan to release 1.10.2 in about 12h 20120407 00:27:42< Ivanovic> or are there any blockers which should stop me from doing so? 20120407 00:27:45< loonycyborg> Alright. 20120407 00:27:53< Ivanovic> in case there aren't but you got something left to commit, please do so 20120407 00:28:10< Ivanovic> loonycyborg, Alarantalara: do you think you can possibly create the binaries until some time on sunday? 20120407 00:28:29< Alarantalara> not Saturday, but Sunday is fine 20120407 00:28:46< mattsc> neph: I would just use a single number for both coordinates in the same way that location sets do: 20120407 00:28:47< Ivanovic> that way i could post the 1.10.2 announcement before leaving for a buisness trip with unknown availibility on my side (especially for updating the website!) 20120407 00:29:21< loonycyborg> I'll work on it as usual within some hours after the tag is created.. 20120407 00:29:29< mattsc> return x * 16384 + y + 2000 20120407 00:29:31-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has joined #wesnoth-dev 20120407 00:29:49< mattsc> I have no idea why those numbers were chosen, but it's being used, so why not those 20120407 00:30:54< neph> mattsc, what line is that? 20120407 00:31:07-!- avrilfanomar [~omar@91.202.129.138] has joined #wesnoth-dev 20120407 00:31:23< neph> Crab_, I've sketched up a first draft on the caching system. Would you like to see it? 20120407 00:31:30< mattsc> It's function index(x, y) in lua/location_set.lua 20120407 00:31:49< neph> mattsc, that's not my code, I'll check it out 20120407 00:32:19< mattsc> No, it's the location set lua code. I do not know who set that up. 20120407 00:32:56< mattsc> So, let's say 2 units can reach a given hex, then get_dstsrc could look like this (for that hex): 20120407 00:33:39< mattsc> [index_hex] = { [1] = index_src1, [2] = index_src2 } 20120407 00:33:56< mattsc> where all indices are of the above type. 20120407 00:34:02-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has left #wesnoth-dev [] 20120407 00:34:15< mattsc> Sorry, smale typo: 20120407 00:34:26< mattsc> { [index_hex] = { [1] = index_src1, [2] = index_src2 } } 20120407 00:34:33< neph> mattsc, oh, I understand now 20120407 00:34:48< CIA-69> ivanovic * r53816 /branches/1.10/ (7 files in 6 dirs): updated Polish translation 20120407 00:34:50< CIA-69> ivanovic * r53817 /trunk/po/ (10 files in 6 dirs): updated Italian and Polish translation 20120407 00:34:57< neph> it's like, you want to serialize a maplocation to a number 20120407 00:35:03< mattsc> That way, you never have to loop over the table, but can always directly pull out the elements you need. 20120407 00:35:07-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has joined #wesnoth-dev 20120407 00:35:08< neph> not serialize, but hash 20120407 00:35:19-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has left #wesnoth-dev [] 20120407 00:35:25< neph> yes, hashing, we can do that yes 20120407 00:36:22< mattsc> It seems like a small thing, but I use this so often in my code, that it is both quite convenient and would also cause an improvement in performance, sometimes significantly so 20120407 00:36:37< mattsc> and I assume other people would use it a lot as well 20120407 00:36:42< neph> mattsc, I like this idea very much 20120407 00:36:51< neph> I wonder why I didn't come up with it myself 20120407 00:36:53< mattsc> nepg: great. :) 20120407 00:37:08< mattsc> *neph 20120407 00:37:09< neph> we'll do that 20120407 00:37:16< mattsc> Thanks much !! 20120407 00:37:50-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120407 00:42:51-!- thethomaseffect [thethomase@86-40-82-101-dynamic.b-ras1.mgr.mullingar.eircom.net] has quit [Ping timeout: 246 seconds] 20120407 00:42:58-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 252 seconds] 20120407 00:43:03-!- thethomaseffect [thethomase@86-44-234-0-dynamic.b-ras1.mgr.mullingar.eircom.net] has joined #wesnoth-dev 20120407 00:44:30< mattsc> FYI, I checked out the revision logs and it looks like location sets were originally created by silene 20120407 00:44:38< neph> mattsc, about debug: all my thinking lead to an idea, creating a Lua gui workshop. Meaning, we would have a dialog window, in which we could (1) look at the current ca's in the loop (2) manually add/remove ca's defined for our context in the loop (3) have some info on what the ca's are up to 20120407 00:45:04< neph> and everything else we com up with, considerind that it is possible with the current design 20120407 00:45:13< neph> do you think that would be useful? 20120407 00:46:17< mattsc> neph: yes, I think that would be good. But I think it is also necessary to have "manual access" to the ai table functions. 20120407 00:47:45< neph> we can do that, but only of the AI is controlling a side 20120407 00:48:03< neph> then we can make calls to the context 20120407 00:48:11< mattsc> Ah, that's a problem. I specifically mean when a human is controlling the side. 20120407 00:48:23-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Remote host closed the connection] 20120407 00:48:36-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120407 00:49:01< mattsc> From my experience, it is essential to move units around on the map and test out (pieces of) the code in real time as I do that. 20120407 00:49:34< mattsc> If I have to let the AI play through a move every time I make some minor change and want to test it, that takes a lot of extra time. 20120407 00:49:44< anonymissimus> Ivanovic: fine (thx for highliting me :)) 20120407 00:50:31-!- anonymissimus [~chatzilla@HSI-KBW-078-042-163-105.hsi3.kabel-badenwuerttemberg.de] has quit [Quit: ChatZilla 0.9.88.1 [Firefox 11.0/20120312181643]] 20120407 00:53:07< mattsc> Would it be possible to have a table ai_debug, that works in the global (side?) context, but only if debug mode is activated. And everybody who publishes a scenario using that table gets banned from the server forever or something. ;) 20120407 00:53:13-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev 20120407 00:53:50-!- Artemius23 [~yigit@139.179.207.7] has joined #wesnoth-dev 20120407 00:58:01< jamit> mattsc, some location set trivia: 16384 is 2^14. Don't know why that was chosen, but it was perhaps not completely random. ;) 20120407 01:01:27-!- markus_ [~mjs-de@g224183171.adsl.alicedsl.de] has joined #wesnoth-dev 20120407 01:01:34-!- Blueblaze2 [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120407 01:02:59-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has joined #wesnoth-dev 20120407 01:03:03-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has left #wesnoth-dev [] 20120407 01:03:18< mattsc> jamit: well, yes. :) I thought originally that it might be the largest number imaginable for a map dimension, but I don't think that's true either 20120407 01:04:18-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has joined #wesnoth-dev 20120407 01:04:22-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has left #wesnoth-dev [] 20120407 01:04:27-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has joined #wesnoth-dev 20120407 01:04:31-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has left #wesnoth-dev [] 20120407 01:04:46-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Ping timeout: 252 seconds] 20120407 01:04:46-!- Blueblaze2 is now known as Blueblaze 20120407 01:05:02< CIA-69> crab * r53819 /trunk/ (changelog players_changelog src/savegame.cpp): Fixed bug #19503. 'Maximum auto saves' setting is no longer ignored. Patch #3228 by akihara. 20120407 01:05:07< CIA-69> crab * r53818 /trunk/ (3 files in 3 dirs): Replaced variable i by TRANSFORM_UNIT_i in macro TRANSFORM_UNIT. Patch #3237 by akihara 20120407 01:05:31-!- mjs-de [~mjs-de@d189204.adsl.hansenet.de] has quit [Ping timeout: 276 seconds] 20120407 01:07:50< jamit> It almost looks like a bit-shift, but 14 is a strange shift number, and I don't know why one would add 2000 at the end. 20120407 01:11:07< mattsc> from the file: '-- the 2000 bias ensure that the correct x is recovered for negative y' 20120407 01:11:46< Alarantalara> is negative y possible? 20120407 01:12:26-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Remote host closed the connection] 20120407 01:12:43-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120407 01:12:49< mattsc> Not on the map, but you could conceivably work with negative values when you caluclate formations etc. 20120407 01:13:24-!- Blueblaze2 [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120407 01:13:31-!- Artemius23 [~yigit@139.179.207.7] has left #wesnoth-dev [] 20120407 01:14:01< mattsc> In fact, I do that in one of my works in progress when trying to find the best lines of defense for groups of units. 20120407 01:17:01-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has joined #wesnoth-dev 20120407 01:17:07-!- Crab_ [~Crab___@nat4-10.ghnet.pl] has left #wesnoth-dev [] 20120407 01:17:11-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Ping timeout: 252 seconds] 20120407 01:17:12-!- Blueblaze2 is now known as Blueblaze 20120407 01:17:26< jamit> Why no bias on the x? I suppose it could work out since x gets the upper bits, but an explicit bias would make it clearer what is going on. 20120407 01:19:55< AI0867> Ivanovic: nothing from me 20120407 01:19:57< mattsc> Well, unless one of the other devs was involved at the time, we might never know if there's a specific reason or not. I checked out the annotations on the file, there isn't anything. 20120407 01:22:04-!- horon [~horon@nttkyo322045.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has joined #wesnoth-dev 20120407 01:23:39< jamit> That means the guessing game is wide open. :) 20120407 01:26:34-!- fkhodkov [~user@ppp-188-65-8-69-bras1.istra.ru] has quit [Remote host closed the connection] 20120407 01:27:42< mattsc> yep. How about, it's proves the existence of alien life on planet HR 8799d. Oh, never mind... 20120407 01:29:38-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120407 01:30:29-!- avrilfanomar [~omar@91.202.129.138] has left #wesnoth-dev [] 20120407 01:31:00-!- Gallaecio [~quassel@84.120.114.134.dyn.user.ono.com] has quit [Read error: Connection reset by peer] 20120407 01:36:02-!- Ivanovic is now known as Ivanovic_ 20120407 01:36:04< AI0867> mattsc: negative indices are sort of possible 20120407 01:36:08-!- Ivanovic_ is now known as Ivanovic__ 20120407 01:36:17-!- Ivanovic__ is now known as ivanovic_ontour 20120407 01:36:23-!- ivanovic_ontour is now known as ivanovic_ontour_ 20120407 01:36:29-!- ivanovic_ontour_ is now known as ivanovic1_ontour 20120407 01:36:38< AI0867> the in-game coordinates are offset by 1 from the ones the engine uses 20120407 01:37:08-!- ivanovic1_ontour is now known as Ivanovic_pandora 20120407 01:37:19< AI0867> ingame (0,0) is the border, so there shouldn't be any units there, but... 20120407 01:37:19-!- Ivanovic_pandora is now known as ivanovic_pnd 20120407 01:37:22-!- ivanovic_pnd is now known as ivanovic_pnd1 20120407 01:37:26< shadowm> you know, you can always start a new connection without joining any channels instead of spamming nick changes 20120407 01:37:27-!- ivanovic_pnd1 is now known as ivanovic 20120407 01:37:47< ivanovic> shadowm: but i am already done! 20120407 01:38:07< mattsc> AI0867, that's a good point. 20120407 01:38:44< mattsc> Although, these are lua coordinates, and those are the same as in-game. 20120407 01:38:54-!- IvanSav [~IvanSav@ns2.ultranet.com.ua] has quit [Quit: IvanSav] 20120407 01:39:06-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120407 01:40:44< mattsc> But as I said, you don't have to use location sets just with real map coordinates. I have a routine that takes units 2 hexes north and south of my unit into account. If it is at y=1 and the LS can handle negative y's, then I don't need to give it special treatment. 20120407 01:43:57< CIA-69> alarantalara * r53820 /trunk/data/campaigns/Under_the_Burning_Suns/scenarios/08_Out_of_the_Frying_Pan.cfg: delete unused variable 20120407 01:49:49-!- wesbot changed the topic of #wesnoth-dev to: 1.10.2 planned for April 7th, string freeze for branches/1.10 | Wesnoth accepted in GSoC 2012 | http://wiki.wesnoth.org/SummerOfCodeIdeas | 170 bugs, 328 feature requests, 16 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20120407 01:50:22-!- Gallaecio_ [~quassel@84.120.114.134.dyn.user.ono.com] has quit [Remote host closed the connection] 20120407 01:53:22-!- Johannes13_ [~Johannes@unaffiliated/johannes13] has quit [Ping timeout: 244 seconds] 20120407 02:09:06-!- oldtopman [~oldtopman@unaffiliated/oldtopman] has quit [Quit: oldtopman has left the house] 20120407 02:21:50-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120407 02:40:08-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120407 02:41:25-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Client Quit] 20120407 02:45:48-!- atomicbomb [~quassel@180.246.189.202] has joined #wesnoth-dev 20120407 02:46:14< CIA-69> alarantalara * r53821 /trunk/data/campaigns/Under_the_Burning_Suns/scenarios/08_Out_of_the_Frying_Pan.cfg: more refactoring of scenario 8 of UtBS 20120407 02:52:36-!- Danceman [~Danceman@a94-132-158-220.cpe.netcabo.pt] has quit [Quit: Leaving] 20120407 02:57:18-!- markus_ [~mjs-de@g224183171.adsl.alicedsl.de] has quit [Remote host closed the connection] 20120407 03:01:11< CIA-69> alarantalara * r53822 /trunk/data/campaigns/Under_the_Burning_Suns/scenarios/08_Out_of_the_Frying_Pan.cfg: use a SUF to replace 6 kill actions with 1 20120407 03:06:27-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120407 03:10:02-!- fkhodkov [~user@ppp-188-65-8-69-bras1.istra.ru] has joined #wesnoth-dev 20120407 03:24:24-!- fkhodkov [~user@ppp-188-65-8-69-bras1.istra.ru] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 20120407 03:25:28-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120407 03:38:23-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20120407 04:34:29-!- Elvish_Pillager [~eli@dhip-149.coburn.residences.colby.edu] has quit [Ping timeout: 248 seconds] 20120407 04:36:42-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120407 04:52:35-!- Ivanovic_ [~ivanovic@dtmd-4d0bf8a4.pool.mediaWays.net] has joined #wesnoth-dev 20120407 04:52:35-!- Ivanovic_ [~ivanovic@dtmd-4d0bf8a4.pool.mediaWays.net] has quit [Changing host] 20120407 04:52:35-!- Ivanovic_ [~ivanovic@wesnoth/developer/ivanovic] has joined #wesnoth-dev 20120407 04:54:29-!- Blueblaze [~Blueblaze@99.158.46.32] has joined #wesnoth-dev 20120407 04:56:52-!- ivanovic [~ivanovic@wesnoth/developer/ivanovic] has quit [Ping timeout: 272 seconds] 20120407 04:57:12-!- Ivanovic_ is now known as Ivanovic 20120407 05:16:29-!- Blueblaze [~Blueblaze@99.158.46.32] has quit [Quit: Blueblaze] 20120407 05:35:32-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120407 05:47:29-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120407 05:51:41-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Quit: BBIAB->] 20120407 05:57:57-!- khoover [~crazy1010@69.159.23.64] has quit [Read error: Connection timed out] 20120407 06:01:00-!- mattsc [~mattsc@d50-92-196-35.bchsia.telus.net] has quit [Quit: bye] 20120407 06:15:34-!- Gambit [~gambit@wesnoth/developer/grickit] has quit [Remote host closed the connection] 20120407 06:19:28-!- neph [~neph@02de475b.bb.sky.com] has quit [Ping timeout: 276 seconds] 20120407 06:47:31-!- naman22 [naman22@1.22.184.246] has quit [Ping timeout: 252 seconds] 20120407 06:47:49-!- naman22 [naman22@1.22.184.246] has joined #wesnoth-dev 20120407 07:08:25-!- fkhodkov [~user@ppp-188-65-8-69-bras1.istra.ru] has joined #wesnoth-dev 20120407 07:33:18-!- fkhodkov [~user@ppp-188-65-8-69-bras1.istra.ru] has quit [Ping timeout: 272 seconds] 20120407 07:46:10-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [Read error: Connection reset by peer] 20120407 07:59:03-!- naman22 [naman22@1.22.184.246] has quit [] 20120407 08:03:03-!- boucman [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20120407 08:05:04-!- trademark_ [~trademark@mon69-1-82-67-23-185.fbx.proxad.net] has joined #wesnoth-dev 20120407 08:13:38-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has quit [Ping timeout: 240 seconds] 20120407 08:15:43-!- stikonas [~gentoo@ctv-217-147-37-55.vinita.lt] has joined #wesnoth-dev 20120407 08:15:43-!- stikonas [~gentoo@ctv-217-147-37-55.vinita.lt] has quit [Changing host] 20120407 08:15:43-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120407 08:21:24-!- leonid [~leonid@221.219.104.246] has joined #wesnoth-dev 20120407 08:21:30-!- fkhodkov [~user@85.26.155.163] has joined #wesnoth-dev 20120407 08:26:55-!- ancestral [~ancestral@97-127-62-183.mpls.qwest.net] has joined #wesnoth-dev 20120407 08:27:00-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth-dev 20120407 08:52:04-!- mordante [~mordante@roadie.xs4all.nl] has joined #wesnoth-dev 20120407 08:52:04-!- mordante [~mordante@roadie.xs4all.nl] has quit [Changing host] 20120407 08:52:04-!- mordante [~mordante@wesnoth/developer/mordante] has joined #wesnoth-dev 20120407 08:52:19< mordante> servus 20120407 09:01:31-!- MeccaGod [majs@host189-199.bornet.net] has joined #wesnoth-dev 20120407 09:07:19-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has quit [Ping timeout: 264 seconds] 20120407 09:08:54-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120407 09:14:50-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has joined #wesnoth-dev 20120407 09:22:49-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has quit [Quit: Leaving] 20120407 09:47:52-!- negusnyul [~negusnyul@dsl4E5CD33A.pool.t-online.hu] has joined #wesnoth-dev 20120407 09:49:24< Ivanovic> moin 20120407 09:52:45< mordante> hi Ivanovic 20120407 09:52:52< mordante> Ivanovic, nothing left for 1.10.2 20120407 09:53:32< Ivanovic> mordante: okay 20120407 09:56:44-!- Johannes13 [~Johannes@unaffiliated/johannes13] has joined #wesnoth-dev 20120407 10:04:12-!- ancestral [~ancestral@97-127-62-183.mpls.qwest.net] has quit [Quit: And that’s the end of THAT chapter.] 20120407 10:20:57-!- Johannes13_ [~Johannes@unaffiliated/johannes13] has joined #wesnoth-dev 20120407 10:21:41-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has joined #wesnoth-dev 20120407 10:24:12-!- Johannes13 [~Johannes@unaffiliated/johannes13] has quit [Ping timeout: 246 seconds] 20120407 10:24:12-!- Johannes13_ is now known as Johannes13 20120407 10:31:19< CIA-69> ivanovic * r53823 /trunk/po/ (27 files in 27 dirs): updated Russian translation 20120407 10:31:19< CIA-69> ivanovic * r53824 /branches/1.10/po/ (27 files in 27 dirs): updated Russian translation 20120407 10:31:56< Ivanovic> mordante: are the arm specific scaling speed improvements listed in the 1.10 changelog? 20120407 10:32:29-!- khoover [~crazy1010@69.159.23.64] has joined #wesnoth-dev 20120407 10:35:30< trademark_> mordante, my result for the patch #3236 are with no optimization, with -O2, the difference is of 200ms instead of 1 second and with -O3 there is no difference and even with 1000000000000^9 calls the result is 2-3ms with any of the functions. 20120407 10:37:27-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120407 10:49:12< mordante> Ivanovic, they are listed as Pandora specific 20120407 10:49:27-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has quit [Quit: Konversation terminated!] 20120407 10:50:42< mordante> trademark_, so the compiler does a good job at optimizing 20120407 10:51:16< trademark_> yep 20120407 10:51:17< mordante> trademark_, when benchmarking always let the compiler do some optimisations 20120407 10:51:57< mordante> gcc is know to produce very unoptimised (sounds as ugly English) code at -O0 20120407 10:52:02< mordante> known* 20120407 10:52:20< mordante> but at least it makes the code very good for debugging 20120407 10:52:24-!- hankerspace [~quassel@hankerspace.dyndns.org] has joined #wesnoth-dev 20120407 10:52:58< mordante> Rhonda, I got some emails that Wesnoth-1.8 no longer builds in Debian, I assume the new boost defaults are to blame 20120407 10:53:24< mordante> Rhonda, since I think we don't want Wesnoth 1.8 in the next stable, is this a good point to remove it from unstable? 20120407 10:53:42< mordante> hi hankerspace 20120407 10:53:48< hankerspace> hi mordante 20120407 10:54:15< mordante> hankerspace, haven't found time for your patch yet, reviewing gsoc applications, but expect to find time today 20120407 10:55:53< hankerspace> Alright mordante, i was thinking you did not work on my patch because it was bad 20120407 10:56:13< trademark_> Well, what should I conclude from that ? Should I cancel my patch ? 20120407 10:56:22< mordante> no just a lot of GSoC applications to review 20120407 10:57:10< mordante> trademark_, I think the original code is more readable 20120407 10:57:14< hankerspace> Understood, no problem mordante, i'm working on the AI now (prepare myself for gsoc) 20120407 10:57:33< mordante> so therefore I don't like the patch, I like your investigation and your testing 20120407 10:57:54< mordante> and I assume you learned something from it (at least that compilers are rather decent at optimisation) 20120407 10:59:21< mordante> but keep the patch on your gsoc application 20120407 10:59:33< trademark_> mordante, even the second patch ? It seems like the original code but without multiple call to same function :) By the way I found a problem in the is_odd function. And yeah, I didn't know that the difference between O2 and O3 was so important. 20120407 11:00:03< mordante> trademark_, I only tested the second patch 20120407 11:00:07-!- Johannes13_ [~Johannes@p4FDEFAAB.dip.t-dialin.net] has joined #wesnoth-dev 20120407 11:00:07-!- Johannes13_ [~Johannes@p4FDEFAAB.dip.t-dialin.net] has quit [Changing host] 20120407 11:00:07-!- Johannes13_ [~Johannes@unaffiliated/johannes13] has joined #wesnoth-dev 20120407 11:00:17< trademark_> ok :) 20120407 11:00:46-!- Johannes13_ [~Johannes@unaffiliated/johannes13] has left #wesnoth-dev [] 20120407 11:00:58< mordante> I just don't like it since it makes the code less readable and the compiler can optimise it 20120407 11:01:11< hankerspace> Yeah, i love my work complete mordante. Sometimes it takes a while but i think in a such project (as wesnoth) the C++ source code must be clear for others workers 20120407 11:01:15< mordante> if you found a bug in is_odd we like a patch for it 20120407 11:02:04< mordante> hankerspace, yes a clean codebase is important, but hard to create and keep 20120407 11:03:41< mordante> trademark_, the compiler is_odd/is_even are inline template functions so their code is directly put in the calling function 20120407 11:03:44< hankerspace> i'm agree with you mordante. 20120407 11:03:56< mordante> this makes it rather easy for the compiler to optimise the code 20120407 11:04:21-!- fkhodkov [~user@85.26.155.163] has quit [Ping timeout: 245 seconds] 20120407 11:05:27< trademark_> mordante, I know :) Anyway, it was unimportant. 20120407 11:08:34-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 11:09:45< mordante> the bug or the patch? 20120407 11:10:25-!- Johannes13_ [~Johannes@p4FDEFAAB.dip.t-dialin.net] has joined #wesnoth-dev 20120407 11:10:25-!- Johannes13_ [~Johannes@p4FDEFAAB.dip.t-dialin.net] has quit [Changing host] 20120407 11:10:25-!- Johannes13_ [~Johannes@unaffiliated/johannes13] has joined #wesnoth-dev 20120407 11:11:06-!- fkhodkov [~user@83.149.8.75] has joined #wesnoth-dev 20120407 11:12:00-!- Johannes13_ [~Johannes@unaffiliated/johannes13] has left #wesnoth-dev [] 20120407 11:17:05< mordante> GSoC students when updating your proposal please tell us what you updated, we don't want to reread the entire proposal 20120407 11:17:51< trademark_> mordante, well, finally it's not a bug. But please look at this (I tested it of course): http://pastebin.com/7Crigh42 20120407 11:18:21< trademark_> Should I do a patch for this or do you think it not readable ? 20120407 11:18:45< trademark_> or whatever :) 20120407 11:22:13< mordante> trademark_, I mainly care about readability if there is an alternative 20120407 11:22:43< mordante> I really like the parity trick in general it's just that the current code is more readable 20120407 11:22:53< trademark_> ok :) I understand. 20120407 11:23:24< trademark_> but the link I sent is not about get_adjacent_tiles but about is_odd. 20120407 11:23:33< mordante> I know ;-) 20120407 11:23:43< trademark_> Sorry :) 20120407 11:23:46< mordante> what does exactly goes wrong in is odd? 20120407 11:24:58-!- IvanSav [~IvanSav@ns2.ultranet.com.ua] has joined #wesnoth-dev 20120407 11:26:42< trademark_> mordante, nothing there is just an useless ternary condition. It is not necessary because negative and positive number have the same last bit. 20120407 11:31:58-!- mjs-de [~mjs-de@g224183171.adsl.alicedsl.de] has joined #wesnoth-dev 20120407 11:33:40-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has quit [Quit: Konversation terminated!] 20120407 11:35:15< mordante> trademark_, are you sure about that? 20120407 11:40:13< trademark_> mordante, yes. 20120407 11:41:22< trademark_> mordante, I tested in the range [-1000000...1000000] with assert. And with "int overflow". The two functions returns the same value. 20120407 11:43:44< mordante> trademark_, also tested on a ones' complement machine? 20120407 11:44:07< mordante> (and yes it's really a pedantic question) 20120407 11:48:22-!- fkhodkov` [~user@ppp-188-65-10-53-bras1.istra.ru] has joined #wesnoth-dev 20120407 11:50:08-!- atomicbomb [~quassel@180.246.189.202] has quit [Remote host closed the connection] 20120407 11:50:56-!- fkhodkov [~user@83.149.8.75] has quit [Ping timeout: 265 seconds] 20120407 11:55:04-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 252 seconds] 20120407 11:57:21< trademark_> mordante, it's not working on a ones' complement machine. BTW, I'm not sure that ones' complement machine can run Wesnoth :). But ok, I learned another thing ! 20120407 12:01:59-!- vultraz_laptop [~chatzilla@124.109.10.221] has quit [Quit: brb] 20120407 12:03:01-!- vultraz_laptop [~chatzilla@124.109.10.221] has joined #wesnoth-dev 20120407 12:03:25-!- liviuc [~liviu@p5.eregie.pub.ro] has joined #wesnoth-dev 20120407 12:03:44-!- liviuc [~liviu@p5.eregie.pub.ro] has left #wesnoth-dev [] 20120407 12:06:23< mordante> trademark_, like I said it's quite pedantic also not sure whether Wesnoth runs on a ones' complement machine 20120407 12:07:19-!- Gallaecio [~quassel@84.120.114.134.dyn.user.ono.com] has joined #wesnoth-dev 20120407 12:07:32< mordante> however we have and had several developers who were well versed in C++ so one of them might have written the code in its current form 20120407 12:12:02< Ivanovic> AI0867, boucman, elias, Espreon, fendrin, loonycyborg, mordante, shadowm, Soliton, everyone else who cares: ready for 1.10.2? 20120407 12:12:59< vultraz_laptop> mordante: is it possible to get the index of the last entry in a litsbox (the highest index number)? 20120407 12:13:00-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120407 12:13:32-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 12:13:35-!- Gallaecio_ [~quassel@84.120.114.134.dyn.user.ono.com] has joined #wesnoth-dev 20120407 12:15:23-!- neph [~neph@02de475b.bb.sky.com] has joined #wesnoth-dev 20120407 12:15:55< vultraz_laptop> mordante: also, how do you remove listbox entries (single ones)? shadowm says it's possible, but the process is buggy :P 20120407 12:19:26< CIA-69> ivanovic * r53825 /branches/1.10/ (329 files in 28 dirs): 20120407 12:19:26< CIA-69> pot-update (no new/changed strings, reference update only; preparing for 1.10.2) 20120407 12:19:26< CIA-69> regenerated doc files 20120407 12:19:56-!- neph [~neph@02de475b.bb.sky.com] has quit [Ping timeout: 265 seconds] 20120407 12:25:08-!- Haldric [~Haldric@wesnoth/translator/Haldric] has joined #wesnoth-dev 20120407 12:25:40< CIA-69> ivanovic * r53826 /branches/1.10/ (changelog players_changelog src/wesconfig.h): 20120407 12:25:40< CIA-69> bumped version to 1.10.2 20120407 12:25:40< CIA-69> changelog style fixes 20120407 12:25:59-!- Ivanovic changed the topic of #wesnoth-dev to: releasing 1.10.2, using r53826 | Wesnoth accepted in GSoC 2012 | http://wiki.wesnoth.org/SummerOfCodeIdeas | 170 bugs, 328 feature requests, 16 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20120407 12:29:47-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120407 12:34:03-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 12:34:35-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 12:49:28-!- mjs-de [~mjs-de@g224183171.adsl.alicedsl.de] has quit [Remote host closed the connection] 20120407 12:50:32< mordante> Ivanovic, I'm still ready 20120407 12:50:50< mordante> vultraz_laptop, it's possible to get the number of rows 20120407 12:51:36< mordante> vultraz_laptop, with the remove_row function 20120407 12:51:45-!- khoover [~crazy1010@69.159.23.64] has quit [Read error: Connection timed out] 20120407 12:57:00< Ivanovic> okay, and the pandora version did build, too 20120407 12:57:07< Ivanovic> now just to create a package and test if that is working 20120407 12:57:07< mordante> ok nice 20120407 12:57:20< mordante> btw are you also able to recompile SDL? 20120407 12:57:22< Ivanovic> all campaigns are at least starting (tested one difficulty level for each) 20120407 12:57:41< Ivanovic> ugh, the sdk should allow recompiling and i can package a differing libsdl 20120407 12:57:48< Ivanovic> but i'd like to not do so if i can help it 20120407 12:58:23< mordante> ok I was just curious, I might have some SDL patches as well 20120407 12:58:31< mordante> emphasis on might 20120407 12:59:36< CIA-69> ivanovic * r53827 /tags/1.10.2/: tagged 1.10.2, using r53826 20120407 12:59:43< Ivanovic> mordante: in theory this should be possible 20120407 13:00:13< Ivanovic> mordante: but if you have sdl patches which might/should help the pandora it would probably be best if you talked to notaz about them to include them in the official firmware 20120407 13:01:07< mordante> obviously but of course they need to be tested first 20120407 13:01:25< mordante> so just curious how easy it would be for you to recompile SDL 20120407 13:01:31< CIA-69> ivanovic * r53828 /branches/1.10/ (changelog players_changelog src/wesconfig.h): post release version bump 20120407 13:01:57< Ivanovic> mordante: it should be possible though i tend to not trust autotools for crosscompilation, it can easily get ugly 20120407 13:02:04< Ivanovic> IIRC libsdl still relies on autotools 20120407 13:02:05-!- loonybot [~loonybot@46.138.73.65] has joined #wesnoth-dev 20120407 13:02:05-!- loonybot [~loonybot@46.138.73.65] has quit [Changing host] 20120407 13:02:05-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-dev 20120407 13:02:28< mordante> IIRC it indeed does 20120407 13:02:30< Ivanovic> Alarantalara, loonycyborg, Rhonda: 1.10.2 is tagged, the tarball is still being uploaded (should be done in ~1h) 20120407 13:04:19-!- Johannes13 [~Johannes@unaffiliated/johannes13] has quit [Ping timeout: 260 seconds] 20120407 13:05:01< enchilado> win 11 20120407 13:05:08< enchilado> gahhharghrghhargrgag 20120407 13:05:10< enchilado> sorry all :< 20120407 13:06:00< mordante> Ivanovic, once I caught up with all GSoC related stuff I'll have a look at the Pandora again 20120407 13:06:17< Ivanovic> mordante: okay, will talk to you about it some time in october 20120407 13:06:19< Ivanovic> ;) 20120407 13:06:48-!- Johannes13 [~Johannes@unaffiliated/johannes13] has joined #wesnoth-dev 20120407 13:06:57< mordante> great, seems you have a long trip to the states :-P 20120407 13:06:57< Ivanovic> mordante: that is: i won't be able to test anything for the pandora between monday afternoon and the 21st of april since then i won't have a compile env with me even if i manage to join irc every now and then 20120407 13:07:34< Ivanovic> nah, i estimate you to be busy with gsoc until october! 20120407 13:07:36< Ivanovic> ;) 20120407 13:07:50 * mordante hopes to finish catching up in a few hours 20120407 13:08:24< mordante> unless of course all students start to supply patches ;-) 20120407 13:14:33-!- khoover [~crazy1010@69.159.23.64] has joined #wesnoth-dev 20120407 13:17:44-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 13:18:13-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 13:26:36< jamit> trademark_, mordante: About is_odd(), I see the ones' complement support and don't see any reason to get rid of it (the compiler should be optimizing it away when using two's complement), but that got me wondering -- why the initial cast to int? 20120407 13:27:13< jamit> It looks like a standard compatibility technique, but I can't at the moment recall what its purpose is. 20120407 13:27:36< mordante> jamit, it's a template and you have no idea of the type you get 20120407 13:27:51< mordante> and I agree I don't want ones' complement support 20120407 13:28:53< jamit> True, but if it can be converted to int, couldn't it be compared to 0 then converted to unsigned without first being converted to int? 20120407 13:29:19-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20120407 13:29:23< mordante> maybe not sure 20120407 13:29:44< jamit> (I'm not suggesting to get rid of it. This just seems like something I should know.) 20120407 13:29:55< mordante> might also have been evolutions first cast to int discover a problem and then convert to unsigned not bothering to remove the initial cast 20120407 13:30:31-!- nagafono [~kvirc@178.19.254.1] has quit [Read error: Connection reset by peer] 20120407 13:30:43< trademark_> and if it's a long long, is the ones' complement working well ? (due to the overflow). 20120407 13:31:57-!- mage666 [~palladin@188.40.110.5] has left #wesnoth-dev [] 20120407 13:32:02< mordante> the commit message says "Shut VC warning about unsigned types by casting to a signed type." 20120407 13:32:21< mordante> makes sense 20120407 13:33:21-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 13:33:49-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 13:33:57< jamit> Compiler warning is as good a reason as any. Provided it doesn't mess up for really big numbers (e.g. larger than max_int). 20120407 13:39:04-!- atomicbomb [~quassel@180.246.152.50] has joined #wesnoth-dev 20120407 13:40:22-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Quit: BBL->] 20120407 13:41:35-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120407 13:41:53-!- nagafono [~kvirc@178.19.254.1] has quit [Client Quit] 20120407 13:42:27< mordante> trademark_, if the value doesn't fit in an it it's implementation defined 20120407 13:42:33< mordante> an int* 20120407 13:42:38-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 13:43:10-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 13:44:04< trademark_> btw we could use std::abs(), so the responsibility of cast, overflow, won't be ours. 20120407 13:44:51-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120407 13:45:59 * mordante loves std::abs(std::numeric_limits(min()) 20120407 13:47:03< mordante> but I'd simply leave the code as is it works for us 20120407 13:47:36-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120407 13:49:49-!- wesbot changed the topic of #wesnoth-dev to: releasing 1.10.2, using r53826 | Wesnoth accepted in GSoC 2012 | http://wiki.wesnoth.org/SummerOfCodeIdeas | 170 bugs, 329 feature requests, 16 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20120407 13:52:10-!- nagafono [~kvirc@178.19.254.1] has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/] 20120407 13:53:43-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120407 13:57:09< Ivanovic> Alarantalara, loonycyborg, Rhonda: upload of 1.10.2 sourcecode to sf.net done! 20120407 14:00:28-!- Elvish_Pillager [~eli@dhip-149.coburn.residences.colby.edu] has joined #wesnoth-dev 20120407 14:02:11< vultraz_laptop> mordante: ok, it's possible to get the number of rows. but...how :P I only know how to get the index of the currently selected one in lua 20120407 14:02:45< mordante> vultraz_laptop, as said before I've no idea what is implemented in Lua only in C++ 20120407 14:02:47-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120407 14:04:05< vultraz_laptop> well, how is it done in C++ then. EH and I can probably puzzle out how to deal with it in lua 20120407 14:05:36-!- loonybot [~loonybot@46.138.73.65] has joined #wesnoth-dev 20120407 14:05:36-!- loonybot [~loonybot@46.138.73.65] has quit [Changing host] 20120407 14:05:36-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-dev 20120407 14:05:42< mordante> get_item_count() 20120407 14:13:39-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20120407 14:22:11< mordante> Akihara, I see you already submitted two patches I just had another look at your proposal and I think the timeline can be improved 20120407 14:22:40< mordante> try to discuss a bit more with Crab_ when he's online 20120407 14:23:41< mordante> also I'm interested in the next patch you're working on 20120407 14:23:45< Akihara> mordante: thanks :) I will! I already looking at the source in order to submit a more interresting proposal :) 20120407 14:23:58< mordante> good :-) 20120407 14:24:19< Akihara> Crab told me to look at it :) do you know a little about the AI? 20120407 14:24:20< mordante> we really like patches 20120407 14:24:39< mordante> a little, but the last time I looked was a few years ago 20120407 14:25:02< mordante> however if you have questions just ask them, Crab_ reads the logs so he can answer them later 20120407 14:25:15< mordante> and somebody else might also know the answer 20120407 14:25:36< Akihara> okay :) 20120407 14:25:52-!- neph [~neph@02de475b.bb.sky.com] has joined #wesnoth-dev 20120407 14:26:12< shadowm> Ivanovic: done with the release yet? 20120407 14:26:29-!- Ivanovic changed the topic of #wesnoth-dev to: released 1.10.2, announcing "soon" | Wesnoth accepted in GSoC 2012 | http://wiki.wesnoth.org/SummerOfCodeIdeas | 170 bugs, 329 feature requests, 16 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20120407 14:26:37< shadowm> good 20120407 14:27:18-!- Haldric [~Haldric@wesnoth/translator/Haldric] has quit [Remote host closed the connection] 20120407 14:29:06< shadowm> am I still asleep or someone turned the Category:Summer_of_Code_2012_Student_Page page into a student page 20120407 14:29:18-!- knotwork_ is now known as knotwork 20120407 14:29:19< vultraz_laptop> mordante: does tlistbox::clear() get rid of all rows? 20120407 14:29:47< Ivanovic> shadowm: yeah, someone turned it into a student page... 20120407 14:30:05< mordante> vultraz_laptop, yes, but you can also look at src/gui/widgets/listbox.hpp 20120407 14:32:47< AI0867> mordante: that's an odd syntax, but wouldn't std::abs(std::numeric_limits.min()) == std::numeric_limits.min() due to overflow? 20120407 14:33:00< AI0867> so what's the point of that code? 20120407 14:34:35-!- ivanovic_pandora [~ivanovic@wesnoth/developer/ivanovic] has joined #wesnoth-dev 20120407 14:35:25< mordante> AI0867, exactly that's the point of it, I just like the function signature to return an int 20120407 14:36:13< mordante> and it obviously only overflows in two's complement, not in ones' complement and sign magnitude 20120407 14:36:22-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev 20120407 14:37:10-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has joined #wesnoth-dev 20120407 14:37:32< mordante> hankerspace, I'm looking at your patch, what happens if auto_close_timeout = "foo" 20120407 14:37:34-!- ivanovic_pandora [~ivanovic@wesnoth/developer/ivanovic] has quit [Client Quit] 20120407 14:38:14< mordante> also I think in the lexical_cast the compiler should be able to deduct the second type 20120407 14:38:24< mordante> so no need to specify it manually 20120407 14:38:42< shadowm> Gambit: anything you can do about the 1.10.x changelog looking retarded in Desura? Also, you should probably allocate some time for 1.10.2 which was tagged around one hour and a half ago 20120407 14:38:56< mordante> also personally I prefer {} after if etc especially if nested 20120407 14:39:09< shadowm> I imagine the win32 build will be up today or so 20120407 14:39:14< mordante> if the indention is broken things will become unreadable 20120407 14:40:02< mordante> and as said before I think it would be a good idea to use an unsigned in gui/dialogs/wml_message.hpp 20120407 14:40:14< vultraz_laptop> mordante: just wondering...but what are the differences between the relative functions defined in listbox.cpp and listbox.hpp? 20120407 14:40:51< CIA-69> alarantalara * r53829 /branches/1.10/projectfiles/Xcode/ (3 files in 2 dirs): Xcode project version update 20120407 14:41:06< shadowm> Gambit: this is what it looks like for me: http://shadowm.rewound.net/f/horrible-changelog.png 20120407 14:41:22< mordante> vultraz_laptop, it's C++ in the header (.hpp) a function is declared in the implementation (.cpp) it's defined 20120407 14:41:32< Gambit> oh dear 20120407 14:41:56< mordante> so when you include another header you promise the compiler which functions will be available 20120407 14:43:05< shadowm> Gambit: I also still have that hardcoded _1.8_ preferences path silliness here 20120407 14:43:16< vultraz_laptop> so without the .cpp the stuff in the .hpp would do nothing? 20120407 14:43:48< shadowm> Gambit: that is, the hardcoded --config-dir Wesnoth1.8 command line 20120407 14:44:01< mordante> no exactly, but yeah for the practical side of it yes 20120407 14:44:02< Gambit> shadowm: hmmm 20120407 14:44:08< shadowm> (which makes it impossible to override it with a user command line because of the way we process the command line) 20120407 14:44:13< Gambit> shadowm: have you tried redownloading? 20120407 14:44:18< Ivanovic> shadowm: since the stuff for this student at google is identical to the wiki breakup i'll remove the stuff from the wiki 20120407 14:44:47< shadowm> Gambit: I haven't, I think. I only yesterday "updated" to 1.10.1, presumably from 1.10.0. Should I redownload everything instead? 20120407 14:44:57< Ivanovic> shadowm: done 20120407 14:44:58< AI0867> mordante: so what's the rest of the code that I'm missing? 20120407 14:45:04< Gambit> Maybe. 20120407 14:45:18< Gambit> I'll check something here after I fix the changelog for 1.10.1 20120407 14:45:20< AI0867> squeeze backports is still on 1.10.0 20120407 14:45:28< Gambit> Perhaps they never fixed that one setting for me 20120407 14:45:32< AI0867> though wheezy is on 1.10.1 20120407 14:45:32< shadowm> Well, I'm not really willing to waste 0.4 GiB of my month's quota yet. 20120407 14:46:15< shadowm> That is, if you see no problems in that regard at your end, then I imagine it's only me. 20120407 14:46:50< Gambit> It might store that path stuff on your side and never check for changes 20120407 14:47:15< Gambit> Or it might be that Tim forgot to remove it when I asked him to and he said he would. 20120407 14:47:34< Gambit> (It kind of sucks that there's a ton of functionality that I would consider to be "core" that they don't trust developers to touch) 20120407 14:48:49< Gambit> ... 20120407 14:48:51< Gambit> changelog still broken 20120407 14:49:01< Gambit> because it uses some markup that I can't find documentation for 20120407 14:50:09< mordante> AI0867, ? 20120407 14:52:23< jamit> trademark_, mordante: You know, (couldn't get this out of my head) if you really wanted to simplify is_odd(), it might be better to not anticipate binary representations. 20120407 14:52:45< jamit> Just use: inline bool is_odd(T num) { return num % 2 != 0; } and something similar for is_even() 20120407 14:53:42< mordante> is_even is already defined in terms of is_odd so no need to change that 20120407 14:53:52< jamit> Don't know if there is anyone using VC who would want to check that for compile errors. (Not that BfW needs to worry about the extreme cases.) 20120407 14:54:43< mordante> I don't see a drawback for % 2 at the moment 20120407 14:54:53< jamit> Heh. I mentioned is_even() because for some reason I like the look of == 0, then defining is_odd() in terms of is_even(). Purely asthetic. :) 20120407 14:55:55< mordante> and typical compiler should be smart about % 2 20120407 14:56:17< mordante> in that case it would be better to define is_odd in terms of is_even ;-) 20120407 14:56:19< trademark_> You can simplify it again: return num % 2; 20120407 14:56:29< mordante> exactly 20120407 14:56:34< jamit> I checked some resources, and what I found said that in general modulus is slower than bitwise-and, but the compiler would take care of that. Otherwise, nobody seems to know a difference. 20120407 14:57:07< trademark_> I think it's better to use % so. 20120407 14:57:17< jamit> You could return num%2, but I kind of like the explicit conversion to a boolean. Slightly less cryptic. 20120407 14:57:36< mordante> yes division and modulus is often slow(er) on the hardware but the compiler can do that kind of optimisation 20120407 14:57:57< trademark_> it's an interesting trade-off :) 20120407 14:58:26< mordante> a compiler might even decide to use a shift and check the contents of the carry flag, when used in an if statement 20120407 14:58:45< jamit> Compilers are clever. 20120407 14:58:57< mordante> to a certain amount ;-) 20120407 14:59:08< Gambit> shadowm: and thanks :) 20120407 14:59:41< mordante> I hoped to convince gcc to vectorise instructions... and it failed badly 20120407 15:01:02< Gambit> shadowm: Okay that setting is definitely gone. So it is one of those things it won't check for updates for. 20120407 15:01:28< Gambit> (Which is silly because it'd be - at most - one extra KB :\ ) 20120407 15:01:52< shadowm> I'll redownload it later then unless I can figure out a way to hack it out. 20120407 15:02:46< shadowm> ugh why did scons decide to rebuild 1.10 basically from scratch 20120407 15:03:07< shadowm> I guess I may as well switch to Boost 1.49 while at it 20120407 15:04:25< jamit> crab_: When you get a chance, could you look at https://gna.org/bugs/?19623 I think you were the one who suppressed shroud_data in the first place, so I was wondering what you thought about this. 20120407 15:14:57-!- oldtopman [~oldtopman@unaffiliated/oldtopman] has joined #wesnoth-dev 20120407 15:16:36-!- neph [~neph@02de475b.bb.sky.com] has quit [Read error: Connection reset by peer] 20120407 15:18:18< loonycyborg> Ivanovic: Gambit: 1.10.2 windows installer is uploaded. 20120407 15:18:46-!- Nephro [~Dmitry@02de475b.bb.sky.com] has joined #wesnoth-dev 20120407 15:23:13< CIA-69> shadowmaster * r53830 /trunk/changelog: editor: Changelog entry for r53593 20120407 15:29:06-!- lexaz_ [b2131d40@gateway/web/freenode/ip.178.19.29.64] has joined #wesnoth-dev 20120407 15:29:17< lexaz_> hi all 20120407 15:29:50< lexaz_> i get message under my gsoc propostal ant there is some actions to do 20120407 15:30:10< lexaz_> where i can fix some bugs? 20120407 15:33:04< shadowm> I wonder, have people tried to compile Wesnoth with clang before? 20120407 15:33:34< Nephro> shadowm, there was a conversation here a few days ago, and I think I heard the answer "yes" 20120407 15:33:38< AI0867> mordante: the context of that code. You say the overflow equality if 2s-complement is the point, but I saw just that one statement 20120407 15:33:43< AI0867> or part of one 20120407 15:33:48< AI0867> expression then 20120407 15:33:53< Nephro> shadowm, I suggest you scan the logs for the word "clang" 20120407 15:34:19< shadowm> bleh, I'll have to login to wesnoth.org for that 20120407 15:34:36-!- lexaz_ [b2131d40@gateway/web/freenode/ip.178.19.29.64] has quit [Ping timeout: 245 seconds] 20120407 15:34:51< Ivanovic> loonycyborg: great! 20120407 15:35:51< shadowm> okay, found it 20120407 15:36:26< loonycyborg> Ivanovic: Maybe we should set it as default download too :P 20120407 15:36:40< Ivanovic> loonycyborg: yeah, we can already do so 20120407 15:37:57< shadowm> blargh it 20120407 15:38:46< shadowm> suddenly I regret using strict builds for 1.10, or adding the trunk warning switches: https://pastebin.com/ecigpysw 20120407 15:39:47< shadowm> I guess I'll just remove the latter and spend another 35 minutes compiling from scratch 20120407 15:39:54< boucman> back... 20120407 15:42:11< shadowm> or I could smash the laptop in despair 20120407 15:42:29< mordante> AI0867, that's further back in the logs 20120407 15:42:32< hankerspace> mordante: i've just read your advises. I'll modify my patch. But why someone would write "foo" ? :D 20120407 15:42:36< loonycyborg> g++-4.7? That's some bleeding edge compiler :P 20120407 15:42:59< Ivanovic> loonycyborg: okay, i see that you already set the windows version of 1.10.2 as default, i have done so for the other platforms besides OSX 20120407 15:43:05< mordante> shadowm, I tries to compile with clang and it works with 3.0 20120407 15:43:06< Ivanovic> (for the sources that is) 20120407 15:43:22< Ivanovic> now just to wait for the mac binary and then get the announcement out 20120407 15:43:31< loonycyborg> mordante: Does it run too? :P 20120407 15:43:34< Ivanovic> in the meantime i'll create a draft in the moderators forum 20120407 15:43:42< mordante> hankerspace, typo, honest error you name it 20120407 15:43:43< Alarantalara> Ivanovic: it's being uploaded now - progress says another 36 minutes 20120407 15:43:53< Ivanovic> wow, Alarantalara 20120407 15:43:57< Ivanovic> great to hear this 20120407 15:44:01< shadowm> mordante: how faster is it? also what loonycyborg asked 20120407 15:44:03-!- lexaz [farshas@178-19-29-64.roventa.lt] has joined #wesnoth-dev 20120407 15:44:07< Ivanovic> then i can really post the 1.10.2 announcement in ~24h 20120407 15:44:08< mordante> loonycyborg, that wasn't the question :-P but no I only compile in a chroot 20120407 15:44:12< shadowm> (yes, I'm trying to avoid the inevitable problem of buying a new computer) 20120407 15:44:55< lexaz> hi i get comment under my gsoc propostal some quests where i can fix some bugs? 20120407 15:44:59< hankerspace> But if there is a problem in the WML code, it doesn't works mordante, the scenario designer must use numeric values ...? 20120407 15:45:18< mordante> no idea how much faster it compiles never tried 20120407 15:45:33< mordante> hankerspace, tried what happened if you use "foo" ? 20120407 15:46:05< mordante> of course (s)he should use numbers, but typos exist 20120407 15:46:07< hankerspace> No :o i don't have a twisted mind mordante but i'll try :) 20120407 15:46:13< shadowm> mordante: I thought you just said you tried it? 20120407 15:46:23< mordante> my compiler happens to complain about :wq every now and then 20120407 15:46:35< lexaz> did someone can help me? 20120407 15:46:40< mordante> hankerspace, no it's called reality and input sanitasion 20120407 15:46:49< mordante> shadowm, tried to compile 20120407 15:47:02< mordante> lexaz, which proposal is yours? 20120407 15:47:25< mordante> and in IRC there is the word patience ;-) 20120407 15:47:32< lexaz> Multiple Chance-to-kill calculations and interface polish 20120407 15:47:34< shadowm> mordante: my question is obviously about the compile time, not about the build's runtime performance 20120407 15:48:13< mordante> shadowm, yeah but I looked how fast it compiles 20120407 15:48:15< lexaz> where i can find some programs with errors and i will fix bugs on c++ 20120407 15:48:35< mordante> lexaz, there are several CTK proposals... 20120407 15:48:42< lexaz> this is quest for me 20120407 15:48:44< lexaz> 1) show us that you can program in C++ - submit 1-2 patches (more is better) to Wesnoth - i.e., find and fix some easy bugs. 20120407 15:48:54< lexaz> where i can find it ? 20120407 15:49:09< AI0867> the bugtracker 20120407 15:49:19< Ivanovic> bugs.wesnoth.org 20120407 15:49:20< AI0867> gna.org/bugs/?group=wesnoth 20120407 15:49:24< shadowm> mordante: you did, or you didn't? 20120407 15:49:30< lexaz> thanks bros 20120407 15:49:45< mordante> I compiled with clang 3.0 but never bothered to look how long it took 20120407 15:50:06< shadowm> okay, that's better 20120407 15:50:23< mordante> and since I use ccache in my chroot the current timing is not representative 20120407 15:52:53-!- zookeeper [~lmsnie@87-100-211-108.bb.dnainternet.fi] has joined #wesnoth-dev 20120407 15:52:59-!- zookeeper [~lmsnie@87-100-211-108.bb.dnainternet.fi] has quit [Changing host] 20120407 15:52:59-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120407 15:55:56< CIA-69> mordante * r53831 /trunk/src/filesystem.cpp: 20120407 15:55:56< CIA-69> Removing a warning about relative paths. 20120407 15:55:56< CIA-69> The issue was spotted by Ivanovic. 20120407 15:56:08< mordante> Ivanovic, ^ notice I forgot to commit the fix 20120407 15:56:12< mordante> noticed* 20120407 15:56:15< Ivanovic> :) 20120407 15:58:50< bloodycoin> boucman, any way from inside unit_animation to know if animation is ghosted? 20120407 15:58:55< lexaz> is there programs and i should fix it , or is there nothink and i will write it from nothink? 20120407 16:00:00-!- mattsc [~mattsc@d50-92-196-35.bchsia.telus.net] has joined #wesnoth-dev 20120407 16:00:16< boucman> hmm tricky... 20120407 16:00:32< Ivanovic> lexaz: sorry, but it is hard to understand what you mean 20120407 16:00:44< Ivanovic> lexaz: you of course have to get the wesnoth sourcecode to fix reported bugs 20120407 16:00:49< boucman> I usually add a debug boolean member to the class, set it at the point where the animation I look for is, and read it in the drawing code, later 20120407 16:00:53< Ivanovic> so things you got to do: 20120407 16:01:00< Ivanovic> 1) get an svn checkout 20120407 16:01:04< lexaz> and where i can find the sourcecode?? 20120407 16:01:07< Ivanovic> 2) compile the checkout 20120407 16:01:36< AI0867> wesnoth.org/wiki/WesnothSVN 20120407 16:01:40< Ivanovic> lexaz: *all* things you are supposed to do are listed on our ideas page: http://wiki.wesnoth.org/SummerOfCodeIdeas 20120407 16:01:55< Ivanovic> lexaz: please make sure to read the complete first section with the "what should I do" part 20120407 16:02:27< lexaz> oh ivanovic thank you for this link it's really a lot information for this :) thanks :) 20120407 16:04:09< lexaz> and last question where i can create the wiki page and copy my propostal? 20120407 16:04:17< lexaz> how i can create a wiki? 20120407 16:04:20-!- atomicbomb [~quassel@180.246.152.50] has quit [Remote host closed the connection] 20120407 16:06:43< shadowm> okay 20120407 16:06:47< shadowm> this is absolutely ridiculous 20120407 16:07:15< lexaz> :D 20120407 16:07:21< shadowm> I'm still getting this with 1.10: https://pastebin.com/0HyZ84qi 20120407 16:07:27< mordante> Ivanovic, do you feel lucky? 20120407 16:07:48< Ivanovic> head: i do; tail: I don't 20120407 16:07:58< shadowm> I guess I'll have to compile from scratch a THIRD time in a row 20120407 16:08:03< Ivanovic> mordante: tail 20120407 16:08:07< Ivanovic> ah, ups, was head 20120407 16:08:09< Ivanovic> sorry 20120407 16:08:27< mordante> good then I have a Pandora patch 20120407 16:08:28< hankerspace> mordante: can i use a try, catch with the lexical cast (if lexical cast fails, variable is not numeric) 20120407 16:08:38< shadowm> mordante: could you look into this if you have gcc 4.7? 20120407 16:08:40< shadowm> or you ever get 4.7 20120407 16:09:01< mordante> hankerspace, look at the source file where lexical_cast is defined 20120407 16:09:47< mordante> shadowm, I have gcc-4.7 but not tested with your flags 20120407 16:10:28< hankerspace> i mean like that mordante : http://pastebin.com/7gEh40NV 20120407 16:10:41< jamit> shadowm: you're compiling 1.10.0? 20120407 16:11:09< jamit> Looking at that code, the g++ error is accurate. 20120407 16:11:19< mordante> hankerspace, I assumed you meant that, that's why I suggested to look at that file ;-) 20120407 16:11:26< jamit> To some extent 20120407 16:11:28< shadowm> jamit: no, 1.10 @ r53828 and some local modifications with no relation to that file whatsoever 20120407 16:11:33< shadowm> that is 1.10.2+svn 20120407 16:11:44< mordante> shadowm, you added these flags? -O3 -fweb -ftracer -floop-block 20120407 16:11:52< shadowm> yes 20120407 16:12:29 * shadowm is kind of in a hurry so he'll just revert to 4.6 for this build instead 20120407 16:12:53< hankerspace> Yes mordante, in boost/lexical_cast.hpp there are throw if cast fail 20120407 16:13:42< mordante> hankerspace, look again, closely ;-) 20120407 16:14:02< mordante> jamit, feel free to propose a patch 20120407 16:15:33< jamit> patch for which? 20120407 16:15:45< mordante> the gcc warnings 20120407 16:16:09< mordante> if you don't have time I'll look myself 20120407 16:16:34< jamit> OK, I was just looking to see what's been done to that file recently. There is a less-convoluted way to do that logic that should avoid the warning. 20120407 16:17:05< shadowm> someone did something to it recently in 1.10? 20120407 16:17:19< mordante> no idea 20120407 16:17:35< mordante> btw it doesn't trigger for the default flags 20120407 16:17:50< shadowm> no, no-one did 20120407 16:18:05< jamit> Nope. Last change in the 1.10 branch was when the branch was created (January). 20120407 16:18:30< hankerspace> I don't understand what you mean mordante. I've read the documentation and it's written : "If the conversion is unsuccessful, a bad_lexical_cast exception is thrown. " 20120407 16:18:52< shadowm> well, clearly one or more of the optimizations I usually enable enable that warning 20120407 16:19:14< mordante> hankerspace, I directly believe the boost documentation says so, however we don't use the boost functions 20120407 16:19:19< shadowm> I mean, the warning flag is even in the error message 20120407 16:19:36-!- leonid [~leonid@221.219.104.246] has quit [Quit: Leaving] 20120407 16:19:37< mordante> there is lexical_cast<>() not boost::lexical_cast<>() 20120407 16:19:51-!- HappyKsuh [~ksu.nyaka@217.118.78.116] has joined #wesnoth-dev 20120407 16:19:55< lexaz> what is example of this TODO: Copy this page and write "your name - proposal title" in this h4 section 20120407 16:19:56< lexaz> TODO: Write a small (1-4 sentences) description of your proposal here. 20120407 16:20:07< shadowm> I was wondering why I didn't get this with trunk and then I realized I use the default -O2 optimizations there to save some time 20120407 16:20:09< mordante> shadowm, IIRC -Werror=maybe-uninitialized is new for 4.7 20120407 16:20:21< mordante> but maybe -O3 triggers it 20120407 16:20:22< lexaz> soory for my stupid question i'm first time at same project 20120407 16:20:24< hankerspace> mordante: ok i'll inscpect the lexical_cast<>() 20120407 16:20:55< mordante> hankerspace, for GSoC students we like to figure things out themselves a bit more 20120407 16:21:03< mordante> to let them* 20120407 16:21:23-!- lexaz [farshas@178-19-29-64.roventa.lt] has left #wesnoth-dev [] 20120407 16:22:35< hankerspace> I understand mordante. I work on wesnoth only since a month. I have a lot o things to learn by myself. 20120407 16:23:51< shadowm> mordante: what's the deal with our src/lexical_cast.hpp that appears to be used only by a unit test, btw? (src/tests/test_lexical_cast.cpp) 20120407 16:24:40< CIA-69> jamit * r53832 /trunk/src/actions.cpp: Code beautification (shorter names without losing meaningfulness). 20120407 16:26:30< mordante> Ivanovic, I've this compile tested only patch 20120407 16:27:15< mordante> can you run ./wesmage -n -t -cX -fblend:0.5,00FF0000 Two_Brothers_M1P1.png with an X high enough to get a runtime of a few seconds 20120407 16:28:13< mordante> can you then try LD_PRELOAD=/path/to/libpreload.so ./wesmage -n -t -cX -fblend:0.5,00FF0000 Two_Brothers_M1P1.png 20120407 16:28:34< mordante> and if that works recompile the library with -DPLD 20120407 16:28:57< mordante> shadowm, something on my way too long todo list :-( 20120407 16:29:29-!- fkhodkov` [~user@ppp-188-65-10-53-bras1.istra.ru] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 20120407 16:29:33< shadowm> ugh, that stupid todo list again 20120407 16:30:43< Ivanovic> mordante: which patch? 20120407 16:31:16< Ivanovic> and which libpreload? 20120407 16:32:05< mordante> Ivanovic, this patch, which generates libpreload http://paste.debian.net/162438/ 20120407 16:32:44< Ivanovic> i assume as extension of trunk? 20120407 16:33:19< mordante> yup 20120407 16:33:32< mordante> if it helps I want to port this code to libsdl 20120407 16:34:38< Ivanovic> mordante: btw i am now switching to -O3 as default optimization setting 20120407 16:37:18< mordante> ok then you can remove the -ftee-vectorize flag 20120407 16:37:23< Alarantalara> Ivanovic: OS C image is uploaded 20120407 16:37:26< Alarantalara> *X 20120407 16:38:10< mordante> I was mildly surprised apple moved to version 12 ;-P 20120407 16:39:12< Alarantalara> 12? 20120407 16:39:32< mordante> yeah from Roman numerals to hex 20120407 16:39:55< Alarantalara> But C is a Roman numeral. It's version 100 of course 20120407 16:40:09< mordante> ah yeah that's also an option 20120407 16:42:40-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has joined #wesnoth-dev 20120407 16:45:14< mordante> shadowm, indeed with your flags I can reproduce the problem 20120407 16:46:23< mordante> jamit, do you want to look at the issue or shall I? 20120407 16:46:59< jamit> Give me a minute. I think I have a fix to the code. 20120407 16:47:25< jamit> But for some reason the compiler does not appreciate my typos.... 20120407 16:47:58< mordante> ok 20120407 16:48:37< Ivanovic> mordante: uhm, can it be that this takes *ages* longer (with the LD_PRELOAD) than without? 20120407 16:49:57-!- horon [~horon@nttkyo322045.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has quit [Quit: Leaving...] 20120407 16:50:29< mordante> jamit, actually it seems that gcc is wrong 20120407 16:50:37< mordante> Ivanovic, does it finish? 20120407 16:51:03< Ivanovic> even with -c1 it seems to hang with the LD_PRELOAD set 20120407 16:51:11-!- fendrin [~fabi@wesnoth/developer/fendrin] has quit [Quit: Konversation terminated!] 20120407 16:51:13< Ivanovic> LD_PRELOAD=/media/8GB_PROGS/libpreload_default.so ./wesmage -n -t -c1 -fblend:0.5,00FF0000 wesnoth-1.10/data/campaigns/Two_Brothers/images/story/Two_Brothers_M1P1.png 20120407 16:51:20< jamit> It is wrong in its analysis, but if the code was less convoluted, the compiler should not complain. 20120407 16:51:27< mordante> true 20120407 16:51:37< mordante> Ivanovic, seems there is a bug in the code then 20120407 16:51:41-!- avrilfanomar [~omar@host-70-116.emplot.net] has joined #wesnoth-dev 20120407 16:52:15 * loonycyborg installs clang and compiles wesnoth with it 20120407 16:52:25< Ivanovic> mordante: it has been using the full cpu with just -c1 for more than a min now 20120407 16:52:48< mordante> Ivanovic, I'm quite sure I managed to create an infinite loop then 20120407 16:52:53-!- fendrin [~fabi@88-134-62-135-dynip.superkabel.de] has joined #wesnoth-dev 20120407 16:52:59-!- fendrin [~fabi@88-134-62-135-dynip.superkabel.de] has quit [Changing host] 20120407 16:52:59-!- fendrin [~fabi@wesnoth/developer/fendrin] has joined #wesnoth-dev 20120407 16:53:04< Ivanovic> jepp, same result with the PLD define set 20120407 16:53:15< jamit> shadowm: See if this patch http://pastebin.com/adxBxvi7 gets rid of the compiler warning? 20120407 16:53:22< mordante> can you try to modify line 36 bne -> bgt 20120407 16:54:29< mordante> jamit, why that complex? 20120407 16:54:50< jamit> Well, if I was going to clean up stuff anyway.... 20120407 16:54:58-!- avrilfanomar [~omar@host-70-116.emplot.net] has left #wesnoth-dev [] 20120407 16:55:13< jamit> The first pass was just splitting the for loop so that one half occurred inside an if. 20120407 16:56:01< Ivanovic> mordante: i am trying this with -DPLD set and it still hangs 20120407 16:56:11< jamit> But since the logic for converting a t_terrain to a string is the same for both pieces, it made more sense (to me) to give that its own function. 20120407 16:56:17< Ivanovic> (did not rebuild the "without" version of the lib assuming that for this it should be identical) 20120407 16:56:54< mordante> Ivanovic, the PLD only tells the CPU to prepare some memory to be loaded in the L2 cache no functional difference 20120407 16:57:07< shadowm> jamit: uh, not sure I want to compile from scratch a FOURTH time in a row 20120407 16:57:23< mordante> shadowm, it's in a .cpp file should hurt that much 20120407 16:57:26< Ivanovic> mordante: okay, then it does not fix the infinite loop 20120407 16:57:34< shadowm> mordante: yes, it will hurt 20120407 16:57:43< shadowm> because I already switched to gcc 4.6 20120407 16:58:04< shadowm> you meant shouldn't, btw 20120407 16:58:11< mordante> yes I did 20120407 16:58:19< mordante> however you can keep using 4.6 20120407 16:58:33< shadowm> not really 20120407 16:58:46< loonycyborg> It won't confirm the fix.. 20120407 16:59:18< mordante> jamit, I would just initialize the array with zeros and remove the extra if in the loop 20120407 17:00:05 * shadowm is particularly wary about API changes in stable code 20120407 17:00:12< loonycyborg> mordante: shadowm: clang compiled wesnoth seems to run fine :P 20120407 17:00:47< loonycyborg> Although I didn't time the compile I didn't notice a compelling improvement. 20120407 17:00:56< shadowm> loonycyborg: great, I will keep that in mind next time I feel like living my only working machine a risky workout 20120407 17:01:01< jamit> Unneeded initializations? :P Could be a quick fix for the stable branch. 20120407 17:01:02< shadowm> I mean giving 20120407 17:01:22< hankerspace> mordante: using another way http://pastebin.com/f3FY5sVW 20120407 17:01:37< shadowm> jamit: exactly, hence my comment since I see interface changes in the bin 20120407 17:02:21< mordante> loonycyborg, nice 20120407 17:02:34< jamit> It's just an added helper function, but sure, an initialization loop would be safer. 20120407 17:03:02< jamit> Put an initialization loop in the 1.10 branch and my patch in trunk? 20120407 17:03:02< mordante> shadowm, there is no reason to port it to the stable branch since gcc is wrong ;-) 20120407 17:03:16< loonycyborg> mordante: btw why can't you run wesnoth from the chroot? 20120407 17:03:43< shadowm> mordante: if gcc is wrong then why the fix in the first place? 20120407 17:03:51< loonycyborg> I guess running X11 app will be harder than passwd and what-not :P 20120407 17:04:02< shadowm> I find it really hard to keep track of these contradictory actions/statements 20120407 17:04:15< mordante> loonycyborg, exactly and too lazy to bother testing it 20120407 17:04:38< mordante> shadowm, it can be improved, however gcc is still wrong to complain it isn't 20120407 17:04:59< mordante> jamit, btw it might be the code is added since that part of the code used to be slow 20120407 17:05:05< mordante> and probably still is 20120407 17:05:35< loonycyborg> Anyway, clang gave some warnings about unused parameters. 20120407 17:06:10< mordante> hankerspace, sorry but the code doesn't improve 20120407 17:06:13< loonycyborg> mordante: Did you get them too? 20120407 17:07:14< mordante> hankerspace, did you see how lexical_cast works? Did you also look a bit further in that file? 20120407 17:07:24< loonycyborg> Like this one: http://pastebin.com/ksVcWuJk 20120407 17:07:53< mordante> loonycyborg, I get way too many warnings with clang, doesn't like how ccache passes compiler en preprocessor flags 20120407 17:08:22< loonycyborg> Yes. This caused me to disable ccache. 20120407 17:08:44< mordante> it caused me to ignore all output 20120407 17:09:12< jamit> mordante: Yes, there is a comment in there about not needing to initialize the rest of the array. That comment should be ignored, and just initialize the rest anyway? 20120407 17:09:25< hankerspace> mordante: if the user use a negative duration or a non numeric duration, the value used is "0". Yes i've read the lesical_cast.hpp file, do you want me to use only a lexical cast ? 20120407 17:11:07< loonycyborg> Anyway, that particular warning seems bogus. That particular arg is definitely used. 20120407 17:12:05< loonycyborg> Oh. Wait. Looked at wrong function. 20120407 17:14:36< vultraz_laptop> all: are the lua functions (not just the gui stuff) just lua calls to C++ functions? 20120407 17:15:07< Ivanovic> mordante: and setting line 36 to 'lt' does not change anything either 20120407 17:15:33< Ivanovic> blt that is 20120407 17:17:56< jamit> Simpler patch that sacrifices efficiency (but is safer) by initializing the unused array elements: http://pastebin.com/cw846hHW 20120407 17:18:25< jamit> I'm AFK for a while now. 20120407 17:18:38< Ivanovic> mordante: uhm, i don't understand your loop 20120407 17:18:54< Ivanovic> mordante: that is: where is another evaluation if the comparison changed? 20120407 17:19:02< mordante> subs 20120407 17:19:56< mordante> Ivanovic, uglier using C + assembly http://paste.debian.net/162442/ 20120407 17:20:27< Ivanovic> mordante: what does define the flag __ARM_NEON__ btw? 20120407 17:20:54< mordante> jamit, that way or just directly initialise the arral char tcode[9] = {0}; 20120407 17:21:21< mordante> test whether __ARM_NEON__ is defined, should be in your compiler 20120407 17:21:54< Ivanovic> since it enters an infinity loop i assume it is 20120407 17:22:05< mordante> me too 20120407 17:22:15-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 17:22:23< mordante> hankerspace, actually I was hoping you would discover lexical_cast_default 20120407 17:22:48-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 17:23:49< mordante> that function makes the code much simpler, we use it a lot for input sanitising 20120407 17:24:26< CIA-69> shadowmaster * r53833 /branches/1.10/ (changelog src/gui/dialogs/editor_settings.cpp): (log message trimmed) 20120407 17:24:26< CIA-69> gui2/teditor_settings: Use a cheaper, less CPU-intensive solution to refresh tiles after changing ToD settings 20120407 17:24:26< CIA-69> (Backported from trunk, r53593 and r53594.) 20120407 17:24:26< CIA-69> Instead of refreshing the entire display, this solution simply 20120407 17:24:26< CIA-69> invalidates all gamemap tiles and requests them to be redrawn, saving a 20120407 17:24:26< Ivanovic> okay, still the same infinite loop 20120407 17:24:27< CIA-69> lot of CPU time and making continuous operations (i.e. dragging one of 20120407 17:24:28< CIA-69> the sliders around) smoother. We still need to redraw the dialog, 20120407 17:25:47< Ivanovic> mordante: so the changed file does not help 20120407 17:26:01< Ivanovic> want to add some printf debugging to be sure what it reaches? 20120407 17:26:52< mordante> Ivanovic, yeah that might help, I almost fear some brown paper bug 20120407 17:36:03< mordante> afk fetching some food 20120407 17:37:31< Ivanovic> okay, then i'll shutdown the pandora for a moment 20120407 17:37:38-!- anonymissimus [~chatzilla@HSI-KBW-078-042-163-105.hsi3.kabel-badenwuerttemberg.de] has joined #wesnoth-dev 20120407 17:38:06-!- mjs-de [~mjs-de@g224183171.adsl.alicedsl.de] has joined #wesnoth-dev 20120407 17:39:50< hankerspace> mordante: i have to go but i understand what do you mean. I'll try to use lexical_cast_default. I've read wesnoth doc : http://devdocs.wesnoth.org/util_8cpp.html 20120407 17:40:27< hankerspace> i come back later. 20120407 17:44:07-!- hankerspace [~quassel@hankerspace.dyndns.org] has quit [Read error: No route to host] 20120407 17:53:30-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 17:54:02-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 17:57:55-!- bwrsandman [~sandy@216.252.67.152] has joined #wesnoth-dev 20120407 17:58:11< CIA-69> loonycyborg * r53834 /trunk/src/gui/auxiliary/formula.hpp: Fix -Wunused-parameter warning from clang 3.0. 20120407 17:58:19< CIA-69> loonycyborg * r53835 /trunk/src/gui/dialogs/tip.hpp: Fix -Wmismatched-tags warning emitted by clang 3.0 20120407 18:00:04-!- Haldric [~Haldric@wesnoth/translator/Haldric] has joined #wesnoth-dev 20120407 18:11:43< Akihara> someone know if a side can have more than one leader? 20120407 18:12:16< Ivanovic> Akihara: what exactly does "leader" include for you? 20120407 18:12:22< Ivanovic> people that can recruit? 20120407 18:12:24< Ivanovic> yes 20120407 18:12:38< Akihara> okay, thanks :) 20120407 18:12:42< Ivanovic> people that are automatically "if this unit dies, you lose"? easily doable, too 20120407 18:12:58< boucman> Ivanovic: thx, itused to be only one, but I had ague memory that that limitation had been lifted 20120407 18:13:19< Ivanovic> boucman: yeah, it was changed and eg fendrin is using it in LoW 20120407 18:13:29 * boucman doesn't play enough :P 20120407 18:13:30< Ivanovic> IIRC even with differing recruit lists, not 100% sure though 20120407 18:13:58< anonymissimus> does anyone else get random crashes when starting into the test scenario ? I didn't yet nail it down 20120407 18:14:58-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has quit [Quit: Leaving.] 20120407 18:15:37< mordante> Ivanovic, printf sprinkled version http://paste.debian.net/162448/ 20120407 18:15:46< boucman> ok, afk for 1/2h 20120407 18:16:23< mordante> anonymissimus, no but do you have a stack trace? 20120407 18:16:43< mordante> vultraz_laptop, if you want to do IRC debugging now would be a good moment 20120407 18:17:23< CIA-69> ivanovic * r53837 /trunk/po/ (13 files in 13 dirs): updated Irish translation 20120407 18:17:25< CIA-69> ivanovic * r53836 /branches/1.10/ (15 files in 14 dirs): updated Irish translation 20120407 18:17:40< anonymissimus> mordante: no; as I said I didnt nail it down yet 20120407 18:18:28< anonymissimus> as acquiring a bt requires me to make a debug built in CB approximately taking 30min since it didnt yet crash in MSVC 20120407 18:18:42< mordante> anonymissimus, when it crashes in my debugger I directly can get a trace 20120407 18:19:00< mordante> ah ok 20120407 18:19:13< anonymissimus> + many trials, until it crashes, not taking into account that it may not happen at all under the debugger :) 20120407 18:19:28-!- vcap [~vcap@AReims-551-1-142-19.w90-18.abo.wanadoo.fr] has quit [Quit: leaving] 20120407 18:19:37< Ivanovic> mordante: http://pastebin.com/pXmhX3qs 20120407 18:19:53< Ivanovic> then it hangs 20120407 18:22:09-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 18:22:42-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 18:26:15< vultraz_laptop> mordante: I think I have time in about 20 mins 20120407 18:26:19< mordante> Ivanovic, ok really odd 20120407 18:26:20< Akihara> can have leaders differents caracteristics? like moving faster than an other 20120407 18:26:38< mordante> Akihara, yes 20120407 18:26:52< mordante> vultraz_laptop, ok 20120407 18:26:59< Akihara> thanks mordante :) 20120407 18:27:11< mordante> you're welcome 20120407 18:27:26< mordante> Ivanovic, guess I'd rather look for an Pandora/ARM emulator 20120407 18:30:36< Ivanovic> mordante: okay, just using -O2 does not change anything either 20120407 18:30:48< Ivanovic> i was fearing it might be using too much optimization 20120407 18:32:28< AI0867> Akihara: you should take a look at LoW, it uses quite a number of aspects of multiple leaders 20120407 18:32:43-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 18:33:14-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 18:33:16< Akihara> okay, thanks AI0867 :) 20120407 18:33:40-!- thethomaseffect [thethomase@86-44-234-0-dynamic.b-ras1.mgr.mullingar.eircom.net] has quit [Ping timeout: 260 seconds] 20120407 18:34:54< shadowm> there are so many students I can't keep track of all of them. Good thing it's not my duty. :s 20120407 18:35:32< vultraz_laptop> hehe 20120407 18:35:59-!- mjs-de [~mjs-de@g224183171.adsl.alicedsl.de] has quit [Remote host closed the connection] 20120407 18:39:01< boucman> and back 20120407 18:40:28< mattsc> Akihara: this only works with human controlled sides though. The AI currently cannot handle multiple leaders. 20120407 18:41:36< Akihara> mattsc: I know :P I'm working on my GSoC application for this problem ;) 20120407 18:41:59< mattsc> Akihara: oh, ok. Never mind then. :) 20120407 18:42:09< Akihara> no problem ;) 20120407 18:43:00-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120407 18:43:07< CIA-69> anonymissimus * r53838 /trunk/src/ (actions.cpp team.cpp): (log message trimmed) 20120407 18:43:07< CIA-69> fix $owner_side incorrectly set if capture event fired by unit movement 20120407 18:43:07< CIA-69> We are deleting the captured village from the set of owned villages 20120407 18:43:07< CIA-69> of the previous owner before querying which previous side owned it (and 20120407 18:43:07< CIA-69> giving it to the new side + firing the event), thus 20120407 18:43:07< CIA-69> the result was always "unowned". 20120407 18:43:08< CIA-69> fix for a bug reported in the forums: 20120407 18:43:24< CIA-69> anonymissimus * r53839 /trunk/changelog: changelog update 20120407 18:43:29< shadowm> anyway are there any students around needing their forum account to be added to the summer of code group? 20120407 18:44:02< shadowm> somehow I get the impression there are more wiki pages than users in the forum group 20120407 18:44:40< shadowm> not that I'm any good at counting anyway 20120407 18:46:41-!- Danceman [~Danceman@a94-132-158-220.cpe.netcabo.pt] has joined #wesnoth-dev 20120407 18:47:39-!- hankerspace_ [~quassel@hankerspace.dyndns.org] has joined #wesnoth-dev 20120407 18:52:18-!- hankerspace__ [~quassel@hankerspace.dyndns.org] has joined #wesnoth-dev 20120407 18:52:29-!- hankerspace__ [~quassel@hankerspace.dyndns.org] has quit [Remote host closed the connection] 20120407 18:56:27-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 18:56:43-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has quit [Ping timeout: 276 seconds] 20120407 18:56:59-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 19:02:47< CIA-69> anonymissimus * r53840 /branches/1.10/src/ (actions.cpp team.cpp): (log message trimmed) 20120407 19:02:47< CIA-69> fix $owner_side incorrectly set if capture event fired by unit movement 20120407 19:02:47< CIA-69> We are deleting the captured village from the set of owned villages 20120407 19:02:47< CIA-69> of the previous owner before querying which previous side owned it (and 20120407 19:02:47< CIA-69> giving it to the new side + firing the event), thus 20120407 19:02:47< CIA-69> the result was always "unowned". 20120407 19:02:48< CIA-69> fix for a bug reported in the forums: 20120407 19:02:53< CIA-69> anonymissimus * r53841 /branches/1.10/changelog: changelog update 20120407 19:04:12< Akihara> shadowm: yes, me :) 20120407 19:05:25< shadowm> Akihara: added 20120407 19:05:30< Akihara> thanks 20120407 19:05:55< vultraz_laptop> mordante: ok 20120407 19:06:01< vultraz_laptop> what do I do 20120407 19:06:28< mordante> start wesnoth so that it crashes in the MSVC debugger 20120407 19:12:48< vultraz_laptop> mordante: ok, modified the working dir prop so it crashes from MSVC 20120407 19:13:09< mordante> vultraz_laptop, can you paste the stacktrace? 20120407 19:14:36< vultraz_laptop> mordante: the callstack? 20120407 19:14:42< mordante> yes 20120407 19:15:28< vultraz_laptop> http://pastebin.com/kGyKkRfY 20120407 19:15:34-!- Nephro [~Dmitry@02de475b.bb.sky.com] has quit [Ping timeout: 276 seconds] 20120407 19:16:17< vultraz_laptop> BTW, I dismissed the message asking whether I wanted to rebuild out-of-date' (dunno why) 'liblua' and 'wesnoth' 20120407 19:16:39< mordante> they were probably modified 20120407 19:18:25< vultraz_laptop> well I didn't. maybe MSVC did.... 20120407 19:20:06< mordante> vultraz_laptop, do you know how to apply patches? 20120407 19:20:18< vultraz_laptop> yes 20120407 19:21:01< mordante> I think I found the issue 20120407 19:23:47< mordante> vultraz_laptop, can you test with this patch? http://paste.debian.net/162452/ 20120407 19:28:48-!- vcap [~vcap@AReims-551-1-142-19.w90-18.abo.wanadoo.fr] has joined #wesnoth-dev 20120407 19:30:48< vultraz_laptop> building 20120407 19:44:56< vultraz_laptop> huh 20120407 19:45:29< vultraz_laptop> well now the error doesn't appear when launching 20120407 19:45:32< vultraz_laptop> in any form 20120407 19:45:43< vultraz_laptop> but I still can't get it to launch from explorer 20120407 19:45:46< vultraz_laptop> it just does nothing 20120407 19:45:59< vultraz_laptop> still launches from MSVC tho 20120407 19:47:33< mordante> and what does it when launched from MSVC ? 20120407 19:48:18< vultraz_laptop> what does it do? 20120407 19:48:35< vultraz_laptop> wesnoth just opens. still loads slllooowwwlllyyy 20120407 19:52:51-!- avrilfanomar [~omar@91.202.131.246] has joined #wesnoth-dev 20120407 19:54:37< vultraz_laptop> mordante: even with the working dir set wrong the error doesn't come up 20120407 19:54:46< vultraz_laptop> so I think your patch fixed that 20120407 19:55:00< mordante> good 20120407 19:55:59< mordante> and from the explorer how does that go? 20120407 19:57:56< vultraz_laptop> just does nothing. no error 20120407 19:58:02< vultraz_laptop> I think it's something on my end 20120407 19:59:24-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 244 seconds] 20120407 19:59:32< mordante> ok 20120407 20:02:24< Ivanovic> anonymissimus: i fear that your last commit, the changelog entry, is placed wrong 20120407 20:02:33< Ivanovic> anonymissimus: it belongs into the 1.10.2+svn section! 20120407 20:03:11< AI0867> vultraz_laptop: could you check if the process does exist? (task manager) In win7 I sometimes have that same problem (though with other programs). Killing the process and starting the program again usually fixes it 20120407 20:04:37< vultraz_laptop> AI0867: um...nope not runnung 20120407 20:04:42< AI0867> k 20120407 20:04:44< vultraz_laptop> running* 20120407 20:04:51-!- Blueblaze [~Blueblaze@99.158.46.32] has joined #wesnoth-dev 20120407 20:13:36< bloodycoin> boucman, fixed artifacts in wb, patch submitted :) 20120407 20:15:12-!- HappyKsuh [~ksu.nyaka@217.118.78.116] has quit [Ping timeout: 272 seconds] 20120407 20:16:24-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120407 20:16:29< boucman> wow congratulation 20120407 20:16:36< boucman> url, plz 20120407 20:16:46< boucman> I won't commit righ away but i'd like to see what you did :) 20120407 20:16:56-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 20:17:44< bloodycoin> https://gna.org/patch/index.php?3243 20120407 20:18:01< bloodycoin> lots of code browsing :) 20120407 20:34:32-!- neph [~neph@02de475b.bb.sky.com] has joined #wesnoth-dev 20120407 20:35:41< CIA-69> espreon * r53842 /trunk/po/ (wesnoth/fi.po wesnoth-help/fi.po): Updated the Finnish translation. 20120407 20:37:52< CIA-69> espreon * r53843 /branches/1.10/ (4 files in 3 dirs): Updated the Finnish translation. 20120407 20:37:53< anonymissimus> Ivanovic: argh; didn't I knew that something had to be wrong :( 20120407 20:38:09< anonymissimus> Espreon: or someone, cna you please fix that for me 20120407 20:38:40< Espreon> anonymissimus: Why can't you do it? 20120407 20:39:18< anonymissimus> because it will force me a rebuilt of 1 hour or so 20120407 20:39:50< anonymissimus> that is, move the * Fix $owner_side in capture events fired due to unit movement line I added in the 1.10 changelog into the 1.10.2+svn section 20120407 20:40:02< anonymissimus> and you just committed to 1.10 anyway :) 20120407 20:40:25< anonymissimus> of course I dunno about your concrete local repo setup 20120407 20:47:06< Espreon> ... If a changelog update triggers a rebuild (yes, there's a "d" and NOT a "t" there, and yes... they sound different!), then your compiler sucks. But all right, I'll fix it for ya. 20120407 20:49:22< CIA-69> espreon * r53844 /branches/1.10/changelog: Moved a line in the changelog to where it shouod be. 20120407 20:49:47< Espreon> anonymissimus: All right, anything else? If not, Imma go. 20120407 20:51:17< Espreon> Going once... 20120407 20:52:17< Espreon> ... twice... 20120407 20:52:38< anonymissimus> thanks a lot 20120407 20:53:09< Espreon> All right. 20120407 20:53:10< Espreon> Bye! 20120407 20:53:23< anonymissimus> well, the things is that to access the 1.10 changelog in my editor I need to checkout the whole branch 20120407 20:53:57< anonymissimus> MSVC actually behaves rather intelligent in this case, but MinGw does not 20120407 20:55:11-!- Haldric [~Haldric@wesnoth/translator/Haldric] has quit [Remote host closed the connection] 20120407 20:56:53-!- IvanSav [~IvanSav@ns2.ultranet.com.ua] has quit [Remote host closed the connection] 20120407 21:00:16-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120407 21:03:16-!- Blueblaze [~Blueblaze@99.158.46.32] has quit [Quit: Blueblaze] 20120407 21:09:44-!- LordNasty [~NaSTy@93-43-168-221.ip92.fastwebnet.it] has quit [Ping timeout: 245 seconds] 20120407 21:10:33< anonymissimus> mordante: well, tried reproducing a few times to no avail; it's useless without finding out more about what triggers it; I just wanted to ask whether someone else is getting it and also doesn't speak about it due to having no way to reproduce 20120407 21:11:29< anonymissimus> it seems to happen randomly, and always directly when starting the test scenario; it seems the "late loading phase" is affected whatever that might mean 20120407 21:13:33< anonymissimus> Crab_: in case you need some more tasks for GSoC; in this thread http://forums.wesnoth.org/viewtopic.php?f=21&t=36569&p=525835#p525835 would be an idea for (2) sensible features 20120407 21:14:16< anonymissimus> I dunno how hard it is to "filter for clients" though; but [message] must be already doing it somehow so there's a place to start 20120407 21:17:01< mordante> anonymissimus, ok 20120407 21:18:53< mordante> Ivanovic, I've another patch... http://paste.debian.net/162461/ 20120407 21:19:35< mordante> this time I'm really curious... 20120407 21:21:53-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120407 21:23:14 * anonymissimus managed to scrape to together a bit of info 20120407 21:24:54< Ivanovic> mordante: just "Hello" and hand 20120407 21:24:58< Ivanovic> s/hand/hang 20120407 21:25:21< anonymissimus> mordante: I managed to get it again; but apparently only with the release built; the gdb backtrace shows some useful info nonetheless: http://pastebin.com/XeSQDcvN 20120407 21:26:37-!- negusnyul [~negusnyul@dsl4E5CD33A.pool.t-online.hu] has quit [Quit: Konversation terminated!] 20120407 21:26:40-!- mordante [~mordante@wesnoth/developer/mordante] has left #wesnoth-dev ["Leaving"] 20120407 21:26:55-!- mordante [~mordante@wesnoth/developer/mordante] has joined #wesnoth-dev 20120407 21:27:12< anonymissimus> mordante: did you get my last message ? 20120407 21:27:32< mordante> anonymissimus, probably just hit the wrong key 20120407 21:28:37< mordante> Ivanovic, really odd works for me http://paste.debian.net/162462/ 20120407 21:29:01< anonymissimus> ok well should I make a bug report about it ? could be a valgrind job; and perhaps something caused by the unit drawing changes 20120407 21:29:13< Ivanovic> mordante: ERROR: ld.so: object '/src/pandora/wesnoth/src/libpreload.so' from LD_PRELOAD cannot be preloaded: ignored. 20120407 21:29:27< Ivanovic> your message sounds strange... 20120407 21:30:07< mordante> I guess it tries to preload the library for both the native qemu and wesmage 20120407 21:30:27< mordante> it shows the hello of the preload library 20120407 21:31:08< anonymissimus> fendrin: did you see my backtrace ? 20120407 21:31:31< mordante> anonymissimus, it would be nice if you can reproduce it with debug symbols 20120407 21:31:44< anonymissimus> yes but that did not work+ 20120407 21:32:04< anonymissimus> that is, it did work all the time, actually, so no bt 20120407 21:32:14< mordante> anonymissimus, are you still in the debugger? 20120407 21:32:19< anonymissimus> yes 20120407 21:32:35< mordante> can you disassemble blend_surface? 20120407 21:32:52< anonymissimus> if you say me what to type 20120407 21:33:53< mordante> disassemble blend_surface 20120407 21:35:27< mordante> anonymissimus, ^ 20120407 21:39:26< anonymissimus> hm it's cut off, doesnt all fit into the shell 20120407 21:39:42-!- _vdn1 [~nazgul-sa@ppp91-77-252-205.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120407 21:40:05< anonymissimus> is there a command so that it outputs it into a file 20120407 21:40:45< mordante> yup 20120407 21:40:48< mordante> set logging file /tmp/foo 20120407 21:40:51< mordante> and might also need 20120407 21:41:00< mordante> set logging on 20120407 21:41:06-!- _vdn [~nazgul-sa@ppp91-77-228-98.pppoe.mtu-net.ru] has quit [Ping timeout: 246 seconds] 20120407 21:43:15-!- timotei [~timotei@188.24.4.67] has joined #wesnoth-dev 20120407 21:43:15-!- timotei [~timotei@188.24.4.67] has quit [Changing host] 20120407 21:43:15-!- timotei [~timotei@wesnoth/developer/timotei] has joined #wesnoth-dev 20120407 21:43:57< anonymissimus> mordante: http://pastebin.com/pyeJzppr 20120407 21:44:05< anonymissimus> hope that helps somehow 20120407 21:44:15< anonymissimus> for me it is garbage :) 20120407 21:45:51< fendrin> hi anonymissimus 20120407 21:46:05< anonymissimus> timotei: do you know of a way to use the ctrl-v shortcut in mysysgit's shell ? 20120407 21:46:26< mordante> anonymissimus, what compiler flags do you use 20120407 21:46:46< anonymissimus> I need to choose paste from the menu each time 20120407 21:47:02< timotei> anonymissimus: It's CTRL+SHIFT+V 20120407 21:47:14< timotei> And the same for CTRL+C => CTRL+SHIFT+C 20120407 21:47:27< timotei> The mysysgit's shell is the bash one :P 20120407 21:47:45< anonymissimus> cna that be set ? 20120407 21:48:26< timotei> ? 20120407 21:48:31< timotei> What do you mean? 20120407 21:48:54< bwrsandman> anonymissimus: have you tried shift+insert? 20120407 21:49:13< anonymissimus> mordante: -O3 -Wall -mthreads 20120407 21:49:15< anonymissimus> -march=native 20120407 21:49:17< anonymissimus> -fexceptions 20120407 21:49:18< anonymissimus> -fdiagnostics-show-option 20120407 21:49:20< anonymissimus> -fopenmp 20120407 21:49:22< timotei> anonymissimus: also, middle click works as paste too 20120407 21:49:22< anonymissimus> -Wno-strict-aliasing 20120407 21:49:24< anonymissimus> -Wno-missing-braces 20120407 21:49:26< anonymissimus> HAVE_PYTHON 20120407 21:49:28< anonymissimus> USE_GZIP 20120407 21:49:30< anonymissimus> _WIN32_WINDOWS 20120407 21:49:32< anonymissimus> the last three a define 20120407 21:49:42< anonymissimus> the last three are #defines 20120407 21:50:18< mordante> ok seems your compiler decides to use some optimised instructions 20120407 21:50:25< anonymissimus> those are the ones set in the IDE, other than that I dunno 20120407 21:50:28< mordante> uses the xmm registers 20120407 21:51:20-!- aknahs [~aknahs@6.pool85-50-115.dynamic.orange.es] has joined #wesnoth-dev 20120407 21:53:19< anonymissimus> timotei: I mean; can I set something in a file so that the git bash shell uses ctrl-v ctrl-c 20120407 21:53:35< anonymissimus> or not neccessarily in a file 20120407 21:53:56-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120407 21:54:02< timotei> I don't think you can override CTRL+C... 20120407 21:54:22< timotei> It's a "standard" keystroke which "breaks" the current ... program or so 20120407 21:54:37-!- dream_lane [~benjamin@99-93-250-85.lightspeed.chtnsc.sbcglobal.net] has left #wesnoth-dev [] 20120407 21:54:41< anonymissimus> yes, but it doesn't work on windows for me anyway 20120407 21:54:44< timotei> http://superuser.com/questions/160388/change-bash-shortcut-keys-such-as-ctrl-c 20120407 21:54:48< timotei> ??? 20120407 21:54:53< timotei> Well, I use CTRL+C to break stuff 20120407 21:55:02< anonymissimus> that is, once gdb runs a program I can't set breakpoints anymore 20120407 21:55:10< timotei> And CTRL+SHIFT+C to copy 20120407 21:55:10< anonymissimus> only before starting it 20120407 21:55:22< timotei> I see 20120407 21:55:59< mordante> anonymissimus, what you can try is add -ggdb3 after your current command to get a binary with debug info 20120407 21:56:13< timotei> But you won't be able to overwrite that. You're on windows, and many unix-specific utilties are not available :P 20120407 21:56:27< mordante> it might just break due to -O3 or some undefined behaviour that shows with -O3 20120407 21:56:58< bwrsandman> I know on that on Windows with the cygwin terminal, it's shift+insert to paste 20120407 21:57:33< bwrsandman> ctrl+insert to copy, I think 20120407 21:57:55< anonymissimus> IIRC I managed to set it somehow in ubuntu 20120407 21:59:20< Ivanovic> this just depends on your terminal emulator 20120407 21:59:36< Ivanovic> eg with konsole the default for copy is ctrl+shift+c 20120407 21:59:52< Ivanovic> since the well known default for "sigterm" is ctrl+c 20120407 22:01:59-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Quit: leaving] 20120407 22:03:01-!- khoover [~crazy1010@69.159.23.64] has quit [Read error: Connection timed out] 20120407 22:03:32< anonymissimus> bwrsandman: well yes, shift+insert works, ctrl+shift+v does not 20120407 22:03:58< Ivanovic> depends on the terminal emulator! 20120407 22:04:00< Ivanovic> ;) 20120407 22:04:13 * anonymissimus has no clue about terminal emulators 20120407 22:07:06-!- thethomaseffect [thethomase@86-44-234-0-dynamic.b-ras1.mgr.mullingar.eircom.net] has joined #wesnoth-dev 20120407 22:10:48< timotei> hmm 20120407 22:11:08< timotei> anonymissimus: I personally use a very nice piece of software: Console2 20120407 22:11:14< timotei> You can set the hotkeys in it :P 20120407 22:11:38< timotei> And I set it up to load the gui bash and it's just like a smart/linux terminal ;) 20120407 22:12:19-!- aknahs [~aknahs@6.pool85-50-115.dynamic.orange.es] has quit [Ping timeout: 260 seconds] 20120407 22:12:41-!- aknahs [~aknahs@6.pool85-50-115.dynamic.orange.es] has joined #wesnoth-dev 20120407 22:17:51< anonymissimus> what is ggdb3 in comparison to just -g ? 20120407 22:18:26< mordante> just forces the gdb3 format, could be it's the default as well... old habigs 20120407 22:18:29< mordante> habits* 20120407 22:18:59< anonymissimus> ok...lets hope it reproduces... 20120407 22:30:39< mordante> vultraz_laptop, ^ 20120407 22:30:43< CIA-69> mordante * r53845 /trunk/ (changelog src/serialization/preprocessor.cpp): 20120407 22:30:43< CIA-69> Fixes a preprocessor bug. 20120407 22:30:43< CIA-69> The preprocessor could look beyond the end of a buffer. 20120407 22:30:43< CIA-69> The issue was discovered by vultraz, who also tested the patch. 20120407 22:30:49< mordante> vultraz_laptop, ^ 20120407 22:33:38-!- tyrannodogg [~tyrannodo@ip-248-22.travedsl.de] has joined #wesnoth-dev 20120407 22:33:44< mattsc> trademark_, you here? 20120407 22:34:11< trademark_> mattsc, yes 20120407 22:34:11-!- janebot [grickit@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20120407 22:34:30-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120407 22:34:44< mattsc> I saw your question on the forums. I think it's good, in general, but have a couple questions back to you. 20120407 22:35:05< trademark_> please, tell me. 20120407 22:35:38< mattsc> First, when you set the aspect to recruit, say, 2 scouts, do you mean recruit _only_ two scouts that turn, or two scouts first, then continue with the normal recruiting until the castle is full? 20120407 22:35:44-!- LordNasty [~NaSTy@93-43-154-6.ip92.fastwebnet.it] has joined #wesnoth-dev 20120407 22:36:22< trademark_> It depends on the "turns" key. If, for example, it's set to "1,2", it will recruit 4 scouts at all. 20120407 22:36:41< mattsc> And no other units whatsoever, even if the castle has 6 hexes? 20120407 22:37:50< trademark_> It depends if there are other [recruit] tag. I'm reticent to continue with "normal" (which is not normal but just random) recruiting. I'll figure out to put a new key, to let the user choose. 20120407 22:38:27< mattsc> Yeah, if I understand you correctly, I think that would be good. 20120407 22:38:32< mattsc> Let me state it differently: 20120407 22:38:33< trademark_> I hope :) 20120407 22:38:53< trademark_> Btw, I'll update the doc to be more specific on that subject. 20120407 22:39:14< mattsc> If I were to use this on Turn 1, I would like to have the option of telling the AI easily to: 20120407 22:39:22< mattsc> 1) Recruit 1 scout and nothing else 20120407 22:39:36< mattsc> 2) Recruit one scout and fill the rest of the castle with whatever (random) units you want 20120407 22:39:43< mattsc> Does that make sense? 20120407 22:39:53< zookeeper> trademark_, WRT commas and dashes; i don't think they're interchangeable anywhere 20120407 22:41:17-!- dreamlane [~Benjamin@99-93-250-85.lightspeed.chtnsc.sbcglobal.net] has joined #wesnoth-dev 20120407 22:41:18< trademark_> mattsc, you can easily do that with another recruit tag setting the importance to 0 and use the random value in the "turns" key. 20120407 22:41:36< trademark_> in the "type" key* , sorry. 20120407 22:41:56< trademark_> zookeeper, thank you, I'm going to update it. 20120407 22:41:59< mattsc> trademark_, personally, I would prefer that to be the default, rather than something I have to set. 20120407 22:42:17< mattsc> As in, I think it is much more common that the user will want the entire castle filled. 20120407 22:43:26< mattsc> Up to you how you want it done though. 20120407 22:43:42< trademark_> Hmm, ok but I think it's a functionality "hidden". I need to find a way to deactivate it. 20120407 22:43:54< mordante> I'm off bye 20120407 22:43:55< zookeeper> trademark_, for example when filtering for locations, one can specify coordinates pretty much like in my example, using both commas and dashes 20120407 22:44:02< trademark_> mordante, good night :) 20120407 22:44:12-!- mordante [~mordante@wesnoth/developer/mordante] has quit [Quit: Leaving] 20120407 22:44:35< trademark_> mattsc, and I'm not sure it's the smartest way to use as much gold as possible in the start. 20120407 22:45:13< mattsc> trademark_, it depends. Sometimes it is, sometimes it is not. 20120407 22:45:46< mattsc> Anyway, just telling you my personal preference. As I said, you can do it as you want. 20120407 22:45:58< mattsc> Another thing, it would be nice to have the option not only to set the usage type (scout, fighter, ...), but a specific unit type in some instances. 20120407 22:46:11< trademark_> Well, I don't know what is the best because I'm not very familiar with all of this yet. 20120407 22:46:57< trademark_> Should I specify the usage XOR the unit ; or only the unit ? 20120407 22:47:25-!- janebot [grickit@unaffiliated/gambit/bot/gambot] has joined #wesnoth-dev 20120407 22:47:48< mattsc> Good question. Well, since each unit type has a fixed usage, using both wouldn't make sense, I guess. 20120407 22:48:02< mattsc> It would either be redundant or contradictory. 20120407 22:49:41< mattsc> Besides that, I think what you have for this is good. I don see myself using 'increment' or the 'START' etc. options much, but there is nothing wrong with them and others might. 20120407 22:49:45< trademark_> usage is more general and unit is specific. We could want sometimes one, and sometimes the other. 20120407 22:50:07-!- khoover [~crazy1010@70.51.111.33] has joined #wesnoth-dev 20120407 22:50:07< mattsc> Right. I agree. That's what I meant to say. 20120407 22:50:50< mattsc> However, it doesn't make sense to use both usage and type in the same aspect, as type would always override usage. So you might as well use the same option/key for both. 20120407 22:51:38< trademark_> I think your latest idea is the smartest. 20120407 22:53:44-!- SeattleDad [322e753f@gateway/web/freenode/ip.50.46.117.63] has joined #wesnoth-dev 20120407 22:55:27< trademark_> I'll update it tomorrow because I'm going to sleep, I go back home tomorrow (700km) by tgv and I need to get up early ;) 20120407 22:55:38< trademark_> Thank you for your suggestions and ideas. 20120407 22:56:42< mattsc> trademark_, sorry, had to run off for a few minutes... 20120407 22:57:06< trademark_> mattsc, np. 20120407 22:58:00< mattsc> Just one more thing: on the other parts of your GSoC project, there have been a few threads on the forum on this. You could do a search for them and see if you can get some ideas there. 20120407 22:58:30< mattsc> as in, on how to make the AI recruit "smarter" 20120407 22:59:14< mattsc> Bonne nuit, enjoy the tgv ride. :) 20120407 23:00:36< trademark_> I'll watch these. 20120407 23:00:46< trademark_> Thank you, see you soon. 20120407 23:00:57-!- khoover [~crazy1010@70.51.111.33] has quit [Ping timeout: 260 seconds] 20120407 23:01:35-!- MeccaGod [majs@host189-199.bornet.net] has quit [] 20120407 23:03:22-!- khoover [~crazy1010@70.51.111.33] has joined #wesnoth-dev 20120407 23:05:06-!- avrilfanomar [~omar@91.202.131.246] has quit [Ping timeout: 246 seconds] 20120407 23:05:06-!- trademark_ [~trademark@mon69-1-82-67-23-185.fbx.proxad.net] has quit [Ping timeout: 246 seconds] 20120407 23:05:22< anonymissimus> vultraz_laptop: how did you discover that preprocessor issue ? :) 20120407 23:06:19< anonymissimus> was it the fontconfig related crash you showed me ? 20120407 23:10:28-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth-dev 20120407 23:13:50-!- timotei [~timotei@wesnoth/developer/timotei] has quit [Quit: SIGKILL] 20120407 23:20:24-!- Artemius23 [~yigit@139.179.207.79] has joined #wesnoth-dev 20120407 23:21:05-!- avrilfanomar [~omar@91.202.129.133] has joined #wesnoth-dev 20120407 23:21:15-!- Artemius23 [~yigit@139.179.207.79] has left #wesnoth-dev [] 20120407 23:22:01< Gambit> janebot: !subscribe Wesnoth2 20120407 23:22:01< janebot> Gambit: Subscription added. 20120407 23:22:56-!- Artemius23 [~yigit@139.179.207.79] has joined #wesnoth-dev 20120407 23:23:41< Artemius23> Hello, is there anyone who I can talk about GSoC ? 20120407 23:27:00-!- PolarPanda [~quassel@unaffiliated/peterporty] has joined #wesnoth-dev 20120407 23:27:48-!- avrilfanomar [~omar@91.202.129.133] has left #wesnoth-dev [] 20120407 23:28:33-!- Artemius23 [~yigit@139.179.207.79] has left #wesnoth-dev [] 20120407 23:29:14-!- Artemius23_ [~yigit@139.179.207.79] has joined #wesnoth-dev 20120407 23:32:39< Artemius23_> Hi, is there anyone who I can talk about GSoC ? 20120407 23:34:26-!- aknahs [~aknahs@6.pool85-50-115.dynamic.orange.es] has quit [] 20120407 23:34:48-!- aknahs [aknahs@6.pool85-50-115.dynamic.orange.es] has joined #wesnoth-dev 20120407 23:40:46-!- Johannes13__ [~Johannes@p4FDEB975.dip.t-dialin.net] has joined #wesnoth-dev 20120407 23:42:44-!- Johannes13 [~Johannes@unaffiliated/johannes13] has quit [Ping timeout: 252 seconds] 20120407 23:43:05-!- Johannes13 [~Johannes@unaffiliated/johannes13] has joined #wesnoth-dev 20120407 23:44:36< ejls> Artemius23_: don't ask to ask. Just ask your question and wait for an answer. :) Also, have a look at . 20120407 23:46:43< Artemius23_> Sorry ejls, I didn't know the procedure of using IRC, thanks for help. 20120407 23:47:16-!- Gallaecio [~quassel@84.120.114.134.dyn.user.ono.com] has quit [Read error: Connection reset by peer] 20120407 23:47:22-!- Gallaecio_ [~quassel@84.120.114.134.dyn.user.ono.com] has quit [Remote host closed the connection] 20120407 23:52:13-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120407 23:52:38< neph> Artemius23_, you gotta be very fast 20120407 23:52:41< neph> with gsoc matter 20120407 23:52:44< neph> matters* 20120407 23:52:48< neph> today is the deadline 20120407 23:52:50< neph> for applications 20120407 23:52:59-!- Artemius23_ [~yigit@139.179.207.79] has quit [Remote host closed the connection] 20120407 23:53:26-!- yigit [~yigit@139.179.207.79] has joined #wesnoth-dev 20120407 23:55:16< neph> yigit, feel free to ask here. Other gsoc candidates may benefit from the answers 20120407 23:56:16-!- SeattleDad [322e753f@gateway/web/freenode/ip.50.46.117.63] has quit [Ping timeout: 245 seconds] 20120407 23:57:51-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has quit [Quit: ...] 20120407 23:58:24< yigit> I had the Internet connection problem yesterday, so I couldnt finished my proposal and answers of questions. When I was able to connect I added a Google Docs link to my proposal and answers for people to reach full of them, now I am about to finish it 20120407 23:59:07< yigit> Does it create a problem for now ? --- Log closed Sun Apr 08 00:00:48 2012