--- Log opened Tue Nov 13 00:00:14 2012 20121113 00:04:36< mattsc> Hi, BTree. If you're looking for SeattleDad, I'd expect him to be online here in a couple hours. 20121113 00:16:48-!- mnewton1 [~mnewton1@76.99.170.226] has joined #wesnoth-umc-dev 20121113 00:17:27-!- Blueblaze [~Blueblaze@2602:306:394f:4049:6233:4bff:fe0a:827b] has joined #wesnoth-umc-dev 20121113 00:20:10-!- Netsplit *.net <-> *.split quits: iwaim_, irker583 20121113 00:23:15-!- Netsplit over, joins: iwaim_ 20121113 00:29:03-!- Crendgrim [~crend@port-92-204-94-75.dynamic.qsc.de] has quit [Quit: Konversation terminated!] 20121113 00:29:23-!- irker583 [~irker@ai0867.net] has joined #wesnoth-umc-dev 20121113 00:45:37< mattsc> Alarantalara: if I have a lua table that is indexed using strings, is it slower to access an element in the table if those strings are long? 20121113 00:47:09-!- Blueblaze [~Blueblaze@2602:306:394f:4049:6233:4bff:fe0a:827b] has quit [Remote host closed the connection] 20121113 00:47:29-!- Blueblaze [~Blueblaze@2602:306:394f:4049:6233:4bff:fe0a:827b] has joined #wesnoth-umc-dev 20121113 00:52:55< Alarantalara> mattsc: I have no idea 20121113 00:54:19< mattsc> Alarantalara: ok, thanks. I'll shorten the cache indices a little anyway, it just seems ... tidier or something. 20121113 01:05:25-!- Wesnother [84ce03f4@gateway/web/freenode/ip.132.206.3.244] has joined #wesnoth-umc-dev 20121113 01:10:24-!- Wesnother [84ce03f4@gateway/web/freenode/ip.132.206.3.244] has quit [Quit: Page closed] 20121113 01:30:28-!- BTree [84ce03f4@gateway/web/freenode/ip.132.206.3.244] has quit [Ping timeout: 245 seconds] 20121113 01:43:43< irker583> AI-Demos: mattsc master * r5c47537 / lua/battle_calcs.lua : Shorten cache indices - http://git.io/q4Sk0w 20121113 01:48:28< irker583> AI-Demos: mattsc master * rdd45ab8 / lua/battle_calcs.lua : best_weapons: enable caching - http://git.io/CJQzrQ 20121113 01:50:11-!- faabumc [~vcr@wesnoth/developer/faabumc] has joined #wesnoth-umc-dev 20121113 01:57:59-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-umc-dev 20121113 02:49:19-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20121113 02:53:27-!- BTree [~boakes@moose.CS.McGill.CA] has joined #wesnoth-umc-dev 20121113 02:53:41< irker583> AI-Demos: mattsc master * r2de73d6 / lua/battle_calcs.lua : battle_outcome_coefficients: use same cache syntax as in other functions - http://git.io/iF-qRA 20121113 02:54:10< BTree> Hi 20121113 02:54:59< BTree> So as I posted in the forums, I'm interested in creating an AI for BfW 20121113 02:55:56-!- faabumc [~vcr@wesnoth/developer/faabumc] has quit [Quit: Ex-Chat] 20121113 02:56:09< mattsc> Hi BTree. Yeah, saw the post. 20121113 02:56:28< BTree> I've installed AI-demos, and I was wondering if there was an AI evaluation scenario 20121113 02:56:31< mattsc> The right people to talk to here are probably SeattleDad and Alarantalara. 20121113 02:56:57< mattsc> I'm not quite sure what you mean with that. 20121113 02:58:09< BTree> I noticed SeattleDad's ML Recruiter in AI-demos. How can I run his AI from within Wesnoth? 20121113 02:58:27< BTree> Is there a scenario that I could modify to point to his code? 20121113 02:58:49< mattsc> Oh, I see... 20121113 02:59:02< mattsc> Do you have Wesnoth open? 20121113 02:59:09< BTree> yes 20121113 02:59:59< mattsc> Ok - what I am going to tell you right now is not going to work right away, because you also need to set up the C++ part of the code, but here's how you're meant to do it after you do: 20121113 03:00:23< mattsc> Oh, one more question, do you have the last released version of AI-demos, or the current github version? 20121113 03:00:46< BTree> I downloaded the zip from github, and copied it over the instal ldirectory 20121113 03:01:05< mattsc> Ok, good, because the ML recruiter is not released yet. 20121113 03:01:22< mattsc> So, go into the MP lobby, and select era 'default+exp. AI' 20121113 03:02:09< BTree> Alright 20121113 03:02:31< mattsc> hold on, starting it up myself to make sure I'm not forgetting anything ... 20121113 03:02:50< BTree> Thank you for helping me out by the way. 20121113 03:03:22-!- BTree [~boakes@moose.CS.McGill.CA] has quit [Quit: Leaving.] 20121113 03:03:23< mattsc> no worries, we're all looking forward to the great improvements you will bring to the Wesnoth AI (and that's not meant sarcastically) 20121113 03:03:41-!- BTree [~boakes@moose.CS.McGill.CA] has joined #wesnoth-umc-dev 20121113 03:04:00< mattsc> while you were gone, I typed: no worries, we're all looking forward to the great improvements you will bring to the Wesnoth AI (and that's not meant sarcastically) 20121113 03:04:24< mattsc> so, select any map (say, Freelands, on of our favorites :) ) and click ok 20121113 03:05:00< BTree> Okay I see the AI options on the left then 20121113 03:05:09< mattsc> Then, for either of the sides, select 'computer player', and in the button coming up below it, you'll ... 20121113 03:05:16< mattsc> Ok, that's how it is set up to work. 20121113 03:05:35< mattsc> Now, for the ML recruiter to work, you need to have the C++ code installed 20121113 03:05:56< BTree> Do I get the patch and apply it, and then recompile Wesnoth? 20121113 03:05:59< mattsc> Alarantalara: do you have the link to SeattleDad's wiki page off hand? 20121113 03:06:18< Alarantalara> The patch is here: https://gna.org/patch/?3479 20121113 03:06:34< mattsc> BTree: I think that's how it works. (I'm not a C++ guy) 20121113 03:06:52< Alarantalara> from the Wesnoth directory you'll need: patch -p1 to apply it 20121113 03:07:51< Alarantalara> Do you have a copy of the source? 20121113 03:07:58< BTree> Yeah 20121113 03:08:10< BTree> I've done this step a few times already actually 20121113 03:08:30< Alarantalara> You already applied the patch? 20121113 03:08:44< BTree> I just did, yes. 20121113 03:09:37< BTree> Great, the script seems to be working. 20121113 03:09:37< Alarantalara> But yes, after recompiling, the ML recruiter should work without any further effort 20121113 03:16:28< Alarantalara> you'll likely also be interested in the script mentioned here: http://wiki.wesnoth.org/Machine_Learning_Recruiter#Testing_the_ML_Recruiter_in_batch_mode 20121113 03:17:00< Alarantalara> It has been moved to the ml_utils directory within AI-demos, though the wiki isn't updated yet 20121113 03:18:49< BTree> Okay, I see it. 20121113 03:20:52-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20121113 03:24:46< BTree> Alright, the script runs. But it can't find ml_ai.cfg. I'm just trying to point it at the AI-demos directory... 20121113 03:25:25< mattsc> In the ais/ directory 20121113 03:25:34< Alarantalara> You need to specify the paths to the AIs according to the path conventions used by Wesnoth 20121113 03:25:59< Alarantalara> ~add-ons/AI-demos/ais/ml_ai.cfg 20121113 03:26:00< mattsc> oh, sorry, misunderstood the question ... 20121113 03:26:13< Alarantalara> represents the path to ml_ai.cfg 20121113 03:26:22< BTree> Ah, I had seen that before. Thank you. 20121113 03:26:31-!- Blueblaze [~Blueblaze@2602:306:394f:4049:6233:4bff:fe0a:827b] has quit [Quit: Blueblaze] 20121113 03:30:03-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [] 20121113 03:33:51-!- faabumc [~vcr@wesnoth/developer/faabumc] has joined #wesnoth-umc-dev 20121113 03:34:23< BTree> Okay great I have it working after changing the path_to_wesnoth_binary, and ai_config1 variables in the ai_test2.cfg file. 20121113 03:36:17< irker583> AI-Demos: Alarantalara master * rd7f4b6f / ml_utils/ai_test2.cfg : Set location of ml_ai.cfg to match its new home. - http://git.io/PEoK5w 20121113 03:36:38< Alarantalara> I should probably have committed that earlier 20121113 03:38:58< Alarantalara> At any rate, once you have a cfg file for the AI you write, you'll likely want to use that script or something like it to run many test games 20121113 03:39:49< BTree> Yeah. Hopefully I can make it fast enough to evaluate games 20121113 03:40:07< BTree> I might need to run hundreds/thousands of tests... 20121113 03:40:50< BTree> But I'm very impressed with how stable and clean this project is. 20121113 03:42:50< Alarantalara> The average game length is about 2 minutes on my machine, so you shouldn't have too much problem with many runs 20121113 03:43:36< irker583> AI-Demos: mattsc master * r8262314 / lua/battle_calcs.lua : battle_outcome: cfg is optional parameter - http://git.io/8SL00w 20121113 03:51:09< BTree> The game core dumped while testing. Is there a dump file to send you that would help in debugging? 20121113 03:54:37< irker583> AI-Demos: mattsc master * ree1fadf / lua/battle_calcs.lua : battle_outcome: enable caching - http://git.io/9A3Tuw 20121113 03:55:36< irker583> AI-Demos: mattsc master * r9acf101 / lua/battle_calcs.lua : Fix a comment - http://git.io/FFPHwQ 20121113 03:55:36< Alarantalara> It depends a lot on how you set Wesnoth up. The script copies the contents of stderr to the terminal when that happens, and it's often enough to have an idea of what went wrong. 20121113 03:56:18< Alarantalara> But for a core dump, the method is generally OS specific. 20121113 03:58:18< BTree> http://pastebin.com/juPy5BSx (Terminal output - three lines) 20121113 03:58:45< irker583> AI-Demos: mattsc master * rf8bae3b / lua/battle_calcs.lua : Delete unnecessary 'else' block - http://git.io/YzTfgA 20121113 04:02:55-!- happygrue_ [~happygrue@wesnoth/developer/wintermute] has quit [Read error: Connection reset by peer] 20121113 04:03:19-!- happygrue [~happygrue@c-76-119-97-171.hsd1.ma.comcast.net] has joined #wesnoth-umc-dev 20121113 04:03:20-!- happygrue [~happygrue@c-76-119-97-171.hsd1.ma.comcast.net] has quit [Changing host] 20121113 04:03:20-!- happygrue [~happygrue@wesnoth/developer/wintermute] has joined #wesnoth-umc-dev 20121113 04:16:11< Alarantalara> I am uncertain as to the cause. Since that error occurs when trying to preprocess a .cfg file, it would likely be interesting to see what the beginning of ai_test2.cfg looks like 20121113 04:16:42< Alarantalara> Though you will probably want to report that to bug.wesnoth.org, since an empty file name shouldn't crash Wesnoth 20121113 04:16:49< Alarantalara> bugs.wesnoth.org 20121113 04:18:42< irker583> AI-Demos: mattsc master * recfc4ab / lua/battle_calcs.lua : Revert "battle_outcome: enable caching" - http://git.io/3nGwog 20121113 04:18:52< Alarantalara> and doesn't cause a crash on my system 20121113 04:22:30< BTree> I narrowed it down to having the wrong name for the candidate_action in my ga_ai.cfg file 20121113 04:23:29< Alarantalara> Then submit the erroneous file to the bug tracker and someone will keep it from crashing in the future 20121113 04:25:21< Alarantalara> A lot of the Lua AI support is less thoroughly tested than the rest of the game, which sometimes leads to such problems 20121113 04:27:21< Alarantalara> In many cases mattsc is the first person after the original developer to try the feature at all 20121113 04:27:55< mattsc> BTree, Alarantalara: lua errors inside the AI used to crash Wesnoth. Nephro fixed that some time ago. However, it appears that they still crash Wesnoth when it is launched from the command line. 20121113 04:28:09< mattsc> I only noticed that difference yesterday, I think. 20121113 04:29:51< Alarantalara> This was a WML error inside the AI (inside the WML preprocessor to be exact) 20121113 04:29:58-!- un214 [~un214@108.221.231.191] has joined #wesnoth-umc-dev 20121113 04:30:26< Alarantalara> so I don't think it made it to Lua yet 20121113 04:31:36< mattsc> Hmm, ok. Sounds like I should keep my mouth shut tonight. :) 20121113 04:32:20< Alarantalara> It's completely possible that the same fix will handle both 20121113 04:32:24< irker583> AI-Demos: mattsc master * r9e564b9 / lua/battle_calcs.lua : attack_combo_stats: cache used here may only persist for the current move - http://git.io/8OzcHw 20121113 04:33:03< Alarantalara> I've noticed Lua errors causing Wesnoth to exit but not crash for me 20121113 04:33:28< BTree> http://pastebin.com/B5GxJCQs - GDB trace 20121113 04:33:35< BTree> I'll post it in a second 20121113 04:36:03< Alarantalara> I need to go to bed now. mattsc should be able to answer any further questions you have 20121113 04:36:20< BTree> Thanks for your help. 20121113 04:36:29< mattsc> Ha! That's what you think ... 20121113 04:36:41< mattsc> I'll see what I can do though. gn. 20121113 04:37:02-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has quit [Quit: Leaving.] 20121113 04:37:25< mattsc> *mattsc is hoping for SeattleDad to come online soon* 20121113 04:46:01-!- un214 [~un214@108.221.231.191] has quit [Remote host closed the connection] 20121113 05:04:57< irker583> AI-Demos: mattsc master * r9034f30 / lua/battle_calcs.lua : attack_rating: move cache out of cfg - http://git.io/nvg9sg 20121113 05:18:21< BTree> Alright I'm heading off. gn . 20121113 05:18:43< BTree> I'll be back tomorrow with exponentially harder questions... 20121113 05:18:54< BTree> Thanks for your help. 20121113 05:19:46< mattsc> Good night. 20121113 05:19:50-!- BTree [~boakes@moose.CS.McGill.CA] has left #wesnoth-umc-dev [] 20121113 05:26:53< irker583> AI-Demos: mattsc master * r81eef90 / lua/grunt-rush-Freelands-S1_engine.lua : Fred: make use of battle_calcs cache parameters - http://git.io/buOKPw 20121113 05:39:18-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has quit [Quit: bye] 20121113 06:15:47-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has joined #wesnoth-umc-dev 20121113 06:25:45-!- SeattleDad [~SeattleDa@c-67-171-51-0.hsd1.wa.comcast.net] has joined #wesnoth-umc-dev 20121113 07:00:35-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20121113 07:14:44-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has joined #wesnoth-umc-dev 20121113 07:18:13-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20121113 07:48:47-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20121113 08:15:39-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20121113 08:16:53-!- SeattleDad [~SeattleDa@c-67-171-51-0.hsd1.wa.comcast.net] has quit [] 20121113 08:17:00-!- shadowm [~ignacio@wesnoth/developer/shadowmaster] has left #wesnoth-umc-dev [] 20121113 08:26:55-!- irker583 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20121113 09:02:31-!- mnewton1 [~mnewton1@76.99.170.226] has quit [Quit: Rice and Corn] 20121113 10:52:20-!- faabumc [~vcr@wesnoth/developer/faabumc] has quit [Ping timeout: 248 seconds] 20121113 11:01:31-!- happygrue_ [~happygrue@76.119.97.171] has joined #wesnoth-umc-dev 20121113 11:01:31-!- happygrue_ [~happygrue@76.119.97.171] has quit [Changing host] 20121113 11:01:31-!- happygrue_ [~happygrue@wesnoth/developer/wintermute] has joined #wesnoth-umc-dev 20121113 11:04:38-!- happygrue [~happygrue@wesnoth/developer/wintermute] has quit [Ping timeout: 240 seconds] 20121113 11:12:07-!- Netsplit *.net <-> *.split quits: @ChanServ 20121113 11:15:59-!- Netsplit over, joins: @ChanServ 20121113 11:20:43-!- Netsplit *.net <-> *.split quits: happygrue_ 20121113 11:22:03-!- Netsplit over, joins: happygrue_ 20121113 11:23:27-!- Netsplit *.net <-> *.split quits: skyfaller 20121113 11:24:03-!- Netsplit over, joins: skyfaller 20121113 11:25:42-!- Netsplit *.net <-> *.split quits: happygrue_ 20121113 11:27:00-!- Netsplit over, joins: happygrue_ 20121113 11:30:05-!- Netsplit *.net <-> *.split quits: vultraz 20121113 11:30:28-!- Netsplit over, joins: vultraz 20121113 12:57:06-!- csarmi_home [csarmi@178-164-141-33.pool.digikabel.hu] has quit [Ping timeout: 264 seconds] 20121113 13:33:05-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-umc-dev 20121113 13:33:08-!- mode/#wesnoth-umc-dev [+v loonybot] by ChanServ 20121113 13:58:47-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has joined #wesnoth-umc-dev 20121113 14:23:41-!- fendrin [~fabi@88-134-22-251-dynip.superkabel.de] has joined #wesnoth-umc-dev 20121113 14:23:41-!- fendrin [~fabi@88-134-22-251-dynip.superkabel.de] has quit [Changing host] 20121113 14:23:41-!- fendrin [~fabi@wesnoth/developer/fendrin] has joined #wesnoth-umc-dev 20121113 14:48:27-!- irker259 [~irker@ai0867.net] has joined #wesnoth-umc-dev 20121113 14:48:27< irker259> AI-Demos: Alarantalara master * rce92319 / lua/generic-recruit_engine.lua : Remove side effect in recruit eval - http://git.io/5_yTXg 20121113 15:17:43-!- mattsc [~mattsc@207.230.251.234] has joined #wesnoth-umc-dev 20121113 15:30:25-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has quit [Quit: Leaving.] 20121113 16:09:58-!- ancestral [~ancestral@65.128.234.158] has joined #wesnoth-umc-dev 20121113 16:10:00-!- ancestral [~ancestral@65.128.234.158] has quit [Client Quit] 20121113 16:10:16-!- mattsc [~mattsc@207.230.251.234] has quit [Quit: I'm asleep] 20121113 16:15:36-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Read error: Connection reset by peer] 20121113 16:15:56-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth-umc-dev 20121113 16:29:54-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20121113 16:31:25-!- mattsc [~mattsc@fw.hia.nrc.ca] has joined #wesnoth-umc-dev 20121113 17:12:31< irker259> AI-Demos: SeattleDad master * r2010e37 / lua/ml_ai_general.lua : Use Ron Recruiter's find_best_recruit_hex for finding best recruit hex - http://git.io/Vsp4pA 20121113 17:16:08-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20121113 17:16:09-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth-umc-dev 20121113 17:49:14-!- csarmi [csarmi@94-21-133-116.pool.digikabel.hu] has joined #wesnoth-umc-dev 20121113 18:08:52< irker259> AI-Demos: mattsc master * r800b81b / lua/grunt-rush-Freelands-S1_engine.lua : Fred: add option to secure western village(s) if enemy units can get there in 2 moves - http://git.io/F2yyzw 20121113 18:21:14-!- BTree [~boakes@moose.CS.McGill.CA] has joined #wesnoth-umc-dev 20121113 18:51:11-!- fendrin [~fabi@wesnoth/developer/fendrin] has quit [Quit: Konversation terminated!] 20121113 18:53:12-!- mnewton1 [~mnewton1@76.99.170.226] has joined #wesnoth-umc-dev 20121113 19:16:43-!- mnewton1 [~mnewton1@76.99.170.226] has quit [Quit: Rice and Corn] 20121113 19:17:44-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20121113 19:41:50< irker259> AI-Demos: mattsc master * rf2dc780 / lua/debug.lua : dbms: bug fix for message display options - http://git.io/_4FphQ 20121113 19:42:30-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20121113 20:16:58-!- mnewton1 [~mnewton1@c-76-99-170-226.hsd1.de.comcast.net] has joined #wesnoth-umc-dev 20121113 20:51:32< BTree> Hey, does anyone have an idea if/when SeattleDad will be here today? 20121113 22:13:18-!- BTree [~boakes@moose.CS.McGill.CA] has quit [Read error: Connection reset by peer] 20121113 22:16:42-!- BTree [~boakes@moose.CS.McGill.CA] has joined #wesnoth-umc-dev 20121113 23:32:59-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 260 seconds] 20121113 23:42:32-!- fendrin [~fabi@88-134-45-151-dynip.superkabel.de] has joined #wesnoth-umc-dev 20121113 23:42:32-!- fendrin [~fabi@88-134-45-151-dynip.superkabel.de] has quit [Changing host] 20121113 23:42:32-!- fendrin [~fabi@wesnoth/developer/fendrin] has joined #wesnoth-umc-dev --- Log closed Wed Nov 14 00:00:35 2012