--- Log opened Fri Jun 26 00:00:35 2015 20150626 00:01:17-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 265 seconds] 20150626 00:09:56-!- jemadux [~jemadux@unaffiliated/jemadux] has quit [Read error: Connection reset by peer] 20150626 00:13:17-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150626 00:17:32-!- JackBauer24 [~JackBauer@89-76-206-248.dynamic.chello.pl] has quit [Ping timeout: 264 seconds] 20150626 00:26:13-!- Afdal [~IceChat77@host-174-45-178-216.chy-wy.client.bresnan.net] has joined #wesnoth 20150626 01:49:19-!- Crendgrim [~crend@wesnoth/forum-moderator/crendgrim] has quit [Ping timeout: 276 seconds] 20150626 02:00:26-!- ancientcc [~ancientcc@61.164.211.211] has joined #wesnoth 20150626 02:05:33-!- Crendgrim [~crend@wesnoth/forum-moderator/crendgrim] has joined #wesnoth 20150626 02:07:56-!- ancientcc [~ancientcc@61.164.211.211] has quit [Read error: Connection reset by peer] 20150626 02:08:55-!- Guest9994 [~JeDa@unaffiliated/jeda] has quit [Ping timeout: 244 seconds] 20150626 02:19:38-!- ancientcc [~ancientcc@118.187.21.49] has joined #wesnoth 20150626 02:23:55-!- ancientcc [~ancientcc@118.187.21.49] has quit [Read error: Connection reset by peer] 20150626 02:27:59< Yaiyan> Why do logs of me talking here 6 years ago still have to exist... 20150626 02:28:16< Yaiyan> I don't even remember ever even having used text-speak 20150626 02:29:51-!- Jetrel [~Jetrel@c-73-164-34-22.hsd1.mn.comcast.net] has joined #wesnoth 20150626 02:33:51-!- ArneBab [~quassel@55d47aed.access.ecotel.net] has joined #wesnoth 20150626 02:37:03-!- ArneBab_ [~quassel@55d402a5.access.ecotel.net] has quit [Ping timeout: 248 seconds] 20150626 02:40:17-!- localuser- [~none@unaffiliated/localuser-] has quit [Remote host closed the connection] 20150626 02:42:22-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20150626 02:42:44< shadowm> I don't even remember you. 20150626 02:43:09< Yaiyan> Unnheulu 20150626 02:43:16< Yaiyan> I wound you up a bit if I recall 20150626 02:44:18< shadowm> Yeah, doesn't ring a bell. 20150626 02:44:33< Yaiyan> Ok, that's good - the less people who remember younger me, the better 20150626 02:44:41< shadowm> Just kidding. 20150626 02:44:46< shadowm> >:) 20150626 02:44:59< shadowm> No-one reads old logs, it's all immaterial. 20150626 02:45:31< shadowm> Let the past go and aim towards the future. 20150626 02:45:43< shadowm> Insert crappy motivational speech here. 20150626 02:46:52< Yaiyan> Haha, hopefully that's the case 20150626 02:47:15< Yaiyan> Trying to improve my C++ to a state I can start contributing to anywhere I was an irritant to try and make up a little 20150626 02:52:03< Afdal> okay, so 20150626 02:52:09< Afdal> Can someone explain this simple line here to me 20150626 02:52:10< Afdal> local helper = wesnoth.require "lua/helper.lua" 20150626 02:53:04< Afdal> whatever wesnoth.require is, it's not referenced in helper.lua anywhere 20150626 02:53:27< shadowm> You can read that as `local helper = wesnoth.require("lua/helper.lua")`. 20150626 02:53:44< shadowm> It's a function call, an wesnoth.require is a function provided by Wesnoth's built-in Lua interpreter library. 20150626 02:54:01-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150626 02:54:07< shadowm> And here is its documentation: http://wiki.wesnoth.org/LuaWML:Files#wesnoth.require 20150626 02:54:14< Afdal> thanks 20150626 02:54:26< Afdal> oh okay 20150626 02:54:43< Afdal> so wesnoth.require is just a function for loading code files relative to the Wesnoth install directory? 20150626 02:54:55< Afdal> Where can I find all these built-in functions? 20150626 02:55:27< shadowm> Relative to both the core data dir and the user data dir. 20150626 02:55:56< shadowm> All of the wesnoth.* functions in http://wiki.wesnoth.org/LuaWML are provided by the interpreter itself so you don't need to load any additional files to use them. 20150626 02:56:07-!- JeDa_ [~JeDa@unaffiliated/jeda] has joined #wesnoth 20150626 02:56:18< Afdal> great, thanks :) 20150626 02:56:25< shadowm> It's just the helper.lua functions that are optional for some reason I don't know. 20150626 03:12:52< Afdal> so hard to learn from some of these mods because nobody annotates their code .~. 20150626 03:22:27-!- ancientcc [~ancientcc@61.164.211.211] has joined #wesnoth 20150626 03:22:55-!- shadowm_desktop [ignacio@wesnoth/developer/shadowm] has quit [Ping timeout: 248 seconds] 20150626 03:23:41-!- ancientcc_ [~ancientcc@183.131.105.162] has joined #wesnoth 20150626 03:24:06-!- ancientcc_ [~ancientcc@183.131.105.162] has quit [Client Quit] 20150626 03:24:42-!- shadowm_desktop [ignacio@wesnoth/developer/shadowm] has joined #wesnoth 20150626 03:26:09-!- ancientcc_ [~ancientcc@183.131.105.162] has joined #wesnoth 20150626 03:27:11-!- ancientcc [~ancientcc@61.164.211.211] has quit [Ping timeout: 265 seconds] 20150626 03:27:34-!- ancientcc_ [~ancientcc@183.131.105.162] has quit [Read error: Connection reset by peer] 20150626 03:28:45-!- ancientcc [~ancientcc@183.131.105.162] has joined #wesnoth 20150626 03:31:36-!- ancientcc [~ancientcc@183.131.105.162] has quit [Client Quit] 20150626 03:43:08-!- ancientcc [~ancientcc@114.111.166.47] has joined #wesnoth 20150626 03:45:01-!- ancientcc [~ancientcc@114.111.166.47] has quit [Read error: Connection reset by peer] 20150626 04:22:51-!- ancientcc [~ancientcc@114.111.166.47] has joined #wesnoth 20150626 04:23:00-!- ancientcc [~ancientcc@114.111.166.47] has quit [Read error: Connection reset by peer] 20150626 04:57:33-!- shadowm_desktop2 [ignacio@wesnoth/developer/shadowm] has joined #wesnoth 20150626 04:57:34-!- shadowm_desktop [ignacio@wesnoth/developer/shadowm] has quit [Ping timeout: 255 seconds] 20150626 05:02:48-!- shadowm_desktop2 [ignacio@wesnoth/developer/shadowm] has quit [Read error: Connection reset by peer] 20150626 05:03:19-!- shadowm_desktop [ignacio@wesnoth/developer/shadowm] has joined #wesnoth 20150626 05:12:13-!- shurnormal [~uxio@unaffiliated/ushiu] has quit [Quit: WeeChat 0.3.8] 20150626 05:18:50-!- jemadux [~jemadux@unaffiliated/jemadux] has joined #wesnoth 20150626 05:33:40-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20150626 05:38:19-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150626 05:38:45-!- Haldrik [~haldrik@unaffiliated/haldrik] has joined #wesnoth 20150626 05:47:52< Afdal> yeah... 20150626 05:48:01< Afdal> learning Lua and WML wasn't even the hard part of this 20150626 05:48:09< Afdal> Are there any uh 20150626 05:48:12< Afdal> more directed guides 20150626 05:48:34< Afdal> to learning all the important Wesnoth methods to call upon for modding? 20150626 05:49:06< Afdal> /classes 20150626 05:50:59-!- Panda_ [~IMO@2a01:e35:8aae:fcb0:a6fd:e761:fbcd:cbc2] has joined #wesnoth 20150626 05:54:52< Afdal> Does Wesnoth have a debug more or something 20150626 05:55:03< Afdal> so I can see what code is being executed when stuff happens 20150626 05:55:04< Afdal> mode* 20150626 06:24:07< celticminstrel> There is a debug mode, but I don't think there's anything like a debugger. 20150626 06:24:37< celticminstrel> Debug mode basically gives you "cheats" to help testing. 20150626 06:26:07< celticminstrel> I remember something about a Lua console too, but not sure if that was in 1.12 or 1.13. 20150626 06:26:27< celticminstrel> Oh, there's the [inspect] WML tag. 20150626 06:26:43< Afdal> ? 20150626 06:26:45-!- Blueblaze [~Blueblaze@ip68-3-130-159.ph.ph.cox.net] has joined #wesnoth 20150626 06:26:57< celticminstrel> Let me look it up quickly to make sure I'm getting this right. 20150626 06:27:44< celticminstrel> http://wiki.wesnoth.org/InterfaceActionsWML#.5Binspect.5D 20150626 06:27:56< celticminstrel> It's a WML tag and also a chat command. 20150626 06:28:07< Afdal> hmm 20150626 06:28:10< celticminstrel> And, you can of course invoke it from Lua as well. 20150626 06:28:12< Afdal> Does that only work on WML sutff though 20150626 06:28:16< Afdal> stuff 20150626 06:28:27< celticminstrel> It basically lets you view the gamestate. 20150626 06:28:59< celticminstrel> Using the command, you can view the gamestate anytime the user has control; with the tag, you can view the gamestate sometime in the middle of an action. 20150626 06:29:16< Afdal> So how would I use this in-game? 20150626 06:29:39< celticminstrel> http://wiki.wesnoth.org/CommandMode 20150626 06:29:48< celticminstrel> Enable debug with :debug, then type :inspect. 20150626 06:29:53< Afdal> thanks :3 20150626 06:30:02< celticminstrel> To use the tag in a WML event, just include [inspect][/inspect]. 20150626 06:30:25< Afdal> hmm 20150626 06:30:50< Afdal> Unknown command ':debug'. try :help for a list of available commands. 20150626 06:30:54< celticminstrel> Or call it from Lua with wesnoth.wml_actions.inspect. 20150626 06:31:02-!- Blueblaze [~Blueblaze@ip68-3-130-159.ph.ph.cox.net] has quit [Client Quit] 20150626 06:31:14< celticminstrel> Or wesnoth.wml_actions.inspect(identifier) 20150626 06:31:18< Afdal> oh, no colon 20150626 06:31:20< celticminstrel> Might need () on the end of the first, I forget. 20150626 06:31:41< celticminstrel> The colon is because usually you type the colon to open the command prompt, then enter "debug". 20150626 06:31:50< celticminstrel> Though I think you can change colon. 20150626 06:32:48< Afdal> ah 20150626 06:32:57< celticminstrel> Oh, sorry, if you want an identifier it looks like you'd call it as wesnoth.wml_actions.inspect{name='identifier'} 20150626 06:35:36 * celticminstrel sleep 20150626 06:35:41-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has quit [Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] 20150626 06:36:39-!- Blueblaze [~Blueblaze@ip68-3-130-159.ph.ph.cox.net] has joined #wesnoth 20150626 06:40:01-!- Appleman1234_ [~Appleman1@KD106149231216.au-net.ne.jp] has joined #wesnoth 20150626 06:43:27-!- Appleman1234 [~Appleman1@KD106149252101.au-net.ne.jp] has quit [Ping timeout: 248 seconds] 20150626 06:47:26-!- Panda_ [~IMO@2a01:e35:8aae:fcb0:a6fd:e761:fbcd:cbc2] has quit [Remote host closed the connection] 20150626 06:49:09-!- Appleman1234_ is now known as Appleman1234 20150626 06:49:36-!- Kwandulin [~Miranda@p5B0094DB.dip0.t-ipconnect.de] has joined #wesnoth 20150626 06:54:35-!- [Relic] [~Relic]@2602:306:33a3:6d30:3cfc:f7a1:ee5a:4fb1] has quit [Quit: I press the magic X and all the weirdos go away!] 20150626 06:56:35-!- Appleman1234_ [~Appleman1@KD059136017145.au-net.ne.jp] has joined #wesnoth 20150626 06:58:21-!- Appleman1234 [~Appleman1@KD106149231216.au-net.ne.jp] has quit [Ping timeout: 246 seconds] 20150626 07:29:32-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 264 seconds] 20150626 07:36:47-!- Blueblaze [~Blueblaze@ip68-3-130-159.ph.ph.cox.net] has quit [Quit: Blueblaze] 20150626 07:38:15-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 08:06:11-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth 20150626 08:41:35-!- ancientcc [~ancientcc@118.187.21.45] has joined #wesnoth 20150626 08:42:28-!- ancientcc [~ancientcc@118.187.21.45] has quit [Read error: Connection reset by peer] 20150626 09:08:32-!- Kwandulin [~Miranda@p5B0094DB.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20150626 09:08:53-!- namad8 [~aaaaa@pool-98-111-253-226.pitbpa.fios.verizon.net] has quit [Ping timeout: 252 seconds] 20150626 09:09:49-!- husanu5 [~husanu5@91.199.104.6] has joined #wesnoth 20150626 09:18:17-!- husanu5 [~husanu5@91.199.104.6] has quit [Remote host closed the connection] 20150626 09:23:25-!- husanu4 [~husanu4@91.199.104.6] has joined #wesnoth 20150626 09:28:41-!- husanu4 [~husanu4@91.199.104.6] has quit [Killed (marienz (Drones are not welcome on freenode.))] 20150626 09:28:52-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has quit [Quit: #AncientBeast - Master Your Beasts ( www.AncientBeast.com )] 20150626 09:29:13-!- shadowm_desktop [ignacio@wesnoth/developer/shadowm] has quit [Ping timeout: 264 seconds] 20150626 09:33:22-!- namad7 [aaaaa@pool-98-111-253-226.pitbpa.fios.verizon.net] has joined #wesnoth 20150626 09:43:20-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20150626 09:54:58-!- Appleman1234_ [~Appleman1@KD059136017145.au-net.ne.jp] has quit [Ping timeout: 256 seconds] 20150626 10:00:57-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20150626 10:03:52-!- Appleman1234_ [~Appleman1@KD106149242189.au-net.ne.jp] has joined #wesnoth 20150626 10:08:02-!- Kwandulin [~Miranda@p5B0094DB.dip0.t-ipconnect.de] has joined #wesnoth 20150626 10:15:42-!- Appleman1234_ is now known as Appleman1234 20150626 10:46:13-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 276 seconds] 20150626 10:54:16-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 11:03:16-!- jemadux [~jemadux@unaffiliated/jemadux] has quit [Remote host closed the connection] 20150626 11:35:23-!- prkc [~prkc@catv-89-134-173-244.catv.broadband.hu] has quit [Remote host closed the connection] 20150626 11:54:37-!- Elouin_ [~Elouin@p200300454431CF00CA6000FFFED11D67.dip0.t-ipconnect.de] has joined #wesnoth 20150626 12:47:45-!- HeyCitizen [~HeyCitize@69.156.207.152] has quit [Quit: Coyote finally caught me] 20150626 12:50:14-!- HeyCitizen [~HeyCitize@69.156.207.152] has joined #wesnoth 20150626 12:58:47-!- ancientcc [~ancientcc@61.164.211.214] has joined #wesnoth 20150626 13:00:40-!- ancientcc [~ancientcc@61.164.211.214] has quit [Client Quit] 20150626 13:05:07-!- ancientcc [~ancientcc@118.187.21.54] has joined #wesnoth 20150626 13:05:49-!- ancientcc [~ancientcc@118.187.21.54] has quit [Client Quit] 20150626 13:14:06-!- Kwandulin [~Miranda@p5B0094DB.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20150626 13:14:07-!- ancientcc_ [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:15:01-!- ancientcc_ [~ancientcc@114.111.166.43] has quit [Remote host closed the connection] 20150626 13:15:16-!- ancientcc_ [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:16:21-!- Appleman1234 [~Appleman1@KD106149242189.au-net.ne.jp] has quit [Ping timeout: 246 seconds] 20150626 13:22:23-!- ancientcc_ [~ancientcc@114.111.166.43] has quit [Ping timeout: 250 seconds] 20150626 13:28:29-!- ancientcc [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:29:05-!- ancientcc [~ancientcc@114.111.166.43] has quit [Client Quit] 20150626 13:29:31-!- Appleman1234 [~Appleman1@KD106149242189.au-net.ne.jp] has joined #wesnoth 20150626 13:29:33-!- ancientcc [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:30:07-!- ancientcc [~ancientcc@114.111.166.43] has quit [Read error: Connection reset by peer] 20150626 13:30:24-!- ancientcc [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:31:17-!- ancientcc [~ancientcc@114.111.166.43] has quit [Read error: Connection reset by peer] 20150626 13:31:33-!- ancientcc [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:32:51-!- ancientcc [~ancientcc@114.111.166.43] has quit [Read error: Connection reset by peer] 20150626 13:33:09-!- ancientcc [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:33:25-!- ancientcc [~ancientcc@114.111.166.43] has quit [Client Quit] 20150626 13:33:59-!- ancientcc [~ancientcc@61.164.211.214] has joined #wesnoth 20150626 13:36:13-!- Haudegen [~quassel@85.124.51.57] has quit [Remote host closed the connection] 20150626 13:39:25-!- ancientcc [~ancientcc@61.164.211.214] has quit [Ping timeout: 264 seconds] 20150626 13:39:25-!- wario [~wario_@unaffiliated/wario] has quit [Ping timeout: 264 seconds] 20150626 13:39:50-!- ancientcc [~ancientcc@183.131.105.175] has joined #wesnoth 20150626 13:40:59-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 13:41:04-!- ancientcc [~ancientcc@183.131.105.175] has quit [Read error: Connection reset by peer] 20150626 13:41:35-!- ancientcc [~ancientcc@183.131.105.175] has joined #wesnoth 20150626 13:42:07-!- Haudegen [~quassel@85.124.51.57] has quit [Read error: Connection reset by peer] 20150626 13:42:55-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 13:44:34-!- Haudegen [~quassel@85.124.51.57] has quit [Read error: Connection reset by peer] 20150626 13:47:00-!- ancientcc [~ancientcc@183.131.105.175] has quit [Ping timeout: 252 seconds] 20150626 13:47:12-!- ancientcc [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:48:27-!- ancientcc [~ancientcc@114.111.166.43] has quit [Remote host closed the connection] 20150626 13:48:45-!- ancientcc [~ancientcc@114.111.166.43] has joined #wesnoth 20150626 13:48:51-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 13:53:33-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 264 seconds] 20150626 13:56:38-!- ancientcc [~ancientcc@114.111.166.43] has quit [Remote host closed the connection] 20150626 13:56:58-!- ancientcc [~ancientcc@61.164.211.214] has joined #wesnoth 20150626 13:57:24-!- ancientcc [~ancientcc@61.164.211.214] has quit [Remote host closed the connection] 20150626 14:00:02-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 14:10:10-!- ancientcc [~ancientcc@61.164.211.214] has joined #wesnoth 20150626 14:10:20-!- ancientcc [~ancientcc@61.164.211.214] has quit [Remote host closed the connection] 20150626 14:10:49-!- ancientcc [~ancientcc@61.164.211.214] has joined #wesnoth 20150626 14:11:24-!- ancientcc [~ancientcc@61.164.211.214] has quit [Remote host closed the connection] 20150626 14:11:39-!- ancientcc [~ancientcc@61.164.211.214] has joined #wesnoth 20150626 14:12:06-!- ancientcc [~ancientcc@61.164.211.214] has quit [Remote host closed the connection] 20150626 14:12:19-!- ancientcc [~ancientcc@61.164.211.214] has joined #wesnoth 20150626 14:19:11-!- Kwandulin [~Miranda@p5B0094DB.dip0.t-ipconnect.de] has joined #wesnoth 20150626 14:33:39-!- ancientcc [~ancientcc@61.164.211.214] has quit [Quit: Leaving] 20150626 14:56:40-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 252 seconds] 20150626 14:58:25-!- [Relic] [~Relic]@2602:306:33a3:6d30:f15d:351d:774e:8ebb] has joined #wesnoth 20150626 15:01:28-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150626 15:04:29-!- Appleman1234_ [~Appleman1@KD059136030076.au-net.ne.jp] has joined #wesnoth 20150626 15:04:52-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 15:07:32-!- Appleman1234 [~Appleman1@KD106149242189.au-net.ne.jp] has quit [Ping timeout: 244 seconds] 20150626 15:15:32-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20150626 15:23:01-!- wario [~wario_@unaffiliated/wario] has quit [Read error: Connection reset by peer] 20150626 15:26:11-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20150626 15:35:17-!- Jake_1 [~chatzilla@ool-ad024d86.dyn.optonline.net] has joined #wesnoth 20150626 15:35:51< Jake_1> Hello, is there a way to filter a radius in one particular direction based on a unit's facing? 20150626 15:40:23< zookeeper> sure 20150626 15:40:29< Jake_1> https://dpaste.de/3hvO 20150626 15:40:34< Jake_1> that was my attempt 20150626 15:40:49< Jake_1> I do not think it worked. 20150626 15:41:08< zookeeper> which locations does it store? 20150626 15:41:40< zookeeper> oh, well, that's because there's no direction= 20150626 15:41:57< Jake_1> it is within a menu item, so it is supposed to store up to 10 spaces in that direction from where you click it 20150626 15:42:28< zookeeper> i'd say replace the contents of [filter_radius] with [filter_adjacent_location] adjacent=$unit.facing [/filter_adjacent_location] 20150626 15:42:50< Jake_1> okay thank you! 20150626 15:43:31< zookeeper> eh, no, that alone won't do 20150626 15:43:34 * zookeeper thinks 20150626 15:44:57< zookeeper> i'm inclined to say you can't do that in a single SLF 20150626 15:45:06< Jake_1> I just need it to only take the radius out in one direction 20150626 15:45:15< Jake_1> What is an SLF? 20150626 15:45:22< zookeeper> StandardLocationFilter 20150626 15:45:24< Jake_1> ah 20150626 15:46:10< zookeeper> i mean, you can nest a pile of [filter_adjacent_location]s and [or]s, but it gets pretty messy when you get 10 levels deep 20150626 15:46:25< Jake_1> eh 20150626 15:46:31< Jake_1> I don't mind 20150626 15:46:43< Jake_1> its already pretty deep and messy 20150626 15:46:45< zookeeper> but i don't think there's a way to expand the radius by more than 1 step in only one direction 20150626 15:47:01< zookeeper> however, a simple loop to do that would be easy to do 20150626 15:47:55< Jake_1> thank you 20150626 15:48:04< zookeeper> give me a few minutes, i'll draw up something... 20150626 15:48:12< Jake_1> Thank you very much! 20150626 15:54:22< zookeeper> oh, actually it's a bit tricky, but i'm almost there... 20150626 15:54:41< Jake_1> Thanks again! Take your time. 20150626 16:00:10< zookeeper> i think this does it: https://dpaste.de/i8xk#L8 20150626 16:00:50< zookeeper> i assume the menu item only works on a unit? 20150626 16:02:07< Jake_1> Yeah 20150626 16:02:07< zookeeper> i don't actually even recall if $unit is available in menu items automatically... probably it is 20150626 16:02:12< Jake_1> Thank you! 20150626 16:02:41< Jake_1> I think this will work. 20150626 16:02:52< Jake_1> Thanks a lot. You have it repeat 3 times? 20150626 16:03:05< Jake_1> should I just fill in the number I want for the radius? 20150626 16:04:03-!- TheJJ [~rofl@ipbcc182e2.dynamic.kabel-deutschland.de] has quit [Read error: Connection reset by peer] 20150626 16:05:01-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20150626 16:05:34-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150626 16:07:08-!- Appleman1234_ [~Appleman1@KD059136030076.au-net.ne.jp] has quit [Ping timeout: 272 seconds] 20150626 16:07:45< zookeeper> oh right, yeah replace the number 20150626 16:07:47-!- DeFender [~DeFender1@93-173-27-11.bb.netvision.net.il] has quit [Quit: I'm not back now.] 20150626 16:11:19-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has joined #wesnoth 20150626 16:11:28-!- salluc69 [~lucky@host196-199-dynamic.24-79-r.retail.telecomitalia.it] has quit [Quit: Sto andando via] 20150626 16:20:43-!- Appleman1234 [~Appleman1@KD059136030095.au-net.ne.jp] has joined #wesnoth 20150626 16:39:10-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 276 seconds] 20150626 16:39:28< Jake_1> It works! Thank you! 20150626 16:55:15-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 17:01:50-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20150626 17:06:46< zookeeper> great 20150626 17:07:17< zookeeper> (remember to clear the variable too, otherwise subsequent invocations will just keep growing the wind array) 20150626 17:09:14-!- salluc69 [~lucky@host196-199-dynamic.24-79-r.retail.telecomitalia.it] has joined #wesnoth 20150626 17:09:28< Jake_1> Don't worry I never forget that stuff 20150626 17:09:30< Jake_1> :) 20150626 17:27:29-!- Kwandulin [~Miranda@p5B0094DB.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20150626 17:33:30-!- [Relic] [~Relic]@2602:306:33a3:6d30:f15d:351d:774e:8ebb] has quit [Quit: I press the magic X and all the weirdos go away!] 20150626 17:36:40-!- [Relic] [~Relic]@2602:306:33a3:6d30:e5aa:9b09:6187:6b91] has joined #wesnoth 20150626 17:49:43-!- Kwandulin [~Miranda@p5B0094DB.dip0.t-ipconnect.de] has joined #wesnoth 20150626 17:49:51-!- Appleman1234_ [~Appleman1@KD106149237054.au-net.ne.jp] has joined #wesnoth 20150626 17:52:54-!- Appleman1234 [~Appleman1@KD059136030095.au-net.ne.jp] has quit [Ping timeout: 272 seconds] 20150626 17:54:31-!- Appleman1234_ [~Appleman1@KD106149237054.au-net.ne.jp] has quit [Ping timeout: 256 seconds] 20150626 18:06:57-!- Appleman1234_ [~Appleman1@KD106149237054.au-net.ne.jp] has joined #wesnoth 20150626 18:08:49-!- Jake_1 [~chatzilla@ool-ad024d86.dyn.optonline.net] has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.5/20150525141253]] 20150626 18:16:24-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has joined #wesnoth 20150626 18:33:41-!- Panda_ [~IMO@2a01:e35:8aae:fcb0:a6fd:e761:fbcd:cbc2] has joined #wesnoth 20150626 18:40:03-!- lipkab [~lipkab@host-91-147-210-193.biatv.hu] has joined #wesnoth 20150626 18:43:35-!- claymore2 [~hexchat@host86-185-16-226.range86-185.btcentralplus.com] has joined #wesnoth 20150626 19:01:07-!- Yaiyan [~ieuan@host81-156-65-125.range81-156.btcentralplus.com] has quit [Quit: Ex-Chat] 20150626 19:01:29-!- Yaiyan_ [~ieuan@host81-156-65-125.range81-156.btcentralplus.com] has joined #wesnoth 20150626 19:01:29-!- Yaiyan [~ieuan@host81-156-65-125.range81-156.btcentralplus.com] has joined #wesnoth 20150626 19:02:23-!- Yaiyan_ [~ieuan@host81-156-65-125.range81-156.btcentralplus.com] has quit [Read error: Connection reset by peer] 20150626 19:12:58-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has quit [Quit: #AncientBeast - Master Your Beasts ( www.AncientBeast.com )] 20150626 19:23:28-!- claymore2 [~hexchat@host86-185-16-226.range86-185.btcentralplus.com] has quit [Ping timeout: 272 seconds] 20150626 19:45:29-!- Appleman1234__ [~Appleman1@KD106149231092.au-net.ne.jp] has joined #wesnoth 20150626 19:49:01-!- Appleman1234_ [~Appleman1@KD106149237054.au-net.ne.jp] has quit [Ping timeout: 264 seconds] 20150626 19:51:05-!- wario [~wario_@unaffiliated/wario] has quit [Ping timeout: 250 seconds] 20150626 20:15:48-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20150626 20:24:24-!- Jake_1 [~chatzilla@ool-ad024d86.dyn.optonline.net] has joined #wesnoth 20150626 20:26:12< Jake_1> Hello again, does anyone know if there is a way to prevent units from being destroyed when they are accidentally set to unstore on invalid x,y coordinates? 20150626 20:27:03< Jake_1> Like I have a script that pushes units back by storing them, (kill=yes) and then adding or subtracting the distance to their coordinates. 20150626 20:27:11< Jake_1> and the unstoring them 20150626 20:27:13< Jake_1> then* 20150626 20:27:40< c74d> Jake_1: why use manual storing/unstoring rather than [modify_unit]? 20150626 20:27:44< Jake_1> but nearby a map edge it just kills them instead 20150626 20:28:01< Jake_1> I do not know, I am just comfortable with it I suppose. 20150626 20:28:26< c74d> (I don't know whether using [modify_unit] would fix your problem, though.) 20150626 20:29:55< Jake_1> I really don't feel like having a bunch of nested [if] tags so I was wondering if there is an easier way to just have them end up somewhere on the map instead of dieing. 20150626 20:33:11< Ravana_> find_vacant=yes wouldn't work? 20150626 20:33:33< Jake_1> No, it didn't. 20150626 20:34:26< Ravana_> going to check how core teleport macros work, one of those might be useful 20150626 20:35:04< Ravana_> however making sure location is valid would still be good idea 20150626 20:35:19< Ravana_> like steelhive knockback can currently move unit to unreachable place 20150626 20:35:46< Jake_1> oh, it can? 20150626 20:36:03< Jake_1> I am talking about a place outside the map's dimensions. 20150626 20:36:16< Jake_1> I am going to just [store_map_dimensions] 20150626 20:36:22< Jake_1> and do a check 20150626 20:36:28< Jake_1> to correct before placement 20150626 20:36:41< Ravana_> even then, just make sure that the hex unit would be moved in valid for him 20150626 20:37:27< Ravana_> if it pushes back multiple hexes then check if target can be reached from source too 20150626 20:38:24< Jake_1> Yeah I think find_vacant actually does its job in that respect though, just not when they are taken off of the map's x,y plane 20150626 20:38:46< Jake_1> It has been working well in those situations for this ability, anyway 20150626 20:38:58< Ravana_> find_vacant doesn't make sure that hex is reachable from source 20150626 20:39:48< zookeeper> if you only need to push units back by one hex then, as said, there ought to be plenty of knockback implementations around 20150626 20:40:31< Jake_1> it is three hexes 20150626 20:40:36< Jake_1> in various directions 20150626 20:41:30< Jake_1> https://dpaste.de/WT4s 20150626 20:41:37< Jake_1> This is how I am fixing it 20150626 20:41:59< Jake_1> the variable map is the map dimensions 20150626 20:42:09< Jake_1> and the variable guy is the stored unit 20150626 20:43:19< Jake_1> also I messed up that code, I fixed it 20150626 20:46:11< Jake_1> https://dpaste.de/wsfQ#L 20150626 20:47:14< Ravana_> in these cases | is not needed 20150626 20:49:38< Jake_1> Isn't it nicer though? :P 20150626 20:50:21< Jake_1> I like to keep a habit of always putting them because I often have variables on variables on variables 20150626 20:56:54< Jake_1> Thank you for the help. 20150626 20:58:45< celticminstrel> Steelhive has knockback? 20150626 21:05:49< Ravana_> ageless version of it does 20150626 21:07:11< celticminstrel> Why? 20150626 21:07:27< celticminstrel> (Assuming it was added by Ageless) 20150626 21:08:43< Ravana_> no idea, from before my time 20150626 21:19:00-!- ancestral [~ancestral@63.92.240.233] has joined #wesnoth 20150626 21:25:31-!- Jake_1 [~chatzilla@ool-ad024d86.dyn.optonline.net] has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.5/20150525141253]] 20150626 21:25:33-!- ancestral [~ancestral@63.92.240.233] has quit [Quit: i go nstuf kthxbai] 20150626 21:35:14-!- Haldrik [~haldrik@unaffiliated/haldrik] has quit [Quit: Haldrik] 20150626 21:38:39-!- wario [~wario_@unaffiliated/wario] has quit [Ping timeout: 244 seconds] 20150626 21:40:55-!- shadowm_desktop [ignacio@wesnoth/developer/shadowm] has joined #wesnoth 20150626 21:57:48-!- Kwandulin [~Miranda@p5B0094DB.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20150626 22:01:01-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20150626 22:24:52< Yaiyan> Is anyone else having issues building the git version? 20150626 22:26:17< Yaiyan> Getting this error http://pastebin.com/1iV4q2Ur from make 20150626 22:26:58< shadowm> Compiler vendor and version? 20150626 22:27:37-!- lipkab [~lipkab@host-91-147-210-193.biatv.hu] has quit [Quit: Távozom] 20150626 22:28:08< Yaiyan> Whatever the default would be on ubuntu 14.04 if I installed make 20150626 22:28:22< shadowm> Run `c++ --version`. 20150626 22:28:33< Yaiyan> 4.8.2 20150626 22:28:39< shadowm> (Make is not a compiler.) 20150626 22:28:59< Yaiyan> Yeah, but I presumed it would have a compiler as a dependency 20150626 22:29:02< shadowm> Immediate solution: pass -DENABLE_STRICT_COMPILATION=OFF to cmake and rebuild. 20150626 22:29:08< shadowm> No, make doesn't depend on compilers. 20150626 22:29:08< Yaiyan> Ok, cheers 20150626 22:29:16< Yaiyan> It doesn't? 20150626 22:29:22< shadowm> It doesn't. 20150626 22:29:28< Yaiyan> Oh, ok then 20150626 22:29:40< shadowm> cmake Recommends gcc, however, but it's not make. 20150626 22:29:52< shadowm> cmake also Depends on make. 20150626 22:30:07< shadowm> Well, no, actually, it just Recommends make too. 20150626 22:30:33< Yaiyan> Ah, til :) 20150626 22:30:45< Yaiyan> I must've installed gcc some other time then 20150626 22:31:29< shadowm> By default apt installs Recommends dependencies. 20150626 22:31:51-!- ancestral [~ancestral@63.92.240.233] has joined #wesnoth 20150626 22:34:05< shadowm> However, as you can see the fact is that cmake Recommends gcc, which is just a metapackage that pulls whatever the distribution's default gcc provider is. For example, on Debian jessie gcc depends on gcc-4.9. The version number (and vendor, though pretty much all Linux distributions use GCC) matter because, for example, I don't get these warnings with clang 3.4, and we apparently don't get them with gcc 4.8 either (?), which is what we ... 20150626 22:34:11< shadowm> ... use for CI. 20150626 22:35:09< Yaiyan> So it was just a warning, not an error? 20150626 22:35:59-!- ancestral [~ancestral@63.92.240.233] has quit [Ping timeout: 248 seconds] 20150626 22:36:14< shadowm> Yes, warnings being treated as errors (-Werror switch). 20150626 22:36:36< Yaiyan> Right 20150626 22:36:43< Yaiyan> Yeah, it's working now, thanks 20150626 22:37:51< shadowm> Also, the reason make (not cmake) doesn't depend on a compiler is that it's just a build system, which can be used with anything that takes a source file and outputs a result. 20150626 22:38:34< Yaiyan> Yeah, that makes sense 20150626 22:38:39-!- Panda_ [~IMO@2a01:e35:8aae:fcb0:a6fd:e761:fbcd:cbc2] has quit [Remote host closed the connection] 20150626 22:38:43< shadowm> Whereas cmake bundles macros that rely on a compiler's presence for running test programs and stuff. 20150626 22:43:41< shadowm> Okay, I do get the warning too. 20150626 22:44:03< shadowm> I suspct someone decided to disable it for that file (or all files) with scons specifically but not cmake. 20150626 22:50:23-!- Appleman1234_ [~Appleman1@KD106149241002.au-net.ne.jp] has joined #wesnoth 20150626 22:52:47-!- Appleman1234__ [~Appleman1@KD106149231092.au-net.ne.jp] has quit [Ping timeout: 252 seconds] 20150626 23:28:16-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 265 seconds] 20150626 23:36:42-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150626 23:56:46-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 252 seconds] --- Log closed Sat Jun 27 00:00:37 2015