--- Log opened Mon Mar 18 00:00:54 2013 20130318 00:10:10-!- jieverson [c8af5019@gateway/web/freenode/ip.200.175.80.25] has joined #wesnoth-umc-dev 20130318 00:12:00-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 252 seconds] 20130318 00:53:52-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130318 01:15:40-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130318 01:19:01-!- un214 [~un214@2602:304:37b8:de69:224:8cff:fed2:ef57] has joined #wesnoth-umc-dev 20130318 01:19:24< un214> 40% chance to hit each swing, 100% chance to kill this attack 20130318 01:19:26< un214> sheesh 20130318 01:21:44-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20130318 01:24:02< irker935> wesnoth-umc-dev: vultraz * r17647 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 01:24:02< irker935> wesnoth-umc-dev: NX: made more variables local 20130318 01:36:11< irker935> wesnoth-umc-dev: vultraz * r17648 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 01:36:12< irker935> wesnoth-umc-dev: NX: don't wrap put_unit arg in quotes 20130318 01:46:03-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130318 01:47:24-!- un214 [~un214@2602:304:37b8:de69:224:8cff:fed2:ef57] has quit [Remote host closed the connection] 20130318 02:05:56< irker935> wesnoth-umc-dev: vultraz * r17649 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 02:05:57< irker935> wesnoth-umc-dev: NX: corrected some variables being used out of scope 20130318 02:08:04< irker935> wesnoth-umc-dev: vultraz * r17650 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 02:08:04< irker935> wesnoth-umc-dev: NX: deleted an unnecessary line 20130318 02:22:28-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has joined #wesnoth-umc-dev 20130318 02:24:54< irker935> wesnoth-umc-dev: vultraz * r17651 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 02:25:28< irker935> wesnoth-umc-dev: NX: used set_dialog_callback correctly 20130318 02:36:31-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130318 03:31:37-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20130318 05:28:12< irker935> wesnoth-umc-dev: vultraz * r17652 /trunk/NX-RPG/lua/NX-RPG.lua: 20130318 05:28:13< irker935> wesnoth-umc-dev: NX: added get_subtag function, written by 8680 for his lua pack 20130318 05:39:21< irker935> wesnoth-umc-dev: vultraz * r17653 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 05:39:21< irker935> wesnoth-umc-dev: NX: decrease quantity of item in WML table and not lua table 20130318 05:47:01< irker935> wesnoth-umc-dev: vultraz * r17654 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 05:47:02< irker935> wesnoth-umc-dev: NX: allowed inventory to refresh after using buttons 20130318 05:50:22< irker935> wesnoth-umc-dev: vultraz * r17655 /trunk/NX-RPG/about.cfg: 20130318 05:50:22< irker935> wesnoth-umc-dev: NX: added 8680 to the credits 20130318 06:05:35-!- jieverson [c8af5019@gateway/web/freenode/ip.200.175.80.25] has quit [Quit: Page closed] 20130318 06:12:00-!- mattsc [~mattsc@d154-20-34-165.bchsia.telus.net] has quit [Quit: bye] 20130318 06:12:19-!- Blueblaze [~Blueblaze@adsl-99-158-47-208.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20130318 07:00:06< irker935> wesnoth-umc-dev: doofus-01 * r17656 /trunk/Trinity/maps/ (F4b2pre.map F4b2.map): 20130318 07:00:07< irker935> wesnoth-umc-dev: added a castle terrain near river, just cause 20130318 07:01:20< irker935> wesnoth-umc-dev: doofus-01 * r17657 /trunk/Trinity/images/portraits/ (trinity-echidna.png caldera.png): 20130318 07:01:20< irker935> wesnoth-umc-dev: minor touch-up to Caldera portrait 20130318 07:02:28< irker935> wesnoth-umc-dev: doofus-01 * r17658 /trunk/Trinity/images/terrain/clouds/ (5 files): 20130318 07:02:28< irker935> wesnoth-umc-dev: some attempts at improving clouds terrain-graphics, not finished 20130318 07:03:51< irker935> wesnoth-umc-dev: doofus-01 * r17659 /trunk/Trinity/utils/cloud-terrain.cfg: 20130318 07:03:51< irker935> wesnoth-umc-dev: some attempts at improving clouds terrain-graphics, not finished 20130318 07:05:33< irker935> wesnoth-umc-dev: doofus-01 * r17660 /trunk/Trinity/scenarios/ (F3b_Vrug.cfg F5b_Illusions.cfg F4b_Betrayal.cfg F2b_Pass.cfg): 20130318 07:05:34< irker935> wesnoth-umc-dev: some clean-up of near-end scenarios of Lake Vrug branch - not done. 20130318 07:06:40-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130318 07:36:33-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20130318 07:37:08< irker935> wesnoth-umc-dev: vultraz * r17661 /trunk/NX-RPG/ (lua/functions.lua lua/NX-RPG.lua _main.cfg): 20130318 07:37:09< irker935> wesnoth-umc-dev: NX: added rest of variable functions from 8680's lua pack 20130318 07:42:11-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20130318 07:43:08< irker935> wesnoth-umc-dev: vultraz * r17662 /trunk/NX-RPG/lua/functions.lua: 20130318 07:43:09< irker935> wesnoth-umc-dev: NX: made comment format consistent with other files 20130318 07:44:11< irker935> wesnoth-umc-dev: vultraz * r17663 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 07:44:11< irker935> wesnoth-umc-dev: NX: added a fallback value for the quantity widget 20130318 07:51:11-!- Blueblaze [~Blueblaze@adsl-99-158-47-208.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20130318 07:55:09< irker935> wesnoth-umc-dev: vultraz * r17664 /trunk/NX-RPG/lua/gui/character_development.lua: 20130318 07:55:09< irker935> wesnoth-umc-dev: NX: wip code 20130318 09:15:25-!- Blueblaze [~Blueblaze@adsl-99-158-47-208.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20130318 10:17:27-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130318 10:29:24-!- Octalot [~noct@host86-147-144-75.range86-147.btcentralplus.com] has joined #wesnoth-umc-dev 20130318 10:55:12-!- irker935 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20130318 13:06:19-!- irker351 [~irker@ai0867.net] has joined #wesnoth-umc-dev 20130318 13:06:19< irker351> wesnoth-umc-dev: vultraz * r17665 /trunk/NX-RPG/lua/gui/character_development.lua: 20130318 13:06:19< irker351> wesnoth-umc-dev: NX: almost got the character development working with the new code. Just the trait effect to deal with 20130318 13:24:03< irker351> wesnoth-umc-dev: vultraz * r17666 /trunk/NX-RPG/lua/gui/character_development.lua: 20130318 13:24:03< irker351> wesnoth-umc-dev: NX: use labels above listboxes instead of listbox headers 20130318 13:31:38-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-umc-dev 20130318 13:31:41-!- mode/#wesnoth-umc-dev [+v loonybot] by ChanServ 20130318 13:57:43< irker351> wesnoth-umc-dev: vultraz * r17667 /trunk/NX-RPG/lua/gui/character_development.lua: 20130318 13:57:44< irker351> wesnoth-umc-dev: NX: converted gui variables into indent format used by AtS, as it's easier to read. May revert later 20130318 13:58:45< irker351> wesnoth-umc-dev: vultraz * r17668 /trunk/NX-RPG/lua/gui/character_development.lua: 20130318 13:58:45< irker351> wesnoth-umc-dev: NX: corrected var names 20130318 14:00:54< irker351> wesnoth-umc-dev: vultraz * r17669 /trunk/NX-RPG/lua/gui/character_development.lua: 20130318 14:00:55< irker351> wesnoth-umc-dev: NX: kept buttons aligned to bottom 20130318 14:04:35< irker351> wesnoth-umc-dev: vultraz * r17670 /trunk/NX-RPG/lua/gui/character_development.lua: 20130318 14:04:35< irker351> wesnoth-umc-dev: NX: adjusted some borders 20130318 14:09:24< irker351> wesnoth-umc-dev: vultraz * r17671 /trunk/NX-RPG/lua/gui/item_pickup.lua: 20130318 14:09:24< irker351> wesnoth-umc-dev: NX: converted gui variables into indent format used by AtS, as it's easier to read. May revert later 20130318 14:12:28-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130318 14:15:32-!- Blueblaze [~Blueblaze@adsl-99-158-47-208.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20130318 14:22:13-!- Blueblaze [~Blueblaze@adsl-99-158-47-208.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20130318 16:05:53< irker351> wesnoth-umc-dev: vultraz * r17672 /trunk/NX-RPG/lua/gui/inventory.lua: 20130318 16:05:53< irker351> wesnoth-umc-dev: NX: delete index if quantity == 0 when item is used 20130318 16:22:49-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has joined #wesnoth-umc-dev 20130318 16:39:56< irker351> wesnoth-umc-dev: vultraz * r17673 /trunk/NX-RPG/episode1/scenarios/01_Awakening_part_1.cfg: 20130318 16:39:57< irker351> wesnoth-umc-dev: NX: since the item pickup dialog is fixed, no need for the testcase 20130318 16:41:56-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has quit [Quit: And that’s the end of THAT chapter.] 20130318 16:47:18-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130318 16:48:09-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130318 16:48:36< irker351> wesnoth-umc-dev: vultraz * r17674 /trunk/NX-RPG/lua/gui/item_pickup.lua: 20130318 16:48:36< irker351> wesnoth-umc-dev: NX: fallback for if the quantity field is nil 20130318 17:24:58-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130318 17:34:52-!- mattsc [~mattsc@fw.hia.nrc.ca] has joined #wesnoth-umc-dev 20130318 18:08:57-!- Octalot [~noct@host86-147-144-75.range86-147.btcentralplus.com] has quit [Remote host closed the connection] 20130318 18:44:38-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has joined #wesnoth-umc-dev 20130318 19:51:37-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-umc-dev 20130318 19:53:43-!- irker351 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20130318 19:54:14-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Client Quit] 20130318 19:54:47-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-umc-dev 20130318 20:12:59-!- irker367 [~irker@ai0867.net] has joined #wesnoth-umc-dev 20130318 20:13:00< irker367> wesnoth-umc-dev: shikadilord * r17675 /trunk/After_the_Storm/episode2/scenarios/04_Shifting_Allegiances.cfg: 20130318 20:13:00< irker367> wesnoth-umc-dev: AtS E2S4: remove unused code 20130318 20:13:22< irker367> wesnoth-umc-dev: shikadilord * r17676 /trunk/After_the_Storm/episode2/scenarios/04_Shifting_Allegiances.cfg: 20130318 20:13:23< irker367> wesnoth-umc-dev: AtS E2S4: try to minimize animation glitches during the initial cutscene 20130318 20:13:23< irker367> wesnoth-umc-dev: Namely, the kind of glitch where a unit comes into view and gets drawn 20130318 20:13:24< irker367> wesnoth-umc-dev: before we get a chance to play their post_teleport animation. This is 20130318 20:13:24< irker367> wesnoth-umc-dev: pretty much inevitable, but by changing the order of the WML actions 20130318 20:13:25< irker367> wesnoth-umc-dev: affecting Elorran, and spawning Tara at the target location pre-hidden, 20130318 20:13:25< irker367> wesnoth-umc-dev: the effect seems to disappear on a high-end machine. 20130318 20:13:52< irker367> wesnoth-umc-dev: shikadilord * r17677 /trunk/After_the_Storm/ (base-loader.cfg lua/overrides.lua changelog): 20130318 20:13:53< irker367> wesnoth-umc-dev: AtS: workaround [lock_view] + [move_unit_fake]/[move_unit] interaction bug on Wesnoth 1.11.x 20130318 20:13:53< irker367> wesnoth-umc-dev: Due to an oversight of mine when implementing the lock_view/unlock_view 20130318 20:13:54< irker367> wesnoth-umc-dev: feature, unit movement is affected by the lock_view option as though the 20130318 20:13:54< irker367> wesnoth-umc-dev: "Follow unit actions" was disabled in Advanced Preferences. 20130318 20:13:55< irker367> wesnoth-umc-dev: In order to allow [move_unit_fake] and [move_unit] (which is implemented 20130318 20:13:55< irker367> wesnoth-umc-dev: using [move_unit_fake]) to scroll the viewport as necessary when the 20130318 20:13:56< irker367> wesnoth-umc-dev: (Log message trimmed.) 20130318 20:14:12< irker367> wesnoth-umc-dev: shikadilord * r17678 /trunk/After_the_Storm/units/faeries/Guardian_of_Earth_Aradellys.cfg: 20130318 20:14:13< irker367> wesnoth-umc-dev: AtS: fix typo causing one of Aradellys' death frames to be never shown 20130318 20:14:37< irker367> wesnoth-umc-dev: shikadilord * r17679 /trunk/After_the_Storm/episode3/scenarios/13_Epilogue.cfg: 20130318 20:14:38< irker367> wesnoth-umc-dev: AtS E3S13: minor timing adjustments related to Aradellys' death pseudo-animation fix 20130318 20:14:58< irker367> wesnoth-umc-dev: shikadilord * r17680 /trunk/After_the_Storm/episode2/scenarios/04_Shifting_Allegiances.cfg: 20130318 20:14:59< irker367> wesnoth-umc-dev: AtS E2S4: make the initial statues rock elementals instead of demons 20130318 20:15:23< irker367> wesnoth-umc-dev: shikadilord * r17681 /trunk/After_the_Storm/episode2/scenarios/04_Shifting_Allegiances.cfg: 20130318 20:15:23< irker367> wesnoth-umc-dev: AtS E2S4: minor prose revisions from myself 20130318 20:15:46< irker367> wesnoth-umc-dev: shikadilord * r17682 /trunk/After_the_Storm/lua/overrides.lua: 20130318 20:15:47< irker367> wesnoth-umc-dev: AtS: fix new bug introduced by the [lock_view] + [move_unit_fake]/[move_unit] workaround 20130318 20:15:47< irker367> wesnoth-umc-dev: The statement ( wesnoth.view_locked ) always yields true with Lua on 20130318 20:15:48< irker367> wesnoth-umc-dev: Wesnoth 1.11.x because it tests for the existence of the view_locked 20130318 20:15:48< irker367> wesnoth-umc-dev: function pointer, not its result. The fix is replacing it with 20130318 20:15:49< irker367> wesnoth-umc-dev: ( wesnoth.view_locked() == true ) in the code. 20130318 20:15:56< bumbadadabum> dat commits! 20130318 20:16:06< irker367> wesnoth-umc-dev: shikadilord * r17683 /trunk/After_the_Storm/episode2/scenarios/04_Shifting_Allegiances.cfg: 20130318 20:16:07< irker367> wesnoth-umc-dev: AtS E2S4: make enemy leaders passive so they stop wandering off 20130318 20:16:46< irker367> wesnoth-umc-dev: shikadilord * r17684 /trunk/After_the_Storm/ (7 files in 3 dirs): 20130318 20:16:46< irker367> wesnoth-umc-dev: AtS: update Elynia's baseframes 20130318 20:17:12< irker367> wesnoth-umc-dev: shikadilord * r17685 /trunk/After_the_Storm/ (units/faeries/Guardian_of_Earth_Elynia.cfg changelog): 20130318 20:17:12< irker367> wesnoth-umc-dev: AtS: increased Elynia's (post-Divergence) ensnare attack strength from 9-3 to 9-4 20130318 20:17:35< irker367> wesnoth-umc-dev: shikadilord * r17686 /trunk/After_the_Storm/ (units/faeries/Sylvan_Warden_E3.cfg changelog): 20130318 20:17:35< irker367> wesnoth-umc-dev: AtS: increase Elynia's (E3) mystic fire attack strength from 5-4 to 5-5 to match E1/E2 20130318 20:17:58< irker367> wesnoth-umc-dev: shikadilord * r17687 /trunk/After_the_Storm/ (episode2/scenarios/04_Shifting_Allegiances.cfg changelog): 20130318 20:17:59< irker367> wesnoth-umc-dev: AtS E2S4: reduced turn limit from 34/33/32 to 28/27/26 20130318 20:18:22< irker367> wesnoth-umc-dev: shikadilord * r17688 /trunk/After_the_Storm/episode2/scenarios/04_Shifting_Allegiances.cfg: 20130318 20:18:23< irker367> wesnoth-umc-dev: AtS E2S4: slight tweaks to the initial cutscene to prevent faerie halo glitches 20130318 20:18:23< irker367> wesnoth-umc-dev: Haloes are (re)moved from the map when [store_unit] is used, but not 20130318 20:18:24< irker367> wesnoth-umc-dev: when [teleport] is used, thus leaving Anya and Tara's halos behind until 20130318 20:18:24< irker367> wesnoth-umc-dev: they are finally stored away at the end of the cutscene. 20130318 20:18:25< irker367> wesnoth-umc-dev: This commit changes the cutscene such that Anya and Tara are stored and 20130318 20:18:26< irker367> wesnoth-umc-dev: removed from the map along with their halos immediately after they 20130318 20:18:26< irker367> wesnoth-umc-dev: (Log message trimmed.) 20130318 20:18:40< irker367> wesnoth-umc-dev: shikadilord * r17689 /trunk/After_the_Storm/episode2/scenarios/04_Shifting_Allegiances.cfg: 20130318 20:18:40< irker367> wesnoth-umc-dev: AtS E2S4: timing adjustment 20130318 20:19:03< irker367> wesnoth-umc-dev: shikadilord * r17690 /trunk/After_the_Storm/ (episode2/maps/04_Shifting_Allegiances.map changelog): 20130318 20:19:04< irker367> wesnoth-umc-dev: AtS E2S4: minor map balancing tweaks 20130318 20:19:29< irker367> wesnoth-umc-dev: shikadilord * r17691 /trunk/After_the_Storm/ (episode2/scenarios/04_Shifting_Allegiances.cfg changelog): 20130318 20:19:30< irker367> wesnoth-umc-dev: AtS E2S4: minor additional balancing changes 20130318 20:19:30< irker367> wesnoth-umc-dev: * Reduce Elorran's initial gold supply 20130318 20:19:31< irker367> wesnoth-umc-dev: * Increase side 3's (the enemy side closer to the player) AI aggressiveness 20130318 20:19:55< irker367> wesnoth-umc-dev: shikadilord * r17692 /trunk/After_the_Storm/ (3 files in 2 dirs): 20130318 20:19:55< irker367> wesnoth-umc-dev: AtS: update Ivyel's baseframes 20130318 20:20:21< irker367> wesnoth-umc-dev: shikadilord * r17693 /trunk/After_the_Storm/episode2/scenarios/05_The_Eastern_Front.cfg: 20130318 20:20:22< irker367> wesnoth-umc-dev: AtS E2S5: scroll to primary/secondary unit after dialog 20130318 20:20:43< irker367> wesnoth-umc-dev: shikadilord * r17694 /trunk/After_the_Storm/episode2/scenarios/05_The_Eastern_Front_cutscene.cfg: 20130318 20:20:44< irker367> wesnoth-umc-dev: AtS E2S5.2: fade out music at the end 20130318 20:21:09< irker367> wesnoth-umc-dev: shikadilord * r17695 /trunk/After_the_Storm/episode2/ (storytxt.cfg scenarios/06_The_Voyage_Home.cfg): 20130318 20:21:10< irker367> wesnoth-umc-dev: AtS E2S6: start playing main scenario music during the story screen 20130318 20:21:33< irker367> wesnoth-umc-dev: shikadilord * r17696 /trunk/After_the_Storm/ (lua/common.lua changelog): 20130318 20:21:34< irker367> wesnoth-umc-dev: AtS: do not display floating label when dealing 1 HP damage with [animate_atatck] 20130318 20:21:34< irker367> wesnoth-umc-dev: It tends to look silly and it's usually a consequence of using this for 20130318 20:21:35< irker367> wesnoth-umc-dev: attacking a unit which is already nearly dead (e.g. Galas in E1S9.3, 20130318 20:21:35< irker367> wesnoth-umc-dev: Elynia in E2S12, Elynia again in E3S9). 20130318 20:21:57< irker367> wesnoth-umc-dev: shikadilord * r17697 /trunk/After_the_Storm/ (2 files in 2 dirs): 20130318 20:21:57< irker367> wesnoth-umc-dev: AtS: update baseframe for Argan 20130318 20:22:23< irker367> wesnoth-umc-dev: shikadilord * r17698 /trunk/After_the_Storm/ (episode2/scenarios/07_Proximus.cfg changelog): 20130318 20:22:24< irker367> wesnoth-umc-dev: AtS E2S7: address minor fog refresh issues during the initial cutscene 20130318 20:22:45< irker367> wesnoth-umc-dev: shikadilord * r17699 /trunk/After_the_Storm/episode2/scenarios/08_And_then_there_was_Chaos.cfg: 20130318 20:22:45< irker367> wesnoth-umc-dev: AtS E2S8: lock view during the initial cutscene 20130318 20:23:10< irker367> wesnoth-umc-dev: shikadilord * r17700 /trunk/After_the_Storm/images/units/fairies/guardian-of-earth-aradellys-dying-1.png: 20130318 20:23:11< irker367> wesnoth-umc-dev: AtS: update Aradellys' death animation frame #1 20130318 20:23:36< irker367> wesnoth-umc-dev: shikadilord * r17701 /trunk/After_the_Storm/ (episode2/scenarios/08_And_then_there_was_Chaos.cfg changelog): 20130318 20:23:37< irker367> wesnoth-umc-dev: AtS E2S8: minor balancing changes to increase difficulty 20130318 20:23:37< irker367> wesnoth-umc-dev: * Make certain AI sides less suicidal 20130318 20:23:38< irker367> wesnoth-umc-dev: * Increase initial gold supply for side 2 (Ivyel) on Easy and Normal 20130318 20:23:38< irker367> wesnoth-umc-dev: difficulty levels 20130318 20:25:35< irker367> wesnoth-umc-dev: shikadilord * r17702 /trunk/After_the_Storm/ (5 files in 3 dirs): 20130318 20:25:36< irker367> wesnoth-umc-dev: AtS: add minor AMLAs for Elynia and Anya from E2 onwards 20130318 20:25:36< irker367> wesnoth-umc-dev: Carryover of these AMLAs hasn't been tested with E3S1 yet. 20130318 20:35:15< bumbadadabum> mattsc: I really cannot fix my AI 20130318 20:36:25< mattsc> bumbadadabum: meaning you get errors that you don't know how to fix? 20130318 20:36:35< bumbadadabum> the game crashes before I can get those errors 20130318 20:36:51< mattsc> Remind me again what OS you're using? 20130318 20:37:27< bumbadadabum> Mac OSX 20130318 20:37:53< bumbadadabum> 10.6.8 to be precise 20130318 20:37:59< mattsc> So, if you launch from the CL, you should get a Lua error message in the terminal that explains what causes the crash 20130318 20:38:07< bumbadadabum> ok 20130318 20:38:16< mattsc> (that's how I found out what was going on when I looked for the previous problem) 20130318 20:38:34< mattsc> One problem for that with your setup though: 20130318 20:38:54< mattsc> It gives a line number, which is the line number in the Lua code, not the scenario file 20130318 20:39:17< mattsc> So you either need to count those, or put the lua code into an external file, in which case it will be the line number in that file 20130318 20:39:20< bumbadadabum> ok 20130318 20:39:24< bumbadadabum> I can count 20130318 20:39:37< bumbadadabum> (I think) 20130318 20:39:59< mattsc> I don't doubt that, but why should I count myself if I can have the computer do it for me ;) 20130318 20:41:12< bumbadadabum> 20130318 20:40:52 error ai/engine/lua: error while initializing ai: [string "..."]:39: unexpected symbol near '[' 20130318 20:41:12< bumbadadabum> 20130318 20:40:52 error ai/engine/cpp: side 3 : UNABLE TO CREATE engine[lua] 20130318 20:41:21< bumbadadabum> This seems useful enough 20130318 20:41:43< mattsc> yep. that sounds like a syntax error. Missing ) or } or " or something 20130318 20:42:46< bumbadadabum> local distance[i].x = q.x 20130318 20:42:55< bumbadadabum> I guess this syntax is incorrect in lua? 20130318 20:43:08< mattsc> That looks ok. 20130318 20:43:28< mattsc> Often, an error like this originates before the line for which the error message shows up. 20130318 20:43:45< mattsc> Just like missing closing " in WML. 20130318 20:45:56< mattsc> bumbadadabum: oh, no that line does not make sense... 20130318 20:46:16< mattsc> sorry, wasn't paying enough attention 20130318 20:46:42< mattsc> You're defining a variable here, with indices and everything. That's not correct syntax. 20130318 20:46:47< bumbadadabum> ok 20130318 20:46:54< bumbadadabum> That's a shame 20130318 20:47:25< bumbadadabum> How would I need to do it then? 20130318 20:47:27< mattsc> you could do things like this: 20130318 20:47:37< mattsc> local distance = {} 20130318 20:47:48< mattsc> distance[i] = {} 20130318 20:47:56< mattsc> distance[i].x = q.x 20130318 20:48:05< mattsc> Just to show you the sequence... 20130318 20:48:31< bumbadadabum> http://pastebin.com/WpMUC3rs 20130318 20:48:33< mattsc> You can also put this into one line by something like this (might include typos, just to show you how to do it) 20130318 20:48:39< bumbadadabum> Is there a good way to do this? 20130318 20:48:53< bumbadadabum> I want to get all enemies 20130318 20:49:04< bumbadadabum> or wait 20130318 20:49:04< mattsc> Oh, that's what you're doing... 20130318 20:49:05< bumbadadabum> I see 20130318 20:49:15< bumbadadabum> why the fuck did I do it this way in the first place... 20130318 20:49:38< mattsc> in this case, remove the 'local' in front of all lines. 20130318 20:49:41< bumbadadabum> or wait I don't 20130318 20:49:49< mattsc> and put: 20130318 20:49:52< mattsc> local distance 20130318 20:50:04< mattsc> before the 'for' loop 20130318 20:50:37< bumbadadabum> and it'll work? 20130318 20:50:41< mattsc> ... remove from the beginning of the lines ... I mean 20130318 20:50:57< mattsc> Do you understand why this isn't working? 20130318 20:51:07< bumbadadabum> not really 20130318 20:51:30< bumbadadabum> I just hear it's invalid syntax 20130318 20:51:32< mattsc> It's because you are trying to add something to an array, while the 'local' means definition of a new variable 20130318 20:51:34< bumbadadabum> I can understand that 20130318 20:51:40< bumbadadabum> ok 20130318 20:52:07< bumbadadabum> http://pastebin.com/1Vq7PpkA 20130318 20:52:15< bumbadadabum> mattsc: So this loop will work now? 20130318 20:52:20< mattsc> So you want to define the variable once, simply by putting 'local distance' or 'local distance = {}' before the loop. 20130318 20:52:55< mattsc> Why don't you just try? (I think it should, yes) 20130318 21:01:44< bumbadadabum> 20130318 21:00:06 error scripting/lua: [string "..."]:32: bad argument #1 to 'get_units' (WML table expected, got table) 20130318 21:01:44< bumbadadabum> stack traceback: 20130318 21:01:45< bumbadadabum> [C]: in function 'get_units' 20130318 21:01:45< bumbadadabum> [string "..."]:32: in function 'attack_acolytes' 20130318 21:01:45< bumbadadabum> [string "(...):attack_acolytes()"]:1: in main chunk 20130318 21:01:58< bumbadadabum> mattsc: Does it requires ()s? 20130318 21:02:49< mattsc> get_units? Not in general. 20130318 21:03:26< mattsc> What the error message says is that the table you are passing is not in WML format 20130318 21:03:36< mattsc> ... WML table format 20130318 21:03:46< bumbadadabum> wesnoth.get_units { type = "Elvish Acolyte, Elvish Ascetic", 20130318 21:03:46< bumbadadabum> { "filter_location" , 20130318 21:03:46< bumbadadabum> { { x = p.x , y = p.y , radius = 5 } } 20130318 21:03:47< bumbadadabum> } 20130318 21:03:47< bumbadadabum> } 20130318 21:03:50< bumbadadabum> it's this one 20130318 21:05:36< mattsc> Eliminate one set of { } around the x = p.x line ? 20130318 21:06:03< bumbadadabum> hmm? 20130318 21:06:07< bumbadadabum> I thought that was needed 20130318 21:06:13< bumbadadabum> the LoW code I based it on has 2 20130318 21:07:30< mattsc> Can you point me to the exact place where that's happening? It depends on whether there's another tag inside the {} or just keys. 20130318 21:08:07< mattsc> Crudely speaking, tags need the extra {}, keys do not. 20130318 21:09:46< bumbadadabum> { { "enemy_of", { side = wesnoth.current.side } } } 20130318 21:09:50< bumbadadabum> this line yeah 20130318 21:09:58< mattsc> yes, that's different. 20130318 21:10:33< mattsc> Look at this: http://pastebin.com/nMMuees4 20130318 21:10:46< bumbadadabum> ok 20130318 21:11:13< mattsc> There's {{ between not and filter_wml and between filter_Wml and status 20130318 21:11:23< mattsc> but only { between status and petrified. 20130318 21:11:39< bumbadadabum> And now sort doesn't work 20130318 21:12:08< mattsc> That's because the former are tags, the latter's a key. 20130318 21:12:22< bumbadadabum> table.sort(distance, function(a, b) return a < b end) 20130318 21:12:22< mattsc> It becomes more obvious what's going on if you look at this variable with dbms 20130318 21:13:34< mattsc> Put a dbms(distance) after the for loop and you should be able to see why. 20130318 21:13:53< bumbadadabum> (table expected, got nil) 20130318 21:14:08< mattsc> I could just tell you, but then I'll have to trouble-shoot it for you next time again and I'm too lazy for that. :P 20130318 21:15:01< bumbadadabum> Will a dbms help me? 20130318 21:15:11< mattsc> It should 20130318 21:15:32< mattsc> ... assuming you know what the table.sort function does. 20130318 21:15:43< bumbadadabum> I copied it from your code 20130318 21:15:54< bumbadadabum> after you told me it sorts 20130318 21:15:56< bumbadadabum> :p 20130318 21:16:55< mattsc> Well, why don't you use this one then: 20130318 21:16:56< mattsc> table.sort(holes, function(a, b) return a.random > b.random end) 20130318 21:17:01< mattsc> It also sorts. :D 20130318 21:17:11< mattsc> (and it also appears in my code) 20130318 21:17:24< bumbadadabum> I'm not that much a lua noob 20130318 21:17:29< bumbadadabum> I know what < means 20130318 21:17:47< bumbadadabum> and how to replace a var with another 20130318 21:17:48< mattsc> Ok, switch the > for a < and repeat my question 20130318 21:18:40< bumbadadabum> I pretty much used it 20130318 21:18:45< bumbadadabum> but with distance instead of holes 20130318 21:18:57< mattsc> what about the .random? 20130318 21:19:03< mattsc> or this version: 20130318 21:19:18< mattsc> table.sort(reach, function(a, b) return a[3] < b[3] end ) 20130318 21:19:30< bumbadadabum> I don't think I need that 20130318 21:19:47< bumbadadabum> If I am right about what you're trying to say 20130318 21:19:53< mattsc> Well, have a look at distance with dbms 20130318 21:19:53< bumbadadabum> I need something 20130318 21:19:54< bumbadadabum> :p 20130318 21:20:17< bumbadadabum> is that just dbms? 20130318 21:20:48< mattsc> Oh, you haven't used that before? (That was vultraz yesterday, wasn't it) 20130318 21:21:00< bumbadadabum> yes 20130318 21:21:09< mattsc> It's a function from Wesnoth Lua Pack... 20130318 21:22:03< mattsc> Ok, let me create the result for you, but you _really_ should learn how to use dbms 20130318 21:22:31< bumbadadabum> I'll try 20130318 21:23:55< mattsc> Sorry, I'm intentionally being difficult here, because I want you to figure out how to trouble-shoot things like that yourself in the future. :) 20130318 21:24:18< bumbadadabum> I just need to get the hang of things 20130318 21:27:02< mattsc> Ugh, what I was going to show you doesn't even work, before Lua barfs about it (rather than it simply not working) 20130318 21:27:10< mattsc> s/before/because 20130318 21:29:51< mattsc> bumbadadabum: http://pastebin.com/fJdDstqv 20130318 21:30:21< bumbadadabum> oh 20130318 21:30:22< mattsc> I made 3 changes to your code. It would be useful if you understand why each of them is necessary. 20130318 21:30:40< bumbadadabum> first... 20130318 21:30:53< mattsc> you want me to tell you, or try to figure it out yourself? 20130318 21:31:03< bumbadadabum> I know why the first i 20130318 21:31:04< bumbadadabum> *is 20130318 21:31:09< bumbadadabum> just not how to explain it 20130318 21:31:20< bumbadadabum> the second because it's shorter 20130318 21:31:33< bumbadadabum> the third because I dunno 20130318 21:32:42< bumbadadabum> unless with the third one you meant the dbms 20130318 21:32:55< mattsc> The first is in line 1. You want to set up a table in the following, so it's easier to simply initialize it as an empty table. 20130318 21:33:12< bumbadadabum> I did that in my .cfg as well 20130318 21:33:51< mattsc> not in the last version you sent me: http://pastebin.com/1Vq7PpkA 20130318 21:34:59< mattsc> Second, l.3: you are adding table elements in l.4&5, so you need to set up distance[i] as a table also, not as a scalar 20130318 21:35:26< bumbadadabum> ok 20130318 21:35:42< mattsc> That's what the { } around helper.distance are about (sorry, I have helper abbreviated to H in my code; that's not the change I meant) 20130318 21:36:20< mattsc> and then you need to use a[1] andb[1] in the sort function, of course 20130318 21:37:37< mattsc> And this is what dbms gives you for this: http://imagebin.org/250779 20130318 21:37:47< mattsc> top: before sorting; bottom: after sorting 20130318 21:39:28< bumbadadabum> hmm 20130318 21:39:31< mattsc> Hope that makes sense 20130318 21:40:02< bumbadadabum> it says it is a table but also it isn't? 20130318 21:41:25< mattsc> Umm, I forgot what this is about. But this is not a WML table. We're not trying to make it one. 20130318 21:42:27< mattsc> Well, and the second line tells you even why it is not a WML table (but as I said, it's irrelevant here, since we're only using it as a temporary table in lua) 20130318 21:45:14< mattsc> bumbadadabum: here's how a WML table looks: http://imagebin.org/250781 20130318 21:45:30< bumbadadabum> ok 20130318 21:45:31< mattsc> That's (almost) the example I sent you before as code. 20130318 21:45:49< bumbadadabum> I see 20130318 21:51:51< bumbadadabum> mattsc: It says "indexing ?" at line 45 20130318 21:52:04-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130318 21:52:04< bumbadadabum> (the first "end" in the loop) 20130318 21:52:39< bumbadadabum> http://pastebin.com/1ihUbaxQ 20130318 21:54:29-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130318 22:02:40< mattsc> is that the entire error message? 20130318 22:06:39< bumbadadabum> mattsc: 20130318 22:06:18 error scripting/lua: [string "..."]:45: attempt to index field '?' (a nil value) 20130318 22:06:39< bumbadadabum> stack traceback: 20130318 22:06:40< bumbadadabum> [string "..."]:45: in function 'attack_acolytes' 20130318 22:06:40< bumbadadabum> [string "(...):attack_acolytes()"]:1: in main chunk 20130318 22:07:46< mattsc> Are you sure it's not the table.sort line? 20130318 22:08:05< bumbadadabum> it might be 20130318 22:08:35< mattsc> My guess (but without knowing more it's just a guess), is that this is a case when distance is an empty table (because there are no acolytes) 20130318 22:08:45< bumbadadabum> oh 20130318 22:08:53< bumbadadabum> so I should wrap it in an if 20130318 22:09:06< bumbadadabum> if #acolytes > 0 then 20130318 22:09:17< mattsc> Yes. 20130318 22:09:19< mattsc> or: 20130318 22:09:24< mattsc> if acolytes[1] then ... 20130318 22:11:03< bumbadadabum> around the sort, right? 20130318 22:11:06< bumbadadabum> the sort and attack 20130318 22:14:10< mattsc> or even the distance definition 20130318 22:14:50< mattsc> that one doesn't really matter whether it gets included, but it makes sense only to define the variable if it's actually needed. 20130318 22:15:12-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 256 seconds] 20130318 22:16:47-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-umc-dev 20130318 22:16:50< bumbadadabum> mattsc: No errors 20130318 22:17:01< bumbadadabum> Thank you so much for helping me with my noob problems 20130318 22:17:12< mattsc> bumbadadabum: great 20130318 22:18:00< mattsc> And no worries. As I said, sorry for not always giving you straight forward answers right away, but I think it will make life easier (for both of us :) ) in the long run. 20130318 22:18:08< bumbadadabum> I spoke to soon 20130318 22:18:21< bumbadadabum> retreat_undead has the bad argument thing 20130318 22:18:24< bumbadadabum> I'll fix it later 20130318 22:29:59-!- Blueblaze [~Blueblaze@adsl-99-158-47-208.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20130318 22:38:42-!- Blueblaze [~Blueblaze@adsl-99-158-47-208.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20130318 22:43:30-!- trewe [~trewe@87-196-153-192.net.novis.pt] has joined #wesnoth-umc-dev 20130318 22:48:50< irker367> wesnoth-umc-dev: bumbadadabum * r17703 /trunk/The_Voids_Tears/ (14 files in 8 dirs): 20130318 22:48:50< irker367> wesnoth-umc-dev: TVT: added S0 20130318 23:17:21-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 276 seconds] 20130318 23:20:11-!- mattsc [~mattsc@fw.hia.nrc.ca] has quit [Quit: I'm asleep] 20130318 23:42:49-!- mattsc [~mattsc@d154-20-34-165.bchsia.telus.net] has joined #wesnoth-umc-dev 20130318 23:43:07-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] --- Log closed Tue Mar 19 00:00:45 2013