--- Log opened Sun Oct 30 00:00:28 2016 20161030 00:01:57< lamefun> is there a way to ignore 'i' in 'for i,v in ipairs(t) do ... end'? 20161030 00:03:27< DeFender1031> lamefun, i usually just name it "ign" to indicate that i'm not using it. I don't know if there's a better way. 20161030 00:05:44-!- Kranix [~magnus@x1-6-74-44-01-e4-f1-52.cpe.webspeed.dk] has quit [Quit: Konversation terminated!] 20161030 00:06:18-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 245 seconds] 20161030 00:10:56-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20161030 00:19:21< celticminstrel> I sometimes name it _, though that would conflict with the standard textdomain variable. 20161030 00:27:31-!- Narrat [~Narrat@p2E5117AF.dip0.t-ipconnect.de] has quit [Quit: They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.] 20161030 00:57:06< lamefun> math.random(0, 0) --- interval is empty --- what??? 20161030 01:00:23< lamefun> the interval has 0 in it... 20161030 01:02:27< lamefun> https://www.lua.org/pil/18.html 20161030 01:02:38< lamefun> "Finally, we can call random with two integer arguments, l and u, to get a pseudo-random integer x such that l <= x <= u." 20161030 01:02:44< lamefun> 0 <= 0 <= 0 -- true. 20161030 01:03:52-!- Vadatajs [~Vadatajs@97-127-180-98.cdrr.qwest.net] has quit [Read error: Connection reset by peer] 20161030 01:04:23< lamefun> nvm wrong line... 20161030 01:08:42< celticminstrel> ??? 20161030 01:09:55< lamefun> looked at a wrong file in the backtrace and the line in that file happened to be close to a math.random call that should often be (0, 0) 20161030 01:31:06-!- ToBeCloud [uid51591@wikimedia/ToBeFree] has quit [Quit: Connection closed for inactivity] 20161030 02:04:08-!- RatArmy [~RatArmy@om126237116055.9.openmobile.ne.jp] has joined #wesnoth 20161030 02:20:00-!- lamefun [~lamefun@5.167.126.24] has quit [Remote host closed the connection] 20161030 02:31:20-!- RatArmy [~RatArmy@om126237116055.9.openmobile.ne.jp] has quit [Ping timeout: 265 seconds] 20161030 03:33:11-!- RatArmy [~RatArmy@om126237116055.9.openmobile.ne.jp] has joined #wesnoth 20161030 03:52:45-!- can-ned_food [~me@dynamic-acs-24-154-138-63.zoominternet.net] has joined #wesnoth 20161030 03:54:58-!- ArneBab [~quassel@55d44546.access.ecotel.net] has joined #wesnoth 20161030 03:59:25-!- ArneBab_ [~quassel@55d44f3d.access.ecotel.net] has quit [Ping timeout: 260 seconds] 20161030 04:03:25-!- RatArmy [~RatArmy@om126237116055.9.openmobile.ne.jp] has quit [Ping timeout: 260 seconds] 20161030 04:06:21-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 250 seconds] 20161030 04:17:57< can-ned_food> i've been playing Besieged Druids. couldn't get enough vapor rats, eh Celtic Minstrel? 20161030 04:23:24< can-ned_food> so, has anyone here looked at my CnF Arena add-on? i know it's only two original maps. 20161030 04:31:43-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has quit [Ping timeout: 245 seconds] 20161030 04:42:27-!- bumbadadabum [~bumbadada@wesnoth/developer/bumbadadabum] has joined #wesnoth 20161030 05:03:09-!- edaq [~edaq3@h184-60-58-252.cytnin.broadband.dynamic.tds.net] has joined #wesnoth 20161030 05:50:48< can-ned_food> should i give up making maps for Wesnoth? 20161030 06:09:18-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161030 06:47:11-!- salluc69 [~salluc69@host174-196-dynamic.24-79-r.retail.telecomitalia.it] has quit [Quit: Sto andando via] 20161030 06:53:30-!- salluc69 [~salluc69@host174-196-dynamic.24-79-r.retail.telecomitalia.it] has joined #wesnoth 20161030 07:10:43< celticminstrel> I won't deny that the vapour rats were inspired by Exile, though their abilities aren't the same. 20161030 07:12:10-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has quit [Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] 20161030 07:37:39-!- Blukunfando [~bkf@92.190.42.58] has joined #wesnoth 20161030 08:17:09-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth 20161030 08:21:24-!- soloojos [~soloojos@gateway/tor-sasl/soloojos] has quit [Ping timeout: 245 seconds] 20161030 08:26:25-!- soloojos [~soloojos@gateway/tor-sasl/soloojos] has joined #wesnoth 20161030 08:36:43-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Ping timeout: 245 seconds] 20161030 08:38:51-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has joined #wesnoth 20161030 08:50:39-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20161030 08:51:45-!- can-ned_food [~me@dynamic-acs-24-154-138-63.zoominternet.net] has quit [Quit: Konversation terminated!] 20161030 08:59:08-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161030 09:05:28-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Ping timeout: 260 seconds] 20161030 09:23:44-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161030 09:29:26-!- Vadatajs [~Vadatajs@97-127-180-98.cdrr.qwest.net] has joined #wesnoth 20161030 09:30:52-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Ping timeout: 252 seconds] 20161030 09:32:58-!- Murgatroyd [~Vadatajs@63-152-63-124.cdrr.qwest.net] has joined #wesnoth 20161030 09:36:02-!- Vadatajs [~Vadatajs@97-127-180-98.cdrr.qwest.net] has quit [Ping timeout: 268 seconds] 20161030 10:09:17-!- edaq [~edaq3@h184-60-58-252.cytnin.broadband.dynamic.tds.net] has quit [Remote host closed the connection] 20161030 10:30:50-!- jemadux [~jemadux@unaffiliated/jemadux] has quit [Remote host closed the connection] 20161030 10:40:43-!- jemadux [~jemadux@unaffiliated/jemadux] has joined #wesnoth 20161030 10:45:03-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161030 11:05:30-!- louis94 [~~louis94@91.178.241.241] has joined #wesnoth 20161030 11:33:20-!- claymore [~claymore@unaffiliated/claymore] has joined #wesnoth 20161030 12:01:54-!- louis94 [~~louis94@91.178.241.241] has quit [Ping timeout: 256 seconds] 20161030 12:06:58-!- claymore [~claymore@unaffiliated/claymore] has quit [Quit: Leaving] 20161030 12:08:45-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Ping timeout: 260 seconds] 20161030 12:27:34-!- louis94 [~~louis94@91.178.241.241] has joined #wesnoth 20161030 12:28:48-!- jemadux [~jemadux@unaffiliated/jemadux] has quit [Ping timeout: 245 seconds] 20161030 12:57:19-!- Kranix [~magnus@x1-6-74-44-01-e4-f1-52.cpe.webspeed.dk] has joined #wesnoth 20161030 13:49:01-!- claymore [~claymore@unaffiliated/claymore] has joined #wesnoth 20161030 14:15:41-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161030 14:44:41-!- claymore [~claymore@unaffiliated/claymore] has quit [Quit: Leaving] 20161030 15:01:06-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has joined #wesnoth 20161030 15:29:15-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20161030 15:37:05-!- Vorpal [~Vorpal@unaffiliated/vorpal] has quit [Ping timeout: 250 seconds] 20161030 15:38:57-!- Vorpal [~Vorpal@c83-253-244-64.bredband.comhem.se] has joined #wesnoth 20161030 15:38:57-!- Vorpal [~Vorpal@c83-253-244-64.bredband.comhem.se] has quit [Changing host] 20161030 15:38:57-!- Vorpal [~Vorpal@unaffiliated/vorpal] has joined #wesnoth 20161030 16:09:17-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has joined #wesnoth 20161030 16:36:08-!- jemadux [~jemadux@unaffiliated/jemadux] has joined #wesnoth 20161030 17:15:47-!- Narrat [~Narrat@p2E5117AF.dip0.t-ipconnect.de] has joined #wesnoth 20161030 17:17:03-!- lamefun [~lamefun@176.214.213.69] has joined #wesnoth 20161030 17:33:17< lamefun> is there a built-in function to convert normal Lua tables to WML-compatible configs? 20161030 17:39:29-!- claymore [~claymore@unaffiliated/claymore] has joined #wesnoth 20161030 17:42:03-!- Kwandulin [~Miranda@p5DDD2B8F.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20161030 17:45:46-!- louis94 [~~louis94@91.178.241.241] has quit [Ping timeout: 250 seconds] 20161030 17:47:29< DeFender1031> lamefun, there's the tag metatable 20161030 17:47:44< DeFender1031> lamefun, beyond that, i'm not sure how such a conversion would proceed 20161030 17:52:10< lamefun> well, simply convert? 20161030 17:52:50< lamefun> can't you convert anything to anything anyway? 20161030 17:54:27< lamefun> maybe simply use strings, for maximum readability 20161030 17:56:49< celticminstrel> lamefun: That's done automatically when needed. 20161030 17:57:03< celticminstrel> As long as the Lua table satisfies certain constraints. 20161030 17:57:48< celticminstrel> It should only have keys that are valid identifiers, or keys that are numbers. 20161030 17:58:23< celticminstrel> Array entries (ie numeric keys) should be of the form {"tagname", { ... }} (or T.tagname{...} if you use the helper metatable). 20161030 17:58:43< celticminstrel> Values must be simple scalars - string, number, boolean, etc. 20161030 17:58:59< celticminstrel> (In 1.13, an array of scalars is also an acceptable value; it's converted to a string.) 20161030 17:59:37< celticminstrel> The conversion isn't entirely lossless, I guess... but it should be fine for the vast majority of cases. 20161030 18:03:16< lamefun> the constraint is the problem 20161030 18:03:21< lamefun> it's super-annoying 20161030 18:04:01< celticminstrel> How would you prefer then? 20161030 18:04:30< celticminstrel> I wonder how you'd convert an arbitrary Lua table to a WML-compatible one. 20161030 18:05:17< lamefun> [tag] my_lua_variable = "{ x = 1, y = 'string', a = { 1, 2, 3 } }" [/tag] 20161030 18:05:29< celticminstrel> Uhhh... 20161030 18:05:54< celticminstrel> That honestly doesn't seem too useful, except maybe in onsave. 20161030 18:06:09< celticminstrel> And if that's what you're doing this for, then what you really need is table serialization. 20161030 18:07:14< celticminstrel> I suppose you could try ilua's pretty print. 20161030 18:07:37< celticminstrel> If there's a way to get the string back instead of putting it in the console... 20161030 18:08:02< lamefun> can't I just write a parser? 20161030 18:08:19< celticminstrel> What are you parsing now? 20161030 18:16:55-!- gfgtdf [~chatzilla@x4e32b47a.dyn.telefonica.de] has joined #wesnoth 20161030 18:18:14< gfgtdf> lamefun: i quite often use the my_lua_variable = "{ x = 1, y = 'string', a = { 1, 2, 3 } }" format when i dont have to care about that variable beegin processed in by wml code 20161030 18:18:58< gfgtdf> lamefun: writing such a serialize function is quite easy, i can give you the code from my addon if you want. 20161030 18:22:34< celticminstrel> Pretty sure it's already in master, even - ilua serializes tables (for debugging, admittedly, but still). 20161030 18:42:55< lamefun> I hate this. I hate Lua and I hate WML. I hate computers too. The humanity has completely wasted them. So dumb. 20161030 18:43:31< lamefun> I make changes, start Wesnoth up, and then fix bug after a bug after a bug. 20161030 18:47:24< celticminstrel> So much hate. 20161030 19:00:59< zookeeper> let it flow through you 20161030 19:27:30< DeFender1031> well... that escalated quickly. 20161030 19:37:18-!- jemadux [~jemadux@unaffiliated/jemadux] has quit [Ping timeout: 250 seconds] 20161030 20:08:11-!- [1]sn00ky [~sn00ky@92.247.48.148] has joined #wesnoth 20161030 20:09:07-!- [1]sn00ky [~sn00ky@92.247.48.148] has quit [Client Quit] 20161030 20:14:13-!- mic_e [~quassel@ipbcc36896.dynamic.kabel-deutschland.de] has quit [Ping timeout: 245 seconds] 20161030 20:14:50-!- TheJJ [~rofl@ipbcc36896.dynamic.kabel-deutschland.de] has quit [Ping timeout: 250 seconds] 20161030 20:19:04-!- mic_e [~quassel@ipbcc36896.dynamic.kabel-deutschland.de] has joined #wesnoth 20161030 20:19:24-!- TheJJ [~rofl@ipbcc36896.dynamic.kabel-deutschland.de] has joined #wesnoth 20161030 20:32:16-!- claymore [~claymore@unaffiliated/claymore] has quit [Quit: Leaving] 20161030 20:44:25-!- Appleman1234 [~Appleman1@KD036012042213.au-net.ne.jp] has quit [Ping timeout: 260 seconds] 20161030 21:01:59-!- jemadux [~jemadux@unaffiliated/jemadux] has joined #wesnoth 20161030 21:06:17-!- Shiki [~Shiki@141.39.226.226] has joined #wesnoth 20161030 21:40:46-!- Appleman1234 [~Appleman1@KD036012032169.au-net.ne.jp] has joined #wesnoth 20161030 21:55:43-!- Shiki [~Shiki@141.39.226.226] has quit [Remote host closed the connection] 20161030 22:40:01-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 250 seconds] 20161030 22:51:01-!- Kranix [~magnus@x1-6-74-44-01-e4-f1-52.cpe.webspeed.dk] has quit [Quit: Konversation terminated!] 20161030 22:58:47-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20161030 22:58:47-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20161030 22:58:48-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20161030 23:05:09-!- Appleman1234 [~Appleman1@KD036012032169.au-net.ne.jp] has quit [Ping timeout: 250 seconds] 20161030 23:07:23-!- jemadux [~jemadux@unaffiliated/jemadux] has quit [Quit: Leaving] 20161030 23:24:47-!- Appleman1234 [~Appleman1@KD106181164020.au-net.ne.jp] has joined #wesnoth 20161030 23:30:02-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 244 seconds] 20161030 23:36:01-!- ChipmunkV [~vova@static-89-94-113-91.axione.abo.bbox.fr] has quit [Quit: ChipmunkV] 20161030 23:39:57-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20161030 23:39:57-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20161030 23:39:57-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20161030 23:42:41-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 260 seconds] --- Log closed Mon Oct 31 00:00:21 2016