--- Log opened Tue Aug 11 00:00:45 2015 20150811 00:00:49< celticminstrel> Ooh, I need to make it capture villages if you disembark onto one. 20150811 00:02:09-!- Appleman1234 [~Appleman1@KD106179112149.au-net.ne.jp] has joined #wesnoth 20150811 00:04:23< celticminstrel> I seem to recall there was a way to use replay commands in ActionWML. 20150811 00:04:55< celticminstrel> Oh. 20150811 00:05:19< celticminstrel> Hm, does [move_unit[ work exactly as if the player had explicitly done the move, though? 20150811 00:05:49 * celticminstrel seems to recall that it ignores movement points. 20150811 00:05:53< shadowm> No. 20150811 00:06:11< shadowm> It's essentially a move_unit_fake wrapper. 20150811 00:06:38< celticminstrel> Oh, [do_command] is 1.13. :/ 20150811 00:17:27< celticminstrel> [unstore_unit] overwrites any unit on the target space, right? 20150811 00:18:06< Ravana_> you can choose if it should 20150811 00:18:31< Ravana_> no idea about default, I always explicitly say what I want there 20150811 00:28:59-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20150811 00:29:05-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth 20150811 00:30:30-!- Appleman1234 [~Appleman1@KD106179112149.au-net.ne.jp] has quit [Ping timeout: 244 seconds] 20150811 00:46:04-!- patwotrik [~patwotrik@nl118-172-202.student.uu.se] has quit [Remote host closed the connection] 20150811 01:05:49< aeth> celticminstrel: Most (all?) stuff overwrites the unit. 20150811 01:06:41< celticminstrel> I'm looking at the fifth scenario in my campaign and wondering whether I should somehow completely rewrite it. 20150811 01:06:47< aeth> Although in THS when boarding (teleporting?) onto the ship it didn't overwrite (but a full ship started spawning units in void) 20150811 01:07:12< celticminstrel> THS? 20150811 01:07:19< aeth> The High Seas 20150811 01:07:23< celticminstrel> Ah. 20150811 01:07:24< aeth> The best add-on ever 20150811 01:07:41< aeth> You had a ship and moved that ship around 20150811 01:08:19< aeth> It kind of pushed the limits of Wesnoth, though, because if it was a standalone game ships would have their own map instead of being void-separated. 20150811 01:08:55< aeth> What your doing sounds a lot like it 20150811 01:09:48< celticminstrel> Not quite, here the ship is a unit. 20150811 01:09:53< aeth> I'd add ships to my RPG if Wesnoth allowed more than one map per scenario, but it just isn't general enough to all maps to have ship maps 20150811 01:10:45< aeth> Yeah, I guess ships could be inserted if map expansion is allowed, but it's still kind of a hack. A standalone game wouldn't work all on one big map. 20150811 01:10:57< Ravana_> you can switch maps mid game 20150811 01:11:12< aeth> Ravana_: I guess you never played The High Seas. 20150811 01:11:21< Ravana_> true 20150811 01:11:36< aeth> Ravana_: This isn't a map switch, it's a separate part of the map where the ship decks are 20150811 01:12:08< aeth> So you had a huge map, and could move around it on ships, and could simultaneously have units on those ships and inmthe overworld 20150811 01:12:29< Ravana_> interesting concept 20150811 01:13:36< aeth> Right. In a different game engine, stuff like ships or RPG-style dungeons would have their own maps, but the players wouldn't have to all go to the same map at the same time. 20150811 01:14:20< aeth> In e.g. The High Seas what happens is the map has one big map and lots of tiny maps you teleport to, separated by void. 20150811 01:15:12< aeth> In RPGs, you can have this teleportation mechanic or you can have all players move to the next scenario at the same time. 20150811 01:15:48< aeth> You can't e.g. have a sewer map and a city map map 1:1 in coordinates but with one "above" the other and a bunch of e.g ladders 20150811 01:16:00< aeth> That would require separating map from scenario. 20150811 01:16:49< aeth> (Also, more trivially, you'd need a UI that would let you switch between tabs of the map) 20150811 01:17:28< aeth> If you could do this you could have an essentially endless map in one scenario with clever uses of teleportation 20150811 01:17:41< celticminstrel> That would make coordinates three-dimensional. 20150811 01:17:57< aeth> celticminstrel: no, it would be (x, y) and map 20150811 01:18:07< celticminstrel> That's three-dimensional. 20150811 01:18:11< aeth> Not all maps would be z on top of each other 20150811 01:18:49< aeth> celticminstrel: well only if map is an integer and not a map id 20150811 01:19:10< celticminstrel> I don't know if there's any reason why a dimension must be an integer. 20150811 01:19:19< aeth> and e.g. the maps don't need to line up in x and y 20150811 01:20:09< aeth> celticminstrel: Well, it wouldn't have to be at all equivalent to a coordinate because e.g. events could be local to a map 20150811 01:20:33< aeth> [event] name=prestart map="main" ... [/event] 20150811 01:20:53< aeth> it depends on implementation 20150811 01:21:16< celticminstrel> That doesn't make sense. 20150811 01:21:34< celticminstrel> How can a prestart event be local to a map? 20150811 01:21:38< aeth> It would be a worse implementation, yes 20150811 01:21:45< celticminstrel> Events involving locations, of course, but prestart? 20150811 01:22:15< aeth> Any event in a location like that would be a bad idea, e.g. if you forget to write a promotion event for a map 20150811 01:22:29< celticminstrel> Huh? 20150811 01:22:31< aeth> I didn't say it was a good idea :-p 20150811 01:22:47< aeth> celticminstrel: i.e. an on promotion event 20150811 01:23:17< celticminstrel> I assume you mean advancement. 20150811 01:23:23< aeth> well yeah 20150811 01:23:37< aeth> Though tbh promotion and amla should be handled separately 20150811 01:23:49< celticminstrel> But "map" here can really be considered a part of the location. 20150811 01:23:52< aeth> I handle advancement separately based on those two cases 20150811 01:24:04< celticminstrel> So you'd probably put map= in [filter] or something. 20150811 01:24:07< aeth> celticminstrel: if it's implemented that way 20150811 01:24:30< aeth> celticminstrel: but if every tag was local to just one map no need 20150811 01:24:47< aeth> (again not a good idea, but who knows how it could be implemented) 20150811 01:27:01-!- Appleman1234 [~Appleman1@KD111107188035.au-net.ne.jp] has joined #wesnoth 20150811 02:01:09-!- Samual [~Samual@xonotic/core-team/Samual] has quit [Ping timeout: 255 seconds] 20150811 02:02:05-!- RodiX [uid5578@gateway/web/irccloud.com/x-onzbstyvtyzqgtdj] has quit [Quit: Connection closed for inactivity] 20150811 02:02:21-!- Samual [~Samual@xonotic/core-team/Samual] has joined #wesnoth 20150811 02:11:03-!- Falcon` [falcon@hell.kolosowscy.pl] has quit [Ping timeout: 255 seconds] 20150811 02:17:13-!- ArneBab_ [~quassel@55d4516c.access.ecotel.net] has joined #wesnoth 20150811 02:20:25-!- ArneBab [~quassel@55d45b3f.access.ecotel.net] has quit [Ping timeout: 245 seconds] 20150811 02:33:52-!- Appleman1234 [~Appleman1@KD111107188035.au-net.ne.jp] has quit [Ping timeout: 265 seconds] 20150811 02:45:04-!- BrainStyle [~BrainStyl@brainstyled.com] has joined #wesnoth 20150811 03:11:28-!- BrainStyle [~BrainStyl@brainstyled.com] has left #wesnoth ["Leaving"] 20150811 03:31:05-!- Appleman1234 [~Appleman1@KD111107186136.au-net.ne.jp] has joined #wesnoth 20150811 04:15:22-!- Appleman1234 [~Appleman1@KD111107186136.au-net.ne.jp] has quit [Ping timeout: 265 seconds] 20150811 04:20:39-!- oldlaptop [~quassel@50-107-125-36.adr02.mskg.mi.frontiernet.net] has quit [Ping timeout: 240 seconds] 20150811 04:26:13-!- oldlaptop [~quassel@50-107-125-36.adr02.mskg.mi.frontiernet.net] has joined #wesnoth 20150811 04:32:09-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has joined #wesnoth 20150811 05:03:49-!- oldlaptop [~quassel@50-107-125-36.adr02.mskg.mi.frontiernet.net] has quit [Ping timeout: 244 seconds] 20150811 05:12:28-!- Appleman1234 [~Appleman1@KD106179114152.au-net.ne.jp] has joined #wesnoth 20150811 05:16:58-!- Kwandulin [~Miranda@p5B0091DC.dip0.t-ipconnect.de] has joined #wesnoth 20150811 05:21:41-!- oldlaptop [~quassel@50-107-125-36.adr02.mskg.mi.frontiernet.net] has joined #wesnoth 20150811 05:34:35-!- localuser- [~none@unaffiliated/localuser-] has joined #wesnoth 20150811 05:45:21-!- localuser- [~none@unaffiliated/localuser-] has quit [Quit: No Ping reply in 180 seconds.] 20150811 05:46:47-!- localuser- [~none@unaffiliated/localuser-] has joined #wesnoth 20150811 05:53:46-!- localuser- [~none@unaffiliated/localuser-] has quit [Read error: Connection reset by peer] 20150811 06:03:20-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth 20150811 06:25:13-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150811 06:28:00-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has quit [Quit: #AncientBeast - Master Your Beasts ( www.AncientBeast.com )] 20150811 06:43:31-!- [Relic] [~Relic]@2602:306:33a3:6d30:18c2:8741:8b3d:56e9] has quit [Quit: I press the magic X and all the weirdos go away!] 20150811 06:52:00-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20150811 07:03:24-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150811 07:07:44-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Ping timeout: 250 seconds] 20150811 07:26:07-!- shurnormal_ [~uprego@unaffiliated/ushiu] has quit [Quit: reboot] 20150811 07:34:06-!- shurnormal_ [~uprego@unaffiliated/ushiu] has joined #wesnoth 20150811 07:40:50-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has quit [Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] 20150811 08:04:49-!- Appleman1234 [~Appleman1@KD106179114152.au-net.ne.jp] has quit [Ping timeout: 246 seconds] 20150811 08:13:30-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 240 seconds] 20150811 08:21:12-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150811 08:31:01-!- Kwandulin [~Miranda@p5B0091DC.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20150811 09:01:16-!- Appleman1234 [~Appleman1@KD111107187125.au-net.ne.jp] has joined #wesnoth 20150811 09:05:43-!- Appleman1234 [~Appleman1@KD111107187125.au-net.ne.jp] has quit [Ping timeout: 246 seconds] 20150811 09:06:41-!- Kwandulin [~Miranda@p5B0091DC.dip0.t-ipconnect.de] has joined #wesnoth 20150811 09:13:15-!- prkc [~prkc@catv-89-134-159-162.catv.broadband.hu] has quit [Remote host closed the connection] 20150811 09:15:10-!- shadowm_desktop [ignacio@wesnoth/developer/shadowm] has quit [Ping timeout: 246 seconds] 20150811 09:25:16-!- jemadux [~jemadux@unaffiliated/jemadux] has joined #wesnoth 20150811 09:40:40-!- patwotrik [~patwotrik@nl118-172-202.student.uu.se] has joined #wesnoth 20150811 09:53:52-!- Appleman1234 [~Appleman1@KD036012003195.au-net.ne.jp] has joined #wesnoth 20150811 09:56:28-!- Xara [Yangyf@2001:cc0:2020:4010:3571:6b54:7e39:edf2] has joined #wesnoth 20150811 10:27:52-!- Kwandulin [~Miranda@p5B0091DC.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20150811 10:32:52-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20150811 10:32:58-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth 20150811 12:18:48-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20150811 12:20:30-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth 20150811 12:24:18< Gambit> &subreddit list 20150811 12:24:19< janebot> Gambit: https://www.reddit.com/r/wesnoth/new 20150811 12:33:04-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150811 12:34:56-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has joined #wesnoth 20150811 12:57:00-!- Appleman1234 [~Appleman1@KD036012003195.au-net.ne.jp] has quit [Ping timeout: 250 seconds] 20150811 13:27:04-!- Kwandulin [~Miranda@p5B0091DC.dip0.t-ipconnect.de] has joined #wesnoth 20150811 13:39:30-!- Falcon` [falcon@hell.kolosowscy.pl] has joined #wesnoth 20150811 14:03:33-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20150811 14:04:40-!- Kwandulin [~Miranda@p5B0091DC.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 20150811 14:28:44-!- prkc [~prkc@4E5CC75C.dsl.pool.telekom.hu] has joined #wesnoth 20150811 14:39:24-!- [Relic] [~Relic]@2602:306:33a3:6d30:5092:a2cb:6583:8797] has joined #wesnoth 20150811 14:55:28-!- prkc [~prkc@4E5CC75C.dsl.pool.telekom.hu] has quit [Remote host closed the connection] 20150811 15:16:00-!- jemadux [~jemadux@unaffiliated/jemadux] has quit [Read error: Connection reset by peer] 20150811 15:37:03-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has joined #wesnoth 20150811 15:50:16-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has quit [Quit: #AncientBeast - Master Your Beasts ( www.AncientBeast.com )] 20150811 15:53:56-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has joined #wesnoth 20150811 15:58:14-!- Boethiah [~Boethiah@109.113.103.225] has joined #wesnoth 20150811 16:19:35-!- Boethiah [~Boethiah@109.113.103.225] has quit [Ping timeout: 245 seconds] 20150811 16:30:00-!- Elouin_ [~Elouin@p2003004544150200CA6000FFFED11D67.dip0.t-ipconnect.de] has joined #wesnoth 20150811 16:33:28-!- Xara [Yangyf@2001:cc0:2020:4010:3571:6b54:7e39:edf2] has quit [Read error: Connection reset by peer] 20150811 16:44:44-!- ancestral [~ancestral@75-161-229-81.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20150811 16:51:31-!- nuun [afternuun@ipv6.firrre.com] has left #wesnoth ["WeeChat 1.2"] 20150811 16:55:52< celticminstrel> It seems like my Lua filter isn't being called. 20150811 16:56:31< celticminstrel> Ohh, it's lua_function, not lua. Duh. 20150811 16:57:05< celticminstrel> I want a better syntax highlighter. 20150811 17:03:07< celticminstrel> Okay, to check if a location is passable to a unit... is there an easier way than using get_terrain_info() and the unit's movement costs? 20150811 17:07:21< Ravana_> say if you find one, I used general location filter to avoid what is likely impassable, terrain=!,Q*,Q*^*,*^Q*,Mv,X*,X*^*,*^X*,_*^*,*^_* 20150811 17:07:42< celticminstrel> Q and X are... unwalkable and impassable? 20150811 17:07:46< Ravana_> yes 20150811 17:08:04< celticminstrel> But quite a few units can go on unwalkable. 20150811 17:08:10< Ravana_> indeed 20150811 17:08:31< Ravana_> which is why I asked if you got better 20150811 17:08:44< celticminstrel> Hmm. 20150811 17:09:04< celticminstrel> This might be complicated by movetype. 20150811 17:10:53< celticminstrel> Ah, nope, it looks like the [movetype][movement_costs] is copied into the unit's cfg where not overridden. 20150811 17:11:13< celticminstrel> Okay, so then... 20150811 17:13:48< celticminstrel> ...eh? Does Lua not have "continue"? 20150811 17:14:35< celticminstrel> That's annoying. 20150811 17:15:09< celticminstrel> ...wait, it has goto though? 20150811 17:17:02-!- prkc [~prkc@4E5CC75C.dsl.pool.telekom.hu] has joined #wesnoth 20150811 17:20:28< celticminstrel> In retrospect, if it had continue, I might've spent some time trying to figure out why I broke it, because the increment at the end of the loop would've been skipped too. 20150811 17:21:18-!- wario [~wario_@unaffiliated/wario] has joined #wesnoth 20150811 17:25:33< celticminstrel> This isn't working. 20150811 17:25:50< celticminstrel> Ah... 20150811 17:26:09< celticminstrel> There's a get_movement_cost() 20150811 17:26:37< celticminstrel> ...that's not the name. 20150811 17:27:43< celticminstrel> ...and I can't use it on a stored unit. Sigh. 20150811 17:32:05-!- claymore2 [~hexchat@host109-154-204-244.range109-154.btcentralplus.com] has joined #wesnoth 20150811 17:32:45< Ravana_> unit_movement_cost should work for me 20150811 17:37:25< celticminstrel> I feel like I'm going to have to manually reimplement all the moveto and turn refresh logic (villages, poison, healthy, etc etc). 20150811 17:40:13< celticminstrel> Oh, and zone of control. 20150811 17:40:28< celticminstrel> I think villages and zoc are the only moveto things. 20150811 17:41:11-!- Panda_ [~IMO@2a01:e35:8aae:fcb0:a6fd:e761:fbcd:cbc2] has joined #wesnoth 20150811 17:46:11< celticminstrel> Okay, back to the movement cost, it seems like I have two options. 20150811 17:46:14< Ravana_> zoc would be more like enter hex 20150811 17:46:18< celticminstrel> 1) Temporarily unstore the unit somewhere. 20150811 17:46:48< celticminstrel> 2) Manually figure out the terrain's base id (using mvt_alias and aliasof keys). 20150811 17:47:10< Ravana_> got mine work with pastebin.com/tpbPE0t0 20150811 17:47:24< celticminstrel> Ravana_: The movement I'm working with is basically one space. 20150811 17:49:00< celticminstrel> get_unit only gets units on the map, right? So it won't work for me. 20150811 17:49:36< Ravana_> I suspect so, it didn't work with second_unit.id so I had to use location 20150811 17:51:56< celticminstrel> I think temporarily unstoring the unit is easier, but I'm not sure where I should unstore it. 20150811 17:52:41< celticminstrel> The most obvious options are: 1) On top of the transport ship itself. 2) On the hex you're trying to disembark it to. 20150811 17:53:01< Ravana_> with get_recall_units ? 20150811 17:53:12< celticminstrel> It's not in the recall list. 20150811 17:53:16< celticminstrel> It's in a variable. 20150811 17:53:22< Ravana_> but you can unstore it there 20150811 17:53:38< celticminstrel> But then I also need to erase it afterwards. 20150811 17:56:16< celticminstrel> Oh, I could pass the stored variable to wesnoth.create_unit. 20150811 17:57:40< celticminstrel> It works! 20150811 17:58:15< celticminstrel> Ah, wait. 20150811 17:58:32< celticminstrel> It doesn't error, at least. Hmm. 20150811 18:00:31< zookeeper> how exactly is this apparently-very-elaborate ship thing of yours supposed to function from the player POV? 20150811 18:01:41< celticminstrel> I guess similar to Age of Empires? 20150811 18:05:42< celticminstrel> Oh. Impassable terrains have a movement cost of 99, not 0. 20150811 18:18:44< celticminstrel> I wish there was a way to terminate execution of an event, like "return". 20150811 18:19:08< celticminstrel> I suppose I could write the whole event in Lua. 20150811 18:20:44< celticminstrel> Well, never mind. 20150811 18:21:44 * zookeeper would wholeheartedly welcome such a "return" tag 20150811 18:27:29< celticminstrel> There's also no loop control tags, right? Like "break" or "continue" or whatever. 20150811 18:28:12-!- Narrat [~Crebiz@pD9F7F783.dip0.t-ipconnect.de] has joined #wesnoth 20150811 18:33:18-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 246 seconds] 20150811 18:34:36< celticminstrel> After modifying unit.__cfg, I need to do something to make it take effect, right? 20150811 18:40:02-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth 20150811 18:51:20-!- DreadKnight [~DreadKnig@unaffiliated/dreadknight] has joined #wesnoth 20150811 18:51:54-!- claymore2 [~hexchat@host109-154-204-244.range109-154.btcentralplus.com] has quit [Quit: Leaving] 20150811 19:01:39-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Ping timeout: 246 seconds] 20150811 19:02:12-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20150811 19:14:12-!- cyphase [~cyphase@unaffiliated/cyphase] has quit [Max SendQ exceeded] 20150811 19:14:46-!- cyphase [~cyphase@unaffiliated/cyphase] has joined #wesnoth 20150811 19:37:02-!- lipkab [~the_new_l@host-91-147-210-193.biatv.hu] has joined #wesnoth 20150811 20:10:44-!- illumno [~illumno@dslb-088-068-138-250.088.068.pools.vodafone-ip.de] has joined #wesnoth 20150811 20:19:31-!- illumno [~illumno@dslb-088-068-138-250.088.068.pools.vodafone-ip.de] has left #wesnoth ["Leaving"] 20150811 20:25:36< celticminstrel> Would I use put_unit()? 20150811 20:41:29< celticminstrel> Either that doesn't work or I'm doing something else wrong. 20150811 20:42:12< celticminstrel> ...oh, actually, I could do this with [modify_unit] now. 20150811 20:47:31< celticminstrel> Is there a way to clear messages currently shown in the console area, where wesnoth.message() shows? 20150811 20:48:48< Ravana_> :clear or ctrl+x 20150811 20:49:03< celticminstrel> Oh, yay. 20150811 20:51:37< celticminstrel> ...okay, why does $($a + $b) yield 0 when $a and $b are both 1... 20150811 20:52:39< celticminstrel> Do I not need the interior $'s? 20150811 20:52:53 * celticminstrel will try that. 20150811 20:58:16< celticminstrel> Doesn't work. 20150811 21:00:44-!- shadowm_desktop [ignacio@wesnoth/developer/shadowm] has joined #wesnoth 20150811 21:01:30< celticminstrel> As a random aside, it looks like a negative upkeep is equivalent to 0. Not that that's a problem. 20150811 21:02:02< celticminstrel> $($a - $b) is working fine, but $($a + $b) is not... 20150811 21:05:35-!- Panda_ [~IMO@2a01:e35:8aae:fcb0:a6fd:e761:fbcd:cbc2] has quit [Remote host closed the connection] 20150811 21:14:31< celticminstrel> $(1 + 1) yields an empty string. o.O 20150811 21:15:44< celticminstrel> ...ah, I see, conflict between WML string concatenation and FormulaAI addition. 20150811 21:40:27< aeth> So this means that dialogs can go to more than one player simultaneously, outside of a player's turn? http://wiki.wesnoth.org/LuaWML:Misc#wesnoth.synchronize_choice 20150811 21:40:51< aeth> How would this handle more than one side being controlled by the same Wesnoth client? 20150811 21:42:19< aeth> If this works as I think it does, it's pretty interesting because e.g. this could mean simultaneous shopping in MP scenarios with shops, which is one of the more time consuming things in MP scenarios with shops 20150811 21:47:44< Ravana_> I believe it is possible to show unsynced menu, save changes in local lua, and at players turn apply saved changes 20150811 21:49:41< Ravana_> I found example how to sync variables with global variables not synchronize_choice though 20150811 21:52:17-!- louis94 [~louis@91.178.51.139] has joined #wesnoth 20150811 21:54:42-!- lipkab [~the_new_l@host-91-147-210-193.biatv.hu] has quit [Quit: Leaving] 20150811 22:02:46-!- Elouin_ [~Elouin@p2003004544150200CA6000FFFED11D67.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 20150811 22:14:16-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 250 seconds] 20150811 22:18:20< aeth> Ravana_: ah great 20150811 22:18:39< aeth> Ravana_: so Wesnoth very slowly is moving toward something suitable for RPGs 20150811 22:18:48< aeth> I wonder if Wesnoth will be able to read mail one day. 20150811 22:20:16< Ravana_> if http://forums.wesnoth.org/viewtopic.php?f=2&t=40934 develops then likely 20150811 22:20:53-!- c74d [~c74d3a4eb@2002:4404:712c:0:76de:2bff:fed4:2766] has quit [Remote host closed the connection] 20150811 22:21:01< aeth> now all we need is something like set_menu_item but based on chat commands 20150811 22:21:06< aeth> so you can launch dialogs based on !foo 20150811 22:21:27< celticminstrel> Whoa, what are all these numbers when I press Cmd-V. 20150811 22:21:41< celticminstrel> (Show Enemy Moves) 20150811 22:21:44< aeth> show best possible enemy moves 20150811 22:21:51< aeth> oh sorry that's b 20150811 22:21:53< aeth> v is just moves 20150811 22:21:57< celticminstrel> No, that doesn't answer my question though. 20150811 22:22:10< celticminstrel> What do the numbers mean? 20150811 22:22:18< aeth> probably how many units can go there 20150811 22:22:26< aeth> there is no 1, so a simple highlight is 1 20150811 22:22:38< celticminstrel> Ah... I suppose that makes sense. 20150811 22:22:38< aeth> v takes ZoC into account, b doesn't 20150811 22:22:47< aeth> celticminstrel: well imo it would make more sense with 1 20150811 22:22:52< aeth> Idk why they don't show 1 20150811 22:23:20< celticminstrel> With "best" there seems to be more possible moves... 20150811 22:23:29< aeth> right, best doesn't take ZoC into account 20150811 22:23:36< aeth> so they literally move through, over, and on your units 20150811 22:23:59< aeth> I guess that's for if you're planning to retreat for the ToD 20150811 22:24:39-!- c74d [~c74d3a4eb@2002:4404:712c:0:76de:2bff:fed4:2766] has joined #wesnoth 20150811 22:25:39-!- Appleman1234 [~Appleman1@KD106179124188.au-net.ne.jp] has joined #wesnoth 20150811 22:38:49-!- c74d [~c74d3a4eb@2002:4404:712c:0:76de:2bff:fed4:2766] has quit [Remote host closed the connection] 20150811 22:42:29-!- louis94 [~louis@91.178.51.139] has quit [Quit: Konversation terminated!] 20150811 22:45:45< celticminstrel> The wiki says of get_unit: "Returns the unit at the given location or with the given underlying ID. " 20150811 22:46:14< celticminstrel> By calling wesnoth.get_unit("ID"), I seem to get an error "number expected, got string". 20150811 22:46:36-!- Appleman1234 [~Appleman1@KD106179124188.au-net.ne.jp] has quit [Ping timeout: 244 seconds] 20150811 22:47:05-!- prkc [~prkc@4E5CC75C.dsl.pool.telekom.hu] has quit [Remote host closed the connection] 20150811 22:47:53-!- c74d [~c74d3a4eb@2002:4404:712c:0:76de:2bff:fed4:2766] has joined #wesnoth 20150811 22:47:59< Ravana_> I got same 2h ago 20150811 22:48:00< shadowm> celticminstrel: Underlying id, not unit id. The underlying id is an implementation detail you shouldn't touch . 20150811 22:48:09< celticminstrel> Eh? 20150811 22:48:22< shadowm> Yes. 20150811 22:48:43< shadowm> Use wesnoth.get_units({ id = "foo" })[0] instead. 20150811 22:49:03< celticminstrel> I just did that. Then I remembered Lua is weird in starting arrays at 1. 20150811 22:49:10< shadowm> Yes, 1. 20150811 22:49:18< shadowm> Not 0. 20150811 22:49:45< celticminstrel> Okay, works now. This was a code path rarely reached, so that bug's probably been there since the beginning. 20150811 22:50:22< celticminstrel> ...I'm actually kind of surprised it was reached now. 20150811 22:51:01< celticminstrel> I have the dwarves, so it should pick them... 20150811 22:55:02< celticminstrel> Yeah, this is definitely broken... 20150811 22:55:29< celticminstrel> Oh. 20150811 22:55:43 * celticminstrel used > where it should've been >= 20150811 23:00:16-!- wario [~wario_@unaffiliated/wario] has quit [Quit: Leaving] 20150811 23:25:57-!- Narrat [~Crebiz@pD9F7F783.dip0.t-ipconnect.de] has quit [Remote host closed the connection] 20150811 23:36:56-!- Haudegen [~quassel@85.124.51.57] has quit [Ping timeout: 272 seconds] 20150811 23:45:45-!- Haudegen [~quassel@85.124.51.57] has joined #wesnoth --- Log closed Wed Aug 12 00:00:29 2015