--- Log opened Mon Apr 09 00:00:48 2012 20120409 00:07:17-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has joined #wesnoth-dev 20120409 00:07:55-!- avrilfanomar [~omar@91.202.129.137] has left #wesnoth-dev [] 20120409 00:13:00-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120409 00:20:42-!- neph [~neph@02de475b.bb.sky.com] has quit [Read error: Connection reset by peer] 20120409 00:21:59-!- Nephro [~Dmitry@02de475b.bb.sky.com] has joined #wesnoth-dev 20120409 00:22:58-!- negusnyul [~negusnyul@dsl4E5CD33A.pool.t-online.hu] has quit [Quit: Konversation terminated!] 20120409 00:26:36-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Quit: Leaving.] 20120409 00:27:05-!- mordante [~mordante@wesnoth/developer/mordante] has quit [Quit: Leaving] 20120409 00:27:40< Nephro> anonymissimus, where can I place a couple of utility functions accessible in both Lua and C++? 20120409 00:28:24< anonymissimus> in which language are they ? and what are they good for ? 20120409 00:28:49< anonymissimus> or what sort of functions 20120409 00:28:53< Nephro> first two functions of data/lua/location_set.lua 20120409 00:30:00< Nephro> they should be written in C++ and should be accessed by Lua 20120409 00:30:37< anonymissimus> but you need them in C++ as well ? 20120409 00:31:31< anonymissimus> well, looks small enough to "not factor" it 20120409 00:31:32< Nephro> anonymissimus, yes, only in one place at the moment, but I don't want code duplication, since if one of the duplicates is modified, bugs will be veeeery hard to track 20120409 00:32:44< anonymissimus> well...you may add them in the wesnoth namespace along those intf_ functions 20120409 00:33:29< Nephro> anonymissimus, and how would I access them from inside C++? 20120409 00:33:34< anonymissimus> so the location set could call them as wesnoth.something, and C++ would call them by getting the global wesnoth table, looking for the entry with the function's name, pushing its value and calling lua_call or so 20120409 00:33:52< anonymissimus> or so it should work I think 20120409 00:34:25< anonymissimus> of course you need to be somewhere in the lua region where you have the lua state available 20120409 00:34:35< Nephro> that's kinda hacky 20120409 00:35:19< Artemius23> This conversation is getting more helpful for me to comprehend the design of wesnoth clearly :) 20120409 00:35:26< anonymissimus> well, silene sometimes made code duplicate instead of factoring it if it requires going through the interface bridge between lua and C++ 20120409 00:35:35< anonymissimus> do you have a better idea ? 20120409 00:36:07< anonymissimus> that is, not factoring the functions but being able to access them from both C++ and lua 20120409 00:36:25< Nephro> anonymissimus, I think I will duplicate the code, and put a comment to both functions 20120409 00:36:25< anonymissimus> well, you could put them into the utils; then you can clearly call them from C++ 20120409 00:36:37< Nephro> cross-referencing each other to keep in sync 20120409 00:37:01< anonymissimus> and the intf_ functions would call utils::something() 20120409 00:37:15< anonymissimus> this sounds clearer doesn't it 20120409 00:37:57< anonymissimus> and don't document the new intf_ functions in teh wiki of course since it's not of use for lua/wml authors 20120409 00:38:01< anonymissimus> or probably not 20120409 00:41:49< anonymissimus> Nephro: well, is it clear what I said last ? I think thats better than duplicating 20120409 00:42:12< Nephro> anonymissimus, yes, I can't seem to find the utils class though 20120409 00:42:14< anonymissimus> not sure whether utils:: is best place 20120409 00:42:50< anonymissimus> ah IIRC it's in string_utils 20120409 00:44:32< anonymissimus> that doesnt fit of course; you need something like math utils 20120409 00:47:17< shadowm> utils is a namespace, not a class 20120409 00:47:34< Nephro> anonymissimus, are you talking about src/util.cpp ? 20120409 00:49:11< anonymissimus> Nephro: no, but in src/util.hpp are some similar function so you could put it there I guess 20120409 00:50:03< anonymissimus> and I got confused several times by looking for utils:: as well; we should rename it to string_utils perhaps 20120409 00:52:58< shadowm> ugh 20120409 00:58:07-!- ancestral [~ancestral@97-127-62-183.mpls.qwest.net] has quit [Quit: And that’s the end of THAT chapter.] 20120409 00:58:22-!- ancestral [~ancestral@97-127-62-183.mpls.qwest.net] has joined #wesnoth-dev 20120409 00:59:51-!- liviuc [~liviu@p5.eregie.pub.ro] has left #wesnoth-dev [] 20120409 01:05:59-!- naman22 [naman22@1.22.184.50] has quit [Remote host closed the connection] 20120409 01:06:08-!- naman22 [naman22@1.22.184.50] has joined #wesnoth-dev 20120409 01:06:43-!- s951 [~s951@cpc31-cmbg15-2-0-cust850.5-4.cable.virginmedia.com] has quit [Quit: Leaving] 20120409 01:06:45-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20120409 01:07:13-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 01:09:01-!- vultraz [~chatzilla@124.109.10.221] has quit [Ping timeout: 250 seconds] 20120409 01:13:35-!- anonymissimus [~chatzilla@HSI-KBW-078-042-163-105.hsi3.kabel-badenwuerttemberg.de] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120312181643]] 20120409 01:23:43< fendrin> shadowm: Ha! I got rid of the palette hardcoding. It's now theme wml controllable. 20120409 01:34:26-!- thethomaseffect1 [~thethomas@86-44-234-0-dynamic.b-ras1.mgr.mullingar.eircom.net] has joined #wesnoth-dev 20120409 01:38:18-!- thethomaseffect [~thethomas@86-44-234-0-dynamic.b-ras1.mgr.mullingar.eircom.net] has quit [Ping timeout: 246 seconds] 20120409 01:38:39-!- Johannes13 [~Johannes@unaffiliated/johannes13] has quit [Ping timeout: 252 seconds] 20120409 01:39:07-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Read error: Connection reset by peer] 20120409 01:42:07-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 01:42:31< Nephro> mattsc, I've completed the refactoring(it actually required only 1 line modified :)) ) 20120409 01:42:40< Nephro> i'll commit that very soon 20120409 01:43:13-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Read error: Connection reset by peer] 20120409 01:43:28-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 01:43:57< mattsc> Nephro: cool! That's very efficient. :) 20120409 01:44:50-!- vultraz [~chatzilla@124.109.10.221] has joined #wesnoth-dev 20120409 01:45:57-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth-dev 20120409 01:45:59-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Read error: Connection reset by peer] 20120409 01:46:20-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 01:48:47-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Read error: Connection reset by peer] 20120409 01:48:52< Nephro> mattsc, I didn't move the functions around yet, are you fine with using the ones from location_set.lua? 20120409 01:49:05-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 01:49:09< Nephro> for now at least 20120409 01:49:12< Nephro> we'll see how it goes 20120409 01:49:16< mattsc> Nephro: sure. no problem. 20120409 01:49:49-!- wesbot changed the topic of #wesnoth-dev to: Wesnoth accepted in GSoC 2012 | http://wiki.wesnoth.org/SummerOfCodeIdeas | 173 bugs, 329 feature requests, 14 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20120409 01:51:35-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Read error: Connection reset by peer] 20120409 01:54:48< CIA-69> nephro * r53873 /trunk/ (data/ai/scenarios/scenario-lua-ai.cfg src/ai/lua/core.cpp): Refactored the move map structuring when exposed to LuaAI 20120409 01:56:21< Nephro> mattsc, do you know the cool way of posting a link to a commit on the wiki? 20120409 01:57:03< mattsc> Nephro, uh, I know how to post links to webpages, if that's what you mean... 20120409 01:57:21< Nephro> mattsc, no, there is some way, for patches specifically. 20120409 01:57:45< Nephro> mattsc, I'll try to look it up on someone's application 20120409 01:58:10< mattsc> Nephro: no, I don't know that then, and the editing help does not mention patches specifically. Sorry. 20120409 01:58:55< mattsc> I'm compiling your code already... 20120409 01:59:26-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 02:02:15< mattsc> Nephro: I am getting a 'Revision.hpp: no such file or directory' error. Is that due to your patch or one of the others? I hadn't compiled in a few days, so there's a whole bunch of new patches. 20120409 02:02:50< Nephro> mattsc, that shouldn't be me 20120409 02:02:55-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Read error: Connection reset by peer] 20120409 02:03:05< mattsc> it's in game_config.cpp 20120409 02:03:14-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 02:03:16< Nephro> mattsc, no, that definitely shouldn't be me 20120409 02:03:57< mattsc> Nephro: ok. I assume it won't start then after compilation and I don't quite know what to do about this. So I might not be able to test right away. 20120409 02:05:04< Nephro> it does build on my machine, and I am at the latest revision 20120409 02:05:41< mattsc> Actually, there's a #ifdef HAVE_REVISION in there, I could just comment out that line until I figure out what it means... 20120409 02:07:47-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120409 02:09:16< mattsc> Yep, that worked (although I don't know what else I broke with that) 20120409 02:10:14< mattsc> And as far as I can tell, the new movemap format works. Very nice. Thanks! 20120409 02:10:32< mattsc> It still does not update though after I move a unit (in human-controlled side mode) 20120409 02:12:35< Nephro> mattsc, yes, that is how it is meant to be. I'll discuss that issue with Crab_ once he's here. The ai updates the maps only when it needs them. When it is the humans turn, the AI doesn't care about the move maps 20120409 02:13:32< mattsc> Nephro: ok, that's what I thought. 20120409 02:13:34< Nephro> mattsc, have you tried using ai.get_cached_* methods? 20120409 02:14:15< Nephro> I think I told that already, but I'll repeat, if Crab approves the caching system, I'll swap up the names. 20120409 02:14:20< mattsc> Nephro, no, not yet. Let me give it a quick shot... 20120409 02:14:41-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120409 02:15:29< Nephro> mattsc, tomorrow I'll try to get the attacks vector exposed 20120409 02:15:59< mattsc> Nephro: I don't see any get_cahced_... methods in the ai table 20120409 02:16:11< Nephro> hm? 20120409 02:16:30< Nephro> mattsc, ah, yes, you have to initialize it 20120409 02:16:31< mattsc> I do see is_dst_src_valid() etc. 20120409 02:16:47< mattsc> How do I do that? 20120409 02:16:50< Nephro> local ai_stdlib = wesnoth.require('ai/lua/stdlib.lua'); 20120409 02:16:50< Nephro> ai_stdlib.init(ai) 20120409 02:16:58< Nephro> remember these two lines? :) 20120409 02:17:02< Nephro> they are actually useful now 20120409 02:17:15< mattsc> oh, ok... 20120409 02:17:18< Nephro> now this is boilerplate code 20120409 02:17:25< Nephro> and we will get rid of that :DD 20120409 02:17:28< Nephro> I promise 20120409 02:17:30< mattsc> Yes, I never used them because there wasn't anything in it. 20120409 02:17:49< mattsc> Let me just look up where that needs to be put and the syntax... 20120409 02:18:12< Nephro> mattsc, you can check out the test ai scenario 20120409 02:18:25< Nephro> it is very messy, but usually contains rough workings of mine 20120409 02:19:07< mattsc> I just looked it up on the wiki. Knew how to get to that quicker. :) 20120409 02:19:42< Nephro> that basically should be placed in the beginning of the engine code 20120409 02:19:52< Nephro> to expand the functionality of the ai.table 20120409 02:21:07< mattsc> Right... 20120409 02:21:12< mattsc> local ai_stdlib = wesnoth.require('ai/lua/stdlib.lua'); 20120409 02:21:13< mattsc> ai_stdlib.init(ai) 20120409 02:21:13< mattsc> correct? 20120409 02:21:16< Nephro> yes 20120409 02:22:05< mattsc> ok, did that, but I still cannot see the cached methods... 20120409 02:26:42< Nephro> mattsc, does it throw any errors? 20120409 02:27:29< mattsc> Nephro: No, it does not... 20120409 02:27:58< mattsc> Well, it does when I try to access the functions, but the init does not 20120409 02:28:57< Nephro> mattsc, check out the stdlib file 20120409 02:29:18< mattsc> doing that already... 20120409 02:29:40< Nephro> btw, do you have the ai=... line? 20120409 02:29:40< Ivanovic> fendrin: wow, that sounds great! 20120409 02:30:06< mattsc> Nephro: yes 20120409 02:30:09< shadowm> fendrin: was it too difficult? 20120409 02:30:20< mattsc> otherwise I wouldn't see the ai table at all 20120409 02:31:10< mattsc> Nephro, umm, there's nothing new in stdlib.lua 20120409 02:31:35< Nephro> mattsc, I think something might be wrong with your version control system 20120409 02:32:46< Nephro> http://svn.gna.org/viewcvs/wesnoth/trunk/data/ai/lua/stdlib.lua?view=markup&pathrev=53846 20120409 02:32:56< Nephro> this is how stdlib.lua should look like 20120409 02:33:37< mattsc> I just looked into the trunk folder and there's more in stdlib. But then, in the compiled directory, there's the old version. 20120409 02:34:13< mattsc> Could this have something to do with this revision.hpp error I got? (I really have no idea what I am doing) 20120409 02:34:16< Nephro> mattsc, that is probably because the .lua files are stored in the data directory 20120409 02:35:27< mattsc> What I mean is: in the data directory that I downloaded, I have a new stdlib.lua. But in the compiled directory structure, there's the old one (also in data/) 20120409 02:36:00< Nephro> mattsc, you get the new executable, that's why you see the is_*_valid methods. But your data directory isn't changed in the process of compilation 20120409 02:36:47< Nephro> mattsc, I think I maybe should add the stdlib.lua and cache.lua in the build configs 20120409 02:36:48< mattsc> Hmm... I would have expected it to copy new files in there over as well. 20120409 02:37:32< mattsc> Are there other files you changed also? For now, I can just copy them over manually, until I figure out how to do it correctly. 20120409 02:39:04< Nephro> mattsc, yes, also cache.lua was added 20120409 02:40:13< Nephro> I need to ask the build system maintainers. But I'll do that tomorrow, because I am really tired and it's 2 am already :( 20120409 02:40:55< mattsc> ok, now the cached methods are there ... 20120409 02:41:17< mattsc> That was a dirty hack, but I'm a bit under time pressure right now as well (albeit for different reasons) 20120409 02:43:03< mattsc> Nephro: so, yes, get_cached_dstsrc() gives me a result that looks reasonable (but I haven't tested it in detail yet, of course) 20120409 02:43:11< mattsc> Let's pick this back up tomorrow, shall we? 20120409 02:43:41< Nephro> mattsc, sure, that's a great idea :) I will try to expose attacks before it's waking up time in your region 20120409 02:44:10 * dream_lane is amazed how active wesnoth IRC is, even on Easter 20120409 02:45:07< mattsc> Nephro: sounds perfect. I should have a little more time tomorrow than I had today. 20120409 02:46:17< shadowm> anonymissimus: would it be okay if [item] would be made to accept an optional redraw= attribute (def. true) in trunk? 20120409 02:46:26< shadowm> *[item] were made 20120409 02:47:12< shadowm> and yes, obviously I have use cases for placing multiple [item]s without having the screen refreshed after each one 20120409 02:50:07-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Ping timeout: 260 seconds] 20120409 02:51:43-!- Nephro [~Dmitry@02de475b.bb.sky.com] has quit [Quit: Leaving] 20120409 02:51:54-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120409 02:52:14< Alarantalara> mattsc: the revision thing is my fault, I'll revert the commit if it's not working for other people 20120409 02:52:37-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120409 02:52:48< mattsc> Alarantalara: I just reverted the line in game_config and the error with revision.hpp (which is clearly there) seems gone now... 20120409 02:53:03< Alarantalara> it's not a problem with game config 20120409 02:54:48< CIA-69> alarantalara * r53874 /trunk/projectfiles/Xcode/Wesnoth.xcodeproj/project.pbxproj: revert r53788 20120409 02:55:11< mattsc> Alarantalara: ok, well, that's where I got the error from (that revision.hpp was not found, even though it was there) 20120409 02:55:55< mattsc> But now it seems to work for some reason. 20120409 02:56:22< Alarantalara> mattsc: it wasn't anything essential — I was just experimenting with adding the svn revision to the window title as appears with scons builds 20120409 02:56:45< Alarantalara> but apparently there were flaws with my implementation 20120409 02:56:50< mattsc> Alarantalara: ok. 20120409 02:56:57< Alarantalara> so it's simpler just to get rid of it again 20120409 02:57:19< mattsc> Well, as I said, it seems to be working now for me (even before you reverted it) 20120409 02:57:45< mattsc> Btw, do you know if it is normal that the files in the data/ directory do not get updated into the compile directory even if they are changed? I am using Xcode. 20120409 02:58:13< mattsc> see my convesation with Nephro up there ^ 20120409 02:58:13< Alarantalara> that is unusual, I've never had problems with the contents of data not being copied on change 20120409 02:59:03< mattsc> That's what I would have expected... I'll try again later, need to do something else for a while now. Thanks! 20120409 02:59:25< Alarantalara> well, you can always clean the build first, then it has to copy... 20120409 03:00:08< mattsc> That makes sense... Thanks. 20120409 03:01:22-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120409 03:04:30-!- Artemius23 [~yigit@139.179.207.101] has quit [Quit: Ex-Chat] 20120409 03:25:56-!- Gambit [~gambit@wesnoth/developer/grickit] has quit [Remote host closed the connection] 20120409 03:40:22-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has quit [Quit: Leaving.] 20120409 03:47:15< jamit> Alarantalara: OK, I'll take a look. 20120409 03:51:18-!- leonid [~leonid@220.113.2.146] has joined #wesnoth-dev 20120409 03:53:16< jamit> mattsc: I happen to have a UtBS save from just before starting the chase sequence. 20120409 03:53:57< jamit> Saved under version 1.11-svn 20120409 03:54:41< jamit> fendrin: upkeep can be accounted for by adjusting a transporting unit's upkeep= attribute, no? 20120409 03:55:58< jamit> And transported units could be stored in a scenario-specific variable, then they could be included in filters by using a SUF's find_in=? 20120409 03:57:02< jamit> Not quite as convenient as having the engine automatically search for them, but the problems you mentioned do not look that insurmountable, unless I am missing something. 20120409 03:57:38-!- knotwork_ [~markm@unaffiliated/knotwork] has joined #wesnoth-dev 20120409 03:58:34-!- vultraz [~chatzilla@124.109.10.221] has quit [Ping timeout: 276 seconds] 20120409 03:58:57-!- nagafono [~kvirc@178.19.254.1] has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/] 20120409 04:01:00-!- knotwork [~markm@unaffiliated/knotwork] has quit [Ping timeout: 260 seconds] 20120409 04:01:33-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120409 04:07:24< jamit> Alaranralara: r53748 is correct? That should just affect highlighting hexes, not messages. (But I'll still see if I can reproduce this.) 20120409 04:12:40-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Quit: Computer has gone to sleep.] 20120409 04:18:34< mattsc> jamit: That would be great. Could you PM that to me or something? 20120409 04:19:04< jamit> Sure. 20120409 04:19:16< mattsc> Thanks. 20120409 04:33:21-!- happygrue [~quassel@wesnoth/developer/wintermute] has quit [Read error: Connection reset by peer] 20120409 04:35:02-!- atomicbomb [~quassel@125.164.88.193] has joined #wesnoth-dev 20120409 04:40:04-!- esr [~chatzilla@wesnoth/developer/esr] has quit [Remote host closed the connection] 20120409 04:40:23-!- happygrue [~quassel@c-98-222-183-113.hsd1.il.comcast.net] has joined #wesnoth-dev 20120409 04:40:23-!- happygrue [~quassel@c-98-222-183-113.hsd1.il.comcast.net] has quit [Changing host] 20120409 04:40:23-!- happygrue [~quassel@wesnoth/developer/wintermute] has joined #wesnoth-dev 20120409 04:49:53-!- Ivanovic_ [~ivanovic@dtmd-4db2abf3.pool.mediaWays.net] has joined #wesnoth-dev 20120409 04:49:53-!- Ivanovic_ [~ivanovic@dtmd-4db2abf3.pool.mediaWays.net] has quit [Changing host] 20120409 04:49:53-!- Ivanovic_ [~ivanovic@wesnoth/developer/ivanovic] has joined #wesnoth-dev 20120409 04:54:06-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has quit [Ping timeout: 272 seconds] 20120409 04:55:50-!- Ivanovic_ is now known as Ivanovic 20120409 04:57:30-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120409 05:10:18-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Quit: Computer has gone to sleep.] 20120409 05:14:46-!- naman22 [naman22@1.22.184.50] has quit [] 20120409 05:15:17-!- Elvish_Pillager [~eli@dhip-149.coburn.residences.colby.edu] has quit [Ping timeout: 244 seconds] 20120409 05:16:17< dream_lane> hmm 20120409 05:17:12< dream_lane> what's the story with the iOS version of BFW? I don't see anything about it on http://wiki.wesnoth.org/Download ... It's on the store for 3.99 20120409 05:20:11< shadowm> we know of its existence and a percentage of the profits contributes to the project's operations 20120409 05:23:05< shadowm> it's also not maintained by our team 20120409 05:23:09< ancestral> dream_lane: A programmer experienced with games on iOS undertook the port with permission and has since departed from development with it. The source code should (hopefully!) be available; it hasn't retained parity with trunk — it's a few versions back now 20120409 05:23:11< dream_lane> shadowm: Okay, but it's not really open source? Someone took the codebase and ported to iOS? In other words is it a lone wol... 20120409 05:23:15< dream_lane> okay 20120409 05:24:05< dream_lane> ancestral: yeah, I noticed it is out of date, and was going to propose that I assist bringing it back up do date, having a decent amount of iOS experience myself. 20120409 05:24:05< ancestral> Yeah, it's a less than ideal situation 20120409 05:24:07< shadowm> it's open source but the public tree is outdated in both the sense that it doesn't reflect the latest version in the store, and it was built from 1.6.x 20120409 05:24:35< dream_lane> okay, bummer deal 20120409 05:25:15< ancestral> It'd be a lot of work. Not sure if it would be more work getting the existing project up to 1.10 or, honestly, starting over 20120409 05:25:32< shadowm> updating it is already a work in progress 20120409 05:25:43< dream_lane> interesting 20120409 05:31:05-!- dream_lane [~benjamin@99-93-250-85.lightspeed.chtnsc.sbcglobal.net] has quit [Quit: I guess I better sleep] 20120409 05:34:31< mattsc> Nephro: cleaning the build and rebuilding as suggested by Alarantalara worked (of course). I have no idea what went wrong last time, but if you change one of the files in data/ in one of your next revisions, could you let me know so that I can figure out if it works this time? Thanks. 20120409 05:44:56-!- mattsc [~mattsc@d50-92-196-35.bchsia.telus.net] has quit [Quit: bye] 20120409 05:59:41-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has quit [Quit: Leaving] 20120409 06:05:29-!- _vdn1 [~nazgul-sa@ppp91-77-225-1.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120409 06:05:43-!- _vdn [~nazgul-sa@ppp91-77-225-1.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120409 06:10:20-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120409 06:18:36-!- Blueblaze [~Blueblaze@adsl-99-158-46-32.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120409 06:25:44-!- HelloIRC [~Hello@wireless-165-124-145-177.nuwlan.northwestern.edu] has joined #wesnoth-dev 20120409 06:30:51-!- oldtopman [~oldtopman@unaffiliated/oldtopman] has quit [Remote host closed the connection] 20120409 06:31:56< HelloIRC> Sorry, it looks like I'm going to have to drop my application this year... Really apologize for the last minute notice. I left a cancellation notice on my Wiki page. Thanks everyone for all the help thus far! 20120409 06:32:55-!- crimson_penguin [~ben@S01060024017512be.vc.shawcable.net] has joined #wesnoth-dev 20120409 06:33:02-!- crimson_penguin [~ben@S01060024017512be.vc.shawcable.net] has quit [Changing host] 20120409 06:33:02-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120409 06:36:24-!- avrilfanomar [~omar@91.202.131.100] has joined #wesnoth-dev 20120409 06:38:04< avrilfanomar> when i downloaded a map(add-ons) by running in IDE i got invalid map. Does anybody know what's the problem 20120409 06:38:35-!- HelloIRC [~Hello@wireless-165-124-145-177.nuwlan.northwestern.edu] has left #wesnoth-dev ["Leaving"] 20120409 06:40:08< Espreon> avrilfanomar: timotei would probably know, but he's not here right now. I'd come back when it's day in Europe if I were you. 20120409 06:41:10< avrilfanomar> Espreon: Thanks a lot!=) 20120409 06:41:21< Espreon> No prob. 20120409 06:41:54-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Ping timeout: 252 seconds] 20120409 06:42:38< CIA-69> jamit * r53875 /trunk/src/actions.cpp: 20120409 06:42:39< CIA-69> Refine when movement messages are displayed. 20120409 06:42:39< CIA-69> Fixes bug #19628 20120409 06:45:31-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120409 06:48:07-!- khoover [~crazy1010@70.51.111.33] has quit [Ping timeout: 264 seconds] 20120409 06:51:30-!- avrilfanomar [~omar@91.202.131.100] has left #wesnoth-dev [] 20120409 06:55:42-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Ping timeout: 272 seconds] 20120409 06:58:30-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120409 07:01:45-!- khoover [~crazy1010@70.51.111.75] has joined #wesnoth-dev 20120409 07:45:33-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Quit: Computer has gone to sleep.] 20120409 07:53:06-!- vultraz [~chatzilla@124.109.10.221] has joined #wesnoth-dev 20120409 07:56:05-!- SeattleDad [46674a08@gateway/web/freenode/ip.70.103.74.8] has joined #wesnoth-dev 20120409 07:59:13< SeattleDad> Could someone answer a question about the recruiting AI? 20120409 07:59:27< SeattleDad> I'm looking at the code here: http://pastebin.com/kBH4hBkn 20120409 08:00:27< SeattleDad> I don't understand why it's iterating through all the recruitables for a the side in this situation 20120409 08:04:30-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 08:05:33-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120409 08:09:18-!- esr [~chatzilla@static-71-162-243-5.phlapa.fios.verizon.net] has joined #wesnoth-dev 20120409 08:09:39-!- esr [~chatzilla@static-71-162-243-5.phlapa.fios.verizon.net] has quit [Changing host] 20120409 08:09:40-!- esr [~chatzilla@wesnoth/developer/esr] has joined #wesnoth-dev 20120409 08:10:21-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [] 20120409 08:10:41-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120409 08:13:02-!- boucman [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20120409 08:13:03-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Ping timeout: 260 seconds] 20120409 08:13:04-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Read error: Connection reset by peer] 20120409 08:13:33-!- boucman [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20120409 08:14:40< fendrin> hi boucman 20120409 08:14:46< boucman> morning 20120409 08:18:05< fendrin> boucman: Is it a holiday in France as well? 20120409 08:18:11< boucman> yes 20120409 08:18:29< fendrin> :-) 20120409 08:20:09< fendrin> shadowm: No it is not very difficult. I just call for the label/menu/panel I want it to draw in and ask the widget for it's sdl_rect. 20120409 08:22:40< shadowm> yeah, I suspected it was not. 20120409 08:22:52-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120409 08:22:57< shadowm> for people who can interpret the funny-looking numbers anyway. 20120409 08:23:05-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120409 08:28:34< fendrin> shadowm: But I am still not sure how to handle it in detail. Should I use (misuse?) one of the predefined menu/panel/label syntax or shall I introduce its own [palette] tag like [map] has its own? 20120409 08:28:51< shadowm> clearly the latter 20120409 08:29:22< fendrin> Yeah, that makes sense. 20120409 08:29:24-!- SeattleDad [46674a08@gateway/web/freenode/ip.70.103.74.8] has quit [Quit: Page closed] 20120409 08:31:17-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120409 08:33:02< fendrin> shadowm: I don't get why the original coder did that crude hardcoded geometry stuff. I think it is a clear case of a gsoc not mentored well enough. 20120409 08:34:00< shadowm> I think it is a clear case of people not having time for every single minutiae, which happens every often and not just in coding 20120409 08:34:28< fendrin> shadowm: Sure, the hack is just more work than just doing it right. 20120409 08:34:46< shadowm> most likely the hack was copied, not created by ilor 20120409 08:36:00< shadowm> and in my experience hacks like that can actually work like a charm under the right conditions 20120409 08:36:31< shadowm> especially when a deadline is looming 20120409 08:37:55< shadowm> and then one later forgets to revisit and replace them with an cleaner alternative; reasons abound 20120409 08:38:14< shadowm> *cleaner alternatives 20120409 08:40:42< shadowm> for example, how many people actually go back and check their TODOs and FIXMEs here? 20120409 08:47:53< fendrin> Well, I do. 20120409 09:02:16-!- ancestral [~ancestral@97-127-62-183.mpls.qwest.net] has quit [Quit: And that’s the end of THAT chapter.] 20120409 09:02:24-!- enchilado [~enchilado@defocus/yummy/enchilado] has joined #wesnoth-dev 20120409 09:05:37-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120409 09:58:24-!- Trademark_ [~Trademark@cust-122-193-111-94.dyn.as47377.net] has joined #wesnoth-dev 20120409 10:00:39-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has joined #wesnoth-dev 20120409 10:07:03-!- stikonas [~gentoo@ctv-213-164-114-240.vinita.lt] has joined #wesnoth-dev 20120409 10:07:03-!- stikonas [~gentoo@ctv-213-164-114-240.vinita.lt] has quit [Changing host] 20120409 10:07:03-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120409 10:10:25-!- Johannes13 [~Johannes@unaffiliated/johannes13] has joined #wesnoth-dev 20120409 10:14:41-!- mordante [~mordante@wesnoth/developer/mordante] has joined #wesnoth-dev 20120409 10:14:53< mordante> servus 20120409 10:16:20< Ivanovic> moin 20120409 10:16:29< mordante> hi Ivanovic 20120409 10:17:52-!- _vdn [~nazgul-sa@ppp91-77-225-1.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120409 10:18:20-!- _vdn [~nazgul-sa@ppp91-77-225-1.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120409 10:18:46-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120409 10:19:19-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has joined #wesnoth-dev 20120409 10:19:22< mordante> mattsc whether revision.hpp is used is a flag in the build system 20120409 10:21:50< Trademark_> mattsc, I've updated my proposal, with your idea of "filling the vacant tiles of the castle with random units". I added it as a tip because it's not in line with the gold improvement we spoke in the latest post in the forum. 20120409 10:22:40< Trademark_> mattsc, btw I change the specification of a type, it should accept both units and usages. 20120409 10:22:40-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Read error: Connection reset by peer] 20120409 10:22:52-!- stikonas [~gentoo@ctv-213-164-114-240.vinita.lt] has joined #wesnoth-dev 20120409 10:23:01-!- stikonas [~gentoo@ctv-213-164-114-240.vinita.lt] has quit [Changing host] 20120409 10:23:01-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120409 10:23:57< mordante> fendrin, the editor gsoc project was reusing the existing code a lot 20120409 10:24:11< mordante> don't start to yell it was mentored badly 20120409 10:28:49< mordante> bloodycoin, regarding r53872 I'm not really happy with the x-18, I'd rather see x - tilewidth / 4 if we ever decide to make our tile 100x100 both the comment and the code will still work -18 will fail 20120409 10:29:31< zookeeper> jamit, "upkeep can be accounted for by adjusting a transporting unit's upkeep= attribute, no?" <- ah, that's a clever idea, i didn't think of that. 20120409 10:34:03-!- MeccaGod [majs@host189-199.bornet.net] has joined #wesnoth-dev 20120409 10:38:44< zookeeper> Trademark_, i don't entirely understand coffee's post either, but anyway, when doing initial recruits it's very important to place your recruits so that you can grab as many villages as possible in as few turns as possible. if something like that can be incorporated, that'd be great. i don't think the AI currently really considers anything like that. 20120409 10:40:59< Trademark_> zookeeper, yeah, I think a "recruiting list" should be etablished first and then the "recruiting ordrer". 20120409 10:42:05< Trademark_> zookeeper, but, I have a question, I can't remember if we can choose where an unit is recruited in the castle, can we ? 20120409 10:42:22< zookeeper> perhaps the approach could be something like "find the castle tile from which the fastest unit on the 'recruiting list' can reach the furthermost village (in one turn), recruit that unit there. repeat for every unit on the 'recruiting list'" although that could make the AI ignore villages which are closer... 20120409 10:42:42< zookeeper> Trademark_, as human players? sure we can. right-click on hex onto which you want to recruit. 20120409 10:43:41 * zookeeper goes to grab some breakfast -> 20120409 10:46:18-!- atomicbomb [~quassel@125.164.88.193] has quit [Remote host closed the connection] 20120409 10:46:19< Trademark_> zookeeper, your idea is good, but for example, we could use "non-scout" unit to get a village IF a village is on their way. The remaining village would be get be the "real scout". However I updated my post and propose an "objective" key. 20120409 11:03:05-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has quit [Quit: Konversation terminated!] 20120409 11:03:09< zookeeper> right 20120409 11:04:45< zookeeper> the thing is that in theory it would be possible for the AI to build a sort of a graph of which villages each unit could reach on each turn, and thus place their recruits so that their village-grabbing potential is maximized 20120409 11:05:07< zookeeper> of course, it's another matter entirely whether the AI would then _act_ accordingly or not :P 20120409 11:11:25-!- negusnyul [~negusnyul@dsl4E5CD33A.pool.t-online.hu] has joined #wesnoth-dev 20120409 11:11:47-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-dev 20120409 11:21:53-!- liviuc [~liviu@p5.eregie.pub.ro] has joined #wesnoth-dev 20120409 11:22:06-!- liviuc [~liviu@p5.eregie.pub.ro] has left #wesnoth-dev [] 20120409 11:24:21-!- mjs-de [~mjs-de@p3EE23533.dip.t-dialin.net] has joined #wesnoth-dev 20120409 11:38:25< Trademark_> zookeeper, yeah :) I'll figure out this ! 20120409 11:38:42 * Trademark_ afk for the day. 20120409 11:39:01-!- nagafono [~kvirc@178.19.254.1] has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/] 20120409 11:54:48-!- horon [~horon@nttkyo322045.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has joined #wesnoth-dev 20120409 11:58:13-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120409 12:02:00-!- Trademark__ [~Trademark@cust-167-246-111-94.dyn.as47377.net] has joined #wesnoth-dev 20120409 12:05:08-!- Trademark_ [~Trademark@cust-122-193-111-94.dyn.as47377.net] has quit [Ping timeout: 252 seconds] 20120409 12:27:40-!- leonid [~leonid@220.113.2.146] has quit [Remote host closed the connection] 20120409 12:33:31-!- vcap [~vcap@AReims-551-1-25-44.w86-215.abo.wanadoo.fr] has quit [Quit: leaving] 20120409 12:39:00< mordante> Ivanovic, I still get error trying to run wesnoth in qemu, want to try to get gdb working for arm 20120409 12:39:16< mordante> however I expect this not to happen really soon (tm) 20120409 12:39:24< Ivanovic> mordante: talk to the folks in #openpandora 20120409 12:39:28-!- mjs-de [~mjs-de@p3EE23533.dip.t-dialin.net] has quit [Remote host closed the connection] 20120409 12:39:31< Ivanovic> IIRC cloudef had the gdb binary 20120409 12:39:58< mordante> ok, but also wanted to know when you would leave 20120409 12:41:45< mordante> will first give gdb a spin and then well be afk for dinner 20120409 12:43:51-!- vcap [~vcap@AReims-551-1-25-44.w86-215.abo.wanadoo.fr] has joined #wesnoth-dev 20120409 12:55:34< Ivanovic> mordante: i'll leave at about 6pm 20120409 12:55:54< Ivanovic> and this time i won't have my laptop with me in neu-isenburg so i can't compile something in the evening as test on the pandora 20120409 13:04:39< mordante> ok 20120409 13:04:53< mordante> well gdb was a breeze, now to try to debug 20120409 13:07:49-!- stikonas_ [~gentoo@ctv-213-164-114-240.vinita.lt] has joined #wesnoth-dev 20120409 13:08:03-!- stikonas_ [~gentoo@ctv-213-164-114-240.vinita.lt] has quit [Changing host] 20120409 13:08:03-!- stikonas_ [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120409 13:08:08-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Read error: Connection reset by peer] 20120409 13:18:39< bloodycoin> mordante, ok, I was getting ahead of myself, and trying to optimise... I will make it tile width independant 20120409 13:20:07< vultraz> mordante: widgets can't be removed from a window, right? 20120409 13:20:09< mordante> bloodycoin, there is also a const value for the tile with in that case the compiler should use the same code 20120409 13:20:38< mordante> vultraz, no why? 20120409 13:20:49< vultraz> just checking 20120409 13:21:31< vultraz> because I'm thinking of writing some more lua gui functions to solve some of my problems 20120409 13:21:46< mordante> bloodycoin, TILEWIDTH in builder.hpp 20120409 13:21:49< vultraz> and I was wondering what can and can't be done 20120409 13:22:31< mordante> when in theory you might be able to add and remove widgets, but it hasn't been tested much 20120409 13:22:37< mordante> at least not directly 20120409 13:22:52< mordante> obviously the listbox does it when adding and removing rows 20120409 13:23:38< vultraz> basically what I'm trying to decide is to make a bunch of listbox-specific functions, or general functions that include listboxes 20120409 13:24:19< vultraz> eg, remove_listbox_row OR clear_dialog_value, which if run on a whole listbox row would kill it 20120409 13:24:55< vultraz> though I don't really seeing having widgets values set to "" really useful 20120409 13:25:02< vultraz> (for buttons, etc) 20120409 13:25:20-!- vcap [~vcap@AReims-551-1-25-44.w86-215.abo.wanadoo.fr] has quit [Quit: leaving] 20120409 13:27:28< mordante> vultraz, at some point I _will_ rewrite the listbox class so don't try to hack to deep into the class 20120409 13:28:15< vultraz> not intending to 20120409 13:28:53< mordante> the API was never intended to be stable and also not ready to be exported to Lua 20120409 13:31:19< bloodycoin> mordante, but the code I was fiddling with uses zoom_*3/4 for tilewidth 20120409 13:31:35< vultraz> I think a clear_dialog_value function that sets widget values to "" should do it 20120409 13:31:58< mordante> ah yes we have zoom as well, but then the hardcoded 18 is probably entirely wrong 20120409 13:32:03< mordante> what happens if you zoom? 20120409 13:33:20< bloodycoin> yep, it is... I will just the fraction part of one tile as before... 20120409 13:33:30< bloodycoin> how do you zoom? :) haven't found out yet 20120409 13:33:51< vultraz> running it on the whole listbox would call the listbox clearing function....running it on X listbox row would call the listbox row clearing function. most other widgets would get a "" 20120409 13:34:06< vultraz> now I just need to figure out how to do that 20120409 13:35:30< mordante> bloodycoin, + and - when you're in a scenario 20120409 13:42:45< bloodycoin> mordante, theoritically, zooming out while having -18px and scrolling to right would invalidate more hexes than needed, and not enough scrolling to left 20120409 13:43:49< bloodycoin> and vice versa while zooming in 20120409 13:44:05-!- Ayne [~Ayne@cpc2-sgyl34-2-0-cust493.sgyl.cable.virginmedia.com] has joined #wesnoth-dev 20120409 13:49:19< bloodycoin> mordante, after I correct this, should I link r53872 or the new one rev in my application? 20120409 13:49:37< mordante> bloodycoin, you can do both 20120409 13:49:44< bloodycoin> oh, ok 20120409 13:49:49-!- wesbot changed the topic of #wesnoth-dev to: Wesnoth accepted in GSoC 2012 | http://wiki.wesnoth.org/SummerOfCodeIdeas | 173 bugs, 329 feature requests, 15 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20120409 13:50:02< mordante> it's not a problem to make mistakes, we all do 20120409 13:51:02< bloodycoin> yes, and that's how we learn :) 20120409 13:51:10< mordante> exactly 20120409 14:12:51-!- enchilado [~enchilado@defocus/yummy/enchilado] has quit [Ping timeout: 260 seconds] 20120409 14:13:35-!- Oleg [~quassel@95-37-254-171.dynamic.mts-nn.ru] has joined #wesnoth-dev 20120409 14:22:53-!- leonid [~leonid@111.193.208.252] has joined #wesnoth-dev 20120409 14:30:32< CIA-69> jamit * r53876 /trunk/src/ (10 files in 3 dirs): 20120409 14:30:32< CIA-69> Add wrapper functions find_if_matches_id() and erase_if_matches_id(), 20120409 14:30:32< CIA-69> making some parts of the code easier to read. 20120409 14:34:05< jamit> ^ Boost is nice, but it does lead to some cryptic statements. This one in particular occurred in a number of places. 20120409 14:35:07< mordante> boost is indeed quite nice 20120409 14:37:00-!- leonid [~leonid@111.193.208.252] has quit [Remote host closed the connection] 20120409 14:39:30-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has quit [Remote host closed the connection] 20120409 14:49:29< mordante> Ayne, around? 20120409 14:49:40< Ayne> mordante: yes 20120409 14:50:30< mordante> Ayne, I was looking at your proposal yesterday and noticed no patches yet, however I heard you provided patches 20120409 14:50:41< mordante> could you list them in your application? 20120409 14:51:35< mordante> also make sure when you update your application you leave note what you changed 20120409 14:51:50< Ayne> mordante: it's in the questionnaire where it says "If you have contributed any patches to Wesnoth, please list them below" 20120409 14:51:51< mordante> we'd rather not reread the entire application for every modification 20120409 14:52:08< mordante> Ayne, in the wiki? 20120409 14:53:23< Ayne> yes, i thought I'd copied the entire updated questionnaire to the Google application, but it seems I forgot that part.. I will add it now 20120409 14:54:22< mordante> Ayne, you can also remove the content in the google application and link to the wiki 20120409 14:54:37< mordante> that way you only need to maintain one place 20120409 14:54:50< mordante> just make sure you leave a note in melange after updating 20120409 14:56:47< Ayne> ok, I'll replace the Google application text with a link to the wiki and a note what I changed since the original application and do the same with any future changes there may be. is that ok? 20120409 14:57:10< mordante> that would be perfect 20120409 14:59:37-!- timotei [~timotei@188.24.4.67] has joined #wesnoth-dev 20120409 14:59:37-!- timotei [~timotei@188.24.4.67] has quit [Changing host] 20120409 14:59:37-!- timotei [~timotei@wesnoth/developer/timotei] has joined #wesnoth-dev 20120409 15:00:10< mordante> Ayne, regarding your patch, did you discover the problem yourself or did somebody point you to it? 20120409 15:01:48-!- Nephro [~Dmitry@02de475b.bb.sky.com] has joined #wesnoth-dev 20120409 15:06:26< Ayne> mordante: it was this bug report: https://gna.org/bugs/?func=detailitem&item_id=19599 20120409 15:06:34< Ayne> i found it while browsing through the list of bugs 20120409 15:08:18< mordante> ok 20120409 15:08:43< mordante> also somewhat surprised by the hunk starting at line 1415 http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?r1=53770&r2=53769&pathrev=53770 20120409 15:08:54< mordante> could you explain to me why you did it like that? 20120409 15:12:55< Ayne> mostly because when i wrote that i had used the ? operator so often that it didn't immediately occur to me that == returns true or false as well.. i realized that after it had already been commited 20120409 15:13:15< Ayne> ((cfg_ai_special.str() == "guardian" ? true : false) != get_state(STATE_GUARDIAN)) 20120409 15:13:18< Ayne> sorry 20120409 15:13:36< Ayne> ((cfg_ai_special.str() == "guardian") != get_state(STATE_GUARDIAN)) should do the same thing 20120409 15:14:22< mordante> ok no problem, I was just puzzled why you did it like that 20120409 15:14:37< mordante> I'll commit a fix 20120409 15:15:47< Ayne> do you want me to change it and reupload the patch? 20120409 15:16:08< mordante> that's also fine by me, then I'll commit your patch 20120409 15:19:57< Ayne> it'll take a moment, i have to download the latest version first 20120409 15:20:20< mordante> no problem (re)reading your application 20120409 15:23:29< mordante> Ayne, some comments regarding your proposal 20120409 15:24:00< mordante> it would be nice if you can put the timeline in a table and also the milestones you want to achieve 20120409 15:24:26< mordante> also your proposal could use more details regarding how you want to achieve some goals 20120409 15:24:52< mordante> for an example of a very good application have a look at http://wiki.wesnoth.org/SummerOfCodeProposal_AI_Improvement_Crab#Timeline 20120409 15:33:19< Ayne> mordante: i will put it into a table later and try to add some milestones, but i think defining clear milestones is difficult for this project 20120409 15:42:27< mordante> Ayne, it's hard for every project ;-) the best thing to do is to talk to Crab_ (he sumbitted the idea) and discuss it with him 20120409 15:42:49< Ayne> mordante: uploaded the patch 20120409 15:42:52< mordante> thanks 20120409 15:43:10-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has joined #wesnoth-dev 20120409 15:43:17-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 248 seconds] 20120409 15:44:35-!- Elvish_Pillager [~eli@dhip-149.coburn.residences.colby.edu] has joined #wesnoth-dev 20120409 15:46:23-!- stikonas_ [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120409 15:46:35-!- stikonas_ [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120409 15:49:38< fendrin> hello 20120409 15:52:39-!- nagafono [~kvirc@178.19.254.1] has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/] 20120409 15:52:54< Nephro> Hi! I need some help regarding my work. I added a .lua file to the data/ai directory. People, who compile wesnoth in directories other than their source directory don't seem to receive the updates to file in data/ai/lua, whilst receiving the new executable. How do I fix that? Or is it meant to work this way? 20120409 15:53:53-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has quit [Ping timeout: 244 seconds] 20120409 15:54:17< fendrin> mordante: The hardcoded editor layout was coded even before the theming wml was in place? 20120409 15:54:52-!- anonymissimus [~chatzilla@HSI-KBW-078-042-163-105.hsi3.kabel-badenwuerttemberg.de] has joined #wesnoth-dev 20120409 15:55:11-!- happygrue_ [~quassel@c-98-222-183-113.hsd1.il.comcast.net] has joined #wesnoth-dev 20120409 15:55:11-!- happygrue_ [~quassel@c-98-222-183-113.hsd1.il.comcast.net] has quit [Changing host] 20120409 15:55:11-!- happygrue_ [~quassel@wesnoth/developer/wintermute] has joined #wesnoth-dev 20120409 15:55:31< Ivanovic> Nephro: since anything in data/ is a file loaded at runtime, you have to make sure that the people actually got the fie 20120409 15:55:34< Ivanovic> s/fie/file 20120409 15:55:44< Nephro> Hi, anonymissimus, I messaged you a private message with a question I asked a minute before you joined 20120409 15:55:54< Ivanovic> the lua files are *not* build into the binaries 20120409 15:55:54< CIA-69> mordante * r53877 /trunk/src/ (asserts.hpp unit.cpp): 20120409 15:55:55< CIA-69> Remove an unneeded ternary operator. 20120409 15:55:55< CIA-69> Patch by Ayne. 20120409 15:55:56-!- happygrue [~quassel@wesnoth/developer/wintermute] has quit [Ping timeout: 272 seconds] 20120409 15:56:12< Nephro> Ivanovic, I understand, that. But how are these files managed? 20120409 15:56:20< Nephro> i.e. how they should be managed? 20120409 15:56:21< anonymissimus> shadowm: If you have a usecase where such attribute speeds up your wml/lua noticably that's perfectly fine 20120409 15:56:24< Ivanovic> simple, they are loaded at starting the game 20120409 15:56:42< Ivanovic> either they are copied into the "install dir" by make install and stuff like this where the game will find them 20120409 15:56:52< Ivanovic> or the user tells the binary which folder to use as "home" folder 20120409 15:57:08< CIA-69> mordante * r53878 /trunk/src/asserts.hpp: Remove accidental committed part of previous commit. 20120409 15:57:10< Ivanovic> it only works together with all the rest of data/ 20120409 15:57:15< Nephro> Ivanovic, but the directory containing the binary is not the same as trunk for some users 20120409 15:57:30< Ivanovic> Nephro: the folder is exactly the same for people 20120409 15:57:41< Ivanovic> where the binary is placed and where the data/ stuff is does not matter (much)! 20120409 15:57:42< mordante> fendrin, afaik yes 20120409 15:57:55< Ivanovic> Nephro: any lua file is *identical* in behaviour to any wml file 20120409 15:58:07< Nephro> Ivanovic, so it is not my responsibility then? 20120409 15:58:20< Ivanovic> Nephro: i got no idea what you think your responsibility might be 20120409 15:58:23< fendrin> I see. Maybe I shouldn't remove the code but put it under "Weltkulturerbe" :-) 20120409 15:58:28< Ivanovic> the lua files are interpreted "as is" 20120409 15:58:44< Ivanovic> fendrin: great to hear that you got the terrain pallet to be wml configurable! 20120409 15:59:37< fendrin> Ivanovic: That was no black magic. 20120409 16:00:04< fendrin> Ivanovic: It took 5 minutes to see how it is done. 20120409 16:00:17< anonymissimus> shadowm: I'll try that; note that if the [items] happen to have different locations but same image=s different tags aren't needed 20120409 16:01:13< mordante> fendrin, yeah right then I probably also should have fixed that bug yesterday we could have kept it as Weltschmerz 20120409 16:01:27< fendrin> :-) 20120409 16:01:30< mordante> being undefined behaviour on several accounts 20120409 16:01:36< Nephro> Ivanovic, yesterday mattsc checked out the latest revision with my new .lua files, but his executable couldn't load them, since he has another directory with outdated data/ folders, where the new executable is placed. That's what concerns me. I though maybe there are configuration files, that tell the build systems to move around files that are not built into the executable 20120409 16:02:04< Ivanovic> Nephro: it should be well known that you musn't use updated src/ with outdated data/ 20120409 16:02:18< Ivanovic> since lots of the UI is done using WML which is in data, too 20120409 16:02:36< Ivanovic> Nephro: so he just has to make sure that his data dir used is recent 20120409 16:02:40< Nephro> Ivanovic, ok, thanks,the question is clear now 20120409 16:02:53< Ivanovic> the easiest way to do so is point the wesnoth binary to use the checkouts data dir 20120409 16:03:13< mordante> fendrin, I see you're also still working on your long term strategy to turn every chan into a German speaking chan :-P 20120409 16:03:16< Ivanovic> eg on linux "./wesnoth ." in case the binary 'wesnoth' is placed in the checkout root 20120409 16:04:58< CIA-69> bloodycoin * r53879 /trunk/src/display.cpp: fix for r53872; making tile width and zoom independant 20120409 16:05:38< fendrin> mordante: Überkorrekt 20120409 16:06:33< anonymissimus> mordante: das is a very lohnenswertes goal 20120409 16:07:20< anonymissimus> given that this channel is almost named .de and half the developers know German ;) 20120409 16:08:32< mordante> and most English speaking start their schoollife in the proper way by going to the Kindergarten 20120409 16:12:34< anonymissimus> mordante: note that kindergarten is the same word even in English, they took it over 20120409 16:13:20< mordante> anonymissimus, I know that was the point of it... 20120409 16:13:41< anonymissimus> but you made the K a capital letter 20120409 16:13:42< mordante> Weltschmerz is also English 20120409 16:14:01-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has joined #wesnoth-dev 20120409 16:14:22< Ayne> the english language has a lot of german words.. but when they steal them they at least keep the meaning.. wish i could say the same about english words in german ;) 20120409 16:14:57< Ivanovic> ah, they are similar enough 20120409 16:15:25< anonymissimus> interesting; I wouldn't know how to exactly define "Weltschmerz" though 20120409 16:15:38< Ivanovic> the great ones are the english sounding german words like "handy" 20120409 16:15:54< Ayne> yeah, those are the ones i'm talking about 20120409 16:16:07< Ayne> or bodybag.. in germany it's a type of backpack 20120409 16:16:19< Ivanovic> tough a mobile phone can in fact be a handy tool to have... 20120409 16:16:21< Ayne> in english speaking countries something to transport corpses 20120409 16:16:37-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120409 16:16:43< mordante> the best way to learn English http://www.sfgate.com/cgi-bin/article.cgi?f=/c/a/2006/06/07/EDGDOILM3B1.DTL&hw=weltschmerz&sn=001&sc=1000 20120409 16:20:23< Ivanovic> nah, the best way to learn english is to switch reading novels in english 20120409 16:20:32< Ivanovic> without a dictionary close by! 20120409 16:20:58< Ivanovic> and of course idle chatter in irc chans where english is the language used 20120409 16:21:43< mordante> the latter only works until they switch to German ;-) 20120409 16:21:50 * mordante looks at #openpandora 20120409 16:22:31< Ivanovic> switching to german is less likely in #openpandora than it is in here! 20120409 16:23:00< Ivanovic> considering how often fendrin or i speak some german in here... 20120409 16:23:30< mordante> I've seen it in #openpandora as well 20120409 16:24:05< anonymissimus> reading English novels is really tough...and why not using pons.de or something 20120409 16:25:01< mordante> reading novels in a foreign language just takes some practice, hard at first but doable after a while 20120409 16:25:34< Ayne> it's tough at first, but worth it.. and you learn more by trying to figure it out yourself 20120409 16:25:41< mordante> exactly 20120409 16:25:48< Ayne> which is also good practice for those situations where you dont happen to have pons.de handy 20120409 16:25:50-!- horon [~horon@nttkyo322045.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has quit [Quit: Leaving...] 20120409 16:28:26< mordante> indeed when I commute I've access to the Internet 20120409 16:28:39< fendrin> Okay, during browsing the data tree I found something like an implicit TODO. 20120409 16:29:04< anonymissimus> jamit: your revisions appear to encourage the usage of unit::id_ to address units; that's not that good since the engine should rather use underlying_id while id_ us the wml-set one 20120409 16:29:30< Ivanovic> fendrin: we got *implicit* TODOs, too? 20120409 16:29:45< Ivanovic> i was just aware of the very explicit ones marked with TODO or an entry in the bug tracker... 20120409 16:29:46< anonymissimus> (sure, you didn't cause that problem, you just refactored it) 20120409 16:30:14< Ivanovic> Ayne: exactly 20120409 16:30:24< mordante> nah we have implicit ones to Ivanovic, for example get Wesnoth running nicely on the Pandora ;-) 20120409 16:30:43< Ivanovic> mordante: it is already viewed as one of the great native games 20120409 16:30:50< Ivanovic> so it is already running rather nicely 20120409 16:30:55< Ivanovic> though better is probably always possibel! 20120409 16:31:06< mordante> exactly 20120409 16:31:24< Ivanovic> Ayne: though the important part is that reading novels should be *fun* and looking up every 2nd word in a dictionary stops reading from being fun 20120409 16:31:27< fendrin> Ivanovic: Yeah. 20120409 16:31:31-!- Danceman [~Danceman@a94-132-158-220.cpe.netcabo.pt] has joined #wesnoth-dev 20120409 16:31:33< anonymissimus> mordante: btw I tried valgrind on the test scenario to no avail :( 20120409 16:32:23 * anonymissimus is really out of ideas then 20120409 16:32:30< mordante> anonymissimus, :-( 20120409 16:32:31< jamit> anonymissimus: The times when it was used was searching a recall list for a unit. Such a search would need to be done to avoid having two units with the same WML-id, wouldn't it? 20120409 16:32:33< fendrin> The file images/misc/hover-hex-enemy.png and hover-hex-yours.png. They are not used currently as far as I know. Shall I put them in place? 20120409 16:33:07< mordante> Ivanovic, just start with simpler books and then work your way up to real novels 20120409 16:33:40< anonymissimus> jamit: if that was the case in all the callcases it's good 20120409 16:33:48< Ivanovic> mordante: modern novels tend to be rather simple 20120409 16:34:01< jamit> I'll double-check. 20120409 16:34:14< Ivanovic> though yeah, there is some more difficult stuff to understand (like discworld), too 20120409 16:34:23-!- mattsc [~mattsc@d50-92-196-35.bchsia.telus.net] has joined #wesnoth-dev 20120409 16:34:25< Ivanovic> but the basics you do get, you just miss on some of the finer points 20120409 16:34:31< anonymissimus> mordante: I didn't compile with optimizations on though (-O3) 20120409 16:34:45< mordante> Ivanovic, true but I also read older novels and they get even trickier because of the spelling 20120409 16:34:58< mordante> anonymissimus, I would try valgrind with -O3 20120409 16:35:41< mordante> yes but discworld has a lot of spelling and grammar puns 20120409 16:35:43< Ayne> Ivanovic: but discworld isn't funny in german.. 20120409 16:35:46< anonymissimus> yeah, but I don't know how to easily set that with those make files 20120409 16:35:54< fendrin> Ivanovic: Do you have an opinion on the matter? 20120409 16:35:56< Ivanovic> Ayne: depends, some of them can be quite funny 20120409 16:36:16< Ivanovic> fendrin: do you think the images are good and make sense as overlay? 20120409 16:36:25< Ivanovic> or will they just hurt speed and eyes at the same time? 20120409 16:37:08< mordante> Ayne, yeah I also prefer discworld in English 20120409 16:37:25< jamit> anonymissimus: Yes, all the current uses are for searching recall lists. Would you like it better if that was enforced? Something like make the function part of the team interface instead of accepting any vector of units? 20120409 16:38:15< jamit> Something tells me that just forcing there to be a vector of units should be enough, though. 20120409 16:39:06< fendrin> Ivanovic: Well, they are very similar to what we use now. If they are to much hurting they can be redone. The question is, do we want the feature, looked at independently of the current art incarnation for the feature. 20120409 16:40:36< Ivanovic> fendrin: honestly i don't know how much sense it makes 20120409 16:40:59< Ivanovic> though having the feature possible somehow might be nice especially for visually impaired people like eg color blind folks 20120409 16:41:06< Ivanovic> who got severe problems seeing teamcolors 20120409 16:41:37< fendrin> Well, the cursors are red/green... 20120409 16:41:58< fendrin> But I got your point. 20120409 16:42:25< fendrin> The hex field is already customizable through wml. 20120409 16:43:38< fendrin> Thus I can easily add two more entries to the preferences file and it could be accessed by some color blind option or similar. 20120409 16:44:03< anonymissimus> jamit: I dunno, sry... 20120409 16:48:23-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has quit [Ping timeout: 245 seconds] 20120409 16:49:31-!- tyrannodogg [~tyrannodo@ip-123-23.travedsl.de] has joined #wesnoth-dev 20120409 17:08:25< fendrin> Ivanovic: I must be listed somewhere in the gsoc contact ask mentor for whatever section. Can that be removed? 20120409 17:09:06< Ivanovic> huh? 20120409 17:09:15< Ivanovic> IIRC you are only listed in the "people to contact on irc" area 20120409 17:09:18< Ivanovic> which is rather generic 20120409 17:09:52< fendrin> Okay, somehow I get contacted by students regularly asking for doing some mentor stuff. 20120409 17:09:56< Ivanovic> http://wiki.wesnoth.org/SoC_People_to_bug_on_IRC 20120409 17:10:12< Ivanovic> though no, there you are not listed 20120409 17:11:53< anonymissimus> shadowm: I suspect the bottleneck is somewhere else since I need to loop a lot more to measure a difference than should be reasonable for a scenario, patch: http://pastebin.com/jhYPuKn8 20120409 17:13:12< anonymissimus> checked like this in the test scenario: http://pastebin.com/2wjRmbT3 20120409 17:13:31< anonymissimus> it may depend strongly on the image used I guess 20120409 17:26:52-!- Oleg [~quassel@95-37-254-171.dynamic.mts-nn.ru] has quit [Remote host closed the connection] 20120409 17:28:41-!- tyrannodogg [~tyrannodo@ip-123-23.travedsl.de] has quit [Remote host closed the connection] 20120409 17:34:16< CIA-69> nephro * r53880 /trunk/ (data/ai/scenarios/scenario-lua-ai.cfg src/ai/lua/core.cpp): LuaAI: exposed the attacks() vector values 20120409 17:34:55< CIA-69> fendrin * r53881 /trunk/src/ (theme.cpp theme.hpp): Added support for [brush_bar] and [palette] in WML themes. 20120409 17:41:12-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Quit: Computer has gone to sleep.] 20120409 17:44:34< mattsc> Nephro, just built your last revision and the data/ directory file you change (scenario-lua-ai.cfg) got updated without problems. I have no idea what happened yesterday, but it was most certainly a user error... 20120409 17:47:11< Nephro> mattsc, ok, I will extend the attacks for LuaAI adding the possibility to get attack ratings on demand 20120409 17:48:14< mattsc> As in, accessing the attack rating the c++ combat CA uses? 20120409 17:48:40< Nephro> mattsc, right now only the precalculated values are exposed, the rating function is time consuming so I will provide on-demand access to it 20120409 17:48:43< Nephro> mattsc, yes 20120409 17:48:51-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth-dev 20120409 17:49:04< mattsc> Nephro: ok. 20120409 17:50:04< Nephro> I'll have a lunch break now 20120409 17:51:34-!- mjs-de [~mjs-de@p3EE2202F.dip.t-dialin.net] has joined #wesnoth-dev 20120409 17:52:54< fendrin> Damn, it works like a charm. No good sign if things are too easy. 20120409 17:53:43-!- nagafono [~kvirc@178.19.254.1] has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/] 20120409 17:56:59-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120409 18:02:50< mordante> Ivanovic, FYI when I disable pango I can start Wesnoth (without mouse buttons) in the arm emulator 20120409 18:03:02< Ivanovic> interesting 20120409 18:03:03< mordante> will look further at it after dinner 20120409 18:03:21< mordante> but I guess by that time you'll be on your way to the airport 20120409 18:03:51< mordante> where exactly did it crash yesterday with my SDL modifications? 20120409 18:04:30-!- vultraz [~chatzilla@124.109.10.221] has quit [Ping timeout: 272 seconds] 20120409 18:04:50< Ivanovic> not to the airport, just neu-isenburg but this time with limited connectivity 20120409 18:04:54< Ivanovic> no crash 20120409 18:05:01< Ivanovic> it was just hanging when clicking on "campaigns" 20120409 18:05:22< Ivanovic> before it already took a while there (probably due to the amount of files to be scanned, images to be read, ...) 20120409 18:07:46-!- vultraz [~chatzilla@124.109.10.221] has joined #wesnoth-dev 20120409 18:09:56-!- matthiaskrgr [matthiaskr@184.171.255.77] has quit [Quit: GeekBouncer - http://geekbouncer.co.uk] 20120409 18:11:38-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120409 18:14:40-!- Neko-- [~neko@ip-109-90-37-56.unitymediagroup.de] has joined #wesnoth-dev 20120409 18:30:28-!- Nephro [~Dmitry@02de475b.bb.sky.com] has quit [Read error: Operation timed out] 20120409 18:31:44-!- negusnyul [~negusnyul@dsl4E5CD33A.pool.t-online.hu] has quit [Read error: Connection reset by peer] 20120409 18:33:40< Akihara> /nam 20120409 18:33:46< Akihara> sorry :P 20120409 18:33:55-!- Haldric [~Haldric@wesnoth/translator/Haldric] has joined #wesnoth-dev 20120409 18:36:44< fendrin> shadowm: Now that everything is themeable, I am going to sort the brush_bar above the palette buttons. I think I remember you suggesting that. 20120409 18:45:56-!- s951 [~s951@cpc31-cmbg15-2-0-cust850.5-4.cable.virginmedia.com] has joined #wesnoth-dev 20120409 18:48:04-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has joined #wesnoth-dev 20120409 18:50:08-!- matthiaskrgr [matthiaskr@184.171.255.77] has joined #wesnoth-dev 20120409 18:51:41-!- neph [~neph@02de475b.bb.sky.com] has joined #wesnoth-dev 20120409 19:07:15-!- negusnyul [~negusnyul@dsl4E5CD33A.pool.t-online.hu] has joined #wesnoth-dev 20120409 19:08:52< Ivanovic> okay, i am heading off now and will most likely not see IRC pings for the next 12 days 20120409 19:08:53< Ivanovic> cu 20120409 19:22:47< mordante> bye Ivanovic 20120409 19:28:58-!- s951 [~s951@cpc31-cmbg15-2-0-cust850.5-4.cable.virginmedia.com] has quit [Quit: Leaving] 20120409 19:29:53-!- jamit1 [~james@pool-173-61-167-95.cmdnnj.east.verizon.net] has joined #wesnoth-dev 20120409 19:31:02-!- Teugon [~Teugon__@93-42-145-90.ip87.fastwebnet.it] has joined #wesnoth-dev 20120409 19:31:20-!- jamit [~james@pool-173-72-95-179.cmdnnj.east.verizon.net] has quit [Ping timeout: 260 seconds] 20120409 19:32:31< Teugon> is there somebody who can tell me about AI ? 20120409 19:33:43< fendrin> Teugon: crab_ is the person to ask. When he is around. 20120409 19:34:09< fendrin> Teugon: But maybe someone else is able to answer your question as well. Just ask here and see. 20120409 19:39:05< Teugon> fendrin: That is it: yesterday evening I was watching the source in Wesnoth/src/ai/ and I was wondering on how to test stuff without have the game running. How can I do to test my stuff ? 20120409 19:42:17< fendrin> Teugon: The unit tests? Build the binary with "scons test" and then execute the "test" binary. 20120409 19:43:06< fendrin> Teugon: That are unit tests, checking the dynamic semantic of some of the Wesnoth classes. 20120409 19:43:42< fendrin> Teugon: If you want to have statistics how your AI does ingame, you need to run the tests from the commandline. But I am no expert on that. 20120409 19:45:31< Teugon> fendrin: when you talk about: "running the tests from commandline" you mean I should also play the game to let the AI work or it just executes testing units ? 20120409 19:47:39< fendrin> Teugon: The test binary just runs unit tests. Ask wikipedia about unit tests if you do not know what it means. Running not test but wesnoth from the commandline to test an ai is done without starting the actual game interface. The ai just battles without you seeing anything from it. 20120409 19:48:20< fendrin> After an hour you get back and see that 80% of all games had been won by your new AI for example. 20120409 19:48:44-!- happygrue_ [~quassel@wesnoth/developer/wintermute] has quit [Quit: No Ping reply in 180 seconds.] 20120409 19:49:07-!- happygrue [~quassel@c-98-222-183-113.hsd1.il.comcast.net] has joined #wesnoth-dev 20120409 19:49:07-!- happygrue [~quassel@c-98-222-183-113.hsd1.il.comcast.net] has quit [Changing host] 20120409 19:49:07-!- happygrue [~quassel@wesnoth/developer/wintermute] has joined #wesnoth-dev 20120409 19:49:49-!- wesbot changed the topic of #wesnoth-dev to: Wesnoth accepted in GSoC 2012 | http://wiki.wesnoth.org/SummerOfCodeIdeas | 174 bugs, 329 feature requests, 15 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20120409 19:50:33< Teugon> fendrin: all you just said to me is somewhere written in the wiki/forum ? If it is so can you point to the right place, please ? I'd avoid to bother you if it is documented. 20120409 19:52:12-!- nagafono [~kvirc@178.19.254.1] has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/] 20120409 19:54:35< fendrin> Teugon: This might help you: http://forums.wesnoth.org/viewtopic.php?f=10&t=18446 20120409 19:55:45< Teugon> thx 20120409 19:55:56< fendrin> Teugon: wesnoth --nogui --multiplayer --controller1=ai --controller2=ai --algorithm2=python_ai --parm2=python_script:py/my_own_python_ai.py <-- Copied from the man page of Wesnoth 20120409 19:57:42< Akihara> Teugon you also have this page http://wiki.wesnoth.org/AI_Module 20120409 20:00:46< Teugon> thank you. 20120409 20:01:36< Akihara> you're welcome 20120409 20:02:14-!- Teugon [~Teugon__@93-42-145-90.ip87.fastwebnet.it] has quit [Quit: Leaving] 20120409 20:03:19< noy> can anybody help with some pretty basic html? 20120409 20:03:23< noy> just one question 20120409 20:03:54< Akihara> probably :-) 20120409 20:09:31-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has quit [Quit: Konversation terminated!] 20120409 20:30:00-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120409 20:41:20-!- yigit [~yigit@212.175.117.194] has joined #wesnoth-dev 20120409 20:41:29-!- yigit is now known as Artemius23 20120409 20:46:03-!- Haldric [~Haldric@wesnoth/translator/Haldric] has quit [Remote host closed the connection] 20120409 20:52:42< Trademark__> I can't see my proposal anymore on google-melange ? (I responded to a comment of Crab_ on my proposal...). Do you know what is the problem ? 20120409 20:55:05< ejls> Are you logged with the good account? 20120409 20:55:24< ejls> (a mistake I already made) 20120409 20:56:37-!- Artemius23 [~yigit@212.175.117.194] has quit [Quit: Ex-Chat] 20120409 20:57:32-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has quit [] 20120409 20:57:40-!- loonycyborg [~sergey@wesnoth/developer/loonycyborg] has quit [Ping timeout: 260 seconds] 20120409 20:58:17-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has joined #wesnoth-dev 20120409 20:58:22-!- Trademark__ [~Trademark@cust-167-246-111-94.dyn.as47377.net] has quit [Ping timeout: 246 seconds] 20120409 20:59:53< zookeeper> anyone know if the random seed is still stored in beginning-of-scenario saves or not? 20120409 21:00:34< zookeeper> or rather, whether it's still used for WML randomizations or not 20120409 21:02:58-!- loonycyborg [loonycybor@wesnoth/developer/loonycyborg] has joined #wesnoth-dev 20120409 21:03:10< fendrin> hi loonycyborg 20120409 21:03:22< loonycyborg> hello 20120409 21:07:15-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has quit [] 20120409 21:08:06-!- oldtopman [~oldtopman@unaffiliated/oldtopman] has joined #wesnoth-dev 20120409 21:09:18-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has joined #wesnoth-dev 20120409 21:09:50-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has joined #wesnoth-dev 20120409 21:10:14-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has quit [Client Quit] 20120409 21:11:57< anonymissimus> zookeeper: afaik yes, its still stored and used, no changes there 20120409 21:12:10< zookeeper> okay 20120409 21:12:43< anonymissimus> not all sorts of randomization use it though 20120409 21:12:46-!- _vdn [~nazgul-sa@ppp91-77-225-1.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120409 21:13:11< zookeeper> well, presumably [set_variable] does 20120409 21:13:18-!- _vdn [~nazgul-sa@ppp91-77-225-1.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120409 21:13:27< zookeeper> which was one of the more unfortunate changes... 20120409 21:17:05-!- vcap [~vcap@AReims-551-1-25-44.w86-215.abo.wanadoo.fr] has joined #wesnoth-dev 20120409 21:20:08< anonymissimus> yes, and I also know the "random gender" button in the debug dialog does 20120409 21:20:23< anonymissimus> although for that one it makes no sense 20120409 21:20:51< anonymissimus> you could get around the seeded RNG with the methods from that thread http://forums.wesnoth.org/viewtopic.php?f=21&t=35806&p=517810&hilit=issues#p517810 20120409 21:21:31< anonymissimus> only if you need the randomization not earlier than a turn 1 event though 20120409 21:21:43-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20120409 21:22:53< shadowm> anonymissimus: I know [item] and [remove_item] now operate on all matching locations 20120409 21:23:27< anonymissimus> shadowm: alrigth...pls check whether the patch I posted does any good for your usecase 20120409 21:24:07< shadowm> why would you store the .redraw attribute in that table thing? 20120409 21:24:34< shadowm> (line 19 of the diff) 20120409 21:24:46< anonymissimus> because the [item] tag is re-executed upon load of the scenario 20120409 21:24:57< anonymissimus> it seems logical to me to store it 20120409 21:25:36< shadowm> when it's reexecuted I assume the display is locked, or a forced redraw could be otherwise inconvenient 20120409 21:25:54< shadowm> I've seen [redraw] actions mess up everything when running from preload events 20120409 21:26:33< anonymissimus> and if someone executes [store_items] after first placing the item and doing a save-reload in between he certainly wants to get the correct value for redraw= stored 20120409 21:26:40-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has joined #wesnoth-dev 20120409 21:27:18< shadowm> hm, I suppose. I had imagined item.redraw to be an attribute of the action, and not of the items. 20120409 21:27:51-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has quit [Quit: ...] 20120409 21:29:46< shadowm> anyway in my original use case (which now uses shroud to make sure the player can't see what's going on in 1.10) the item images differed from location to location. That's why the SLF solution wouldn't work. 20120409 21:29:52< anonymissimus> shadowm: so what you imagine would be something like a parameter passable to intf_add_tile_overlay which says "do not redraw/refresh/whatever" the screen (until I tell you to do it as another call) ? 20120409 21:31:03< anonymissimus> and what sort of images/halos do you place, are they core ones ? 20120409 21:31:35-!- oldtopman [~oldtopman@unaffiliated/oldtopman] has quit [Remote host closed the connection] 20120409 21:31:58< shadowm> no 20120409 21:34:55< shadowm> hm, okay, so that patch didn't work it seems 20120409 21:35:09< shadowm> oh, I didn't successfully apply it 20120409 21:35:28-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has quit [Ping timeout: 246 seconds] 20120409 21:36:09< shadowm> anonymissimus: yeah, it works 20120409 21:36:20< shadowm> fendrin: yes 20120409 21:37:29< shadowm> anonymissimus: there shouldn't be a need to modify the C++ backend function since this little experiment shows that the implicit redraw was called from Lua 20120409 21:37:51< anonymissimus> shadowm: the patch speeds up your usecase noticably you mean ? 20120409 21:38:06-!- Ayne [~Ayne@cpc2-sgyl34-2-0-cust493.sgyl.cable.virginmedia.com] has quit [Quit: ~ Trillian Astra - www.trillian.im ~] 20120409 21:38:13< shadowm> also if you did that then [item] on a SLF would become noticeably slow 20120409 21:38:56-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120409 21:39:46< shadowm> although I keep using performance as a measurement unit when that's actually completely irrelevant. The point was just to make sure a bunch of different items could be placed without having the implicit redraw after each one, creating that annoying animation effect 20120409 21:41:02< shadowm> similarly to how [terrain] doesn't implicitly rebuild the map display on purpose 20120409 21:41:21< anonymissimus> okay, so you had some visible side effect which is worked around now ? 20120409 21:41:39-!- Tuggers [~Tuggers@rrcs-97-77-50-90.sw.biz.rr.com] has joined #wesnoth-dev 20120409 21:42:11< shadowm> ... yes. 20120409 21:42:41< anonymissimus> ok I commit 20120409 21:42:42-!- _vdn1 [~nazgul-sa@ppp91-77-234-155.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120409 21:42:45-!- _vdn [~nazgul-sa@ppp91-77-225-1.pppoe.mtu-net.ru] has quit [Ping timeout: 252 seconds] 20120409 21:42:52< shadowm> and not "worked around", no, that has negative implications 20120409 21:43:42< shadowm> there's no "work around" is the cause can be entirely eliminated (the implicit redraw) 20120409 21:43:47< shadowm> s/is/if/ 20120409 21:48:37-!- _vdn1 [~nazgul-sa@ppp91-77-234-155.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120409 21:48:59< CIA-69> anonymissimus * r53882 /trunk/data/lua/wml/items.lua: 20120409 21:48:59< CIA-69> introduce [item]redraw=yes|no (def yes) parameter 20120409 21:48:59< CIA-69> This allows wml/lua authors to optionally skip [item]'s implicit redraw 20120409 21:48:59< CIA-69> call. shadowmaster was experiencing some negative 20120409 21:48:59< CIA-69> visual effects due to this. 20120409 21:49:09-!- _vdn [~nazgul-sa@ppp91-77-234-155.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120409 21:49:12< CIA-69> anonymissimus * r53883 /trunk/changelog: changelog update 20120409 21:49:49-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has quit [Ping timeout: 260 seconds] 20120409 21:50:51-!- cjhopman [~chris@wesnoth/developer/cjhopman] has quit [Remote host closed the connection] 20120409 21:53:19< anonymissimus> shadowm: you may also want to check whether those same items are correclty drawn after a save/reload 20120409 21:53:49< shadowm> they are 20120409 21:53:55< anonymissimus> okay 20120409 21:54:55-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has joined #wesnoth-dev 20120409 21:56:13-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has joined #wesnoth-dev 20120409 22:05:06-!- Tuggers [~Tuggers@rrcs-97-77-50-90.sw.biz.rr.com] has left #wesnoth-dev ["Leaving"] 20120409 22:11:18-!- nagafono [~kvirc@178.19.254.1] has joined #wesnoth-dev 20120409 22:14:17-!- s951 [~s951@cpc31-cmbg15-2-0-cust850.5-4.cable.virginmedia.com] has joined #wesnoth-dev 20120409 22:30:22-!- vultraz [~chatzilla@124.109.10.221] has quit [Remote host closed the connection] 20120409 22:36:57-!- nagafono [~kvirc@178.19.254.1] has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/] 20120409 22:44:42-!- neph [~neph@02de475b.bb.sky.com] has quit [Read error: Connection reset by peer] 20120409 22:49:53-!- Nephro [~Dmitry@02de475b.bb.sky.com] has joined #wesnoth-dev 20120409 22:52:35-!- s951 [~s951@cpc31-cmbg15-2-0-cust850.5-4.cable.virginmedia.com] has quit [Quit: Leaving] 20120409 22:54:34-!- csarmi [~csarmi@2E6B859D.catv.pool.telekom.hu] has quit [Ping timeout: 272 seconds] 20120409 23:00:12-!- s951 [~s951@cpc31-cmbg15-2-0-cust850.5-4.cable.virginmedia.com] has joined #wesnoth-dev 20120409 23:02:34-!- timotei [~timotei@wesnoth/developer/timotei] has quit [Read error: Connection reset by peer] 20120409 23:02:55-!- s951 [~s951@cpc31-cmbg15-2-0-cust850.5-4.cable.virginmedia.com] has quit [Client Quit] 20120409 23:03:34-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has quit [Read error: Connection reset by peer] 20120409 23:05:53-!- MeccaGod [majs@host189-199.bornet.net] has quit [] 20120409 23:13:41-!- Artemius23 [~yigit@139.179.207.122] has joined #wesnoth-dev 20120409 23:28:23-!- negusnyul [~negusnyul@dsl4E5CD33A.pool.t-online.hu] has quit [Quit: Konversation terminated!] 20120409 23:31:39-!- stikonas_ [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120409 23:35:49-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev 20120409 23:40:01< mattsc> Hey all, dumb question from a non-c++ person: if I compile a new revision without cleaning the build first (using Xcode on a Mac and the default settings), the data/ directory only gets updated if I do a release build, not a debug build? 20120409 23:40:13< mattsc> Is that correct, or should that work with a debug build also (in which case I am doing something wrong)? 20120409 23:41:17< mordante> not sure what you mean but the game should get the latest data 20120409 23:41:37< mordante> and for compilation it should figure out what to (re)compile without cleaning 20120409 23:42:53< mattsc> mordante: yes, when I check out the latest release (svn update), the new data files are downloaded 20120409 23:43:07< mordante> yes and they are directly used 20120409 23:43:11< mattsc> And it does compile the correct c++ files when something is new. 20120409 23:43:22< mordante> yes 20120409 23:43:43< mattsc> However, in a 'debug build', it only does the compiling, but does not overwrite anything that is new in the data/ directory (non src code files) 20120409 23:43:55< mattsc> At least that's the impression I am getting (I am very new to this) 20120409 23:44:39< mordante> not sure what you mean with override 20120409 23:44:44-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 252 seconds] 20120409 23:44:52< Ivanovic> mattsc: compilation itself should not touch data at all 20120409 23:44:56< mattsc> mordante: "yes and they are directly used", apparently not the way I havethings set up 20120409 23:45:18< Ivanovic> mattsc: that is: are you talking about creating .app packages? 20120409 23:45:53< mattsc> Ivanovic: yes (that's what Xcode does, I think). 20120409 23:46:10< Ivanovic> normally you just create the binary and call this small (~15MB) file to start it 20120409 23:46:44< mattsc> As I said, I'm not a programmer, just a user of WML and Lua. (I'm just compiling things to get all the latest AI updates that the GSoC students are doing) 20120409 23:46:49< Ivanovic> if the file is significantly larger it does likely do more than just build a binary from the sources 20120409 23:47:01< jamit1> mattsc: do you have your debug build pointing to a different data directory somehow? 20120409 23:47:23< mordante> anyway I'm off night 20120409 23:47:41-!- mordante [~mordante@wesnoth/developer/mordante] has quit [Quit: Leaving] 20120409 23:47:43< jamit1> If you make a release build, then a debug build, you see the old data with debug but new data with release? 20120409 23:48:01< mattsc> Jamit, Ivanovic: let me try to explain what I think is happening (and you tell me where I am doing things wrong) 20120409 23:48:19< mattsc> I do an 'svn update' into a directory trunkj/ 20120409 23:48:23< mattsc> *trunk/ 20120409 23:48:26< jamit1> Wrong step 1: using a Mac. :) 20120409 23:48:47< mattsc> jamit1: ah, I'll stay away from religious discussions here. :) 20120409 23:49:34< jamit1> Just fair warning that if it turns out to be Mac-specific, I wouldn't be able to guess it. ;) But go on. 20120409 23:49:36< mattsc> in trunk/ is a src/ directory and a /data directory, which get updated as they should 20120409 23:49:56< mattsc> jamit: sounds good :) 20120409 23:50:59< mattsc> Then there's a directory projectfiles/Xcode/build/ into which the Wesnoth .app files get built; one into subdir Release/ one into Debug/ 20120409 23:51:00 * Nephro got a segfault 20120409 23:51:05< Nephro> awww ;[ 20120409 23:51:19< mattsc> Those contain the executables, plus all the data/ files etc. 20120409 23:51:52< Ivanovic> mattsc: you should probably talk to he mac packager about this 20120409 23:52:04< mattsc> When I do a new update, the data/ directory in Release/ gets updated, the one in Debug/ does not 20120409 23:52:06< jamit1> So you have three copies of data/ -- one from SVN, one under Release/ and one under Debug/? 20120409 23:52:17< Ivanovic> but alarantara (or something like this) is currently not around 20120409 23:52:33< mattsc> jamit1: yes - that's what Xcode seems to do by default 20120409 23:53:12< mattsc> Ivanovic: thanks. I'll wait for alarantalara to be back. There's no rush, I have a working solution (it just doesn't seem efficient) 20120409 23:53:51< jamit1> My guess is something is misconfigured in XCode for the debug build. 20120409 23:54:36< jamit1> Do you have (and know that you have) a way to specify the command line when working with the debug build? 20120409 23:54:44< mattsc> jamit1: yes, quite possibly. And it's most like 'user ignorance' that caused it. 20120409 23:55:16< mattsc> jamit1: I am sure that there is one. No, I do not know how to. 20120409 23:55:31< mattsc> If somebody tells me that this is not how it is supposed to be, I'll look into it. 20120409 23:55:59< mattsc> I just don't want to waste time on it if this is correct behavior. :) (I'd rather mess with LuaAI a bit more.) 20120409 23:56:23< jamit1> That is not how it is supposed to be. But where/when the misconfiguration occurred is not clear. 20120409 23:57:32< jamit1> And it has been a long time since I've looked at XCode. 20120409 23:57:58< mattsc> jamit1: ok. thanks. I'll wait if Alarantalara knows the answer of the top of his head, otherwise I'll look into it. 20120409 23:58:56-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Quit: Leaving.] --- Log closed Tue Apr 10 00:00:48 2012