--- Log opened Sun Mar 17 00:00:54 2013 20130317 00:01:31-!- mattsc [~mattsc@d154-20-34-165.bchsia.telus.net] has quit [Quit: bye] 20130317 00:14:55-!- trewe [~trewe@87.196.156.7] has quit [Ping timeout: 240 seconds] 20130317 00:16:50-!- mattsc [~mattsc@d154-20-34-165.bchsia.telus.net] has joined #wesnoth-umc-dev 20130317 00:45:11< irker219> AI-Demos: mattsc master * r8b4801a / (41 files in 8 dirs): Clean up the textdomain bindings - http://git.io/3bY-NQ 20130317 01:00:05-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130317 01:08:38< irker219> AI-Demos: mattsc master * rc08fbba / CHANGELOG : Update changelog - http://git.io/L8EJGQ 20130317 01:39:09-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130317 01:41:58-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20130317 01:43:54-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 264 seconds] 20130317 01:49:03-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130317 02:02:28-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has joined #wesnoth-umc-dev 20130317 02:35:34-!- loonybot [~loonybot@ppp158-255-133-34.pppoe.spdop.ru] has joined #wesnoth-umc-dev 20130317 02:35:35-!- loonybot [~loonybot@ppp158-255-133-34.pppoe.spdop.ru] has quit [Changing host] 20130317 02:35:35-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-umc-dev 20130317 02:35:37-!- mode/#wesnoth-umc-dev [+v loonybot] by ChanServ 20130317 02:58:53-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20130317 03:40:28-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Read error: Connection reset by peer] 20130317 03:41:05-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has joined #wesnoth-umc-dev 20130317 03:59:28-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130317 04:06:18-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130317 04:11:30-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130317 04:15:00< irker219> wesnoth-umc-dev: vultraz * r17629 /trunk/NX-RPG/lua/gui/item_pickup.lua: 20130317 04:15:01< irker219> wesnoth-umc-dev: NX: wip code for 8680 20130317 04:31:04-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130317 04:57:36< irker219> wesnoth-umc-dev: vultraz * r17630 /trunk/NX-RPG/lua/gui/item_pickup.lua: 20130317 04:57:37< irker219> wesnoth-umc-dev: NX: Fixed and simplified item pick up code. MASSIVE thanks to 8680, who provided the final version 20130317 05:01:21< irker219> wesnoth-umc-dev: vultraz * r17631 /trunk/NX-RPG/lua/gui/item_pickup.lua: 20130317 05:01:21< irker219> wesnoth-umc-dev: NX: fixed ref to nonexistent var 20130317 05:14:47-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130317 05:33:55< irker219> wesnoth-umc-dev: vultraz * r17632 /trunk/NX-RPG/lua/gui/inventory.lua: 20130317 05:33:55< irker219> wesnoth-umc-dev: NX: began fixing inventory code 20130317 05:53:09-!- mattsc [~mattsc@d154-20-34-165.bchsia.telus.net] has quit [Quit: bye] 20130317 06:03:24-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20130317 06:35:30-!- skyfaller [~skyfaller@ool-43551edd.dyn.optonline.net] has joined #wesnoth-umc-dev 20130317 06:35:30-!- skyfaller [~skyfaller@ool-43551edd.dyn.optonline.net] has quit [Changing host] 20130317 06:35:30-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130317 06:48:21< irker219> wesnoth-umc-dev: vultraz * r17633 /trunk/NX-RPG/lua/gui/inventory.lua: 20130317 06:48:21< irker219> wesnoth-umc-dev: NX: don't wrap callbacks in functions since it's not needed if arg is called with no args (thanks 8680) 20130317 07:10:58-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130317 07:33:13< irker219> wesnoth-umc-dev: doofus-01 * r17634 /trunk/Trinity/ (40 files in 8 dirs): 20130317 07:33:14< irker219> wesnoth-umc-dev: working on last scenarios of second branch - a lot of unused cloud files for now. 20130317 08:03:45-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130317 09:04:23-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20130317 09:24:18-!- fendrin_ [~fabi@88-134-63-148-dynip.superkabel.de] has joined #wesnoth-umc-dev 20130317 09:28:20-!- fendrin [~fabi@wesnoth/developer/fendrin] has quit [Ping timeout: 260 seconds] 20130317 09:31:45< irker219> wesnoth-umc-dev: vultraz * r17635 /trunk/NX-RPG/lua/gui/inventory.lua: 20130317 09:31:46< irker219> wesnoth-umc-dev: NX: more simplification of inventory 20130317 09:40:44< irker219> wesnoth-umc-dev: vultraz * r17636 /trunk/NX-RPG/lua/gui/inventory.lua: 20130317 09:40:45< irker219> wesnoth-umc-dev: MX: removed stray ) 20130317 09:42:34< irker219> wesnoth-umc-dev: vultraz * r17637 /trunk/NX-RPG/lua/gui/inventory.lua: 20130317 09:42:34< irker219> wesnoth-umc-dev: NX: adjusted a label 20130317 09:58:33-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has joined #wesnoth-umc-dev 20130317 10:07:04< irker219> wesnoth-umc-dev: vultraz * r17638 /trunk/NX-RPG/ (10 files in 5 dirs): 20130317 10:07:04< irker219> wesnoth-umc-dev: NX: ran wmlindent 20130317 10:13:34< irker219> wesnoth-umc-dev: vultraz * r17639 /trunk/NX-RPG/lua/gui/character_development.lua: 20130317 10:13:35< irker219> wesnoth-umc-dev: NX: simplified a line 20130317 11:01:29-!- vultraz_laptop [~chatzilla@124.109.10.167] has joined #wesnoth-umc-dev 20130317 11:07:34-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has quit [Quit: bumbadadabum] 20130317 11:17:10-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130317 12:11:39-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has quit [Remote host closed the connection] 20130317 12:45:05-!- Blueblaze [~Blueblaze@99.158.47.208] has quit [Quit: Blueblaze] 20130317 12:58:24< irker219> wesnoth-umc-dev: vultraz * r17640 /trunk/NX-RPG/macros/mana_sys.cfg: 20130317 12:58:25< irker219> wesnoth-umc-dev: NX: deleted a rogue event 20130317 12:58:25< irker219> wesnoth-umc-dev: It's only only purpose was as part of an as-yet unimplemented feature. 20130317 12:58:26< irker219> wesnoth-umc-dev: Additionally, it was somehow was creating an empty, nameless array 20130317 12:58:26< irker219> wesnoth-umc-dev: which was causing savefile corruption. 20130317 13:06:24< irker219> wesnoth-umc-dev: vultraz * r17641 /trunk/NX-RPG/lua/gui/character_development.lua: 20130317 13:06:24< irker219> wesnoth-umc-dev: NX: more simplification 20130317 14:41:49-!- trewe [~trewe@87.196.101.89] has joined #wesnoth-umc-dev 20130317 15:00:44-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has joined #wesnoth-umc-dev 20130317 15:12:47-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has quit [Quit: And that’s the end of THAT chapter.] 20130317 15:13:47-!- loonybot [~loonybot@ppp158-255-133-34.pppoe.spdop.ru] has joined #wesnoth-umc-dev 20130317 15:13:47-!- loonybot [~loonybot@ppp158-255-133-34.pppoe.spdop.ru] has quit [Changing host] 20130317 15:13:47-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-umc-dev 20130317 15:13:51-!- mode/#wesnoth-umc-dev [+v loonybot] by ChanServ 20130317 15:42:25-!- skyfaller [~skyfaller@ool-43551edd.dyn.optonline.net] has joined #wesnoth-umc-dev 20130317 15:42:25-!- skyfaller [~skyfaller@ool-43551edd.dyn.optonline.net] has quit [Changing host] 20130317 15:42:25-!- skyfaller [~skyfaller@wikipedia/Skyfaller] has joined #wesnoth-umc-dev 20130317 16:09:12-!- irker219 [~irker@ai0867.net] has quit [Quit: transmission timeout] 20130317 16:36:42-!- trewe [~trewe@87.196.101.89] has quit [Ping timeout: 264 seconds] 20130317 16:46:51-!- trewe [~trewe@87.196.101.89] has joined #wesnoth-umc-dev 20130317 17:26:38-!- irker935 [~irker@ai0867.net] has joined #wesnoth-umc-dev 20130317 17:26:38< irker935> wesnoth-umc-dev: vultraz * r17642 /trunk/NX-RPG/lua/gui/item_pickup.lua: 20130317 17:26:38< irker935> wesnoth-umc-dev: NX: got rid of some useless code 20130317 17:31:20-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has joined #wesnoth-umc-dev 20130317 17:32:39-!- mattsc [~mattsc@d154-20-34-165.bchsia.telus.net] has joined #wesnoth-umc-dev 20130317 17:33:20< irker935> wesnoth-umc-dev: vultraz * r17643 /trunk/NX-RPG/lua/gui/item_pickup.lua: 20130317 17:33:21< irker935> wesnoth-umc-dev: NX: reverted that last commit, seems it wasn't so useless after all 20130317 17:37:39< irker935> wesnoth-umc-dev: vultraz * r17644 /trunk/NX-RPG/lua/gui/character_development.lua: 20130317 17:37:39< irker935> wesnoth-umc-dev: NX: more broken code in my attempt to simplify this 20130317 17:38:45< vultraz> mattsc: this was the final form from 8680 of that particular block of code we were poking at: http://pastebin.com/ZCYVUjZp 20130317 17:39:11< vultraz> about 10,000x neater than what I had originally :P 20130317 17:43:03< mattsc> vultraz: thanks. That is a nice way of doing it. 20130317 17:43:39< vultraz> now we were trying to get the inventory to work properly 20130317 17:43:53< vultraz> I can't believe how much of a messy coder I was 20130317 17:44:05< mattsc> Out of curisoity, I did some tests of my own and did figure out how to insert non-scalar variables into units. Similar approach to this, but not quite the same. 20130317 17:44:34< vultraz> so until he gets back, I was trying to simplify the character development dialog 20130317 17:44:47< vultraz> which you think would be easy since it's all reading from tables 20130317 17:44:52< vultraz> but apparently I fail at that too 20130317 17:44:55< vultraz> :( 20130317 17:44:55< mattsc> I'm not sure that I am a very non-messy coder myself. I learned all of this through trial and error. :) 20130317 17:45:32< vultraz> local field_values = helper.get_variable_array("character_development") 20130317 17:45:38< mattsc> I remember that it took me some time to get used to WML table format in Lua... 20130317 17:45:47< vultraz> apparently, that doesn't allow me to look in field_values.class[i] 20130317 17:46:23< vultraz> (there's a whole WML tables containing the descriptions of each alignment, class, and trait) 20130317 17:46:44< mattsc> Have you used dbms from WLP yet? 20130317 17:47:08< vultraz> yeah...I wonder if I should use it here 20130317 17:47:22< mattsc> yep. Do a dbms on field_values 20130317 17:47:32< mattsc> Most likely that will tell you what's wrong with your approach 20130317 17:47:46< vultraz> actually...crap WLP isn't installed on this laptop 20130317 17:47:47< vultraz> damn 20130317 17:48:22 * vultraz svn co 20130317 17:50:51< mattsc> vultraz: thanks for posting that code. Good to see that my approach wasn't that far off from what somebody who actually knows lua would do. And I learned something along the way ... :) 20130317 17:51:09< mattsc> I have to be afk again for a while. bbl. 20130317 17:51:22< vultraz> mk 20130317 17:54:27< vultraz> mattsc: https://dl.dropbox.com/u/95558676/dbms.JPG 20130317 17:55:18< mattsc> vultraz: I have about 3 min left ... 20130317 17:55:27< mattsc> So, yes, it's a wml table. 20130317 17:55:54< vultraz> yeah, I know 20130317 17:56:02< mattsc> You probably want to use helper.child_range to go through the class fields. 20130317 17:56:23< vultraz> yeah, I do that for the print out 20130317 17:56:44< vultraz> but later we have to access specific values directly 20130317 17:57:01< mattsc> meaning specific ids? 20130317 17:57:17< vultraz> local vars = helper.child_range(field_values, list) 20130317 17:57:18< vultraz> local i = wesnoth.get_dialog_value(list .. "_list") 20130317 17:57:20< vultraz> wesnoth.set_dialog_value(vars[i].image, "details_image") 20130317 17:57:21< vultraz> wesnoth.set_dialog_value(vars[i].name, "details_name") 20130317 17:57:23< vultraz> wesnoth.set_dialog_value(vars[i].description, "details_description") 20130317 17:57:25< vultraz> that doesn't work..at all 20130317 17:57:55< mattsc> Isn't helper.child_range an iterator? 20130317 17:58:12< mattsc> Yes, it is: http://wiki.wesnoth.org/LuaWML:Variables#helper.child_range 20130317 17:58:17< vultraz> ah 20130317 17:58:21< vultraz> no wonder that doesn't work 20130317 17:58:32< mattsc> Anyways, sorry, I really have to be going. 20130317 17:58:38< vultraz> ok 20130317 17:58:42< mattsc> I'll be back in about an hour. 20130317 17:58:49< vultraz> no prob :) 20130317 17:58:53< mattsc> ttyl 20130317 18:00:42< vultraz> I'll probably still be here 20130317 18:09:54-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130317 18:24:10-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has quit [Quit: bumbadadabum] 20130317 18:26:03-!- Blueblaze [~Blueblaze@adsl-99-158-47-208.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20130317 18:30:05-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has joined #wesnoth-umc-dev 20130317 18:55:51-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has joined #wesnoth-umc-dev 20130317 19:38:01< irker935> wesnoth-umc-dev: vultraz * r17645 /trunk/NX-RPG/lua/gui/character_development.lua: 20130317 19:38:02< irker935> wesnoth-umc-dev: NX: little change to make me look like less of an idiot 20130317 19:43:28< irker935> wesnoth-umc-dev: vultraz * r17646 /trunk/NX-RPG/lua/gui/character_development.lua: 20130317 19:43:28< irker935> wesnoth-umc-dev: NX: wasn't supposed to commit the dbms line 20130317 19:57:18-!- trewe_ [~trewe@87-196-101-89.net.novis.pt] has joined #wesnoth-umc-dev 20130317 20:00:31-!- trewe [~trewe@87.196.101.89] has quit [Ping timeout: 264 seconds] 20130317 20:15:09-!- jieverson [c8af5019@gateway/web/freenode/ip.200.175.80.25] has joined #wesnoth-umc-dev 20130317 20:28:33< jieverson> members: mattsc and shadowm! thanks for the tip of read the file "stderr" and "stdout"... was not working cause I am using Windows 8, and I was not running the terminal as administrator.... but now it is working! thanks 20130317 20:29:52-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has quit [Quit: i go nstuf kthxbai] 20130317 20:31:45-!- ancestral [~ancestral@75-168-48-55.mpls.qwest.net] has joined #wesnoth-umc-dev 20130317 20:45:39-!- jieverson [c8af5019@gateway/web/freenode/ip.200.175.80.25] has quit [Quit: Page closed] 20130317 22:54:40-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20130317 23:18:09-!- trewe_ [~trewe@87-196-101-89.net.novis.pt] has quit [Quit: Quit] 20130317 23:19:56-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20130317 23:24:20-!- noy [~Noy@wesnoth/developer/noy] has quit [Ping timeout: 248 seconds] 20130317 23:26:03-!- bumbadadabum [~bumbadada@d155109.upc-d.chello.nl] has left #wesnoth-umc-dev [] 20130317 23:48:56-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev --- Log closed Mon Mar 18 00:00:54 2013