--- Log opened Thu Feb 25 00:00:36 2016 20160225 00:03:29-!- wario [~wario_@unaffiliated/wario] has quit [Quit: Leaving] 20160225 00:19:12-!- SpoOkyMagician [~chatzilla@2607:fcc8:be59:b00:d1b0:28ba:f53b:2157] has joined #wesnoth 20160225 00:25:38-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth 20160225 00:48:04-!- prkc [~prkc@gateway/vpn/privateinternetaccess/prkc] has quit [Ping timeout: 240 seconds] 20160225 01:18:37-!- Narrat [~Narrat@p548DD001.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.] 20160225 01:47:24-!- kinow [~kinow@apache/committer/kinow] has quit [Quit: Leaving] 20160225 01:54:04-!- ancestral [~ancestral@97-116-184-84.mpls.qwest.net] has joined #wesnoth 20160225 03:01:50-!- twooey [~twooey@24.51.190.244] has joined #wesnoth 20160225 03:29:33-!- ArneBab [~quassel@55d40c47.access.ecotel.net] has joined #wesnoth 20160225 03:33:29-!- ArneBab_ [~quassel@55d44abf.access.ecotel.net] has quit [Ping timeout: 240 seconds] 20160225 03:56:27-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: So long and thanks for all the fish.] 20160225 04:01:28-!- SpoOkyMagician [~chatzilla@2607:fcc8:be59:b00:d1b0:28ba:f53b:2157] has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]] 20160225 04:08:28-!- Pepe_ [~ppjet@anderith.bouah.net] has quit [Ping timeout: 252 seconds] 20160225 04:15:23-!- twooey [~twooey@24.51.190.244] has quit [Ping timeout: 250 seconds] 20160225 05:12:02-!- twooey [~twooey@24.51.190.244] has joined #wesnoth 20160225 05:17:46-!- twooey [~twooey@24.51.190.244] has quit [Ping timeout: 252 seconds] 20160225 05:19:34< celticminstrel> DeFender1031: Since animations are evaluated early, there's no such thing yet as a WML variable. Thus, WML formulas cannot be supported. It would be possible to support the other type of formula (like the formula= key in standard unit filters), but I don't know how difficult that would be. 20160225 05:20:27< celticminstrel> Considering that animations have their own special syntax for various things, probably not all that easy. 20160225 05:31:32-!- Haldrik [~haldrik@unaffiliated/haldrik] has joined #wesnoth 20160225 05:37:26-!- Kwandulin [~Miranda@p200300760F0BC583353EE84AC87F3BD3.dip0.t-ipconnect.de] has joined #wesnoth 20160225 06:15:23-!- ancestral [~ancestral@97-116-184-84.mpls.qwest.net] has quit [Quit: ancestral] 20160225 06:17:11-!- ancestral [~ancestral@97-116-184-84.mpls.qwest.net] has joined #wesnoth 20160225 06:36:34-!- ancestral [~ancestral@97-116-184-84.mpls.qwest.net] has quit [Quit: End Transmission.] 20160225 06:36:56-!- Falcon` [falcon@hell.kolosowscy.pl] has quit [Quit: I'll be back!] 20160225 06:38:12-!- Falcon` [~Falcon@79.133.214.222] has joined #wesnoth 20160225 06:48:47-!- Kwandulin [~Miranda@p200300760F0BC583353EE84AC87F3BD3.dip0.t-ipconnect.de] has quit [Ping timeout: 250 seconds] 20160225 06:48:54-!- salluc69 [~salluc69@host102-229-dynamic.21-79-r.retail.telecomitalia.it] has joined #wesnoth 20160225 07:28:45-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 276 seconds] 20160225 07:48:40-!- Kwandulin [~Miranda@p200300760F0BC583353EE84AC87F3BD3.dip0.t-ipconnect.de] has joined #wesnoth 20160225 07:49:10-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20160225 07:57:25-!- celticminstrel is now known as celmin|sleep 20160225 08:09:47-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth 20160225 08:35:52-!- Falcon` [~Falcon@79.133.214.222] has quit [Quit: I'll be back!] 20160225 08:36:50-!- Falcon` [znc@79.133.214.222] has joined #wesnoth 20160225 08:40:38-!- Kwandulin [~Miranda@p200300760F0BC583353EE84AC87F3BD3.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20160225 08:41:47-!- Falcon` [znc@79.133.214.222] has quit [Quit: I'll be back!] 20160225 08:42:39-!- Falcon` [~Falcon@79.133.214.222] has joined #wesnoth 20160225 08:47:33-!- Falcon` [~Falcon@79.133.214.222] has quit [Quit: I'll be back!] 20160225 08:47:55-!- Falcon` [falcon@79.133.214.222] has joined #wesnoth 20160225 09:45:22< DeFender1031> celmin|sleep, it would also be possible to allow for partial support if the preprocessor were optimized to evaluate static expressions and only left the dynamic ones for runtime, but that's a whole other can of worms. 20160225 09:47:33< DeFender1031> (Meaning, if "$(7+3)" or "$(7+{SOME_NUMBER_PASSED_TO_A_MACRO})" were evaluated by the preprocessor, but "$($somevar + 17)" was the only thing left for the runtime calculator, that ought to work.) 20160225 09:56:55< DeFender1031> new question: is there a way to either A. make move_unit work such that if the path extends outside the currently visible area of the map, the unit teleports during that portion of the move rather than having the gaim either wait uselessly (if force_scroll is no) or follow (if it's yes) or B. store the current size of the viewport into a variable (thus being able to programmatically determine A)? 20160225 10:05:08< vultraz> DeFender1031: https://wiki.wesnoth.org/InternalActionsWML#.5Bstore_map_dimensions.5D is what you want 20160225 10:05:42< janebot> Tweet (by @Wesnoth) Another dev release coming soon! #gamedev #indiegame [ https://twitter.com/Wesnoth/status/702796604361670656 ] 20160225 10:07:42< DeFender1031> vultraz, doesn't that store the dimensions of the FULL map? I only need the viewport size 20160225 10:07:55< vultraz> there's no way to do that 20160225 10:09:42< DeFender1031> then i'm basically stuck with ensuring the movement won't scroll, and doing the teleport once the unit is off the screen in the highest resolution the game allows... not the worst thing in the world i guess. 20160225 10:10:44< DeFender1031> basically, what I really want is something like "animate_if_offscreen=no" for [move_unit] 20160225 10:28:12< vultraz> we might consider implementing it 20160225 10:50:23< zookeeper> sounds like something that could simply be the default behavior. 20160225 10:52:28-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has quit [Read error: Connection reset by peer] 20160225 11:01:24-!- irco [~irco@HSI-KBW-078-042-015-165.hsi3.kabel-badenwuerttemberg.de] has joined #wesnoth 20160225 11:08:53-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 244 seconds] 20160225 11:11:45-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20160225 11:11:45-!- vultraz [~chatzilla@124.109.10.167] has quit [Changing host] 20160225 11:11:45-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20160225 11:18:59-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 240 seconds] 20160225 11:20:03-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth 20160225 11:21:43-!- prkc [~prkc@gateway/vpn/privateinternetaccess/prkc] has joined #wesnoth 20160225 12:01:10-!- HeyCitizen [~HeyCitize@STTRPQ3809W-LP140-03-1177721983.dsl.bell.ca] has quit [Quit: Coyote finally caught me] 20160225 12:04:02-!- HeyCitizen [~HeyCitize@STTRPQ3809W-LP140-03-1177721983.dsl.bell.ca] has joined #wesnoth 20160225 12:12:55-!- vn971 [~vasya@91.247.233.240] has quit [Ping timeout: 250 seconds] 20160225 12:13:16-!- vn971 [~vasya@91.247.233.240] has joined #wesnoth 20160225 12:38:26-!- louis94 [~~louis94@91.178.241.169] has joined #wesnoth 20160225 12:42:34-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 240 seconds] 20160225 13:02:21-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20160225 14:05:01-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth 20160225 14:36:19-!- GabeN [4e88b116@gateway/web/freenode/ip.78.136.177.22] has joined #wesnoth 20160225 14:36:24< GabeN> hey 20160225 14:36:42-!- GabeN is now known as Guest52728 20160225 14:36:58< Guest52728> hey 20160225 14:36:59< Guest52728> hey 20160225 14:37:00< Guest52728> hey 20160225 14:37:02< Guest52728> ghrrr 20160225 14:37:31-!- Guest52728 [4e88b116@gateway/web/freenode/ip.78.136.177.22] has quit [Client Quit] 20160225 15:18:59-!- louis94 [~~louis94@91.178.241.169] has quit [Ping timeout: 248 seconds] 20160225 15:24:20-!- louis94 [~~louis94@91.178.241.169] has joined #wesnoth 20160225 15:27:00-!- Haudegen [~quassel@85.124.51.57] has quit [Read error: Connection reset by peer] 20160225 15:27:01-!- Rhonda [~rhonda@wesnoth/developer/rhonda] has quit [Ping timeout: 240 seconds] 20160225 15:27:18-!- Rhonda [~rhonda@anguilla.noreply.org] has joined #wesnoth 20160225 15:28:07-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20160225 15:44:16-!- prkc [~prkc@gateway/vpn/privateinternetaccess/prkc] has quit [Ping timeout: 244 seconds] 20160225 15:58:58-!- prkc [~prkc@46.166.188.242] has joined #wesnoth 20160225 16:06:45-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: mattsc] 20160225 16:21:05-!- celmin|sleep is now known as celticminstrel 20160225 16:23:01-!- Kwandulin [~Miranda@p200300760F0BC58568FB28454DCB1E10.dip0.t-ipconnect.de] has joined #wesnoth 20160225 16:29:17-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth 20160225 17:04:52-!- louis94 [~~louis94@91.178.241.169] has quit [Ping timeout: 244 seconds] 20160225 17:47:36-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has joined #wesnoth 20160225 17:58:39-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20160225 18:11:10< DeFender1031> Guys! I did it. http://paste.nachsoftware.com/DeFender1031/xPVBK921dceaf3bdcfda8461556cf43a80560eGm 20160225 18:12:28< DeFender1031> This takes two sets of coordinates for the corners of a rectangle and stores the necessary lists to make a rectangle in the given variable names. 20160225 18:14:41< DeFender1031> so you can do "{RECT_COORDS 12 22 25 24 rect_x rect_y}" followed by "[item] x=$rect_x y=$rect_y image=whatever [/item]" and it'll fill every hex in that area with the given item 20160225 18:19:07< DeFender1031> (as an example) 20160225 18:24:16-!- Narrat [~Narrat@p548DD001.dip0.t-ipconnect.de] has joined #wesnoth 20160225 18:33:28< mattsc> DeFender1031: Nice! I didn’t really check it out very carefully at all, just one quick thing: you can combine all the CLEAR_VARIABLES at the end into one comma-separated list. 20160225 18:33:44-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has quit [Quit: #AncientBeast - Master Your Beasts ( www.AncientBeast.com )] 20160225 19:01:48< celticminstrel> DeFender1031: I'm guessing (start_x, start_y) and (end_x, end_y) define the diagonal of the rectangle? 20160225 19:02:16< celticminstrel> ie, two opposite corners. 20160225 19:02:37< DeFender1031> celticminstrel, that's the size of it (pun most definitely intended) 20160225 19:02:49< DeFender1031> mattsc, ah, good point. thanks. 20160225 19:03:31< celticminstrel> It's pretty big. 20160225 19:04:19< DeFender1031> what's pretty big? 20160225 19:04:26< celticminstrel> The code. 20160225 19:05:00< celticminstrel> Did you test it with several coordinate sets? 20160225 19:05:25< DeFender1031> i did 20160225 19:06:19< DeFender1031> and yes, it is. I actually wrote the login in php originally and then ported it to wml once i had it working (and i tested with a bunch of different sets in both) in php it's like 10 lines of code, but wml is somewhat clunkier. 20160225 19:06:24< celticminstrel> I don't remember the math for working with hexes, but I seem to recall something complicated the math for calculating the tile in a given direction from a start tile being different for even and odd coordinates. Am I just making this up, mattsc? 20160225 19:06:43< celticminstrel> DeFender1031: I'd be interested in seeing the PHP. 20160225 19:06:44< DeFender1031> celticminstrel, indeed. that's what all the "% 2" in there is doing 20160225 19:06:48< celticminstrel> Or a Lua version. 20160225 19:06:52< DeFender1031> celticminstrel, sure. 20160225 19:07:02< DeFender1031> Unfortunately, i don't know Lua. 20160225 19:07:21< celticminstrel> Converting from PHP to Lua is probably easier than converting from WML to Lua, so the PHP will do then. 20160225 19:07:28< mattsc> celticminstrel: yes, that is true; see DeFender1031’s response. 20160225 19:08:02< mattsc> I have some Lua functions somewhere calculating square grod coordinates for hex grid centers. 20160225 19:08:24< celticminstrel> mattsc: I'm not sure what you just said. >_> 20160225 19:08:25< mattsc> That could probably also be used for some of this, but I dont think it has any advantage of this. 20160225 19:08:45< mattsc> s/grod/grid — but I assume that’s not the reason for the confusion? 20160225 19:08:51< celticminstrel> No. 20160225 19:09:58< mattsc> If you take a hex grid, and you overlay a square coordinate system, you get integer coordinates for every other row, and half-integer x coordinates for the rows in between 20160225 19:10:17< mattsc> I have a function to calculate those. 20160225 19:10:30< mattsc> I think it’s even in mainline ... 20160225 19:11:00< mattsc> It is: https://github.com/wesnoth/wesnoth/blob/master/data/ai/lua/ai_helper.lua#L347 20160225 19:12:05< celticminstrel> It sounds like this could be used to generate an almost-rect with north-south and east-west aligned sides? 20160225 19:12:19< celticminstrel> I think DeFender1031's code generates a rect with ne-sw and nw-se aligned sides. 20160225 19:12:26< mattsc> Sure. 20160225 19:12:30< mattsc> And yes. 20160225 19:12:55< celticminstrel> Also, those functions look like they could be moved out of ai_helper... not quite sure where though. 20160225 19:13:26< mattsc> Yes, sure. 20160225 19:13:58< DeFender1031> celticminstrel, correct. also give me a couple minutes to clean up the php into something presentable and without all the debugging code i threw in there while i was working it out 20160225 19:17:23-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 248 seconds] 20160225 19:32:49< DeFender1031> ah, i found a bug. 20160225 19:37:57< DeFender1031> if the second hex is below the line of hexes directly se from the first, or above the line directly ne from it, then this blows up. 20160225 19:38:37< DeFender1031> that can definitely be accounted for though 20160225 19:40:31-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20160225 19:52:46< DeFender1031> celticminstrel, okay, fixed it in the php version: http://paste.nachsoftware.com/DeFender1031/ZGZnh1fc11bc29fee4e96105556cf5b7e6f2adFJ 20160225 19:53:08< DeFender1031> gotta port the fix to the WML 20160225 19:53:23< DeFender1031> anyway, this php example is meant to be run from command-line 20160225 19:53:50< DeFender1031> it'll prind both a visual 10x10 map with the correct spaces highlighted as well as the x and y range strings. 20160225 20:07:24-!- claymore2 [~hexchat@host86-167-29-40.range86-167.btcentralplus.com] has joined #wesnoth 20160225 20:32:41< DeFender1031> fixed: http://paste.nachsoftware.com/DeFender1031/kqQWMta77b8c729fb3c937b2c56cf64cfdbd77XN 20160225 20:42:16-!- prkc [~prkc@46.166.188.242] has quit [Ping timeout: 255 seconds] 20160225 20:43:02-!- prkc [~prkc@46.166.188.242] has joined #wesnoth 20160225 21:27:43-!- Kwandulin [~Miranda@p200300760F0BC58568FB28454DCB1E10.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20160225 21:58:46-!- claymore2 [~hexchat@host86-167-29-40.range86-167.btcentralplus.com] has quit [Quit: Leaving] 20160225 21:59:57-!- fendrin [~quassel@wesnoth/developer/fendrin] has joined #wesnoth 20160225 22:03:28-!- fabi [~quassel@wesnoth/developer/fendrin] has quit [Ping timeout: 244 seconds] 20160225 22:37:59-!- Appleman1234 [~Appleman1@KD119104005043.au-net.ne.jp] has quit [Ping timeout: 240 seconds] 20160225 23:33:28-!- louis94 [~~louis94@91.178.241.169] has joined #wesnoth 20160225 23:34:23-!- Appleman1234 [~Appleman1@KD106161148078.au-net.ne.jp] has joined #wesnoth 20160225 23:42:32-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: So long and thanks for all the fish.] 20160225 23:45:04-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 240 seconds] 20160225 23:58:38-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has joined #wesnoth --- Log closed Fri Feb 26 00:00:53 2016