--- Log opened Sun Dec 02 00:00:38 2012 20121202 00:03:24-!- un214 [~un214@adsl-108-204-254-2.dsl.scrm01.sbcglobal.net] has joined #wesnoth-umc-dev 20121202 00:25:09-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 248 seconds] 20121202 00:42:25-!- un214 [~un214@adsl-108-204-254-2.dsl.scrm01.sbcglobal.net] has quit [Remote host closed the connection] 20121202 00:59:39< irker577> wesnoth-umc-dev: anonymissimus * r16288 /trunk/Plan_Your_Advancements_Era/ (.project .wesnoth): 20121202 00:59:39< irker577> wesnoth-umc-dev: PYAE: delete eclipse files 20121202 01:00:23-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has quit [Quit: Leaving.] 20121202 01:00:42< irker577> wesnoth-umc-dev: anonymissimus * r16289 /trunk/Plan_Your_Advancements_Era/ (13 files in 3 dirs): 20121202 01:00:43< irker577> wesnoth-umc-dev: PYAE: restructure to be a modification 20121202 01:01:08< irker577> wesnoth-umc-dev: anonymissimus * r16290 /trunk/Plan_Your_Advancements_Era/dist/version: 20121202 01:01:09< irker577> wesnoth-umc-dev: PYAM: bump version, releasing for 1.11.0+svn 20121202 01:01:09< irker577> wesnoth-umc-dev: (compatibility with 1.10: forget it) 20121202 01:30:50-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has joined #wesnoth-umc-dev 20121202 01:47:28-!- Blueblaze [~Blueblaze@adsl-76-202-20-214.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20121202 02:05:04-!- SpoOkyMagician [~chatzilla@74-141-249-126.dhcp.insightbb.com] has quit [Quit: ChatZilla 0.9.89 [Firefox 14.0.1/20120713134347]] 20121202 02:44:31< irker577> AI-Demos: mattsc master * rc8b36f9 / (4 files in 2 dirs): Change types= to type= in big_animals MAI - http://git.io/LZ5m5g 20121202 03:07:35-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20121202 03:34:48-!- Crendgrim_ [~crend@port-92-204-30-76.dynamic.qsc.de] has joined #wesnoth-umc-dev 20121202 03:35:58-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20121202 03:37:54-!- Crendgrim [~crend@port-92-204-16-26.dynamic.qsc.de] has quit [Ping timeout: 264 seconds] 20121202 03:53:58-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20121202 04:18:51< irker577> wesnoth-umc-dev: doofus-01 * r16291 /trunk/Bad_Moon_Rising/images/portraits/huric.png: 20121202 04:18:52< irker577> wesnoth-umc-dev: updating Huric's portrait. It's not finished, but still better than what it is replacing. 20121202 04:30:13-!- gh0st [~gh0st@89.31.118.161] has joined #wesnoth-umc-dev 20121202 04:44:02-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has joined #wesnoth-umc-dev 20121202 04:45:11< irker577> AI-Demos: gh0st master * rfad8786 / (4 files in 2 dirs): GCI Lurkers step 2 part 2 - http://git.io/OZAsLA 20121202 04:57:45-!- Crendgrim_ [~crend@port-92-204-30-76.dynamic.qsc.de] has quit [Ping timeout: 265 seconds] 20121202 05:47:25-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has quit [Quit: Leaving.] 20121202 06:02:27-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has quit [Quit: bye] 20121202 06:10:25< irker577> AI-Demos: gh0st master * r16951c3 / micro_ais/ais/micro_ais_wml_tags.lua : Lurkers - disable required params checking for a delete action - http://git.io/W2_Edg 20121202 08:47:27< irker577> wesnoth-umc-dev: doofus-01 * r16292 /trunk/Bad_Moon_Rising/ (units/Huric.cfg scenarios2/1_08_Rumble.cfg): 20121202 08:47:28< irker577> wesnoth-umc-dev: some clean-ups to Huric unit-type and Royal Rumble scenario 20121202 09:47:50-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20121202 09:51:52-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20121202 10:30:54-!- Blueblaze [~Blueblaze@adsl-76-202-20-214.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20121202 10:38:03-!- Blueblaze [~Blueblaze@adsl-76-202-20-214.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20121202 11:17:53-!- Crendgrim [~crend@port-92-204-30-76.dynamic.qsc.de] has joined #wesnoth-umc-dev 20121202 11:47:30-!- irker577 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20121202 11:54:32-!- irker419 [~irker@ai0867.net] has joined #wesnoth-umc-dev 20121202 11:54:33< irker419> AI-Demos: Martin Bede master * r9239ef3 / (6 files in 2 dirs): Added swarm to the animals micro AI. - http://git.io/-CeopQ 20121202 11:54:33< irker419> AI-Demos: Martin Bede master * r019c399 / (11 files in 3 dirs): Merge branch 'master' of https://github.com/mattsc/Wesnoth-AI-Demos - http://git.io/JLKj6Q 20121202 11:54:33< irker419> AI-Demos: Martin Bede master * r05bf27c / (2 files): Removed useless files. - http://git.io/MMKoTQ 20121202 12:04:02< irker419> AI-Demos: Martin Bede master * r727cd63 / micro_ais/ais/micro_ais_wml_tags.lua : Replaced tabs with spaces. - http://git.io/ARYoaQ 20121202 12:27:21-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-umc-dev 20121202 12:27:24-!- mode/#wesnoth-umc-dev [+v loonybot] by ChanServ 20121202 13:31:18-!- Blueblaze [~Blueblaze@76.202.20.214] has joined #wesnoth-umc-dev 20121202 14:25:24-!- Alarantalara [~Adium@CPEc0c1c09e8055-CM00252eac6d62.cpe.net.cable.rogers.com] has joined #wesnoth-umc-dev 20121202 15:01:25-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 248 seconds] 20121202 15:16:33-!- Blueblaze [~Blueblaze@76.202.20.214] has quit [Quit: Blueblaze] 20121202 15:20:30-!- fendrin [~fabi@88-134-10-171-dynip.superkabel.de] has joined #wesnoth-umc-dev 20121202 15:20:30-!- fendrin [~fabi@88-134-10-171-dynip.superkabel.de] has quit [Changing host] 20121202 15:20:30-!- fendrin [~fabi@wesnoth/developer/fendrin] has joined #wesnoth-umc-dev 20121202 15:35:48< irker419> wesnoth-umc-dev: inferno8 * r16293 /trunk/Era_of_Magic/ (399 files in 24 dirs): 20121202 15:35:49< irker419> wesnoth-umc-dev: EoMa: Destroyers mega-patch 20121202 15:47:30-!- csarmi [csarmi@188-143-28-255.pool.digikabel.hu] has joined #wesnoth-umc-dev 20121202 16:02:12< irker419> wesnoth-umc-dev: alarantalara * r16294 /trunk/Era_of_Magic/utils/abilities.cfg: 20121202 16:02:12< irker419> wesnoth-umc-dev: EoMa: change description to match value for +4 regeneration 20121202 16:04:36-!- csarmi [csarmi@188-143-28-255.pool.digikabel.hu] has quit [] 20121202 16:06:06< irker419> wesnoth-umc-dev: alarantalara * r16295 /trunk/Era_of_Magic/utils/abilities.cfg: 20121202 16:06:07< irker419> wesnoth-umc-dev: EoMa: translate an ability description from Polish 20121202 16:07:56< irker419> wesnoth-umc-dev: alarantalara * r16296 /trunk/Era_of_Magic/utils/abilities.cfg: 20121202 16:07:56< irker419> wesnoth-umc-dev: EoMa: convert to lowercase to match other abilities 20121202 16:09:53-!- mattsc [~mattsc@d154-20-32-241.bchsia.telus.net] has joined #wesnoth-umc-dev 20121202 16:11:58< irker419> wesnoth-umc-dev: alarantalara * r16297 /trunk/Era_of_Magic/utils/abilities.cfg: 20121202 16:11:59< irker419> wesnoth-umc-dev: EoMa: make mushroom regeneration work with all terrain bases and with illuminated mushroom groves 20121202 16:23:38< irker419> wesnoth-umc-dev: alarantalara * r16298 /trunk/Era_of_Magic/units/Destroyers/corpse_walking.cfg: 20121202 16:23:39< irker419> wesnoth-umc-dev: EoMa: correct a UTF-8 encoding problem 20121202 16:32:32< irker419> wesnoth-umc-dev: alarantalara * r16299 /trunk/Era_of_Magic/utils/abilities.cfg: 20121202 16:32:32< irker419> wesnoth-umc-dev: Change "for attack" to "damage" 20121202 16:34:51< irker419> wesnoth-umc-dev: alarantalara * r16300 /trunk/Era_of_Magic/utils/abilities.cfg: 20121202 16:34:52< irker419> wesnoth-umc-dev: Change "fala" to "area attack" to match name — "fala" appears to mean "wave" in Polish (maybe different translation) 20121202 16:51:59< irker419> wesnoth-umc-dev: alarantalara * r16301 /trunk/Era_of_Magic/factions/ (4 files): 20121202 16:51:59< irker419> wesnoth-umc-dev: Change Niszczyciele to Destroyers 20121202 17:18:50-!- gh0st [~gh0st@89.31.118.161] has quit [Quit: off for sleep] 20121202 17:41:46-!- skyfaller [~skyfaller@67.85.30.221] has joined #wesnoth-umc-dev 20121202 17:41:46-!- skyfaller [~skyfaller@67.85.30.221] has quit [Changing host] 20121202 17:41:46-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20121202 17:57:23-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth-umc-dev 20121202 17:57:42-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20121202 17:58:05-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth-umc-dev 20121202 18:00:09< mattsc> Alarantalara: about your post on the forum, you don't need the persistent storage that's new in 1.10, do you? You could just store moves/attacks in WML variables and then read those from Lua, or am I missing something? 20121202 18:00:50< Alarantalara> You don't to just remember for the current campaign, but if you wanted to improve over all campaigns/multiplayer games, you would 20121202 18:01:14< mattsc> Oh, ok, yes. If that's what he wants that's true. 20121202 18:02:19< Alarantalara> And since the initial question was about writing a C++ AI, I assume that it would be a replacement for the current AI, not just a scenario or campaign specific one 20121202 18:03:45< mattsc> makes sense 20121202 18:10:49< irker419> AI-Demos: mattsc master * r9f18137 / (3 files in 2 dirs): Reintroduce fixes to Patrol MAI that got lost in one of the recent commits - http://git.io/gpH7cw 20121202 18:36:11< irker419> AI-Demos: Martin Bede master * r04ba248 / (8 files in 3 dirs): Added sheep AI. - http://git.io/KTlpTw 20121202 18:36:12< irker419> AI-Demos: Martin Bede master * r76338da / (3 files): Removed useless files. - http://git.io/0RgtzQ 20121202 18:36:13< irker419> AI-Demos: Martin Bede master * rba203ae / (3 files in 2 dirs): Merge branch 'master' of https://github.com/mattsc/Wesnoth-AI-Demos - http://git.io/jB5PRQ 20121202 18:41:06< irker419> AI-Demos: mattsc master * r24ca3f9 / scenarios/swarm.cfg : Remove accidental commit of Swarm MAI delete event - http://git.io/IyjqVw 20121202 20:08:07< mattsc> Alarantalara: for some of the MAIs, it would be nice to allow a SLF in the tag. That can be transferred to a Lua table with wml_actions, no problem. 20121202 20:08:57< mattsc> But then, in order to pass it on to the CAs, we need to convert it to a string. That's kind of a pain, but there's no way around that, I think. Am I missing something? 20121202 20:09:59< Alarantalara> Give me a minute 20121202 20:11:09< Alarantalara> You should be able to just pass the filter on directly going by what I see in micro_ais_wml_tags 20121202 20:11:45< mattsc> But I need to go from WML to Lua syntax 20121202 20:12:09< mattsc> don't I? 20121202 20:12:24< Alarantalara> helper.get_child(cfg, "filter") will return a table in WML form and you can pass that straight to the filter 20121202 20:13:45< mattsc> I think I am missing something somewhere. Let me describe it step by step, to see where I get lost. 20121202 20:14:11< mattsc> Inside the [micro_ai] tag, I want to have a [filter_location] tag. 20121202 20:14:23< mattsc> I can convert that to Lua with helper.get_child. 20121202 20:14:36< mattsc> But then I need to pass it through to the CA somehow, and for that I need a string. 20121202 20:15:00< mattsc> This last step is the one I am wondering about. 20121202 20:15:11< Alarantalara> I don't understand why at the moment. You should be able to pass any variable type in Lua 20121202 20:15:48< Alarantalara> cfg_bd is a table in the bottleneck defense micro AI 20121202 20:16:03< mattsc> The lines defining the evaluation and execution commands/functions are WML lines 20121202 20:16:59< mattsc> Right. And check out bottleneck_defense_CAs.lua for what we have to do with that. 20121202 20:17:10< Alarantalara> That shouldn't matter. activate will bind the filter to an instance of the eval/exec as a closure, and a second activation will give you a different copy of the filter 20121202 20:18:17< mattsc> Oh, hmm, make it "global" through closure...? 20121202 20:18:40< mattsc> That's not how it is currently done. 20121202 20:19:12< mattsc> Remember I didn't even know what closures are until a few days ago. :) 20121202 20:20:40< Alarantalara> Ah I see. Currently you define the functions at load time to get them into the AI body. 20121202 20:20:59< Alarantalara> For some reason I assumed the Lua code was created when activate was called 20121202 20:23:40< mattsc> For all I know, the engine has to be defined at load time. I am pretty sure I have tried to do it later and it doesn't work. 20121202 20:24:28< mattsc> As in, when I created the first MAI, I tried that and failed. 20121202 20:25:01< mattsc> It's another reason why I would like to go over to the external CA method when it is ready. 20121202 20:25:56< Alarantalara> That wouldn't help until we get parameters there 20121202 20:26:17< mattsc> No, it would not, but it would help with some other problems. 20121202 20:26:42< mattsc> This conversation sounds eerily familiar, as if we've had it before ... 20121202 20:26:54< Alarantalara> It's certainly possible 20121202 20:27:08-!- Blueblaze [~Blueblaze@76.202.20.214] has joined #wesnoth-umc-dev 20121202 20:27:12< mattsc> So the closure method won't work then for getting the cfg's transferred? 20121202 20:27:16< Alarantalara> Fortunately there are lots of pre-written libraries in Lua to convert to a string and back. Look up serialization if you're interested 20121202 20:29:01< Alarantalara> We'd have to be able to get code into the AI engine 20121202 20:29:06< Alarantalara> to use closures 20121202 20:29:21< mattsc> Well, the (in)famous WLP dbms certainly does something like that... (converting WML tables to strings) 20121202 20:29:29< mattsc> Ok, and we cannot do that atm. 20121202 20:30:03< mattsc> sorry, Lua tables to strings, is what I mean 20121202 20:30:48< Alarantalara> can we use modify_ai to add a stage? 20121202 20:31:18< mattsc> Yes, but the stage does not contain the engine. 20121202 20:31:33< Alarantalara> Right 20121202 20:32:37< mattsc> I'm having a chat with Nephro tomorrow about exactly what we want out of the external CAs. Getting parameters to them is on the list to talk about already. 20121202 20:33:41< mattsc> In the meantime, does this sound like a good GCI task? Write a function that converts a Lua WML table to a string (in Lua table format) 20121202 20:40:10< Alarantalara> Not really: http://www.lua.org/pil/12.1.1.html 20121202 20:40:40< Alarantalara> http://lua-users.org/wiki/TableSerialization 20121202 20:40:51< Alarantalara> Has some pre-done versions of varying complexity 20121202 20:41:48< mattsc> Cool ... 20121202 20:42:21-!- Octalot [~noct@86.145.94.15] has joined #wesnoth-umc-dev 20121202 20:42:22< Alarantalara> Almost all of them are set up so that Lua can read them back using just loadstring 20121202 20:43:45< mattsc> Well, we don't need to load them back as whatever code reads evaluation= already does that for us. 20121202 20:44:58< mattsc> So, I guess we can put serialize() into ..._wml_tags.lua, and do the serialization there, rather than in the *_CAs.lua files 20121202 20:45:26< Alarantalara> It probably uses a loadstring equivalent, so it's still what you'd want 20121202 20:46:59< mattsc> That would mean passing a few unneeded parameters to _eval or _exec if not both need all parameters, but that's not really a problem. And it avoids having serialize defined or included in each of the *_CAs.lua files. 20121202 20:53:28< mattsc> Alarantalara: you're not currently working on this, are you? 20121202 20:53:42< Alarantalara> No, I'm playing an excessively long game of Wesnoth 20121202 20:53:59< mattsc> Ok, cool. I'll put a serialize function into ai_helper then 20121202 20:54:21< mattsc> Have fun with your game. 20121202 20:54:50< Alarantalara> It's multiplay so I have a lot of extra time 20121202 20:54:56< Alarantalara> *multiplayer 20121202 20:55:41< mattsc> Ok. I'll let you do it if you want, but I'll just use the one from the Lua manual otherwise. 20121202 20:55:50< Alarantalara> Sounds fine with me 20121202 20:56:17< mattsc> It just needs that little bit of extra code for numerical keys. And, of course, I don't want it to write to a file. 20121202 21:11:53< mattsc> Well, I need some other modifications for our purpose as well, but that should be so hard. 20121202 21:13:18< mattsc> Alarantalara: for example, type=Peasant in WML would be translated to { type = Peasant }, which is almost the same, but not quite. 20121202 21:15:00< Alarantalara> I don't think you'll need anything for that since you should be able to just serialize the return value from helper.get_child 20121202 21:15:32< Alarantalara> Which is a table, so that should cover everything 20121202 21:15:43< mattsc> But I need to put quotes around the Peasant... 20121202 21:16:08< Alarantalara> It's a string, so that should be dealt with too :) 20121202 21:16:18< mattsc> Oh, just noticed that that's what string.format('%q') does ... 20121202 21:16:25< mattsc> Right 20121202 21:16:43< mattsc> Argh... 20121202 21:17:24< irker419> wesnoth-umc-dev: anonymissimus * r16302 /trunk/Plan_Your_Advancements_Era/mod-pya.cfg: 20121202 21:17:24< irker419> wesnoth-umc-dev: PYAM: fix error when run without debug mode 20121202 21:18:00< irker419> wesnoth-umc-dev: anonymissimus * r16303 /trunk/Plan_Your_Advancements_Era/dist/version: 20121202 21:18:00< irker419> wesnoth-umc-dev: PYAM: bump version, releasing 20121202 21:21:47-!- ancestral [~ancestral@65-128-234-158.mpls.qwest.net] has joined #wesnoth-umc-dev 20121202 21:24:11< mattsc> Ok, I think I've tested it thoroughly... 20121202 21:24:45< irker419> AI-Demos: mattsc master * r8d397ba / lua/ai_helper.lua : Add function ai_helper.serialize() - http://git.io/rDhWMg 20121202 21:42:26-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20121202 22:13:48-!- Blueblaze [~Blueblaze@76.202.20.214] has quit [Quit: Blueblaze] 20121202 22:59:16-!- Crendgrim [~crend@port-92-204-30-76.dynamic.qsc.de] has quit [Quit: ...] 20121202 23:38:24< irker419> AI-Demos: mattsc master * r5ad02a8 / lua/ai_helper.lua : ai_helper.serialize: add handling of boolean parameters - http://git.io/PIUI-Q 20121202 23:38:25< irker419> AI-Demos: mattsc master * r4247933 / (2 files): Bottleneck MAI: use ai_helper.serialize to transfer cfg - http://git.io/u344EA 20121202 23:40:51< irker419> AI-Demos: mattsc master * r2d6d70d / (2 files): Bottleneck MAI: rename CA add/delete functions - http://git.io/XgTIXg 20121202 23:52:50-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 255 seconds] 20121202 23:57:18< irker419> AI-Demos: mattsc master * rb6eb115 / (14 files): All other MAIs: rename activate/remove to add/delete - http://git.io/FJoPNg --- Log closed Mon Dec 03 00:00:43 2012