--- Log opened Wed Jun 13 00:00:40 2012 20120613 00:00:55-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has quit [Quit: ...] 20120613 00:06:08-!- trademark [~trademark@mon69-1-82-67-23-185.fbx.proxad.net] has quit [Ping timeout: 240 seconds] 20120613 00:10:22-!- Blueblaze [~Blueblaze@adsl-99-158-44-1.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120613 00:14:30-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Quit: Leaving.] 20120613 00:15:58-!- PolarPanda [~quassel@unaffiliated/peterporty] has joined #wesnoth-dev 20120613 00:18:38-!- neph_ [~neph@80.233.231.12] has quit [Ping timeout: 240 seconds] 20120613 00:25:13-!- fendrin [~fabi@wesnoth/developer/fendrin] has quit [Quit: Konversation terminated!] 20120613 00:28:16-!- negusnyul [~negusnyul@183-88-178.ip.adsl.hu] has quit [Quit: Konversation terminated!] 20120613 00:41:05-!- anakayub [~anakayub@210.195.250.191] has quit [Quit: anakayub] 20120613 00:57:59-!- _vdn [~nazgul-sa@ppp91-77-234-190.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 00:58:28-!- _vdn [~nazgul-sa@ppp91-77-234-190.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 00:59:21-!- _vdn [~nazgul-sa@ppp91-77-234-190.pppoe.mtu-net.ru] has quit [Client Quit] 20120613 01:04:34-!- neXyon [~neXyon@84-119-66-146.dynamic.xdsl-line.inode.at] has quit [Quit: bye] 20120613 01:39:28-!- mjs-de [~mjs-de@g224176002.adsl.alicedsl.de] has quit [Remote host closed the connection] 20120613 01:50:12-!- Gambit [~gambit@wesnoth/developer/grickit] has quit [Disconnected by services] 20120613 01:54:22-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev 20120613 02:04:55-!- fendrin [~fabi@88-134-20-162-dynip.superkabel.de] has joined #wesnoth-dev 20120613 02:04:55-!- fendrin [~fabi@88-134-20-162-dynip.superkabel.de] has quit [Changing host] 20120613 02:04:55-!- fendrin [~fabi@wesnoth/developer/fendrin] has joined #wesnoth-dev 20120613 02:08:14-!- jamit [~james@pool-173-61-156-210.cmdnnj.east.verizon.net] has quit [Ping timeout: 256 seconds] 20120613 02:09:06-!- fendrin [~fabi@wesnoth/developer/fendrin] has quit [Client Quit] 20120613 02:22:38-!- Upthorn [~ogmar@108-85-91-228.lightspeed.frokca.sbcglobal.net] has quit [Ping timeout: 240 seconds] 20120613 02:24:03-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Quit: Computer has gone to sleep.] 20120613 02:27:32-!- fendrin [~fabi@88-134-20-162-dynip.superkabel.de] has joined #wesnoth-dev 20120613 02:27:32-!- fendrin [~fabi@88-134-20-162-dynip.superkabel.de] has quit [Changing host] 20120613 02:27:32-!- fendrin [~fabi@wesnoth/developer/fendrin] has joined #wesnoth-dev 20120613 02:52:13-!- knotwork [~markm@unaffiliated/knotwork] has quit [Read error: Connection reset by peer] 20120613 02:55:00-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120613 02:55:01-!- Pete-Flux [~quassel@unaffiliated/peterporty] has joined #wesnoth-dev 20120613 02:58:08-!- PolarPanda [~quassel@unaffiliated/peterporty] has quit [Ping timeout: 240 seconds] 20120613 03:56:53-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120613 04:00:21-!- Upth [~ogmar@69.62.144.56] has joined #wesnoth-dev 20120613 04:00:21-!- Upth is now known as Upthorn 20120613 04:19:46-!- un214 [~un214@108.241.24.5] has joined #wesnoth-dev 20120613 04:25:35-!- Pete-Flux [~quassel@unaffiliated/peterporty] has quit [Remote host closed the connection] 20120613 04:27:17-!- knotwork [~markm@142.68.85.205] has joined #wesnoth-dev 20120613 04:27:17-!- knotwork [~markm@142.68.85.205] has quit [Changing host] 20120613 04:27:17-!- knotwork [~markm@unaffiliated/knotwork] has joined #wesnoth-dev 20120613 04:27:17-!- un214 [~un214@108.241.24.5] has quit [Remote host closed the connection] 20120613 04:29:30-!- Ivanovic_ [~ivanovic@dtmd-4db26d2d.pool.mediaWays.net] has joined #wesnoth-dev 20120613 04:31:45-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has quit [Ping timeout: 260 seconds] 20120613 04:33:24-!- Ivanovic_ is now known as Ivanovic 20120613 05:26:05-!- {V} [~V@139-79-ftth.onsneteindhoven.nl] has quit [Read error: Connection reset by peer] 20120613 05:26:34-!- {V} [~V@139-79-ftth.onsneteindhoven.nl] has joined #wesnoth-dev 20120613 05:26:44-!- Akihara [~Klyto@out.lv0.in] has quit [Read error: Operation timed out] 20120613 05:29:35-!- Akihara [~Klyto@out.lv0.in] has joined #wesnoth-dev 20120613 05:37:20-!- un214 [~un214@108.241.24.5] has joined #wesnoth-dev 20120613 05:38:43-!- stikonas [~and@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120613 05:46:48-!- un214 [~un214@108.241.24.5] has quit [Remote host closed the connection] 20120613 05:47:38-!- artisticdude_iOS [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120613 06:53:34-!- alexanderthegre [~platinum@209-193-49-208-rb2.nwc.dsl.dynamic.acsalaska.net] has joined #wesnoth-dev 20120613 07:01:06-!- alexanderthegre [~platinum@209-193-49-208-rb2.nwc.dsl.dynamic.acsalaska.net] has quit [Quit: Leaving] 20120613 07:02:59-!- alexanderthegre [~platinum@209-193-49-208-rb2.nwc.dsl.dynamic.acsalaska.net] has joined #wesnoth-dev 20120613 07:04:51-!- Ivanovic [~ivanovic@dtmd-4db26d2d.pool.mediaWays.net] has quit [Changing host] 20120613 07:04:51-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has joined #wesnoth-dev 20120613 07:12:52-!- Gambit [~gambit@wesnoth/developer/grickit] has quit [Read error: Connection reset by peer] 20120613 07:24:39-!- alexanderthegre [~platinum@209-193-49-208-rb2.nwc.dsl.dynamic.acsalaska.net] has quit [Quit: Leaving] 20120613 07:41:03-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [] 20120613 07:47:33-!- Gallaecio [~quassel@84.120.114.134.dyn.user.ono.com] has joined #wesnoth-dev 20120613 07:52:26-!- trademark_ [~trademark@mon69-1-82-67-23-185.fbx.proxad.net] has joined #wesnoth-dev 20120613 08:02:31-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120613 08:34:34-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120613 08:39:16-!- trademark_ [~trademark@mon69-1-82-67-23-185.fbx.proxad.net] has quit [Remote host closed the connection] 20120613 08:41:51-!- Blueblaze [~Blueblaze@adsl-99-158-44-1.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120613 08:42:56-!- neXyon [~neXyon@84-119-66-146.dynamic.xdsl-line.inode.at] has joined #wesnoth-dev 20120613 08:51:28-!- Blueblaze [~Blueblaze@adsl-99-158-44-1.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120613 09:09:06-!- Elvish_Pillager [~eli@71-10-229-241.dhcp.oxfr.ma.charter.com] has quit [Ping timeout: 265 seconds] 20120613 09:25:03-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has quit [Quit: Leaving] 20120613 09:41:00-!- vultraz [~chatzilla@124.109.10.221] has quit [Ping timeout: 265 seconds] 20120613 09:41:34-!- vultraz [~chatzilla@124.109.10.221] has joined #wesnoth-dev 20120613 09:45:53-!- bloodycoin_m [~bloodycoi@193.170.135.78] has joined #wesnoth-dev 20120613 09:49:26-!- ancestral [~ancestral@97-127-66-8.mpls.qwest.net] has joined #wesnoth-dev 20120613 09:54:03-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120613 10:13:56-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has joined #wesnoth-dev 20120613 10:16:24-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 10:33:00-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Read error: Connection reset by peer] 20120613 10:33:20-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120613 10:35:14-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 10:35:49-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 10:42:20-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 10:42:58-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 10:50:42-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has joined #wesnoth-dev 20120613 10:58:50-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120613 11:01:23-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 11:26:40-!- ancestral [~ancestral@97-127-66-8.mpls.qwest.net] has quit [Quit: i go sleeps kthxbai] 20120613 11:36:53-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 11:37:29-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 11:47:38-!- Ravi325 [~chatzilla@101.210.148.148] has joined #wesnoth-dev 20120613 11:47:52-!- stikonas [~gentoo@bcm-131-111-216-103.girton.cam.ac.uk] has joined #wesnoth-dev 20120613 11:47:52-!- stikonas [~gentoo@bcm-131-111-216-103.girton.cam.ac.uk] has quit [Changing host] 20120613 11:47:52-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120613 11:48:10-!- Ravi325 [~chatzilla@101.210.148.148] has quit [Client Quit] 20120613 11:48:14-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 11:48:48-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 11:54:55-!- neXyon [~neXyon@84-119-66-146.dynamic.xdsl-line.inode.at] has quit [Quit: bye] 20120613 12:02:26-!- MeccaGod [majs@host189-199.bornet.net] has joined #wesnoth-dev 20120613 12:04:55-!- loonybot [~loonybot@46.138.71.100] has joined #wesnoth-dev 20120613 12:04:55-!- loonybot [~loonybot@46.138.71.100] has quit [Changing host] 20120613 12:04:55-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-dev 20120613 12:08:50-!- EdB [~edb@tss37-1-89-82-194-231.dsl.sta.abo.bbox.fr] has quit [Quit: Konversation terminated!] 20120613 12:14:25-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 12:14:57-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 12:23:41-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 12:24:22-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 12:25:44-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has joined #wesnoth-dev 20120613 12:31:47-!- horon [~horon@nttkyo216070.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has joined #wesnoth-dev 20120613 12:47:22-!- jamit [~james@pool-173-61-156-210.cmdnnj.east.verizon.net] has joined #wesnoth-dev 20120613 12:48:16-!- ToBeFree [~tobefree@unaffiliated/tobefree] has joined #wesnoth-dev 20120613 12:52:54-!- PolarPanda [~quassel@unaffiliated/peterporty] has joined #wesnoth-dev 20120613 13:00:29-!- ToBeFree [~tobefree@unaffiliated/tobefree] has quit [Ping timeout: 256 seconds] 20120613 13:03:39-!- ToBeFree [~tobefree@dslb-084-062-094-116.pools.arcor-ip.net] has joined #wesnoth-dev 20120613 13:03:45-!- ToBeFree [~tobefree@dslb-084-062-094-116.pools.arcor-ip.net] has quit [Changing host] 20120613 13:03:45-!- ToBeFree [~tobefree@unaffiliated/tobefree] has joined #wesnoth-dev 20120613 13:08:27-!- negusnyul [~negusnyul@1F2EA8F4.dsl.pool.telekom.hu] has joined #wesnoth-dev 20120613 13:11:11-!- csarmi [csarmi@84-236-96-146.pool.digikabel.hu] has quit [Read error: Connection reset by peer] 20120613 13:11:57-!- csarmi [csarmi@94-21-133-19.pool.digikabel.hu] has joined #wesnoth-dev 20120613 13:22:23-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 13:23:07-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 13:31:29-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Read error: Connection reset by peer] 20120613 13:31:47-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120613 13:45:09-!- mjs-de [~mjs-de@d185103.adsl.hansenet.de] has joined #wesnoth-dev 20120613 14:01:59-!- _vdn [~nazgul-sa@ppp91-77-229-65.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 14:04:26-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 14:12:38-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Ping timeout: 240 seconds] 20120613 14:14:24-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120613 14:26:40-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev 20120613 14:28:23-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120613 14:32:41-!- stikonas [~and@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120613 14:33:05-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 14:33:40-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 14:49:55-!- Ayne [~Ayne@cpc2-sgyl34-2-0-cust493.sgyl.cable.virginmedia.com] has joined #wesnoth-dev 20120613 14:59:39-!- negusnyul [~negusnyul@1F2EA8F4.dsl.pool.telekom.hu] has quit [Quit: Konversation terminated!] 20120613 15:12:24-!- artisticdude_iOS [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Quit: Colloquy for iPod touch - http://colloquy.mobi] 20120613 15:14:18-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120613 15:14:57-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 15:20:58-!- ToBeFree [~tobefree@unaffiliated/tobefree] has quit [Quit: Leaving] 20120613 15:22:16-!- ToBeFree [~tobefree@unaffiliated/tobefree] has joined #wesnoth-dev 20120613 15:26:58-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 15:27:38-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 15:35:46-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120613 15:50:26-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 15:50:58-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 15:59:52-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 16:00:26-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 16:11:41-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120613 16:14:02-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 16:15:12-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 16:22:15-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 16:22:51-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 16:25:28-!- neph_ [~neph@80.233.231.12] has joined #wesnoth-dev 20120613 16:27:24< neph_> wesbot, seen Crab_ 20120613 16:27:24< wesbot> neph_: The person with the nick crab_ last spoke 17h 9m ago. 17h 9m ago they left with the message: Quit: Do it for joy and you can do it forever 20120613 16:37:27-!- fendrin_ [~fabi@88-134-20-162-dynip.superkabel.de] has joined #wesnoth-dev 20120613 16:38:18-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 16:38:57-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 16:40:19< esr> I have a question for any Windows C or C++ devs present. 20120613 16:40:55-!- fendrin [~fabi@wesnoth/developer/fendrin] has quit [Ping timeout: 260 seconds] 20120613 16:53:09< loonycyborg> esr: Maybe actually ask it? :P 20120613 16:56:05< esr> loonycyborg:Wanted to be sure someone was listening before I typed a long explanation. I 20120613 16:56:54< esr> I have a very old piece of C code with #ifdef MSDOS sections in it. There conditionally call a function called setmode() to set binary mode on file descriptors. Is this still needed under Windows? That is, does Windows still default to opening files in text mode with CR generated on LF or whatever? 20120613 16:57:17< loonycyborg> Yes. 20120613 16:57:35-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth-dev 20120613 16:57:39< loonycyborg> Not sure what it default to though. 20120613 16:58:13< esr> Well, that was the question. If Windows now defaults to binary mode I can remove some ugly code. 20120613 17:01:24< loonycyborg> At least there's still 'b' modes for fopen. 20120613 17:01:37-!- neph_ [~neph@80.233.231.12] has quit [Ping timeout: 252 seconds] 20120613 17:04:55-!- horon [~horon@nttkyo216070.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has quit [Quit: Leaving...] 20120613 17:06:14< loonycyborg> esr: http://msdn.microsoft.com/en-US/library/ee2849wt%28v=vs.80%29.aspx <- this seem to imply that it's still text mode by default, at least for fopen. 20120613 17:06:28< esr> Ugh. 20120613 17:08:25< loonycyborg> Not sure what would happen with CreateFile() :P 20120613 17:12:27-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Quit: artisticdude] 20120613 17:24:45-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 17:25:20-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 17:27:30-!- neph_ [~neph@80.233.231.12] has joined #wesnoth-dev 20120613 17:40:18-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120613 17:40:54-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 17:41:31< esr> loonycyborg: Is __MSDOS__ still defined under Windows? 20120613 17:41:49< loonycyborg> No idea. 20120613 17:41:59< esr> Sigh. 20120613 17:41:59< loonycyborg> Better use _WIN32 20120613 17:42:35< loonycyborg> At least that's what wesnoth uses. 20120613 17:42:53< loonycyborg> That'll be defined by most compilers targeting windows :P 20120613 17:43:02< loonycyborg> Even cross-compilers. 20120613 17:47:24-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120613 18:01:45-!- apoi [~andi@85-126-180-242.volume.xdsl-line.inode.at] has quit [Quit: leaving] 20120613 18:02:01-!- apoi [~andi@85-126-180-242.volume.xdsl-line.inode.at] has joined #wesnoth-dev 20120613 18:06:04-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Quit: Computer has gone to sleep.] 20120613 18:12:10-!- apoi [~andi@85-126-180-242.volume.xdsl-line.inode.at] has quit [Quit: leaving] 20120613 18:12:27-!- apoi [~andi@85-126-180-242.volume.xdsl-line.inode.at] has joined #wesnoth-dev 20120613 18:29:41-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 18:30:17-!- _vdn [~nazgul-sa@85.141.125.68] has joined #wesnoth-dev 20120613 18:38:33-!- _vdn [~nazgul-sa@85.141.125.68] has quit [Quit: Leaving.] 20120613 18:39:08-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 18:47:02-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 18:47:36-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 18:50:50-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120613 18:55:30-!- negusnyul [~negusnyul@1F2EA8F4.dsl.pool.telekom.hu] has joined #wesnoth-dev 20120613 19:06:22-!- boucman [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20120613 19:06:52< boucman> hey all 20120613 19:08:37< boucman> bloodycoin_m: did you have time to code since we last discussed ? 20120613 19:19:22-!- the_new_lipk [~lipk@host-91-147-212-174.biatv.hu] has joined #wesnoth-dev 20120613 19:22:10-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 19:22:50-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 19:24:53-!- Elvish_Pillager [~eli@71-10-229-241.dhcp.oxfr.ma.charter.com] has joined #wesnoth-dev 20120613 19:29:13-!- MeccaGod [majs@host189-199.bornet.net] has quit [Ping timeout: 256 seconds] 20120613 19:31:37-!- MeccaGod [majs@host189-199.bornet.net] has joined #wesnoth-dev 20120613 19:35:07-!- gabba [d8623925@wesnoth/developer/gabba] has joined #wesnoth-dev 20120613 19:35:15< gabba> Hi all 20120613 19:35:17< gabba> hey ejls 20120613 19:49:58< bloodycoin_m> boucman: sorry.. nop, had presentatino today... -.- 20120613 19:50:06-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Read error: No route to host] 20120613 19:50:35-!- anonymissimus [~chatzilla@78.42.163.105] has joined #wesnoth-dev 20120613 19:50:40< Espreon> anonymissimus: Hello. 20120613 19:50:44-!- _vdn [~nazgul-sa@85.141.125.68] has joined #wesnoth-dev 20120613 19:51:17< boucman> ok 20120613 19:51:26< anonymissimus> esr: wesnoth is probably a bad place to ask for windows devs since harldy anyone is actually coding on it 20120613 19:52:47< anonymissimus> anyway, I subscribe to what loony said; MSVC defines _WIN32 by default but not __MSDOS__ 20120613 19:53:35< anonymissimus> and I indeed need to put the "b" frequently 20120613 19:55:02< anonymissimus> Espreon: hi 20120613 19:55:38< Espreon> anonymissimus: No, I'm not investigating it anymore. 20120613 19:55:50< Espreon> I'm convinced that something broke it. 20120613 20:00:38-!- bloodycoin_m [~bloodycoi@193.170.135.78] has quit [Ping timeout: 265 seconds] 20120613 20:01:00< anonymissimus> okay...do you give a cookie for checking out 1.10 and making a rebuild 2 times to get an 1.10 binary to check it, okay ? 20120613 20:02:35< Espreon> Yes 20120613 20:03:01< anonymissimus> :) 20120613 20:03:14-!- artisticdude_iOS [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120613 20:03:27< anonymissimus> *knurps* 20120613 20:11:27-!- _vdn [~nazgul-sa@85.141.125.68] has quit [Quit: Leaving.] 20120613 20:12:03-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 20:14:35-!- bloodyco_ [~bloodycoi@2002:c1aa:8513:a:745e:2f82:bca4:212a] has joined #wesnoth-dev 20120613 20:28:34-!- ancestral [~ancestral@97-127-66-8.mpls.qwest.net] has joined #wesnoth-dev 20120613 20:29:24-!- Blueblaze [~Blueblaze@adsl-99-158-44-1.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120613 20:29:48-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 20:30:21-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 20:35:01-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Client Quit] 20120613 20:35:10-!- gabba_ [d8623925@wesnoth/developer/gabba] has joined #wesnoth-dev 20120613 20:35:38-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 20:35:51-!- gabba [d8623925@wesnoth/developer/gabba] has quit [Ping timeout: 245 seconds] 20120613 20:43:54-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120613 20:44:13-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 20:47:56-!- Sirp_ [97c1dc1c@gateway/web/freenode/ip.151.193.220.28] has joined #wesnoth-dev 20120613 20:52:44-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120613 21:01:03-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 21:01:39-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 21:02:59-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120613 21:06:27-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Quit: Leaving.] 20120613 21:10:31-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 21:11:04-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 21:13:44-!- shadowm_laptop [ignacio@186.9.180.248] has joined #wesnoth-dev 20120613 21:13:45-!- shadowm_laptop [ignacio@186.9.180.248] has quit [Changing host] 20120613 21:13:45-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20120613 21:22:29-!- bumbadadabum [~bumbadada@d114024.upc-d.chello.nl] has joined #wesnoth-dev 20120613 21:23:02< bumbadadabum> can you help me out with lua 20120613 21:24:21< bumbadadabum> how do you make lua randomly select stuff from a foo=bar,bar2,bar3 parameter in a wml tag 20120613 21:27:48-!- MiJyn [~MiJyn@unaffiliated/mijyn] has joined #wesnoth-dev 20120613 21:27:51< MiJyn> How do I help out? 20120613 21:28:06< zookeeper> depends on what you want to help out with 20120613 21:28:10< MiJyn> coding 20120613 21:28:15< MiJyn> I'm a C/C++ programmer 20120613 21:28:50-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 21:29:24-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 21:29:44-!- neph_ [~neph@80.233.231.12] has left #wesnoth-dev ["Leaving"] 20120613 21:29:47-!- mattsc [~mattsc@DHCP-211-241.caltech.edu] has joined #wesnoth-dev 20120613 21:29:56-!- Nephro [~neph@80.233.231.12] has joined #wesnoth-dev 20120613 21:30:14< zookeeper> MiJyn, well, i'm sure the most appreciated way to start would be look for bugs in the bug tracker and submit patches to fix some of them 20120613 21:30:44< Nephro> MiJyn, also by working on bugs you'll get to know several parts of the codebase better 20120613 21:31:51< zookeeper> also there's http://wiki.wesnoth.org/EasyCoding but it might not be very frequently updated and perhaps might contain some obsolete entries (i'm not sure) so you might want to ask about any specific ideas you have first in here 20120613 21:32:08< MiJyn> zookeeper, ok, will check the bug tracker 20120613 21:32:24< MiJyn> Nephro, yeah, I guess so 20120613 21:34:57< mattsc> bumbadadabum: you could simply go through the WML set_variable tag. Something like: 20120613 21:35:06< mattsc> wesnoth.fire("set_variable", { name = "LUA_random", rand = string }) 20120613 21:35:37< bumbadadabum> so 20120613 21:35:57< bumbadadabum> wesnoth.fire("set_variable", { name = "Orc_type", rand = cfg.type }) 20120613 21:36:40< mattsc> Assuming cfg.type is a string with a comma separated list of types, yes 20120613 21:36:49< bumbadadabum> okay 20120613 21:37:37< shadowm> I generally use an auxiliary function like this: http://pastebin.com/dSQgc6UZ 20120613 21:38:10< mattsc> and make sure you clear variable 'Orc_type' when you are done 20120613 21:38:26< bumbadadabum> so you'll be able to run it again? 20120613 21:38:27< mattsc> shadowm: yes, I as well 20120613 21:38:48< bumbadadabum> I'll just go with shadowm's way 20120613 21:38:55< bumbadadabum> of inserting the random 20120613 21:38:58< anonymissimus> there is also a cleaner way by using sync_choice and math.rand 20120613 21:39:01< mattsc> bumbadadabum: No, just so that it doesn't hang around until the end of the campaign 20120613 21:39:09< bumbadadabum> okay 20120613 21:40:01< mattsc> oh, and look at this: http://wiki.wesnoth.org/LuaWML:Misc#helper.rand 20120613 21:40:14< anonymissimus> no dont use that please 20120613 21:40:21< anonymissimus> it's a pity I added it 20120613 21:40:25< mattsc> anonymissimus: ok, why? 20120613 21:40:45< anonymissimus> because I added it only since math.random was not available at that time 20120613 21:41:06< bumbadadabum> can I use shadowm's function 20120613 21:41:08< anonymissimus> and I'm not sure about whether it needs synchronization 20120613 21:41:16< bumbadadabum> and just call it in my function 20120613 21:41:20-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 21:41:57-!- _vdn [~nazgul-sa@85.141.125.68] has joined #wesnoth-dev 20120613 21:42:34< bumbadadabum> is there a call_function thing in lua? 20120613 21:42:43< anonymissimus> shadowm: I'm also unsure about whether your snippet needs snychronize_choice; in case your replays appear corrupted or show behavior differing from the one during play it might be a reason 20120613 21:43:39< mattsc> anonymissimus: it just uses WML's 'rand' operator. That should not need synchronize_choice, should it? 20120613 21:44:44< shadowm> Le sigh. 20120613 21:46:21< bumbadadabum> what is the variable where wesnoth.get_time_of_day is stored? 20120613 21:48:16< mattsc> bumbadadabum: local whatever_you_want = wesnoth.get_time_of_day(args) 20120613 21:48:57< bumbadadabum> if (tod.id == first_watch or tod.id == second_watch) 20120613 21:49:06< bumbadadabum> is this correct syntax? 20120613 21:49:44< anonymissimus> mattsc: 1. I remember that in Settlers of Wesnoth I once seemed to need to put it into sync_choice, even though that shouldn't be needed as you say 20120613 21:49:46< shadowm> You probably meant first_watch and second_watch as string literals in quotes, not variable names, _unless_ you really have variablers with those names. 20120613 21:50:02< anonymissimus> (or not only seemed to, I had to) 20120613 21:50:11< bumbadadabum> shadowm: quotes added 20120613 21:50:28< anonymissimus> 2. silene said once that it should be in sync_choice, but he didn't give a reason 20120613 21:50:32-!- mattsc_ [~mattsc@BeaverNet-166.caltech.edu] has joined #wesnoth-dev 20120613 21:51:25< shadowm> Funny, because silene himself was the one who told us to use that code snippet. 20120613 21:51:34-!- _vdn [~nazgul-sa@85.141.125.68] has quit [Quit: Leaving.] 20120613 21:51:34< anonymissimus> however, when I checked it some time ago it was fine anyway so perhaps I was wrong, unless something else had changed... 20120613 21:51:49-!- the_new_lipk [~lipk@host-91-147-212-174.biatv.hu] has quit [Ping timeout: 248 seconds] 20120613 21:52:09-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 21:52:27< bumbadadabum> if (tod.id == "first_watch" or tod.id == "second_watch") then wesnoth.fire("message", { speaker="speaker", message=_ "Good night!" }) 20120613 21:52:34< bumbadadabum> will this work 20120613 21:53:09< bumbadadabum> speaker => local speaker = tostring(cfg.speaker) 20120613 21:54:06-!- mattsc [~mattsc@DHCP-211-241.caltech.edu] has quit [Ping timeout: 246 seconds] 20120613 21:54:06-!- mattsc_ is now known as mattsc 20120613 21:57:00< bumbadadabum> http://pastebin.com/zNM83BUV 20120613 21:57:10< bumbadadabum> will this work? 20120613 21:58:44< bumbadadabum> and how do you call a function in lua? 20120613 22:00:03-!- mattsc [~mattsc@BeaverNet-166.caltech.edu] has quit [Remote host closed the connection] 20120613 22:00:13-!- mattsc [~mattsc@DHCP-211-241.caltech.edu] has joined #wesnoth-dev 20120613 22:02:33-!- the_new_lipk [~lipk@host-91-147-212-174.biatv.hu] has joined #wesnoth-dev 20120613 22:02:35-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120613 22:05:18< anonymissimus> Espreon: https://gna.org/bugs/index.php?19803 20120613 22:05:53< Espreon> Huzzah. 20120613 22:06:21-!- mattsc_ [~mattsc@BeaverNet-166.caltech.edu] has joined #wesnoth-dev 20120613 22:08:13-!- mattsc [~mattsc@DHCP-211-241.caltech.edu] has quit [Ping timeout: 245 seconds] 20120613 22:08:13-!- mattsc_ is now known as mattsc 20120613 22:09:49-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 22:09:51-!- MeccaGod [majs@host189-199.bornet.net] has quit [] 20120613 22:10:22-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 22:12:15-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120613 22:12:24< bumbadadabum> bumbadadabum: and how do you call a function in lua? 20120613 22:13:34< mattsc> bumbadadabum: just by its name 20120613 22:13:44< bumbadadabum> so? 20120613 22:13:48< bumbadadabum> how? 20120613 22:14:36< mattsc> wml_actions.greeting(cfg) 20120613 22:15:36< Espreon> Hmmmm... no longer wesnoth.wml_actions....? Oh well. 20120613 22:16:09< mattsc> oh, sorry 20120613 22:16:54< bumbadadabum> local orc_type = wesnoth.aonv_safe_random(cfg.type) 20120613 22:17:01< mattsc> hold on, I have something else going on... 20120613 22:20:15-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 22:20:49-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 22:24:05-!- anakayub [~anakayub@210.195.250.191] has joined #wesnoth-dev 20120613 22:24:22-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Client Quit] 20120613 22:25:00-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 22:25:57-!- ToBeFree [~tobefree@unaffiliated/tobefree] has quit [Read error: Connection reset by peer] 20120613 22:28:37-!- anakayub [~anakayub@210.195.250.191] has quit [Ping timeout: 248 seconds] 20120613 22:29:08-!- the_new_lipk [~lipk@host-91-147-212-174.biatv.hu] has quit [Quit: -)] 20120613 22:29:19-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120613 22:30:58-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120613 22:35:20-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120613 22:38:35< Nephro> hi mattsc have you seen the latest commit of mine? 20120613 22:38:39< mattsc> bumbadadabum: sorry, I was trying to give a quick answer while I was has something else going on and I missed something. Maybe you could repeat what's still unclear at this time 20120613 22:38:50< Nephro> I am waiting for Crab to approve it so I can document it 20120613 22:38:58< bumbadadabum> nothing 20120613 22:39:04< bumbadadabum> just a "does it work" 20120613 22:39:18< mattsc> Nephro: I haven't since I don't know what to do with it yet (I saw that you did commit something) 20120613 22:39:58< mattsc> bumbadadabum: have you tried whether it works? you mean your pastebin code? 20120613 22:39:59< Nephro> mattsc, the engine no longer needs to be defined 20120613 22:40:22< mattsc> Nephro: and everything else is exactly the same? 20120613 22:40:23< Nephro> mattsc, so you can just write all your ca's in external files and have a super clean scenario file 20120613 22:40:34< Nephro> mattsc, yes 20120613 22:40:46-!- boucman [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20120613 22:41:01< Nephro> mattsc, also, if you use the --debug-lua argument, your ca's will reload on the fly 20120613 22:41:01< mattsc> I thought you said that the content of the file needs to have a certain structure. I was waiting for information on that before doing something 20120613 22:41:12< mattsc> Nephro, and I have essentially no time this week anyway 20120613 22:41:26< Nephro> mattsc, yes, I will document that once Crab says the way I did it is ok 20120613 22:41:35< bumbadadabum> mattsc: 'end' expected (to close 'if' at line 27) 20120613 22:41:43< Nephro> mattsc, I'm just reporting so you know the status and the progress :) 20120613 22:41:57< mattsc> Nephro: ok, if that takes a couple days, that's pretty good timing for me. I might have some time on the weekend. Maybe. 20120613 22:42:22< mattsc> bumbadadabum: oh, yes, I missed that. All the if's need to be closed by end's 20120613 22:42:27< bumbadadabum> okay 20120613 22:43:19< mattsc> Also, you probably don't have a unit with ID "speaker", do you? 20120613 22:43:29< bumbadadabum> speaker is a local variable 20120613 22:43:36< Nephro> mattsc, also, about the segfault bugs, they are all of known nature, don't bother submitting them, they will most probably be solved after a single commit 20120613 22:43:44< mattsc> yeah, just saw that (sorry, I'm slow today ;) ) 20120613 22:44:08< bumbadadabum> attempt to index global 'wml_actions' 20120613 22:44:14< mattsc> Then you need to eliminate the quotes: speaker = speaker 20120613 22:44:24< bumbadadabum> how to fix that 20120613 22:44:37< mattsc> Nephro: ok, that's great 20120613 22:45:06< mattsc> what's in cfg.speaker? An ID or a unit file? 20120613 22:45:14< bumbadadabum> id 20120613 22:45:38< mattsc> untested: wesnoth.fire("message", { speaker=speaker, message=_ "Good afternoon!" }) 20120613 22:46:07< mattsc> (sorry, I meant unit table ^) 20120613 22:46:48< bumbadadabum> still the same error 20120613 22:47:01< mattsc> The 'end' expected error? 20120613 22:47:07< bumbadadabum> no 20120613 22:47:13< bumbadadabum> :attempt to index global 'wml_actions 20120613 22:47:19< bumbadadabum> (a nil value) 20120613 22:47:32-!- Appleman1234 [~Appleman1@ppp59-167-222-56.qld.adsl.internode.on.net] has quit [Read error: Connection reset by peer] 20120613 22:47:39< mattsc> that's because you define the functions as subtag of wml_actions 20120613 22:47:52< bumbadadabum> so I should change that 20120613 22:48:02< mattsc> (sorry, yes, that was mentioned up there, I knew I had missed something) 20120613 22:48:07< mattsc> yes, just call it 'greeting' 20120613 22:48:16< bumbadadabum> okay 20120613 22:48:22< bumbadadabum> thanks 20120613 22:48:42< bumbadadabum> one lua macro 20120613 22:48:44< bumbadadabum> and one new tag 20120613 22:48:53< bumbadadabum> now let's make it mainline 20120613 22:49:13< bumbadadabum> uhh 20120613 22:49:17< mattsc> ? 20120613 22:49:20< bumbadadabum> [greeting] not supported 20120613 22:49:40-!- Sirp_ [97c1dc1c@gateway/web/freenode/ip.151.193.220.28] has left #wesnoth-dev [] 20120613 22:49:51< mattsc> Oh, you're trying to create a new tag? I thought you were just trying to call this from within Lua 20120613 22:50:01< bumbadadabum> yes I was 20120613 22:51:01< bumbadadabum> [lua] 20120613 22:51:02< bumbadadabum> code = << 20120613 22:51:02< bumbadadabum> wesnoth.dofile '~add-ons/An_Orc_Named_Vrug/lua/wml_tags.lua' 20120613 22:51:02< bumbadadabum> >> 20120613 22:51:02< bumbadadabum> [/lua] 20120613 22:51:11< bumbadadabum> that is in the _main.cfg 20120613 22:51:36< mattsc> That's why you're using wml_actions, I get it now... 20120613 22:51:44< bumbadadabum> :) 20120613 22:51:46< mattsc> You need to use wesnoth.wml_actions.greeting then 20120613 22:52:23< mattsc> Some days I'm slower than others. :) 20120613 22:56:06-!- mattsc [~mattsc@BeaverNet-166.caltech.edu] has quit [Remote host closed the connection] 20120613 22:56:14-!- _vdn [~nazgul-sa@ppp85-141-125-68.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120613 22:56:15-!- mattsc [~mattsc@dhcp-211-241.caltech.edu] has joined #wesnoth-dev 20120613 22:56:31< bumbadadabum> if cfg.first_watch_message.is_set then local first_watch = cfg.first_watch_message else local first_watch = _ "Good night!" 20120613 22:56:36< bumbadadabum> does this work? 20120613 22:57:07< mattsc> no 20120613 22:57:30< mattsc> first, the end is missing. Second, this will define 'first_watch' only for inside the if statement 20120613 22:57:57-!- mjs-de [~mjs-de@d185103.adsl.hansenet.de] has quit [Remote host closed the connection] 20120613 22:58:00< bumbadadabum> how should I do this then? 20120613 22:58:54< mattsc> there a a bunch of different possibilities. If you want to stay with this general approach: 20120613 23:00:17< mattsc> http://pastebin.com/5TWpbmzn 20120613 23:00:46< mattsc> However, that's only to illustrate the thing with the local variable. I wouldn't do it that way. I'd prefer something like: 20120613 23:01:15< mattsc> local first_watch = cfg.first_watch_message or _"Good night!" 20120613 23:01:24-!- crab_ [~Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20120613 23:01:25< bumbadadabum> okay 20120613 23:03:16< crab_> Ayne: see email, I've sent the notes to you 20120613 23:03:43< crab_> Nephro: I've still not finished with reviewing your code, I'll send some notes to you tomorrow in the morning 20120613 23:03:47< Ayne> crab: yes, just got it, thank you 20120613 23:04:51< mattsc> Espreon: I'm just not very good at multi-tasking. ;) 20120613 23:05:23< crab_> Ayne: overall, it's good and you definitely got the idea of what we want to do, yet, there's a lot of things that could be made simpler and less error-prone. 20120613 23:05:52< crab_> you can answer using your own comments if there are places where you disagree or need more info. 20120613 23:05:54-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Quit: artisticdude] 20120613 23:06:17-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120613 23:06:31< bumbadadabum> http://pastebin.com/imqKgxG4 20120613 23:06:57< Espreon> mattsc: None of us are. 20120613 23:07:11< bumbadadabum> My first pseudo-mainline wml tag 20120613 23:07:12< bumbadadabum> :) 20120613 23:07:16< bumbadadabum> I'm so proud 20120613 23:07:31< shadowm> I have written a dozen or so. 20120613 23:07:42< bumbadadabum> I haven't 20120613 23:08:04< anonymissimus> bumbadadabum: I'm sure you are capable of answering some of your questions yourself 20120613 23:08:18< bumbadadabum> I have 20120613 23:08:35< bumbadadabum> I only need to know if this cod is the easiest, fastest way to do it 20120613 23:08:59< bumbadadabum> *code 20120613 23:09:12< crab_> bumbadadabum: about the code you've pasted: a better approach would be to make a table of time of day to messages, then just fire the message from the table. 20120613 23:09:26< bumbadadabum> how, crab_? 20120613 23:09:47< crab_> bumbadadabum: your code is ok, yet, if you would need to do something else instead of firing the message, you'll need to modify it 6 times, which is not fun. 20120613 23:10:28< mattsc> bumbadadabum: you need to replace the '=' with '==' though, don't you? 20120613 23:10:37< bumbadadabum> this for now is a greeting tag 20120613 23:10:40< mattsc> In the if statements, I mean 20120613 23:10:54< bumbadadabum> for a time-based greeting 20120613 23:11:31< Nephro> crab_, but does the overall approach seems acceptable to you? meaning, should I start documenting that, or remake it first? 20120613 23:12:03< bumbadadabum> mattsc, crab_, I'm going to improve it tomorrow 20120613 23:12:18< bumbadadabum> maybe make it into a [check_tod] tag 20120613 23:12:43< shadowm> There's something wrong with this picture: http://shadowm.rewound.net/f/cave-transitions.png 20120613 23:13:21< Nephro> shadowm, :)) 20120613 23:13:42< bumbadadabum> bye guys 20120613 23:13:47< crab_> Nephro: yes, the way to provide a dummy engine if there's no engine is ok. 20120613 23:13:58-!- bumbadadabum [~bumbadada@d114024.upc-d.chello.nl] has quit [Quit: bumbadadabum] 20120613 23:14:11< shadowm> wesbot: seen Alarantalara 20120613 23:14:12< wesbot> shadowm: The person with the nick Alarantalara last spoke 18d 3h ago. 10d 4h ago they left with the message: Quit: Leaving. 20120613 23:15:11< crab_> of course, you could have done the dummy engine definition in C++, but doing it in lua is more natural. 20120613 23:16:20-!- PolarPanda [~quassel@unaffiliated/peterporty] has quit [Read error: Connection reset by peer] 20120613 23:16:54-!- PolarPanda [~quassel@unaffiliated/peterporty] has joined #wesnoth-dev 20120613 23:17:29< Nephro> crab_, yes, I had that idea too... But then I thought that the generation code will look long and clumsy. This way it's very simple and self explanatory, also kind of separated from the architecture(moved out to a file). I was worried about the hardcoded string operations 20120613 23:17:50< Nephro> but I decided to not optimise non-existing code and do it this way as a first draft 20120613 23:17:54< crab_> perfectly ok for me 20120613 23:18:03< Nephro> that seems to be the way they try to teach me in uni :) 20120613 23:19:28< crab_> well, there's a better way to do it 20120613 23:20:29< crab_> if you include the lua ai engine config in the 'default ai config' and provide a way for user-specified lua engines to run even with that default config being present, then you'll have your strings in WML of default ai config 20120613 23:21:00-!- artisticdude_iOS [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Quit: Colloquy for iPod touch - http://colloquy.mobi] 20120613 23:21:45< crab_> but, that is a design question 20120613 23:22:20< crab_> if you treat your 'default location of lua ai engine config' as a AI parameter, then it should go into default ai parameters 20120613 23:22:46< crab_> if you treat your 'default location of lua ai engine config' as a per-wesnoth parameter, then current approach is fine, at least short-term 20120613 23:23:26< crab_> so, if you manage to push those strings to data/ai/utils/default_config.cfg, that would be ideal. 20120613 23:23:31< crab_> but, current approach is ok 20120613 23:23:48-!- Blueblaze [~Blueblaze@adsl-99-158-44-1.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120613 23:25:04< Nephro> I'll need to look closer tomorrow 20120613 23:25:10< Nephro> on a different machine right now 20120613 23:26:12< crab_> ok. 20120613 23:26:42< crab_> so, overall, "that way is fine, but the proper location for that wesnoth.require is data/ai/utils/default_config.cfg 20120613 23:27:24< crab_> I'll go, then. bye, will be earlier online tomorrow (but still in the evening, and, maybe, a bit in the morning) 20120613 23:27:38< Nephro> ok I'll try to catch you then :) bye 20120613 23:31:33-!- crab_ [~Crab_@wesnoth/developer/crab] has quit [Ping timeout: 245 seconds] 20120613 23:33:02-!- negusnyul [~negusnyul@1F2EA8F4.dsl.pool.telekom.hu] has quit [Remote host closed the connection] 20120613 23:36:04< mattsc> Nephro: I'm off too. I'll likely not be back on here until Saturday, but it doesn't sound like you need me right now. I'll check the logs. 20120613 23:39:13-!- mattsc [~mattsc@dhcp-211-241.caltech.edu] has quit [Quit: bye] 20120613 23:40:33-!- Nephro [~neph@80.233.231.12] has quit [Ping timeout: 252 seconds] 20120613 23:54:28-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Quit: Leaving.] 20120613 23:57:26-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [] 20120613 23:58:03< CIA-87> anonymissimus * r54406 /trunk/data/lua/wml/objectives.lua: Fix a variable referenced out of its scope (bug #19803) --- Log closed Thu Jun 14 00:00:01 2012