--- Log opened Tue Nov 27 00:00:13 2012 --- Log opened Tue Nov 27 00:22:02 2012 20121127 00:22:19-!- lobby [~wesnoth@wesnoth/bot/lobby] has joined #wesnoth-dev 20121127 00:22:19-!- Topic for #wesnoth-dev: 1.11.1 planned for once the hotkey and MP issues are fixed | 192 bugs, 333 feature requests, 16 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20121127 00:22:19-!- Topic set by wesbot [~wesbot@asteria.debian.or.at] [Mon Nov 26 08:20:41 2012] 20121127 00:22:19[Users #wesnoth-dev] 20121127 00:22:19[ [Relic] ] [ csarmi_home ] [ irker371 ] [ Samual ] 20121127 00:22:19[ AI0867 ] [ DpEpsilon ] [ Ivanovic ] [ shikadibot] 20121127 00:22:19[ Akihara_ ] [ ejls ] [ iwaim_ ] [ skyfaller ] 20121127 00:22:19[ Alarantalara ] [ elias ] [ janebot ] [ Smar ] 20121127 00:22:19[ Anakonda ] [ Elvish_Pillager] [ knotwork ] [ stikonas ] 20121127 00:22:19[ apoi ] [ enchilado ] [ lobby ] [ Tigge ] 20121127 00:22:19[ Appleman1234 ] [ Espreon ] [ loonycyborg] [ ToBeFree ] 20121127 00:22:19[ Arc ] [ esr ] [ LordNasty ] [ Upthorn ] 20121127 00:22:19[ balrog ] [ ettin_ ] [ mattsc ] [ vultraz ] 20121127 00:22:19[ Bob_The_Mighty ] [ exciton ] [ maxy ] [ wesbot ] 20121127 00:22:19[ boucman ] [ Gallaecio ] [ melinath ] [ yann ] 20121127 00:22:19[ ChrisOelmueller] [ Gambit ] [ neofutur ] [ {V} ] 20121127 00:22:19[ cjhopman_ ] [ grzywacz ] [ noy ] 20121127 00:22:19[ Crendgrim ] [ happygrue ] [ Rhonda ] 20121127 00:22:19[ crimson_penguin] [ Ingmar ] [ rtfb ] 20121127 00:22:19-!- Irssi: #wesnoth-dev: Total of 57 nicks [0 ops, 0 halfops, 0 voices, 57 normal] 20121127 00:22:25-!- Soliton [~Soliton@wesnoth/developer/soliton] has joined #wesnoth-dev 20121127 00:22:26-!- Channel #wesnoth-dev created Tue Jan 27 06:28:41 2009 20121127 00:23:21-!- Irssi: Join to #wesnoth-dev was synced in 70 secs 20121127 00:23:58< mattsc> AI0867: Looks like I did something wrong in my commit. File data/ai/ais/testing_ai_default.cfg should have been removed. 20121127 00:24:30< mattsc> I added the new file to svn, but didn't delete the old one... 20121127 00:24:57< AI0867> that's not necessary for the backwards compatibility? 20121127 00:24:59< mattsc> */commit/patch 20121127 00:25:32< mattsc> No, that's the thing I asked you about. It's only for the id in the file, and we changed that i nthe code. 20121127 00:26:00< mattsc> scenarios should include ai/aliases/*.cfg, not this file. 20121127 00:27:25< AI0867> okay 20121127 00:28:35< mattsc> I guess it's possible that somebody has that included in an add-on, but it's not done like that anywhere in mainline (incl. the macros) 20121127 00:30:45< irker371> wesnoth: ai0867 * r55773 /trunk/data/ai/ais/testing_ai_default.cfg: 20121127 00:30:45< irker371> wesnoth: Delete an unneeded file that should have been removed in r55772 20121127 00:31:48< mattsc> Thanks. Sorry for that. 20121127 00:33:16< mattsc> And that was the reason why 'RCA AI' still showed up in the MP menu. It should be gone now. 20121127 00:38:18-!- Bob_The_Mighty [~chatzilla@cpc4-brig16-2-0-cust378.3-3.cable.virginmedia.com] has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]] 20121127 00:39:28-!- boucman [~rosen@wesnoth/developer/boucman] has left #wesnoth-dev [] 20121127 00:58:48-!- mattsc [~mattsc@fw.hia.nrc.ca] has quit [Quit: I'm asleep] 20121127 01:02:16-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has joined #wesnoth-dev 20121127 01:12:55-!- mjs-de [~mjs-de@g224177111.adsl.alicedsl.de] has joined #wesnoth-dev 20121127 01:24:16-!- Gambit [~gambit@wesnoth/developer/grickit] has quit [Remote host closed the connection] 20121127 01:44:57-!- bhlegm [~bhlegm@d108-180-27-19.bchsia.telus.net] has joined #wesnoth-dev 20121127 01:45:53-!- gh0st [~gh0st@89.31.118.161] has joined #wesnoth-dev 20121127 01:50:01-!- grzywacz [~grzywacz@wesnoth/developer/grzywacz] has quit [Quit: :wq] 20121127 01:59:27-!- Crendgrim_ [~crend@port-92-204-86-7.dynamic.qsc.de] has joined #wesnoth-dev 20121127 02:00:08-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has joined #wesnoth-dev 20121127 02:00:13-!- mjs-de [~mjs-de@g224177111.adsl.alicedsl.de] has quit [Ping timeout: 246 seconds] 20121127 02:01:00-!- mjs-de [~mjs-de@d119112.adsl.hansenet.de] has joined #wesnoth-dev 20121127 02:02:19-!- Crendgrim [~crend@port-92-204-51-163.dynamic.qsc.de] has quit [Ping timeout: 246 seconds] 20121127 02:13:30< vultraz> mattsc: quick question. what's it mean by "ai_type in the [micro_ai] tag needs to start with 'bca_' "? 20121127 02:14:17< mattsc> Hi vultraz: that's a condition I am stipulating, not because it wouldn't work otherwise. :) 20121127 02:14:47< mattsc> I want people to know when an AI is a BCA, so I'd like the ai_type to start with that. 20121127 02:17:42< gh0st> Hi! I am GCI student i want to do some micro_ai tasks. Do i need to complie wesnoth from sources to do them? or i can use already complied dev binaries? 20121127 02:18:33< mattsc> gh0st: No, no compiling needed at all. Just download v1.11.0. 20121127 02:19:21< mattsc> Check out http://wiki.wesnoth.org/Google_Code-in_Micro_AI_Tasks That should tell you what is required. 20121127 02:19:39< gh0st> great, then i'll be reading the wiki about micro_ai stuff. 20121127 02:20:04-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has quit [Quit: Disconnecting from stoned server.] 20121127 02:20:24-!- Ivanovic [~ivanovic@dtmd-4d0bf2cc.pool.mediaWays.net] has joined #wesnoth-dev 20121127 02:20:40-!- wesbot changed the topic of #wesnoth-dev to: 1.11.1 planned for once the hotkey and MP issues are fixed | 190 bugs, 333 feature requests, 15 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20121127 02:22:38< vultraz> mattsc: mk, was just wondering, as everything seems to be working except step 10, and thought maybe that had something to do with it :S 20121127 02:27:59< mattsc> vultraz: you do need to get the id right for that to work, that is true. 20121127 02:28:26< mattsc> you can use :inspect to see what the id is compared to what you think it should be. 20121127 02:30:18< mattsc> gh0st: fyi, vultraz has already started working on the Patrols AI. He hasn't claimed it, so technically nothing prevents you from claiming it yourself, but it would be nice if you chose a different one. 20121127 02:30:42< mattsc> I'll have to be afk for a little. Back in 30 min or so... 20121127 02:35:36-!- mjs-de [~mjs-de@d119112.adsl.hansenet.de] has quit [Ping timeout: 264 seconds] 20121127 02:39:40-!- mjs-de [~mjs-de@d119112.adsl.hansenet.de] has joined #wesnoth-dev 20121127 02:54:22-!- Nephro [~Dmitry@cpc4-broo8-2-0-cust496.14-2.cable.virginmedia.com] has joined #wesnoth-dev 20121127 03:01:27-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has joined #wesnoth-dev 20121127 03:02:46-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20121127 03:05:05-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20121127 03:05:21< mattsc> vultraz: I'm back. Did you figure it out? 20121127 03:06:10< mattsc> If any of the instructions on the wiki page are wrong, let me know and I'll correct them. Better yet, you could correct them yourself. 20121127 03:12:16-!- Nephro [~Dmitry@cpc4-broo8-2-0-cust496.14-2.cable.virginmedia.com] has quit [Quit: Leaving] 20121127 03:17:03-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev 20121127 03:19:55< ancestral> Yep! Unidentified developer hehe 20121127 03:31:09-!- irker371 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20121127 03:34:35-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20121127 03:40:50-!- Crendgrim [~crend@port-92-204-99-174.dynamic.qsc.de] has joined #wesnoth-dev 20121127 03:43:55-!- Crendgrim_ [~crend@port-92-204-86-7.dynamic.qsc.de] has quit [Ping timeout: 256 seconds] 20121127 03:46:10-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has joined #wesnoth-dev 20121127 04:00:28< vultraz> mattsc: not yet 20121127 04:10:16-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20121127 04:12:39-!- un214 [~un214@108.204.254.2] has joined #wesnoth-dev 20121127 04:22:45-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has quit [Quit: Rice and Corn] 20121127 04:25:30< mattsc> vultraz: hint: it's not the ai_type that matters for removing, but the CA id. 20121127 04:25:41< mattsc> http://wiki.wesnoth.org/AiWML#Adding_and_Deleting_Aspects_with_the_.5Bmodify_ai.5D_Tag 20121127 04:25:58< mattsc> That's ones for AI aspects, but it works the same for CAs 20121127 04:27:54< mattsc> *That one's for... [ugh] 20121127 04:28:07-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20121127 04:47:35< vultraz> mattsc: ah thanks :) seems it works now 20121127 04:47:49< mattsc> yay! 20121127 04:58:10-!- un214 [~un214@108.204.254.2] has quit [Quit: No Ping reply in 180 seconds.] 20121127 04:58:23-!- un214 [~un214@adsl-108-204-254-2.dsl.scrm01.sbcglobal.net] has joined #wesnoth-dev 20121127 05:03:36-!- Elvish_Pillager [~eli@dhip-029.rrw.residences.colby.edu] has quit [Ping timeout: 252 seconds] 20121127 05:32:38-!- un214 [~un214@adsl-108-204-254-2.dsl.scrm01.sbcglobal.net] has quit [Remote host closed the connection] 20121127 05:38:43-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has joined #wesnoth-dev 20121127 06:02:40-!- mjs-de [~mjs-de@d119112.adsl.hansenet.de] has quit [Remote host closed the connection] 20121127 06:35:40-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has quit [Quit: Leaving.] 20121127 06:46:02-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has quit [Quit: bye] 20121127 07:25:57-!- Ivanovic [~ivanovic@dtmd-4d0bf2cc.pool.mediaWays.net] has quit [Changing host] 20121127 07:25:57-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has joined #wesnoth-dev 20121127 07:48:00-!- bhlegm [~bhlegm@d108-180-27-19.bchsia.telus.net] has quit [Remote host closed the connection] 20121127 08:08:55-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20121127 08:20:19-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20121127 08:20:45-!- wesbot changed the topic of #wesnoth-dev to: 1.11.1 planned for once the hotkey and MP issues are fixed | 189 bugs, 333 feature requests, 15 patches | Logs: http://irclogs.wesnoth.org | Don't paste on IRC! Use a pastebin: http://pastebin.com | http://imagebin.org 20121127 08:26:05< zookeeper> so what's with the continued forum sluggishness? 20121127 08:28:52-!- Sapient [~sapient@wesnoth/developer/sapient] has joined #wesnoth-dev 20121127 08:34:58< Sapient> I'd just like to clarify that although I did type up the draft for the trailer GCI task, I am not able to mentor for it 20121127 08:35:15< Sapient> Although, it pains me that I can't serve you, Ark! 20121127 08:36:36 * Sapient wonders if anyone else played Terranigma... 20121127 08:37:14-!- Sapient [~sapient@wesnoth/developer/sapient] has quit [Quit: ChatZilla 0.9.88-rdmsoft [XULRunner 1.9.0.17/2009122204]] 20121127 08:47:01-!- boucman_work [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20121127 09:07:45-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has quit [Quit: Leaving] 20121127 09:09:31-!- exciton [chuck-the-@89.208.169.104] has quit [Ping timeout: 252 seconds] 20121127 09:16:06-!- exciton [chuck-the-@89.208.169.104] has joined #wesnoth-dev 20121127 09:24:21-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Read error: Connection reset by peer] 20121127 09:25:24-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth-dev 20121127 09:27:25-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20121127 09:27:25-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth-dev 20121127 09:46:56-!- DpEpsilon [DpEpsilon@unaffiliated/dpepsilon] has quit [Ping timeout: 245 seconds] 20121127 09:51:54-!- DpEpsilon [DpEpsilon@unaffiliated/dpepsilon] has joined #wesnoth-dev 20121127 09:54:36< gh0st> I'm back. 20121127 11:03:30-!- stikonas [~gentoo@bcm-131-111-216-214.girton.cam.ac.uk] has joined #wesnoth-dev 20121127 11:03:31-!- stikonas [~gentoo@bcm-131-111-216-214.girton.cam.ac.uk] has quit [Changing host] 20121127 11:03:31-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20121127 11:04:41-!- boucman_work [~rosen@wesnoth/developer/boucman] has quit [Ping timeout: 255 seconds] 20121127 11:05:04-!- boucman_work [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20121127 11:15:49-!- Gambit [~gambit@wesnoth/developer/grickit] has quit [Remote host closed the connection] 20121127 11:40:37-!- horon [~horon@nttkyo042189.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has joined #wesnoth-dev 20121127 12:07:42< AI0867> how come there are so few GCI projects this year anyway? 20121127 12:09:21< gh0st> Yeah, it's a shame. 20121127 12:10:24< gh0st> But they doubled the grand-prize winners. 20121127 12:10:49< gh0st> maybe thats why. 20121127 12:14:03< vultraz> rly? now they do top 20? 20121127 12:16:18-!- gh0st [~gh0st@89.31.118.161] has quit [Ping timeout: 264 seconds] 20121127 12:17:19-!- mjs-de [~mjs-de@d119112.adsl.hansenet.de] has joined #wesnoth-dev 20121127 12:17:20-!- gh0st [~gh0st@89.31.118.161] has joined #wesnoth-dev 20121127 13:04:14-!- Crendgrim [~crend@port-92-204-99-174.dynamic.qsc.de] has quit [Read error: Connection reset by peer] 20121127 13:24:34-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20121127 13:26:58-!- jamit [~jamit@wesnoth/developer/jamit] has joined #wesnoth-dev 20121127 13:33:20-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-dev 20121127 13:33:20-!- nvlbg [5c3efb5f@gateway/web/freenode/ip.92.62.251.95] has joined #wesnoth-dev 20121127 13:35:19< nvlbg> Hello. I want to work on a Micro AI task, but I have a few questions. First, I have cloned wesnoth 1.11 and the Micro-AI repositories, but I couldn't install wesnoth because it wouldn't run on a 32bit os(it gives me segmentation fault). So do I have to be able to run the development version of wesnoth? 20121127 13:48:47-!- horon [~horon@nttkyo042189.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has quit [Quit: Leaving...] 20121127 13:58:48-!- irker096 [~irker@ai0867.net] has joined #wesnoth-dev 20121127 13:58:48< irker096> wesnoth: jamit * r55774 /branches/1.10/ (src/playsingle_controller.cpp changelog): 20121127 13:58:48< irker096> wesnoth: Clear the redo stack between turns. 20121127 13:59:07< irker096> wesnoth: jamit * r55775 /trunk/ (src/playsingle_controller.cpp changelog): 20121127 13:59:07< irker096> wesnoth: Clear the redo stack between turns. 20121127 14:15:58-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev 20121127 14:18:52-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has joined #wesnoth-dev 20121127 14:22:18-!- {V} [~V@139-79-ftth.on.nl] has quit [Ping timeout: 264 seconds] 20121127 14:22:32-!- {V} [~V@139-79-ftth.on.nl] has joined #wesnoth-dev 20121127 14:22:59< irker096> wesnoth: jamit * r55776 /trunk/src/ (5 files in 2 dirs): 20121127 14:23:00< irker096> wesnoth: Store the current side in undo_list. 20121127 14:23:19< gh0st> Hey mattsc, i'll do the Lurkers micro ai task. 20121127 14:25:46< mattsc> gh0st: great! 20121127 14:25:52< gh0st> Also does the helper_support.cfg has an original version before the micro_ai was commited? 20121127 14:27:03< mattsc> gh0st: If I remember correctly, healer_support was written originally as a Micro AI (the first one) 20121127 14:28:28< mattsc> nvlbg: you do not need to be able to compile wesnoth, but if at all possible, you should use 1.11.0 20121127 14:29:24< mattsc> Some of the AIs will run in 1.10 also, but not all of them. So you could try which one works and then choose one of them. 20121127 14:32:24-!- Elvish_Pillager [~eli@dhip-029.rrw.residences.colby.edu] has joined #wesnoth-dev 20121127 14:36:08< nvlbg> mattsc: Well, I can't use 1.11 because I can't run it (it gives me segmentation fault). Would this be a problem? 20121127 14:38:32< mattsc> nvlbg: Hmm, it would be a problem for some of the AIs. Some time ago we made AI-Demos be supported for 1.11 only. However, I think most of the AIs to be ported and the MAI mechanism should still work in 1.10. 20121127 14:40:16< mattsc> I'd say, get AI-Demos in 1.10 and try out if the AI you want to port works. Also try out if at least one of the Micro AIs that already exist work. 20121127 14:40:53< mattsc> If the answer is yes to both, you should be able to do port that AI in 1.10. 20121127 14:44:21< mattsc> nvlbg: checking out the code: the relevant AIs that will definitely not work correctly in 1.10 are messenger escort, protect unit and bottleneck defense. 20121127 14:44:37-!- nvlbg [5c3efb5f@gateway/web/freenode/ip.92.62.251.95] has quit [Ping timeout: 245 seconds] 20121127 14:54:23-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has quit [Quit: I'm asleep] 20121127 15:04:04-!- mattsc [~mattsc@207.230.251.234] has joined #wesnoth-dev 20121127 15:14:44< gh0st> mattsc: what are we doing here:https://github.com/mattsc/Wesnoth-AI-Demos/blob/master/micro_ais/ais/bottleneck_defense_CAs.lua#L47, on line 47 and 48 seems like we are calling some function. 20121127 15:16:02< gh0st> can you explain what the expression in qoutes does? 20121127 15:16:57< mattsc> gh0st: (...) in a candidate action call is the AI engine. 20121127 15:17:23< mattsc> So in this case, it's the content of bottleneck_engine.lua 20121127 15:18:37< gh0st> okay makes sense. 20121127 15:18:47< mattsc> which is included using the macro in micro_ais/ais/micro_ais_macros.cfg 20121127 15:20:04< mattsc> sorry, the filename for the engine file was wrong. It's mai_bottleneck_defense_engine.lua 20121127 15:20:37< gh0st> yea, i figured it out. 20121127 15:21:19< mattsc> Ok, should I go on with that line 47 or is it all clear already? 20121127 15:21:46< gh0st> yes, please 20121127 15:22:01< mattsc> Ok, so this line in the macro: 20121127 15:22:11< mattsc> return wesnoth.require("~add-ons/AI-demos/micro_ais/ais/mai_bottleneck_defense_engine.lua").init(ai) 20121127 15:22:32< mattsc> Load's the init function from that file as the AI engine. 20121127 15:22:35< mattsc> loadsd 20121127 15:22:42< mattsc> grr... loads 20121127 15:23:27< mattsc> We need to do it that way (using an init function, rather than just loading the entire content of the file), because we need to pass the 'ai' table to the functions. 20121127 15:23:51< mattsc> The ai table contains all the action functions (move, attack, etc.) for the AI 20121127 15:25:00< mattsc> Now, if you look at the init function, it returns a table bottleneck_defense which, among other functions, includes bottleneck_defense:bottleneck_attack_eval() and exec() 20121127 15:25:35-!- artisticdude [~artisticd@112.sub-70-192-193.myvzw.com] has joined #wesnoth-dev 20121127 15:25:40< mattsc> Those functions are what's being called by lines 47 and 48 in that file 20121127 15:27:06< gh0st> wait, where is the init function you are asking me to look at? 20121127 15:27:17< mattsc> So, in summary, the AI needs to provide an engine that has evaluation and execution functions. These are accessed from the CAs, with the engine being accessible through the ... variable 20121127 15:27:47< mattsc> Look into file micro_ais/ais/mai_bottleneck_defense_engine.lua 20121127 15:28:33< gh0st> i am currently looking at it... 20121127 15:28:53< mattsc> Do you know how lua tables are set up? 20121127 15:29:02-!- Nephro [~Dmitry@cpc4-broo8-2-0-cust496.14-2.cable.virginmedia.com] has joined #wesnoth-dev 20121127 15:29:04< gh0st> no 20121127 15:29:07< mattsc> You get a table with: 20121127 15:29:23< mattsc> { key1 = value1, key2 = value2, .... } 20121127 15:29:45< mattsc> So the {} set up the table. 20121127 15:29:57< mattsc> keys can be numbers or string (for the most part) 20121127 15:30:08< mattsc> and values can be anything, including other tables or functions. 20121127 15:30:49< mattsc> So if you look at this file, it returns a table (because it starts and ends with { } ) 20121127 15:31:14< gh0st> ah, right! 20121127 15:31:18< mattsc> The first (and actually only) key in that table is init. 20121127 15:32:09< mattsc> And the value of init is a function, defining another table: bottleneck_defense. 20121127 15:35:11< gh0st> thats what ai table holds - another table - bottleneck_defense ? 20121127 15:36:10< mattsc> No, the ai table is a table provided by wesnoth that contains functions to actually do something with units, like move them around or attack. 20121127 15:36:50< mattsc> Have a look at line 613 in the engine file: 20121127 15:36:51< mattsc> ai.attack(self.data.attacker, self.data.target, self.data.weapon) 20121127 15:37:30< gh0st> ok, makes sense now. 20121127 15:37:31< mattsc> This says: execute and attack by the unit defined in self.data.attacker onto self.data.target with that weapon 20121127 15:38:14< mattsc> The AI engine, by contrast, are the functions we define to evaluate when and where to attack, depending on what we want the AI to do. 20121127 15:40:39< AI0867> Ivanovic: how about some "play through the tutorial/two brothers and write a thorough review, highlighting whatever you didn't consider well-explained..." tasks? That should be able to fit under QA 20121127 15:41:27< AI0867> as for the trailer thing. I have some time, but not much video editing experience, so I'm not entirely sure I should mentor that 20121127 15:49:35-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has joined #wesnoth-dev 20121127 15:53:10< gh0st> mattsc: hm, bottleneck_defense:bottleneck_move_eval returns a static value - 300000 in mai_bottleneck_defense_engine.lua, in bottleneck_defense_CAs.lua on line 47 we call it and the result is assigned to evaluation key, why not to do just: "evaluation = 300000"? Or am i missing something? 20121127 15:54:39< mattsc> gh0st: Look for example in line 250 20121127 15:55:31< gh0st> oh, missed it. 20121127 15:55:48< mattsc> So, it returns 300000 if it finds a unit to move, otherwise 0 20121127 15:56:34< gh0st> okay, what does evaluation key do anywhy, what's it's purpose? 20121127 15:57:50< mattsc> gh0st: check out this: http://wiki.wesnoth.org/General_RCA_AI_Howto 20121127 15:58:22< mattsc> The evaluation key is the score for the CAs in the RCA AI main_loop stage 20121127 15:58:50-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has quit [Quit: Rice and Corn] 20121127 15:58:51< gh0st> thanks 20121127 16:14:39-!- prkc [~negusnyul@51B7BFDF.dsl.pool.telekom.hu] has joined #wesnoth-dev 20121127 16:16:01-!- nvlbg [5c3efb5f@gateway/web/freenode/ip.92.62.251.95] has joined #wesnoth-dev 20121127 16:17:23< mattsc> nvlbg: did you see my message which AIs won't work? 20121127 16:17:39< nvlbg> Nope, my pc freezed. 20121127 16:18:15-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has joined #wesnoth-dev 20121127 16:18:22< mattsc> If that happens, you can always check the logs: http://www.wesnoth.org/irclogs/2012/11/ 20121127 16:18:57< mattsc> What I wanted to add to that: technically, the AIs will still work, you just might see some silly behavior. 20121127 16:19:10< mattsc> Such as orcish archer attack grunts with their melee weapon 20121127 16:20:00< nvlbg> Thanks. I think I might fixed the 1.11 problem, I don't know. If I have other questions I'll ask ;) 20121127 16:20:12< mattsc> Cool! 20121127 16:21:23< Nephro> mattsc, hi, haven't got the time to fix up things you asked for yet, but about the data table. Isn't it available from wesnoth.debug_ai()? 20121127 16:22:04< Nephro> It's a workaround atm, but if you really need it, you can use it as a placeholder until I fix it 20121127 16:22:41< mattsc> Nephro: I don't know, I haven't checked this. I'll look into it when I get a chance. Thanks. 20121127 16:23:01< mattsc> That'd mean that it only works in debug mode though, right? 20121127 16:23:54< Nephro> yeah, probably 20121127 16:24:04-!- artisticdude [~artisticd@112.sub-70-192-193.myvzw.com] has quit [Quit: Leaving.] 20121127 16:24:52< mattsc> That wouldn't help then, I guess. We really need some way of transferring information between eval and exec functions, both of the same CA and for different CAs. 20121127 16:39:11-!- mattsc [~mattsc@207.230.251.234] has quit [Quit: I'm asleep] 20121127 16:43:08-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has joined #wesnoth-dev 20121127 16:55:50-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has joined #wesnoth-dev 20121127 16:58:54-!- mattsc [~mattsc@fw.hia.nrc.ca] has joined #wesnoth-dev 20121127 17:09:12-!- nvlbg [5c3efb5f@gateway/web/freenode/ip.92.62.251.95] has quit [Ping timeout: 245 seconds] 20121127 17:18:43-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20121127 17:24:17-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has joined #wesnoth-dev 20121127 17:27:34< gh0st> mattsc: Can you explain what "W.modify_ai{}" does? we simply replace the candidate_action tag with W.modify_ai{} afaik. 20121127 17:28:51< mattsc> gh0st: W is defined at the beginning of the file and makes the WML tags available in Lua 20121127 17:29:07< mattsc> W.modify_ai then accesses the [modify_ai] tag 20121127 17:29:28< mattsc> http://wiki.wesnoth.org/AiWML#Adding_and_Deleting_Aspects_with_the_.5Bmodify_ai.5D_Tag 20121127 17:32:13< AI0867> for anyone who has boost >= 1.44 and is interested in testing something out: http://ai.ai0867.net/tmp/boost_filesystem_patches.tar.bz2 20121127 17:36:58-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20121127 17:38:11< gh0st> mattsc: so we are modifying on fly when it's run the contents of [modify_ai] tag, right? 20121127 17:39:04< mattsc> gh0st: almost, but not quite. We use the [modify_ai] tag to modify the CAs that the AI uses, whenever it's run. 20121127 17:40:19< mattsc> W.modify_ai executes the tags, using the parameters as set inside the {} 20121127 17:42:16< gh0st> ok 20121127 17:45:11< gh0st> But the [modify_ai] tag has to exist in the secnario file or it'll be created if it doesn't? 20121127 17:45:25< gh0st> scenario* 20121127 17:45:45< gh0st> the *.cfg file i mean. 20121127 17:45:56< mattsc> [modify_ai] is a default WML tag. It's always there. 20121127 17:46:24< gh0st> hm? 20121127 17:47:32< mattsc> Sorry? Maybe I didn't understand your question. 20121127 17:50:17< gh0st> It seems that i don't quite understand then how the W.modify_ai works. I thought it parses somehow the scenario file(*.cfg) finds the [modify_ai] tag and manipulates it... 20121127 17:50:51< gh0st> eh, i am feeling i am on a wrong way... 20121127 17:52:14< mattsc> gh0st: no worries, let's start with a simple example. Do you know what, say, the [gold] tag does when put into an event in a scenario file? 20121127 17:52:41< gh0st> yea 20121127 17:52:58< mattsc> or, actually, let's change it to [message], because I use that a lot :) 20121127 17:53:32< mattsc> So, in WML, you put the [message] tag into an event to make a unit say something. 20121127 17:53:40< mattsc> If you want to do the same thing from Lua: 20121127 17:53:57< mattsc> W.message{ speaker = unit.id, message = 'message text' } 20121127 17:55:02< mattsc> So, the W.tag_name does whatever the respective tag would do if you put it into a WML event. 20121127 17:55:02< gh0st> oh, ok. I got confused with WML and lua. now it makes sense. 20121127 17:55:19< mattsc> great 20121127 17:56:08< gh0st> i have to go now, bbl. thanks! 20121127 17:56:22< mattsc> ttyl 20121127 17:59:43-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has joined #wesnoth-dev 20121127 18:00:37-!- gh0st [~gh0st@89.31.118.161] has quit [Ping timeout: 248 seconds] 20121127 18:18:34-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20121127 18:26:15-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has quit [Quit: Konversation terminated!] 20121127 18:33:36-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20121127 18:33:53< Nephro> mattsc, 20121127 18:34:15< Nephro> the ai table is accessible everywhere in your CA code 20121127 18:34:27< Nephro> why can't you access the data field directly? 20121127 18:34:40< Nephro> (i'm not looking at the code, just remembering how it works) 20121127 18:35:16< mattsc> oh, hmm, pass it as a second argument to the init function? I hadn't thought of that. 20121127 18:35:35< Nephro> no no no 20121127 18:35:56< Nephro> the ai table IS inside every script you have 20121127 18:36:18< Nephro> since the c++ engine passes it to the script before executing the Lua code 20121127 18:36:48< mattsc> ah, hmm, I think I tried the data table then, but didn't get anything. 20121127 18:36:57< Nephro> that's weird 20121127 18:37:12< mattsc> Not 100% sure though, give me a few minutes and I'll try again. It should just be 'data' ? 20121127 18:37:31< Nephro> If you're using a custom engine the it's custom 20121127 18:37:40< Nephro> if you're using a dummy engine, the it's data 20121127 18:38:39< mattsc> Uh, you lost me now... Are you saying that in a custom engine it should be self.data? 20121127 18:38:49< Nephro> well 20121127 18:39:24< Nephro> I think I also remember where the problem might be :) sorry. It's a 2 line fix. If you will be here for a couple of hours, I'll fix it today 20121127 18:41:00< mattsc> Oh, that would be great. I'll be around on and off throughout the day. 20121127 18:42:19< mattsc> There's also no rush. My first goal is to eventually get rid of two things for the Micro AIs: the need to include a definition file in _main.cfg, and the engine definition macro. 20121127 18:42:31< mattsc> The first we get by putting them into mainline. 20121127 18:43:04< mattsc> The second by going over to your new external AIs - but I need access to the data variable in that case 20121127 18:43:26< mattsc> At least in some cases, Alarantalara pointed out that we can use closures in many of the existing cases instead. 20121127 18:48:58-!- boucman_work [~rosen@wesnoth/developer/boucman] has quit [Ping timeout: 252 seconds] 20121127 18:58:56-!- lipkab [~the_new_l@host-91-147-212-174.biatv.hu] has joined #wesnoth-dev 20121127 19:08:56-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth-dev 20121127 19:17:20-!- lipkab [~the_new_l@host-91-147-212-174.biatv.hu] has quit [Ping timeout: 256 seconds] 20121127 19:26:04-!- mordante [~mordante@roadie.xs4all.nl] has joined #wesnoth-dev 20121127 19:26:04-!- mordante [~mordante@roadie.xs4all.nl] has quit [Changing host] 20121127 19:26:18-!- mordante [~mordante@wesnoth/developer/mordante] has joined #wesnoth-dev 20121127 19:26:18< mordante> servus 20121127 19:28:29-!- lipkab [~the_new_l@host-91-147-212-174.biatv.hu] has joined #wesnoth-dev 20121127 19:38:03-!- Nephro [~Dmitry@cpc4-broo8-2-0-cust496.14-2.cable.virginmedia.com] has quit [Read error: Connection reset by peer] 20121127 19:40:55< Ivanovic> hi mordante 20121127 19:41:37< Ivanovic> AI0867: hmm, do we really have decent enough changes so tha testing since the last GCI is helpful? 20121127 19:41:48< Ivanovic> regarding the "play campaign and write review" tasks 20121127 19:42:12< Ivanovic> AI0867: and i am sure that your knowledge is enough for the video thing, just some general feedback on "is this video cool" should be enough 20121127 19:42:32< mordante> hi Ivanovic 20121127 19:49:51-!- stikonas [~gentoo@bcm-131-111-216-214.girton.cam.ac.uk] has joined #wesnoth-dev 20121127 19:49:51-!- stikonas [~gentoo@bcm-131-111-216-214.girton.cam.ac.uk] has quit [Changing host] 20121127 19:49:51-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20121127 19:56:26-!- mattsc [~mattsc@fw.hia.nrc.ca] has quit [Quit: bye] 20121127 20:04:09-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has quit [Quit: Rice and Corn] 20121127 20:06:52-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has joined #wesnoth-dev 20121127 20:08:43-!- Gambit [~gambit@wesnoth/developer/grickit] has quit [Remote host closed the connection] 20121127 20:49:42< AI0867> Ivanovic: okay, so I should request to become a mentor then? 20121127 20:49:49< AI0867> not sure if we're pooling that too 20121127 20:50:28< AI0867> Ivanovic: there's been some rewriting in the mainline campaign dev subforum 20121127 20:50:39< AI0867> though I'm not sure if any of that has actually been committed 20121127 20:51:28< Ivanovic> AI0867: yes, please subscribe 20121127 20:51:36< Ivanovic> if i am not around e.g. Arc can add you in 20121127 20:52:33< AI0867> "not available because you do not have a profile"? 20121127 20:53:41< AI0867> This page is inaccessible because you do not have a profile in the program at this time. 20121127 20:55:28< AI0867> I found a site that replies that you should go to http://www.google-melange.com/gci/profile/mentor/google/gci2011 to create a profile (no such link in melange as far as I can find), but that gives the same result 20121127 20:55:58< AI0867> oh, wait, that's 2011 20121127 20:56:03< AI0867> editing the link helped 20121127 21:00:06-!- lipkab [~the_new_l@host-91-147-212-174.biatv.hu] has quit [Quit: - )] 20121127 21:02:42< AI0867> Ivanovic: I may have submitted a request now 20121127 21:02:47< AI0867> I'm not entirely sure 20121127 21:08:08< Arc> done. 20121127 21:08:12< Arc> welcome to the crew. 20121127 21:21:26-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has joined #wesnoth-dev 20121127 21:22:35< mordante> I'm off night 20121127 21:22:47-!- mordante [~mordante@wesnoth/developer/mordante] has quit [Quit: Leaving] 20121127 21:23:49-!- grzywacz [~grzywacz@89-67-172-243.dynamic.chello.pl] has joined #wesnoth-dev 20121127 21:23:49-!- grzywacz [~grzywacz@89-67-172-243.dynamic.chello.pl] has quit [Changing host] 20121127 21:23:49-!- grzywacz [~grzywacz@wesnoth/developer/grzywacz] has joined #wesnoth-dev 20121127 21:27:06-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has quit [Quit: Rice and Corn] 20121127 21:27:25< Arc> apparently this year the popular tasks are hedgewars and sweetsoy 20121127 21:27:37< Arc> the kids are eating up all the sweetsoy (pysoy client for android) tasks 20121127 21:28:16-!- prkc [~negusnyul@51B7BFDF.dsl.pool.telekom.hu] has quit [Quit: Konversation terminated!] 20121127 21:31:35< mattsc> Arc: nice. Several students have started looking into Lua AI tasks, but nobody has claimed a task yet. 20121127 21:32:11< Arc> at least you have tasks left. at this pace we'll be out by tonight 20121127 21:32:16< Arc> "good problem to have" 20121127 21:32:23< mattsc> indeed 20121127 21:32:26< Espreon> (Ours should be taken like hotcakes...!) 20121127 21:32:43< Espreon> (Not theirs!) 20121127 21:33:07 * Espreon 's mind is officially boggled 20121127 21:34:13-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has joined #wesnoth-dev 20121127 21:35:21< Espreon> (I guess the parentheses do indeed hide my comments! Tee hee.) 20121127 21:35:48-!- ancestral [~ancestral@12.145.225.29] has joined #wesnoth-dev 20121127 21:36:40< Espreon> Wait... what tasks do we have...? 20121127 21:38:37< AI0867> lua µAI stuff 20121127 21:38:48< AI0867> and irssi converted that automatically 20121127 21:40:00< Espreon> Ah, I see. 20121127 21:41:03< AI0867> there's one task about writing a script to remove groups of highly transparent pixels 20121127 21:41:06< AI0867> which is already done 20121127 21:41:12< AI0867> and one final one about making a new trailer 20121127 21:41:17< AI0867> that's all 20121127 21:42:03< Espreon> OK, so I could pretend none of this is happening and get back to reading about Damin. 20121127 21:42:08< Espreon> Sounds good to me. 20121127 21:46:48< mattsc> Espreon: tasks can be added at any time this year, so feel free to add more 20121127 21:47:12-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has quit [Quit: Rice and Corn] 20121127 21:47:33< AI0867> do we have some easycoding stuff that's still valid? 20121127 21:48:28-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has joined #wesnoth-dev 20121127 21:48:53< mattsc> How about the './wesnoth -m' parameters? How easy is that to do? 20121127 21:49:37< Espreon> mattsc: Meh, too lazy. 20121127 21:49:50< Espreon> ... and busy. 20121127 21:50:32-!- ancestral [~ancestral@12.145.225.29] has quit [Quit: i go nstuf kthxbai] 20121127 21:51:46< AI0867> mattsc: I don't know yet. But it sounds like parallel code paths 20121127 21:52:20< AI0867> effort has been invested in the past to merge them, but that was clearly not enough 20121127 21:54:48< mattsc> AI0867: ok. I also have this list of potentially easy AI-related C++ coding: 20121127 21:54:50< mattsc> http://wiki.wesnoth.org/Practical_Guide_to_Modifying_AI_Behavior#Ideas_for_Potentially_Easy_AI_Patches 20121127 21:55:28< mattsc> But I have no idea if that can be split up into tasks that are small enough for GCI. And I certainly cannot mentor these. 20121127 21:56:03< mattsc> I know that some of them are not easy, don't know about the rest. 20121127 22:00:07< AI0867> you'd have to poke someone who knows the C++/lua interface a bit better for the first one 20121127 22:00:31< AI0867> I'd have to program one of them to see how feasible it is 20121127 22:03:53< mattsc> AI0867: actually, I have to take that one off the list. Nephro did that already (just verified that) 20121127 22:04:47< mattsc> gone 20121127 22:06:35< mattsc> And to me it looks like the rest are probably somewhat bigger tasks, so unless somebody is able and willing to split them up into smaller bits, this might not be the right list. 20121127 22:08:03-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev 20121127 22:42:45-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has quit [Quit: Rice and Corn] 20121127 22:45:25-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has quit [Quit: bye] 20121127 22:45:29-!- irker096 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20121127 23:16:24-!- csarmi_home [~csarmi@host-93-92-56-147.comunique.hu] has quit [Ping timeout: 264 seconds] 20121127 23:23:31-!- Nephro [~Dmitry@cpc4-broo8-2-0-cust496.14-2.cable.virginmedia.com] has joined #wesnoth-dev 20121127 23:34:26-!- mjs-de [~mjs-de@d119112.adsl.hansenet.de] has quit [Remote host closed the connection] 20121127 23:44:06-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 240 seconds] 20121127 23:49:31-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has joined #wesnoth-dev --- Log closed Wed Nov 28 00:00:42 2012