--- Log opened Thu Nov 24 00:00:03 2016 --- Day changed Thu Nov 24 2016 20161124 00:00:03-!- wario [~wario_@unaffiliated/wario] has quit [Quit: Leaving] 20161124 00:30:07< lamefun> Lua/Wesnoth standard module system is kinda bad... 20161124 00:31:42< lamefun> Or maybe not... 20161124 00:32:20< lamefun> But still you can't define mutually dependent modules like this :( 20161124 00:36:19< celticminstrel> You probably can... 20161124 00:36:36< celticminstrel> But if you have mutually independent modules, I wonder why they're seperate modules at all. 20161124 00:36:44< celticminstrel> ^-in 20161124 00:38:44< lamefun> dumper.dump_string depends on stringx.count_matches (for best quote detection), stringx.format depends on dumper.debug (for "%d") 20161124 00:40:02< celticminstrel> Put your require for stringx in the dump_string function. (Or put your require for debug in the format function, if you prefer that way.) 20161124 00:40:36< celticminstrel> No-one ever said your requires have to be at the file toplevel. 20161124 01:02:28< lamefun> Also an annoying thing is that I still have to prefix my functions with the module name... 20161124 01:07:03-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 268 seconds] 20161124 01:09:59-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20161124 01:09:59-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20161124 01:09:59-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20161124 01:34:48-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has quit [Ping timeout: 260 seconds] 20161124 01:50:48< lamefun> T.parimary_weapon(wesnoth.get_variable("weapon")) - excellent... where can I find a UFO with nice kind aliens that would give me some cyborg implants? 20161124 01:59:19-!- Bonobo [~Bonobo@2001:44b8:254:3200:21f6:5588:2125:c4d4] has joined #wesnoth 20161124 02:08:14-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has joined #wesnoth 20161124 02:10:18< lamefun> is there some way to find out whether there's already an event with the given id? 20161124 02:13:39-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 268 seconds] 20161124 02:22:01< celticminstrel> I have no idea what you're saying/asking with the alienese. 20161124 02:22:19< celticminstrel> As for your second question, I don't believe there's a way to inspect existing events. 20161124 02:22:29< celticminstrel> (Or event handlers, rather.) 20161124 02:22:55< lamefun> parimary 20161124 02:23:24< lamefun> and "weapon" should've been "attack"... found this while porting my code to proper modules and re-doing the event system... 20161124 02:52:00-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has quit [Ping timeout: 252 seconds] 20161124 02:57:38-!- louis94 [~~louis94@91.178.240.137] has quit [Ping timeout: 250 seconds] 20161124 03:11:54-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161124 03:25:41-!- ArneBab_ [~quassel@55d45422.access.ecotel.net] has joined #wesnoth 20161124 03:30:04-!- ArneBab [~quassel@freenet/developer/arnebab] has quit [Ping timeout: 260 seconds] 20161124 03:54:28-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has joined #wesnoth 20161124 04:08:38-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20161124 04:22:31< lamefun> I can't return more than one value from wesnoth.require module (return x, y, z)? 20161124 04:24:31< celticminstrel> If that's the case I'd consider it a bug in wesnoth.require. 20161124 04:30:08< lamefun> well... http://paste.ofcode.org/GZQeaQf2aThUKzJBwJWZ9V 20161124 04:30:21-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has quit [Quit: Konversation terminated!] 20161124 04:31:28< lamefun> too lazy to make a proper test case, but apparently the function is actually buggy... 20161124 04:38:29< celticminstrel> I assume T is not nil? 20161124 04:38:46< celticminstrel> (In the case where W is.) 20161124 04:42:11< lamefun> yes, it isn't 20161124 04:45:17< celticminstrel> So basically someone didn't use LUA_MULTRET where they should have. 20161124 04:47:12< celticminstrel> Looks like a fix is nontrivial, though. 20161124 04:48:10< celticminstrel> You'd need to call table.pack() and table.unpack() from the C++ code. 20161124 04:49:09< celticminstrel> Well, a workaround isn't hard though - just return a table instead of multiple values. 20161124 04:49:37< celticminstrel> You could even write the unpack into your require() implementation. 20161124 04:50:31< celticminstrel> Though I guess you'd need to distinguish tables that need to be unpacked from ones that don't (which wouldn't be a problem if implementing it on the C++ side). 20161124 04:50:46< lamefun> metatable? 20161124 04:50:51< celticminstrel> Hm? 20161124 04:51:25< lamefun> local multireturn_mt = {} ; function multireturn(t) return setmetatable(t, multireturn_mt) end 20161124 04:51:48< celticminstrel> I suppose, or just put an unpack=true key in an array-like table. 20161124 04:52:08< celticminstrel> (Maybe make it something slightly less likely to be used as a legitimate name.) 20161124 04:52:21< celticminstrel> However you want. 20161124 04:53:14< lamefun> I've already switched to using this though: local wesnothx = require "common.wesnothx" ; local T, V, W = wesnothx.helpers() 20161124 04:53:41< lamefun> the helpers module was way too small for to be a separate module anyway 20161124 04:54:57< celticminstrel> Shrug! 20161124 06:10:44-!- Appleman1234 [~Appleman1@KD106161201080.au-net.ne.jp] has quit [Ping timeout: 252 seconds] 20161124 06:13:42-!- Appleman1234 [~Appleman1@KD106161198200.au-net.ne.jp] has joined #wesnoth 20161124 06:49:36-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 252 seconds] 20161124 07:02:01-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20161124 07:06:38-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20161124 07:06:38-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20161124 07:06:38-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20161124 07:13:30-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has joined #wesnoth 20161124 07:16:46-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth 20161124 07:35:52-!- lamefun [~lamefun@5.165.188.79] has quit [Remote host closed the connection] 20161124 07:56:00-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has quit [Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.] 20161124 08:05:13-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has quit [Ping timeout: 260 seconds] 20161124 09:23:56-!- irco [~irco@HSI-KBW-134-3-97-221.hsi14.kabel-badenwuerttemberg.de] has joined #wesnoth 20161124 10:06:08-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has joined #wesnoth 20161124 10:42:27-!- tokage [~tokage@fsfe/tokage] has quit [Ping timeout: 256 seconds] 20161124 12:02:37-!- RatArmy [~RatArmy@om126161112076.8.openmobile.ne.jp] has quit [Quit: Konversation terminated!] 20161124 12:20:03-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has quit [Ping timeout: 245 seconds] 20161124 12:34:00-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has joined #wesnoth 20161124 12:37:50-!- cyphase_ [~cyphase@c-50-148-131-137.hsd1.ca.comcast.net] has joined #wesnoth 20161124 12:38:07-!- cyphase_ [~cyphase@c-50-148-131-137.hsd1.ca.comcast.net] has quit [Read error: Connection reset by peer] 20161124 13:13:11-!- louis94 [~~louis94@91.178.241.199] has joined #wesnoth 20161124 14:01:17-!- louis94 [~~louis94@91.178.241.199] has quit [Ping timeout: 240 seconds] 20161124 14:23:34-!- tokage [~tokage@fsfe/tokage] has joined #wesnoth 20161124 14:32:42-!- Appleman1234 [~Appleman1@KD106161198200.au-net.ne.jp] has quit [Ping timeout: 250 seconds] 20161124 14:33:44-!- Appleman1234 [~Appleman1@KD106161198200.au-net.ne.jp] has joined #wesnoth 20161124 14:34:43-!- irco [~irco@HSI-KBW-134-3-97-221.hsi14.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 20161124 14:37:28-!- claymore [~claymore@unaffiliated/claymore] has joined #wesnoth 20161124 14:44:25-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has quit [Ping timeout: 256 seconds] 20161124 14:57:32-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has joined #wesnoth 20161124 15:00:25-!- Bonobo [~Bonobo@2001:44b8:254:3200:21f6:5588:2125:c4d4] has quit [Quit: Leaving] 20161124 15:14:34-!- ToBeCloud [uid51591@wikimedia/ToBeFree] has joined #wesnoth 20161124 16:09:43-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has joined #wesnoth 20161124 16:23:29-!- irco [~irco@HSI-KBW-134-3-97-221.hsi14.kabel-badenwuerttemberg.de] has joined #wesnoth 20161124 17:05:40-!- salluc69 [~salluc69@host32-193-dynamic.244-95-r.retail.telecomitalia.it] has quit [Ping timeout: 250 seconds] 20161124 17:09:42-!- salluc69 [~salluc69@host32-193-dynamic.244-95-r.retail.telecomitalia.it] has joined #wesnoth 20161124 17:10:10-!- prkc [~prkc@46.166.190.187] has joined #wesnoth 20161124 17:11:09-!- louis94 [~~louis94@91.178.241.199] has joined #wesnoth 20161124 17:21:28-!- ToBeCloud [uid51591@wikimedia/ToBeFree] has quit [Quit: Connection closed for inactivity] 20161124 17:22:05-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has joined #wesnoth 20161124 17:27:02-!- jemadux [~jemadux@unaffiliated/jemadux] has joined #wesnoth 20161124 17:37:48-!- Appleman1234 [~Appleman1@KD106161198200.au-net.ne.jp] has quit [Ping timeout: 258 seconds] 20161124 17:49:26-!- Kranix [~magnus@185.118.249.51] has joined #wesnoth 20161124 17:49:49-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161124 18:11:37-!- Narrat [~Narrat@p5DED1A9F.dip0.t-ipconnect.de] has joined #wesnoth 20161124 18:13:23-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has quit [Ping timeout: 245 seconds] 20161124 18:26:03-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has joined #wesnoth 20161124 18:34:03-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20161124 18:49:57-!- irco [~irco@HSI-KBW-134-3-97-221.hsi14.kabel-badenwuerttemberg.de] has quit [Ping timeout: 240 seconds] 20161124 19:30:31-!- irco [~irco@HSI-KBW-134-3-97-221.hsi14.kabel-badenwuerttemberg.de] has joined #wesnoth 20161124 19:47:49-!- louis94 [~~louis94@91.178.241.199] has quit [Ping timeout: 248 seconds] 20161124 19:52:40-!- claymore [~claymore@unaffiliated/claymore] has quit [Quit: Leaving] 20161124 19:56:06-!- z__ [~m@agar41.neoplus.adsl.tpnet.pl] has joined #wesnoth 20161124 19:56:57< z__> Silly question. Inside a [show_if] tag, how to test if there is a unit of a given type standing at (x,y)? 20161124 19:57:27< z__> Show me please one example, and I'm sure I should figure how to build other such constructs on my own. 20161124 20:00:18< celticminstrel> [have_unit] 20161124 20:01:47< DeFender1031> z__, [have_unit] / type=Elvish Archer / x,y=17,32 / [/have_unit] 20161124 20:01:58< DeFender1031> (Adjust type and coordinates as needed) 20161124 20:02:30< z__> Thanks, but why do u use such a syntax x,y=17,32 instead of x=17 / y=32? 20161124 20:02:50< celticminstrel> You can do either. 20161124 20:03:04< z__> okay 20161124 20:03:05< celticminstrel> We do it because it takes less vertical space. 20161124 20:03:12< celticminstrel> (At least, that's why I do it.) 20161124 20:07:33< DeFender1031> z__, I personally like to combine x and y except where impossible, as they're pretty much a single unit of data in most cases and it looks more readable to me, but it's really a matter of preference. 20161124 20:08:16< celticminstrel> I don't combine them when they're a range. 20161124 20:08:27< celticminstrel> And obviously not when they're a list (since then it's impossible). 20161124 20:08:36< DeFender1031> celticminstrel, same. I tend to only do so when referring to a single hex. 20161124 20:14:06-!- aeth [~Michael@wesnoth/umc-dev/developer/aethaeryn] has quit [Read error: Connection reset by peer] 20161124 20:15:10-!- aeth [~Michael@wesnoth/umc-dev/developer/aethaeryn] has joined #wesnoth 20161124 20:21:08-!- RatArmy [~RatArmy@om126161112087.8.openmobile.ne.jp] has joined #wesnoth 20161124 20:46:56-!- RatArmy [~RatArmy@om126161112087.8.openmobile.ne.jp] has quit [Ping timeout: 250 seconds] 20161124 20:47:28-!- louis94 [~~louis94@91.178.241.199] has joined #wesnoth 20161124 20:48:54-!- RatArmy [~RatArmy@om126161112087.8.openmobile.ne.jp] has joined #wesnoth 20161124 21:25:25-!- RatArmy [~RatArmy@om126161112087.8.openmobile.ne.jp] has quit [Ping timeout: 248 seconds] 20161124 21:28:23-!- louis94 [~~louis94@91.178.241.199] has quit [Quit: Konversation terminated!] 20161124 21:28:36-!- louis94 [~~louis94@91.178.241.199] has joined #wesnoth 20161124 21:32:50-!- RatArmy [~RatArmy@om126161112087.8.openmobile.ne.jp] has joined #wesnoth 20161124 21:53:16-!- jemadux [~jemadux@unaffiliated/jemadux] has quit [Ping timeout: 260 seconds] 20161124 21:59:10-!- Kranix [~magnus@185.118.249.51] has quit [Quit: Konversation terminated!] 20161124 22:02:14-!- RatArmy [~RatArmy@om126161112087.8.openmobile.ne.jp] has quit [Ping timeout: 252 seconds] 20161124 22:08:31-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has quit [Quit: ChipmunkV] 20161124 22:39:49-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20161124 23:22:50-!- z__ [~m@agar41.neoplus.adsl.tpnet.pl] has quit [Quit: Leaving] 20161124 23:33:23-!- RatArmy [~RatArmy@133.15.175.65] has joined #wesnoth 20161124 23:34:21-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 260 seconds] 20161124 23:34:27-!- RatArmy [~RatArmy@133.15.175.65] has quit [Client Quit] 20161124 23:34:41-!- RatArmy [~RatArmy@133.15.175.65] has joined #wesnoth 20161124 23:52:19-!- VultCave [~chatzilla@124.109.10.167] has joined #wesnoth 20161124 23:52:21-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 268 seconds] 20161124 23:52:22-!- irco [~irco@HSI-KBW-134-3-97-221.hsi14.kabel-badenwuerttemberg.de] has quit [Remote host closed the connection] 20161124 23:55:53-!- VultCave [~chatzilla@124.109.10.167] has quit [Read error: Connection reset by peer] 20161124 23:57:30-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20161124 23:57:30-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20161124 23:57:30-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20161124 23:59:02-!- wario [~wario_@unaffiliated/wario] has quit [Quit: Leaving] --- Log closed Fri Nov 25 00:00:16 2016