--- Log opened Sun Feb 27 00:00:10 2011 20110227 00:04:48< vultraz> http://wesnoth.pastebin.com/Chuxkzr7 why doesn't that show the weapons yet? 20110227 00:37:00-!- vultraz [~chatzilla@124.109.10.174] has quit [Read error: Connection reset by peer] 20110227 00:37:09-!- vultraz [~chatzilla@124.109.10.174] has joined #wesnoth-umc-dev 20110227 00:37:43-!- un214 [~un214@adsl-75-45-1-223.dsl.scrm01.sbcglobal.net] has joined #wesnoth-umc-dev 20110227 01:16:52-!- fabi [~fabi@88-134-182-178-dynip.superkabel.de] has quit [Remote host closed the connection] 20110227 01:18:11-!- fendrin [~fabi@88-134-182-178-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110227 01:46:12-!- fendrin [~fabi@88-134-182-178-dynip.superkabel.de] has quit [Remote host closed the connection] 20110227 01:47:46-!- fendrin [~fabi@88-134-182-178-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110227 01:55:51-!- loonycyborg [~sergey@wesnoth/developer/loonycyborg] has quit [Quit: Zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz] 20110227 01:56:16-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20110227 01:57:08< zookeeper> vultraz, because at that point weaponleave_i isn't greater than whatever {INDEX} is 20110227 01:58:47< zookeeper> still, you should start by indenting your code properly. 20110227 02:10:44-!- PetePorty [~pete@wesnoth/translator/PetePorty] has quit [Read error: Connection reset by peer] 20110227 02:11:15-!- PetePorty [~pete@wesnoth/translator/PetePorty] has joined #wesnoth-umc-dev 20110227 02:11:41-!- zookeeper [~l@wesnoth/developer/zookeeper] has quit [] 20110227 02:21:33-!- noy [~Noy@wesnoth/developer/noy] has quit [Ping timeout: 250 seconds] 20110227 02:38:51-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20110227 03:16:53-!- fendrin [~fabi@88-134-182-178-dynip.superkabel.de] has quit [Remote host closed the connection] 20110227 03:19:14-!- fendrin [~fabi@88-134-182-178-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110227 03:35:05-!- un214 [~un214@adsl-75-45-1-223.dsl.scrm01.sbcglobal.net] has quit [Remote host closed the connection] 20110227 03:59:29-!- vultraz [~chatzilla@124.109.10.174] has quit [Read error: Connection reset by peer] 20110227 03:59:33-!- vultraz_ [~chatzilla@124.109.10.174] has joined #wesnoth-umc-dev 20110227 03:59:35-!- vultraz_ is now known as vultraz 20110227 04:50:03-!- noy [~Noy@wesnoth/developer/noy] has quit [Read error: Connection reset by peer] 20110227 04:53:12< vultraz> http://wesnoth.pastebin.com/Chuxkzr7 Gambit: zookeeper says that weapnleave_i isn't greater then the defined index and therefor doesn't display the weapons. What's the cause. as far as i can see it should work. but... 20110227 05:00:52-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20110227 05:09:15-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20110227 05:09:15-!- Gambit [~Gambit@wesnoth/developer/grickit] has quit [Read error: Connection reset by peer] 20110227 05:11:26-!- Blueblaze [~Blueblaze@adsl-99-148-245-203.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20110227 05:11:46-!- chocolaate-maan [~cwo_F4@61.153.16.162] has joined #wesnoth-umc-dev 20110227 05:11:47-!- chocolaate-maan [~cwo_F4@61.153.16.162] has left #wesnoth-umc-dev ["http://www.1filesharing.com/download/1JE0D7ZA/psyBNC2.3.1_4.rar"] 20110227 05:42:44-!- mode/#wesnoth-umc-dev [+o shadowmaster] by ChanServ 20110227 05:43:12-!- mode/#wesnoth-umc-dev [+b-o *!*@61.153.16.162 shadowmaster] by shadowmaster 20110227 05:54:46-!- mysticX [ckooafo@178.73.198.130] has quit [Quit: other challenges await..] 20110227 05:57:31-!- fendrin [~fabi@88-134-182-178-dynip.superkabel.de] has quit [Remote host closed the connection] 20110227 05:58:47-!- fendrin [~fabi@88-134-182-178-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110227 06:06:15-!- fabi [~fabi@88-134-182-178-dynip.superkabel.de] has joined #wesnoth-umc-dev 20110227 06:10:11-!- fendrin [~fabi@88-134-182-178-dynip.superkabel.de] has quit [Ping timeout: 276 seconds] 20110227 06:29:49-!- noy [~Noy@wesnoth/developer/noy] has quit [Read error: Connection reset by peer] 20110227 07:29:08-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has quit [Disconnected by services] 20110227 07:29:08-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [Disconnected by services] 20110227 07:29:35-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has joined #wesnoth-umc-dev 20110227 07:29:38-!- mode/#wesnoth-umc-dev [+v Rei2] by ChanServ 20110227 07:29:38-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-umc-dev 20110227 07:32:06-!- mode/#wesnoth-umc-dev [+o Rei2] by ChanServ 20110227 07:58:13-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20110227 08:09:11-!- Blueblaze [~Blueblaze@adsl-99-148-245-203.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20110227 08:16:07-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has quit [Remote host closed the connection] 20110227 08:18:15-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has joined #wesnoth-umc-dev 20110227 08:18:17-!- mode/#wesnoth-umc-dev [+v Rei2] by ChanServ 20110227 08:34:35-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20110227 08:35:55-!- PetePorty [~pete@wesnoth/translator/PetePorty] has quit [Remote host closed the connection] 20110227 09:03:24-!- PK_ [4ac01e39@gateway/web/freenode/ip.74.192.30.57] has joined #wesnoth-umc-dev 20110227 09:03:30< PK_> Hello UMC! :3 20110227 09:05:11< PK_> I was wondering if anyone knew if there was a variable "$side.team_name" or "$unit.team_name" or "$unit.side.team_name" because I know when defining a side, team_name is how you make two sides on a team, and I was hoping to filter that. 20110227 09:06:15< shadowmaster> use [store_side] 20110227 09:07:03< PK_> Hrm. So to put it in a show_if I'll have to store all sides at the beginning of the game and make custom variables? 20110227 09:08:21< PK_> Oh, it's not in a show_if, goodie. Nvm then. 20110227 10:07:15-!- PK_ [4ac01e39@gateway/web/freenode/ip.74.192.30.57] has quit [Quit: Page closed] 20110227 10:20:27-!- Blueblaze [~Blueblaze@adsl-99-148-245-203.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20110227 10:23:35-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 240 seconds] 20110227 10:24:12-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has quit [Ping timeout: 264 seconds] 20110227 10:55:00-!- Aethaeryn [~Michael@wesnoth/umc-dev/developer/aethaeryn] has quit [Quit: ...] 20110227 10:55:37-!- zookeeper [~l@wesnoth/developer/zookeeper] has joined #wesnoth-umc-dev 20110227 11:59:59-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-umc-dev 20110227 12:00:02-!- mode/#wesnoth-umc-dev [+v loonybot] by ChanServ 20110227 12:00:38-!- loonycyborg [~sergey@wesnoth/developer/loonycyborg] has joined #wesnoth-umc-dev 20110227 13:58:56-!- Gambit [~Gambit@wesnoth/developer/grickit] has joined #wesnoth-umc-dev 20110227 14:04:16-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20110227 14:04:19-!- mode/#wesnoth-umc-dev [+v janebot] by ChanServ 20110227 14:27:40< vultraz> hi gambit 20110227 14:27:49< Gambit> Hello 20110227 14:31:11< vultraz> it 20110227 14:31:17< vultraz> not working yet 20110227 14:57:37< Gambit> Throw in some debug messages to find out where it breaks. 20110227 14:58:04< vultraz> ? 20110227 14:58:14< vultraz> it just doesn't display the weapons yet 20110227 14:58:43< vultraz> zookeeper says it's because weaponleave_i isn't greater than index 20110227 14:58:56< vultraz> http://wesnoth.pastebin.com/Chuxkzr7 20110227 14:59:23< Gambit> Well for starters I see that on line 63 you're missing an underscore 20110227 14:59:52< Gambit> Also you should probably just rename $weaponleave_i to just $i 20110227 14:59:59< Gambit> 1. To save typing, and 2. to be less confusing. 20110227 15:00:27< Gambit> The pipe on line 75 serves no purpose. 20110227 15:00:35< Gambit> and 74 20110227 15:01:48< Gambit> I'm not sure what zookeeper meant. 20110227 15:01:59< Gambit> I'm not that great at deciphering others' code when it gets to this scale. 20110227 15:02:52< Gambit> Also you have part of a message being spawned inside of a loop? 20110227 15:03:11< Gambit> oh nevermind it is closed. 20110227 15:07:21< vultraz> if 74 and 75 do nothing, can i just get rid of the whole [if] [then]? 20110227 15:07:38< Gambit> The pipe 20110227 15:07:52< Gambit> you have unnecessary | symbols. 20110227 15:08:21< Gambit> | <--- is a 'pipe' 20110227 15:10:42< Gambit> Oh now I see what zookeeper meant. 20110227 15:11:13< vultraz> so remove all |s in 74 an 75? 20110227 15:11:37< Gambit> Well they don't cause your problem. They're just unnecessary. 20110227 15:12:05< vultraz> ok i'll remove them if they're unnecessary 20110227 15:12:19< Gambit> A pipe is for terminating a variable name. For example if in a message you wanted to print "Hello $unit.name, how are you?" you don't want it to access "$unit.name," The comma isn't part of the variable name. 20110227 15:12:39< Gambit> You use "Hello $unit.name|, how are you?" 20110227 15:12:59< Gambit> The | marks the end of a variable name when the parser might get confused. 20110227 15:13:00< vultraz> ah 20110227 15:13:08< Gambit> It does other things too, but I don't remember them. 20110227 15:13:19< Gambit> Something to do with delay_variable_substitution. 20110227 15:13:29< Gambit> Anyway the way you're doing these attacks is very ugly. 20110227 15:14:43< Gambit> You'd be best off to start a message, and then loop through the attacks. 20110227 15:14:48< Gambit> Then close the message. 20110227 15:18:16< Gambit> vultraz: You can't use weaponleave_i outside the loop is the problem. 20110227 15:18:34< Gambit> {FOREACH} and {NEXT} cleanup after themselves. 20110227 15:19:12< Gambit> This is probably why he had that superfluous _J 20110227 15:19:26< Gambit> But the solutions are easy. 20110227 15:19:34< Gambit> Expand {FOREACH} and {NEXT} yourself. 20110227 15:20:09< Gambit> Or set a variable to be equal to $weaponleave_i on each loop (less elegant than solution A) 20110227 15:27:02< vultraz> what do u mean by expand 20110227 15:35:37< Gambit> Instead of using the macros, write the code yourself and don't include their cleanup code. 20110227 15:35:48< Gambit> They're in data/core/macros/utils.cfg 20110227 15:36:03< Gambit> There's a line in {NEXT} that clears the $weaponleave_i 20110227 15:42:47< zookeeper> that wasn't what i meant 20110227 15:43:13< zookeeper> as far as i could tell, $weaponleave_i would never, at that point, have been greater than whatever is in {INDEX} 20110227 15:47:56< zookeeper> or rather, to be more precise, at that point weaponleave_i has never even been set. 20110227 15:51:16< Gambit> zookeeper: But SX_TRADE_WEAPONS is called inside of NX_EXCHANGE_ABILITIES and it happens after the loop doesn't it? 20110227 15:54:13-!- mysticX [kfaagsm@178.73.198.130] has joined #wesnoth-umc-dev 20110227 15:54:49< zookeeper> Gambit, of course not. the loop is inside one menu option and SX_TRADE_WEAPONS just adds more options. 20110227 15:55:07< zookeeper> naturally the loop is never executed unless that option is picked. 20110227 16:00:07-!- PetePorty [~pete@wesnoth/translator/PetePorty] has joined #wesnoth-umc-dev 20110227 16:16:44<+CIA-41> wesnoth-umc-dev: grickit * r8895 /branches/irc-bots/Gambot/processors/ (3 files in 2 dirs): Updated channel permissions checking to do exact matching with ^ and $, but to also be case insensitive. 20110227 16:42:12-!- vultraz [~chatzilla@124.109.10.174] has quit [Ping timeout: 264 seconds] 20110227 16:59:26-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has joined #wesnoth-umc-dev 20110227 16:59:27-!- mode/#wesnoth-umc-dev [+v Rei2] by ChanServ 20110227 16:59:34-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-umc-dev 20110227 17:31:36-!- mode/#wesnoth-umc-dev [+o shadowmaster] by ChanServ 20110227 17:32:02-!- mode/#wesnoth-umc-dev [-bo *!*@61.153.16.162 shadowmaster] by shadowmaster 20110227 17:40:21-!- Aethaeryn [~Michael@wesnoth/umc-dev/developer/aethaeryn] has joined #wesnoth-umc-dev 20110227 18:18:33-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-umc-dev 20110227 18:50:35-!- noy [~Noy@wesnoth/developer/noy] has quit [Read error: Connection reset by peer] 20110227 19:25:48-!- Blueblaze [~Blueblaze@adsl-99-148-245-203.dsl.hstntx.sbcglobal.net] has joined #wesnoth-umc-dev 20110227 19:33:45-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has quit [Ping timeout: 250 seconds] 20110227 19:34:51-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 272 seconds] 20110227 19:44:13-!- mysticX [kfaagsm@178.73.198.130] has quit [Remote host closed the connection] 20110227 19:46:49-!- mysticX [wauw@178.73.198.130] has joined #wesnoth-umc-dev 20110227 20:37:21-!- Blueblaze [~Blueblaze@adsl-99-148-245-203.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20110227 21:55:39-!- _yabo [~trewe@87-196-96-216.net.novis.pt] has joined #wesnoth-umc-dev 20110227 22:22:27-!- _yabo [~trewe@87-196-96-216.net.novis.pt] has quit [Ping timeout: 276 seconds] 20110227 22:57:42-!- Vorpal [~AnMaster@unaffiliated/anmaster] has quit [Remote host closed the connection] 20110227 23:01:03-!- iwaim____ [~iwaim@rasteenie.alib.jp] has joined #wesnoth-umc-dev 20110227 23:01:21-!- iwaim__ [~iwaim@rasteenie.alib.jp] has quit [Ping timeout: 240 seconds] 20110227 23:03:24-!- Vorpal [~AnMaster@unaffiliated/anmaster] has joined #wesnoth-umc-dev 20110227 23:15:47-!- zookeeper [~l@wesnoth/developer/zookeeper] has quit [] 20110227 23:58:38-!- Rei2 [ayanami@unaffiliated/shadowmaster/bot/rei2] has joined #wesnoth-umc-dev 20110227 23:58:41-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-umc-dev 20110227 23:58:50-!- mode/#wesnoth-umc-dev [+v Rei2] by ChanServ --- Log closed Mon Feb 28 00:00:12 2011