--- Log opened Tue May 27 00:00:51 2014 20140527 00:36:33-!- DDR [~david@ec2.happyspork.com] has quit [Ping timeout: 252 seconds] 20140527 00:47:16-!- DDR [~david@ec2.happyspork.com] has joined #wesnoth 20140527 00:50:01-!- ancestral [~ancestral@12.23.74.29] has joined #wesnoth 20140527 01:02:40< oldlaptop> celticminstrel: but it remains bad practice to make file names with spaces in them in this case 20140527 01:02:57< oldlaptop> just as it is bad practice to make file names with newlines in them (yes, you can do that on some systems) 20140527 01:09:22-!- WinterD [~quassel@177.196.200.77.rev.sfr.net] has joined #wesnoth 20140527 01:21:31-!- Necrosporus_ [~Necrospor@unaffiliated/necrosporus] has joined #wesnoth 20140527 01:24:37-!- Necrosporus [~Necrospor@unaffiliated/necrosporus] has quit [Ping timeout: 252 seconds] 20140527 02:03:54-!- ArneBab_ [~quassel@55d449b9.access.ecotel.net] has joined #wesnoth 20140527 02:07:03-!- ArneBab [~quassel@55d45476.access.ecotel.net] has quit [Ping timeout: 252 seconds] 20140527 02:30:01-!- Ivanovic_ [~ivanovic@frnk-5f74d5d8.pool.mediaWays.net] has joined #wesnoth 20140527 02:32:04-!- groggy [~chatzilla@75-131-166-139.dhcp.spbg.sc.charter.com] has joined #wesnoth 20140527 02:33:04-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has quit [Ping timeout: 276 seconds] 20140527 02:33:55-!- Ivanovic_ is now known as Ivanovic 20140527 02:39:55-!- Necrosporus_ is now known as Necrosporus 20140527 03:11:40-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth 20140527 03:19:36< celticminstrel> It's not bad practice to name files with spaces. 20140527 03:20:17< celticminstrel> Naming them with spaces is the obvious choice in some cases, and there's not really any reason not to go with the obvious choice anymore. 20140527 03:20:34< celticminstrel> Except of course when some program unreasonably refuses to work properly. 20140527 03:25:31-!- happygrue [~happygrue@wesnoth/developer/wintermute] has quit [Ping timeout: 240 seconds] 20140527 03:33:29< Necrosporus> celticminstrel, naming files with spaces is a bad practice 20140527 03:33:55< Necrosporus> when this files are used by some program internally 20140527 03:34:11< Necrosporus> But it's not as bad when it's used for user files 20140527 03:34:38< Necrosporus> celticminstrel, is naming files with control chars including newline a bad practice? 20140527 03:35:41< Necrosporus> For example there was a very bad decision to name program dir in windows as "Program Files" 20140527 03:35:41< celticminstrel> It's not bad practice even for internal files, since if you're the one naming those the program is probably at least partly under your control and you can ensure it works when there are spaces in filenames. 20140527 03:35:49< celticminstrel> That wasn't a bad decision. 20140527 03:36:15< Necrosporus> Then why is it renamed in newer versions of windows? 20140527 03:36:21< celticminstrel> It's not their fault if some programs can't handle spaces. 20140527 03:36:30< celticminstrel> How should I know why Microsoft does what it does? 20140527 03:37:31< celticminstrel> Newlines and other control characters are probably a bit silly for filenames. 20140527 03:37:40< celticminstrel> There shouldn't be a need for newlines in filenames, really. 20140527 03:37:51< celticminstrel> Whereas there is a need for spaces. 20140527 03:37:53< Necrosporus> celticminstrel, while files with spaces could he handled, their handling puts extra burden 20140527 03:38:02< celticminstrel> I kinda doubt that? 20140527 03:38:14-!- groggy [~chatzilla@75-131-166-139.dhcp.spbg.sc.charter.com] has quit [Remote host closed the connection] 20140527 03:39:11< Necrosporus> If you want to remove a file with spaces you have to pride space with \ or put whole name in quotes, while if they do not have spaces (and other special chars) you could just type name as it is 20140527 03:39:49< celticminstrel> Uh, that's the user's burden, and only applies to command-line programs anyway. 20140527 03:40:13< Necrosporus> celticminstrel, why there shouldn't be need for newlines in filenames but should be a need for spaces? You may want newlines in names for exactly same reason 20140527 03:40:25< celticminstrel> But it's not really any harder to type the name in quotes than it is to type it without quotes, and at least on my computer, files with spaces tab-complete fine. 20140527 03:40:48< Necrosporus> celticminstrel, which is primary way to interact with the system to most of more-or-less advanced users 20140527 03:40:59< celticminstrel> That's because spaces separate words, while newlines separate lines. You'll often want a filename to be multiple words, but I don't think you'll often want a filename to be multiple lines. 20140527 03:41:39< Necrosporus> Why not you want a filename to be multiple lines for exactly same reason? 20140527 03:41:40< celticminstrel> Maybe it's the primary means of interaction for some users, but what you call a "burden" isn't particularly a significant one. 20140527 03:41:57< shadowm> It's still called Program Files in Windows 8.1. 20140527 03:42:00< Necrosporus> celticminstrel, when you copy filename from ls output it is 20140527 03:42:07< celticminstrel> You might want a filename to be multiple lines. I'm just saying I don't think it'd be a common desire. 20140527 03:42:13< celticminstrel> Um, not really? 20140527 03:42:19< Necrosporus> shadowm, they renamed Documents and Settings at least 20140527 03:42:22< celticminstrel> Type ', paste, type ' again. 20140527 03:42:40< Necrosporus> celticminstrel, but if you do not have spaces you don't need to type '' 20140527 03:43:11< celticminstrel> Sure, but typing the quotes isn't really an extra effort worth arguing over. 20140527 03:43:50< Necrosporus> celticminstrel, what's the exact reason to want filname be separated with 0x20 (spaces) instead of NBSP or _ or just not separated? 20140527 03:43:58< celticminstrel> And tab-complete works when files have spaces. 20140527 03:44:03< celticminstrel> At least on my computer. 20140527 03:44:34< celticminstrel> Non-breaking space, yes, I suppose you could use that if you really wanted to, but it's not really meant for just separating words. 20140527 03:44:36< Necrosporus> celticminstrel, it's non-zero burden which could be easily avoided 20140527 03:44:48< celticminstrel> As for underscores... that's the "workaround" for things not supporting spaces. 20140527 03:44:56< celticminstrel> It's not really a burden at all. 20140527 03:45:10< Necrosporus> I forgot to put '' sometimes 20140527 03:45:12< celticminstrel> It's non-zero, sure, but almost negligible. 20140527 03:45:48< celticminstrel> If you want to avoid it by using underscores instead of spaces, that's your decision. 20140527 03:45:58< celticminstrel> That doesn't make using spaces a bad thing. 20140527 03:46:24< Necrosporus> celticminstrel, is using newlines in filenames a bad thing? 20140527 03:46:35< celticminstrel> I dunno. 20140527 03:46:45< celticminstrel> I personally don't think there's any need for it. 20140527 03:46:49< celticminstrel> But someone may disagree. 20140527 03:47:02< celticminstrel> I don't think I'd ever want a filename that's multiple lines. 20140527 03:47:42< Necrosporus> You may want a filename having several paragraph long description of its content 20140527 03:47:56< celticminstrel> Yeah, if you're doing that, you've missed the point of a filename. 20140527 03:48:35< Necrosporus> http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html anyway, newlines in filenames is a very bad things, spaces are not as bad, but them are still not good 20140527 03:48:35< celticminstrel> I think I could imagine someone wanting a two-line filename, though. 20140527 03:48:42< celticminstrel> Something like "title\nsubtitle". 20140527 03:48:57< celticminstrel> Spaces aren't bad. 20140527 03:49:02< celticminstrel> Newlines are debatable. 20140527 03:50:19< celticminstrel> If I discovered one in a filename I'd probably change it, unless of course doing so breaks a program that requires the file. 20140527 03:50:31< celticminstrel> I'd never use a newline in a filename. 20140527 03:51:18< Necrosporus> Is \0 char in a filename a bad thing? 20140527 03:51:25< celticminstrel> Yes. 20140527 03:51:48< celticminstrel> I don't think it's permitted in any common filesystem, though? 20140527 03:52:01< Necrosporus> NTFS afair 20140527 03:56:35< Necrosporus> celticminstrel, HFS 20140527 03:57:01< celticminstrel> That's not used anymore though. 20140527 03:58:05< celticminstrel> That was the Mac Classic filesystem in System 7 or something. 20140527 03:58:18< celticminstrel> Unless you mean HFS+. 20140527 03:58:23< Necrosporus> HFS Plus too 20140527 03:58:33< celticminstrel> Well, that one I can probably test. 20140527 04:00:05< celticminstrel> Or not. 20140527 04:01:16< celticminstrel> Doesn't look like it's allowed, but I dunno. 20140527 04:01:22-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: Traveling until May 31] 20140527 04:02:48< celticminstrel> Finder won't allow it, and I can't seem to make one from the command-line. 20140527 04:04:08< Necrosporus> it's not that easy 20140527 04:04:15< Necrosporus> Almost no programs would handle it 20140527 04:04:45< celticminstrel> Well, even if the underlying filesystem allows it, it seems to be impossible for a user to create such a file. 20140527 04:06:39< Necrosporus> It's possible just you do not know how to 20140527 04:08:02< Necrosporus> celticminstrel, you might try mkdir $'test\0test' 20140527 04:08:19< Necrosporus> though you will get just 'test' probably 20140527 04:08:30< celticminstrel> Yeah. 20140527 04:08:35< Necrosporus> because of mkdir executable limitation 20140527 04:08:47< celticminstrel> I used touch, not mkdir, but same result. 20140527 04:09:09-!- Gambit [~derek@wesnoth/developer/grickit] has quit [Remote host closed the connection] 20140527 04:15:26-!- greer [~greer@gateway/tor-sasl/greer] has joined #wesnoth 20140527 04:17:51-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth 20140527 04:25:01-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 240 seconds] 20140527 04:26:52-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth 20140527 04:53:50-!- MouldyOldBones [~mob@gateway/tor-sasl/mouldyoldbones] has quit [Ping timeout: 272 seconds] 20140527 05:06:21-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has quit [Quit: Leaving] 20140527 05:12:41-!- MouldyOldBones [~mob@gateway/tor-sasl/mouldyoldbones] has joined #wesnoth 20140527 05:38:30-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth 20140527 05:57:00-!- Ivanovic [~ivanovic@frnk-5f74d5d8.pool.mediaWays.net] has quit [Changing host] 20140527 05:57:00-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has joined #wesnoth 20140527 05:58:25-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has quit [Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] 20140527 06:08:14-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Read error: Connection reset by peer] 20140527 06:12:17-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth 20140527 06:18:46-!- claymore [~claymore@unaffiliated/claymore] has joined #wesnoth 20140527 06:52:16-!- greer [~greer@gateway/tor-sasl/greer] has quit [Ping timeout: 272 seconds] 20140527 06:56:15-!- greer [~greer@gateway/tor-sasl/greer] has joined #wesnoth 20140527 07:35:54-!- thunderstruck [~zaibotren@cpc13-sgyl31-2-0-cust696.18-2.cable.virginm.net] has joined #wesnoth 20140527 07:44:43-!- vultraz [~chatzilla@wesnoth/developer/vultraz] has quit [Ping timeout: 240 seconds] 20140527 07:50:31-!- Chris7mas [~embryo@188.25.62.208] has quit [Remote host closed the connection] 20140527 07:52:47-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20140527 08:27:39-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has quit [Ping timeout: 252 seconds] 20140527 08:29:49-!- shadowm_desktop [ignacio@186.9.66.169] has joined #wesnoth 20140527 08:30:22-!- shadowm_desktop is now known as Guest38415 20140527 08:39:34-!- Haldrik [~haldrik@unaffiliated/haldrik] has joined #wesnoth 20140527 09:01:07-!- Guest38415 [ignacio@186.9.66.169] has quit [Ping timeout: 245 seconds] 20140527 09:06:22-!- flint_beastwood [~AndChat50@213.158.217.147.pat.umts.dynamic.t-mobile.pl] has joined #wesnoth 20140527 09:06:26< flint_beastwood> hi 20140527 09:08:07-!- flint_beastwood [~AndChat50@213.158.217.147.pat.umts.dynamic.t-mobile.pl] has quit [Client Quit] 20140527 09:21:41-!- ancestral [~ancestral@12.23.74.29] has quit [Quit: End Transmission.] 20140527 09:38:43-!- falcon` is now known as Falcon` 20140527 10:10:08-!- JackBauer24 [~JackBauer@89-79-180-156.dynamic.chello.pl] has quit [Quit: Konversation terminated!] 20140527 10:16:54-!- Johannes13 [~Johannes@p4FDEBE74.dip0.t-ipconnect.de] has joined #wesnoth 20140527 10:16:54-!- Johannes13 [~Johannes@p4FDEBE74.dip0.t-ipconnect.de] has quit [Changing host] 20140527 10:16:54-!- Johannes13 [~Johannes@unaffiliated/johannes13] has joined #wesnoth 20140527 10:28:13< Ard0nik> Join, say "hi", quit two minutes later. 20140527 10:28:33< Ard0nik> Can you imagine people doing such a thing in real life, say, at a dinner party? 20140527 10:47:25< Necrosporus> why not? 20140527 10:53:53< zookeeper> well arguably if i show up at a dinner party, say "hi", and everyone acts as if i'm not there, i'm not going to stay :p 20140527 10:55:14< zookeeper> so that might not be the analogy you want to go for ;) 20140527 12:34:46-!- TooLmaN [~TooLmaN@mx1.thomsonplastics.com] has joined #wesnoth 20140527 12:44:42-!- JackBauer24 [~JackBauer@89-79-180-156.dynamic.chello.pl] has joined #wesnoth 20140527 13:02:14-!- celticminstrel [~celmin@unaffiliated/celticminstrel] has joined #wesnoth 20140527 13:25:37-!- greer [~greer@gateway/tor-sasl/greer] has quit [Remote host closed the connection] 20140527 13:26:14-!- greer [~greer@gateway/tor-sasl/greer] has joined #wesnoth 20140527 13:37:32-!- TooLmaN [~TooLmaN@mx1.thomsonplastics.com] has quit [Quit: Off to save the world!] 20140527 14:04:38-!- JackBauer24 [~JackBauer@89-79-180-156.dynamic.chello.pl] has quit [Quit: Konversation terminated!] 20140527 14:32:41-!- artisticdude [~Ben@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth 20140527 14:48:30-!- artisticdude [~Ben@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Read error: Connection reset by peer] 20140527 14:48:58-!- artisticdude [~Ben@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth 20140527 14:53:44-!- artisticdude [~Ben@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Read error: Connection reset by peer] 20140527 15:15:33-!- TooLmaN [~TooLmaN@mx1.thomsonplastics.com] has joined #wesnoth 20140527 15:35:01-!- mattsc [~mattsc@wesnoth/developer/mattsc] has joined #wesnoth 20140527 16:31:05-!- JackBauer24 [~JackBauer@89-79-180-156.dynamic.chello.pl] has joined #wesnoth 20140527 16:33:04-!- Falcon` is now known as falcon` 20140527 16:35:44-!- mattsc [~mattsc@wesnoth/developer/mattsc] has quit [Quit: Traveling until May 31] 20140527 16:42:57-!- TooLmaN [~TooLmaN@mx1.thomsonplastics.com] has quit [Quit: Off to save the world!] 20140527 17:06:54-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth 20140527 17:12:10-!- lamefun [~lamefun2@37.113.25.65] has joined #wesnoth 20140527 17:12:21< lamefun> is lua math.random somehow linked with Wesnoth's random? 20140527 17:12:25< lamefun> I mean in WML 20140527 17:13:32< lamefun> maybe creating units from wesnoth.unit_types is? 20140527 17:15:27< Necrosporus> I guess it is 20140527 17:16:07< lamefun> HEHE-QUACK! 20140527 17:16:21< lamefun> I gave up on my mod for several months because of it -.- 20140527 17:16:35< Necrosporus> lamefun, what's your exact problem? 20140527 17:16:37< lamefun> Caused de-sync errors because I created units from synchronize_choice -.- 20140527 17:16:39< Necrosporus> maybe I might help 20140527 17:16:57< Necrosporus> lamefun, the problem is generate names and generate traits 20140527 17:17:07< Necrosporus> set them as now and assign them manually 20140527 17:17:12< Necrosporus> * no 20140527 17:17:22< lamefun> is it possible to disable that? 20140527 17:17:37< lamefun> I need them to filter the unit types 20140527 17:17:41< lamefun> It's Creep War mod 20140527 17:18:29< Necrosporus> check single unit wml page http://wiki.wesnoth.org/SingleUnitWML 20140527 17:18:35< lamefun> Necrosporus, https://github.com/lamefun/colosseum-xp/blob/creep-war/lua/creep_war/generate_creeps.lua - this is my generator file 20140527 17:18:57< Necrosporus> you generate them in lua 20140527 17:19:04< lamefun> yes 20140527 17:19:05< lamefun> why not? 20140527 17:19:29< lamefun> I do a lot of things in Lua 20140527 17:19:40< Necrosporus> maybe you could generate them in a synced event? 20140527 17:19:51< lamefun> and abuse macros 20140527 17:20:01< lamefun> my code is the worst code in the Universe 20140527 17:20:11< lamefun> how would that solve it? 20140527 17:20:24< Necrosporus> Let's highlight someone anyway 20140527 17:20:24< Necrosporus> zookeeper maybe? 20140527 17:20:26< lamefun> they would still generate 1 more time on host = more randomness 20140527 17:20:33< lamefun> *more random calls on host ---> de-sync 20140527 17:20:52< Necrosporus> lamefun, anyway you have to make syncronized between hosts 20140527 17:21:00< lamefun> it is synchronized 20140527 17:21:08< lamefun> already, in Lua, via synchronize_choic 20140527 17:21:09< Necrosporus> So you ask player to chose what? 20140527 17:21:22< lamefun> to generate creeps 20140527 17:21:41< Necrosporus> or not? 20140527 17:21:48< lamefun> what? 20140527 17:21:55< Necrosporus> what's the question you ask user? 20140527 17:22:03< lamefun> it doesn't ask any 20140527 17:22:07< lamefun> just generate random creeps 20140527 17:22:37< Necrosporus> What's synchronize_choice? 20140527 17:22:39< lamefun> I fear undefined behavior in Lua 20140527 17:24:28< Necrosporus> Anyway you need to use only deterministic algorithms after you sync 20140527 17:24:40< lamefun> http://wiki.wesnoth.org/LuaWML:Misc#wesnoth.synchronize_choice 20140527 17:24:42< Necrosporus> lamefun, try to disable generation of names and traits 20140527 17:25:08< Necrosporus> It's not synced for sure 20140527 17:25:11< lamefun> the problem as I think it is that only host runs the generator and it offsets host's random seed 20140527 17:25:19< Necrosporus> yes 20140527 17:26:35< lamefun> maybe I should try to get rid of synchronize_choice and call set_variable from Lua instead? 20140527 17:27:12< Necrosporus> I do not know really, I do not use lua 20140527 17:27:20-!- happygrue [~happygrue@2601:6:4380:7df:4852:6807:7541:e7e4] has joined #wesnoth 20140527 17:27:20-!- happygrue [~happygrue@2601:6:4380:7df:4852:6807:7541:e7e4] has quit [Changing host] 20140527 17:27:20-!- happygrue [~happygrue@wesnoth/developer/wintermute] has joined #wesnoth 20140527 17:27:59-!- iceiceice [~chris@207-237-132-91.ny.subnet.cable.rcn.com] has joined #wesnoth 20140527 17:28:10< lamefun> why not? 20140527 17:29:48< lamefun> is it bad? 20140527 17:30:10< Necrosporus> because wml can do almost everything I want 20140527 17:30:45< c74d> I expect most UMC authors don’t use Lua, merely due to many or most getting into UMC authorship via editing mainline and existing UMC, of which the vast majority is in WML. 20140527 17:31:00< lamefun> can I make something like this in pure WML while keeping the code sane? https://github.com/lamefun/colosseum-xp/blob/creep-war/docs/menu.txt 20140527 17:31:34< iceiceice> lamefun: its largely preference 20140527 17:31:52< iceiceice> there are some things you have to go to lua for, 20140527 17:31:55-!- vultraz [~chatzilla@124.109.10.167] has quit [Read error: Network is unreachable] 20140527 17:31:57< iceiceice> synchronize choice is one 20140527 17:32:10< iceiceice> lua math.random is much more relaibel than the wml rand also, in 1.10 20140527 17:32:17< iceiceice> in 1.12 thats not an issue i believe 20140527 17:32:18< Necrosporus> lamefun, I do not think it's possible to write in WML and keeping code sane unless you are writhing something really simple as AOI i.e. 20140527 17:32:37< iceiceice> i written almost exclusively in wml when i have made scenarios 20140527 17:32:38-!- vultraz [~chatzilla@124.109.10.167] has joined #wesnoth 20140527 17:32:41< iceiceice> except for the two i mentioned 20140527 17:32:58< iceiceice> idk i really dont like programming language debates... 20140527 17:33:13< iceiceice> WML for all its flaws gets the job done, and has better error reporting than lua 20140527 17:34:20< iceiceice> you can pretty much use whatever you want and transfer control from one to the other when you need to 20140527 17:34:20< c74d> WML has better error reporting than Lua? 20140527 17:34:23< lamefun> I'm afraid to imagine how my 561 line menu code will grow if I make it in lua... 20140527 17:34:32< lamefun> *WML 20140527 17:34:38< iceiceice> c74d: imo y, 20140527 17:34:42< iceiceice> lua tends to just make these little chat lines 20140527 17:34:50< iceiceice> but not necessarily a console log 20140527 17:35:00< iceiceice> and right now lua errors dont cause unit tests to fail 20140527 17:35:09< iceiceice> because i havent figured out how to redirect the lua error messages 20140527 17:35:38< iceiceice> when the C++ engine interprets a wml message error though theres a much more robust mechanism, 20140527 17:35:46< iceiceice> you can get the popup gui error messages, 20140527 17:35:51< iceiceice> and they can be transient so you can contineu with defaults afterewards 20140527 17:36:01< iceiceice> if like some options was given a bad value or smth 20140527 17:36:16< iceiceice> [wml_message] is a very useful tag that doesnt have lua analog afaik 20140527 17:37:18< iceiceice> idk wesnoth actually has an extremely elaborate error logging mechanism spread over a variety of files, and only partially integrated into the C++ engine... 20140527 17:37:23< iceiceice> and even less of it has made it into the lua interpreter 20140527 17:37:38< iceiceice> also for the tags implemented in lua i guess they cant take advantage 20140527 17:38:04< c74d> From what I remember, WML error messages were like “[foo]: bad value for attribute x”, with no indication as to *which* [foo] tag, which could be vexing when one has multiple [foo] tags. 20140527 17:40:04< c74d> Whereas Lua backtraces include the number of the line where the error occurred, what function called the function it occurred in and the line number of that call, what function called that function and the line number of that call, etc. 20140527 17:40:47< iceiceice> oh is that right? 20140527 17:40:54< iceiceice> how does it know that? 20140527 17:41:09< iceiceice> is that something we can backport to wml? 20140527 17:41:17-!- Necrosporus [~Necrospor@unaffiliated/necrosporus] has quit [Quit: Leaving] 20140527 17:41:36< c74d> I don’t know, I didn’t embed Lua. But I think it’s fairly easy given the model of what Lua interprets. 20140527 17:41:58< iceiceice> i see i didnt realize this 20140527 17:42:07< iceiceice> y lua may just be better in general then 20140527 17:42:21< iceiceice> i think it should send thins to console as well though 20140527 17:42:36-!- Necrosporus [~Necrospor@unaffiliated/necrosporus] has joined #wesnoth 20140527 17:44:28< c74d> From my limited knowledge, the WML parser is fed a huge string containing all the WML in the game, and spits out a huge data structure containing all that WML, with no fields for tracking line numbers. 20140527 17:44:52< c74d> Whereas the Lua interpreter parses as it goes, keeping track of where in the input string it is. 20140527 17:46:02< c74d> Lua errors aren’t sent to stderr? That seems easy enough, Lua `print` already goes to stdout without causing problems. 20140527 17:48:28-!- DCW [~Thunderbi@cpc66863-finc15-2-0-cust393.4-2.cable.virginm.net] has joined #wesnoth 20140527 17:49:25< iceiceice> hmm i think they should actually go to lg::wml_error or equivalent 20140527 17:49:49< iceiceice> also print probably shoudln't go to std::cout 20140527 17:58:18< c74d> And, one can use any ActionWML tag, including [wml_message], from Lua, so regardless of whether it has a pure-Lua equivalent, its functionality is still accessible. 20140527 18:02:36< iceiceice> well thats pretty good, i didnt know that either 20140527 18:03:57-!- falcon` is now known as Falcon` 20140527 18:08:44-!- DCW [~Thunderbi@cpc66863-finc15-2-0-cust393.4-2.cable.virginm.net] has quit [Remote host closed the connection] 20140527 18:09:34-!- fabi__ [~fabi@wesnoth/developer/fendrin] has quit [Quit: Konversation terminated!] 20140527 18:18:14-!- panda___ [~IMO@AMontsouris-653-1-62-116.w92-141.abo.wanadoo.fr] has joined #wesnoth 20140527 18:30:01-!- lipkab [~lipkab@host-91-147-212-189.biatv.hu] has joined #wesnoth 20140527 18:33:43-!- TC01_ [~quassel@venus.arosser.com] has joined #wesnoth 20140527 18:33:55-!- TC01_ [~quassel@venus.arosser.com] has quit [Remote host closed the connection] 20140527 18:41:53-!- xiqsjvfy [~xiqsjvfy@c-4b6ae055.06-107-73746f16.cust.bredbandsbolaget.se] has quit [Quit: leaving] 20140527 18:47:58-!- xiqsjvfy [~xiqsjvfy@c-4b6ae055.06-107-73746f16.cust.bredbandsbolaget.se] has joined #wesnoth 20140527 18:52:42-!- cc__ [~cc@AMarseille-151-1-104-227.w92-150.abo.wanadoo.fr] has joined #wesnoth 20140527 18:54:56< cc__> Hello, I would like to capture the animation of the silver mage teleporting (appearing and disappearing), what would be the easiest way to do it ? 20140527 18:55:33< zookeeper> capture? 20140527 18:56:12< cc__> zookeeper: I'd like to make a gif of the animation, in fact 20140527 18:57:45< zookeeper> ah 20140527 18:57:59< zookeeper> well i don't know any video capturing software except fraps 20140527 18:58:26< zookeeper> you could just re-recreate the animation in any image editor, though 20140527 18:58:38< Necrosporus> cc__, you could try using gimp or imagemagick 20140527 18:58:58< Necrosporus> there's a tool to build gif from sprites 20140527 18:59:25< cc__> I could take the picture files from the sprites, but they don't include the fancy effects you see in the game 20140527 19:00:11< zookeeper> the teleport effects would be in core/images/halo/teleport* 20140527 19:01:26< zookeeper> the animation timings you can get from the unit .cfg 20140527 19:01:44< zookeeper> it'd be rather painful to recreate it that way by hand, but by no means impossible 20140527 19:02:09-!- lipkab [~lipkab@host-91-147-212-189.biatv.hu] has quit [Ping timeout: 258 seconds] 20140527 19:03:22< cc__> zookeeper: thanks, I've found the files you're talking about :) 20140527 19:05:59< cc__> zookeeper: I've found the corresponding section in the .cfg file, do you have any doc ? 20140527 19:06:14< cc__> I see there are 8 files for the teleport animation 20140527 19:06:23< cc__> and 9 for the halo animation 20140527 19:08:51< zookeeper> well, in theory all the docs you need would be in http://wiki.wesnoth.org/AnimationWML 20140527 19:08:59< Necrosporus> cc__, there's wiki with plently of wml specs 20140527 19:09:10< zookeeper> but in practise i guess it'd take a long time to figure it out based on that 20140527 19:09:51< cc__> zookeeper, Necrosporus: thank you ! :D 20140527 19:10:11< Necrosporus> cc__, why do you want to capture the animation? it might give some hint what's the best way to do it 20140527 19:10:49< cc__> Necrosporus: just to make a looped gif of the mage appearing and disappearing 20140527 19:10:52-!- xiqsjvfy [~xiqsjvfy@c-4b6ae055.06-107-73746f16.cust.bredbandsbolaget.se] has quit [Quit: leaving] 20140527 19:11:09-!- xiqsjvfy [~xiqsjvfy@c-4b6ae055.06-107-73746f16.cust.bredbandsbolaget.se] has joined #wesnoth 20140527 19:11:23< lamefun> Is there a better than to choose from a list than [set_variable] name=i rand=0..$($xxx.length - 1) [/set_variable]? 20140527 19:12:16< zookeeper> better way to choose a random index? not really 20140527 19:12:18< iceiceice> what doy uo mean by better 20140527 19:12:21< Necrosporus> cc__, to use it in...? 20140527 19:12:33< zookeeper> you can do rand=item1,item2,item3,item4 etc 20140527 19:12:43< iceiceice> you can use lua random if you need good random in prestart or something 20140527 19:12:47< iceiceice> in 1.10 that is an issue 20140527 19:13:36< cc__> Necrosporus: many contexts :) 20140527 19:14:29< Necrosporus> Ok, you could try a screenshot software and set animation speed to 0.25 in preferences 20140527 19:14:46< Necrosporus> Then you'll get all the layers incliding villages and so on 20140527 19:15:23< Necrosporus> but if you want just mage without background then it might be easier to assemble the animation yourself 20140527 19:16:17-!- lipkab [~lipkab@host-91-147-212-189.biatv.hu] has joined #wesnoth 20140527 19:17:11< cc__> Necrosporus: I'll try to make an imagemagick script using the original frames 20140527 19:18:38< Necrosporus> Though it doesn't seem to support loop, I'm not sure.. but if it doesn't you still could make it looping after creation 20140527 19:20:27< zookeeper> frankly, it might be easier to make a map with the village overlay on a chasm or void, and then trigger the teleport anim there and frantically press the screenshot key to capture every frame... although on second thought, the screenshot will probably take so much time that you won't get all frames on a single pass anyway 20140527 19:20:39-!- lipkab_ [~lipkab@host-91-147-212-189.biatv.hu] has joined #wesnoth 20140527 19:21:12-!- lipkab [~lipkab@host-91-147-212-189.biatv.hu] has quit [Ping timeout: 276 seconds] 20140527 19:22:00< zookeeper> and the animation uses sliding halos (the halo_y= keys) so what you see on-screen doesn't nicely map to any given number of frames anyway 20140527 19:23:07< cc__> zookeeper: you mean the halo image moves upon the animation image ? 20140527 19:23:13< zookeeper> yes 20140527 19:23:36< zookeeper> three sets of the halo anim slide across the unit 20140527 19:24:18< cc__> zookeeper: no problem, I can handle this in magemagick :) 20140527 19:24:23< celticminstrel> Wesnoth animations are super-complicated! 20140527 19:24:24< cc__> imagemagick* 20140527 19:24:32< cc__> funny typo :D 20140527 19:24:56 * celticminstrel wonders if you could make your script generic enough to handle any Wesnoth animation. 20140527 19:26:04< cc__> celticminstrel: I imagine it's possible to make a script that takes the infos from the WML and puts them in a set of imagemagick commands 20140527 19:27:05< zookeeper> possible? sure... but you need to re-implement like the whole wesnoth animation engine for that 20140527 19:27:39< iceiceice> cc__ 20140527 19:27:47< iceiceice> i dont know how good the wesnoth animation timing is, 20140527 19:27:57< iceiceice> but it might be easier to modify the source to write the frames to .png files or something 20140527 19:28:19< iceiceice> if you wrote that we would probably merge it, it coudl be like the --snapshot option 20140527 19:28:55< iceiceice> i think all the relevant code would be in unit_animations.cpp and perhaps unit.cpp 20140527 19:29:22< cc__> iceiceice: you mean combine the halo and teleport pictures into one png, and then assemble them in a gif ? that's what I was going to do 20140527 19:29:33< iceiceice> i mean, 20140527 19:29:39< iceiceice> have the game just save files for you 20140527 19:29:44< iceiceice> that reflect the combined unit animation 20140527 19:29:58< iceiceice> then you dont have to reconstruct the animation engine in a different program 20140527 19:30:36< iceiceice> i dont really know the animation engine that well but i think it works by putting everything in SDL surfaces 20140527 19:30:44< iceiceice> and combiniing them using SDL functions 20140527 19:30:46< cc__> iceiceice: I'm not a c++ coder, I just know a bit of bash and imagemagick scripts 20140527 19:30:52< iceiceice> i think SDL also has native "write to PNG" functions 20140527 19:31:04< iceiceice> so it would just be a matter of finding the unit animation loop and adding a line "write file" 20140527 19:31:07< iceiceice> hopefully :) 20140527 19:31:29-!- lipkab_ [~lipkab@host-91-147-212-189.biatv.hu] has quit [Read error: Connection reset by peer] 20140527 19:31:46< iceiceice> idk i'm not a C++ coder either, but that's what i would try 20140527 19:31:58< c74d> I think the only image format BfW is capable of writing is BMP. 20140527 19:32:20< c74d> I’m not a reliable source there though. 20140527 19:32:50< iceiceice> that would surprise me, isn't that a proprietary microsoft format? 20140527 19:32:50< cc__> I'm just going to make a bash script, so people can take the script and the sprites, and get the gif, without downloading and installing the whole game + a custom cpp patch 20140527 19:33:29< iceiceice> from wesnoth --help: 20140527 19:33:30< iceiceice> --screenshot arg takes two arguments: . Saves a screenshot 20140527 19:33:30< iceiceice> of to without initializing a screen. 20140527 19:33:30< iceiceice> Editor must be compiled in for this to work. 20140527 19:33:33< iceiceice> i dont know what format that is 20140527 19:33:53< iceiceice> ok, cc__, knock yourself out but i think that would be way harder 20140527 19:34:05< iceiceice> esp. if you want to get exact results 20140527 19:35:08< cc__> iceiceice: would I get a transparent background with your method ? 20140527 19:35:16< Necrosporus> iceiceice, it's microsoft, but it can't be proprietary as it's simple bitmap with header 20140527 19:35:34< iceiceice> cc__: i think you could 20140527 19:35:55< iceiceice> i assume that thats what the SDL surface contains, otherwise how would it write on the game map? 20140527 19:36:09< cc__> ok 20140527 19:36:51< celticminstrel> Last I checked, the only "native" image format in SDL was BMP. 20140527 19:37:19< celticminstrel> But there's a very commonly used add-on that supports most other common formats. 20140527 19:37:48< c74d> Does SDL 2 support more? 20140527 19:37:59< celticminstrel> Doubt it? But I dunno, maybe. 20140527 19:38:03-!- lipkab [~lipkab@host-91-147-212-189.biatv.hu] has joined #wesnoth 20140527 19:38:43< celticminstrel> I would expect BfW could write non-BMP formats, in principle. 20140527 19:38:53< celticminstrel> Since it can read them, 20140527 19:39:20< iceiceice> youg uys are right 20140527 19:39:27< iceiceice> im lookiing in video.cpp, 20140527 19:39:36< iceiceice> the native screenshot optin uses some SDL saveBMP function 20140527 19:40:25< iceiceice> it looks like the syntax is: SDL_SaveBMP(map_screenshot_surf_, filename.c_str()); 20140527 19:45:25-!- lipkab [~lipkab@host-91-147-212-189.biatv.hu] has quit [Read error: Connection reset by peer] 20140527 19:46:59-!- MouldyOldBones [~mob@gateway/tor-sasl/mouldyoldbones] has quit [Remote host closed the connection] 20140527 19:48:19-!- MouldyOldBones [~mob@gateway/tor-sasl/mouldyoldbones] has joined #wesnoth 20140527 19:54:28-!- shadowm_desktop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth 20140527 19:56:22-!- DCW [~Thunderbi@cpc66863-finc15-2-0-cust393.4-2.cable.virginm.net] has joined #wesnoth 20140527 19:56:50-!- prophile [~alynn@oftn/member/prophile] has joined #wesnoth 20140527 19:58:49-!- thunderstruck [~zaibotren@cpc13-sgyl31-2-0-cust696.18-2.cable.virginm.net] has quit [Quit: leaving] 20140527 20:06:37-!- Wuzzy [~Wuzzy@p549FA1D6.dip0.t-ipconnect.de] has joined #wesnoth 20140527 20:10:18-!- DCW [~Thunderbi@cpc66863-finc15-2-0-cust393.4-2.cable.virginm.net] has quit [Quit: DCW] 20140527 20:21:03-!- Xjs|moonshine [moon@chrysostomos.aoide.de] has quit [Ping timeout: 260 seconds] 20140527 20:23:59-!- Xjs|moonshine [moon@chrysostomos.aoide.de] has joined #wesnoth 20140527 20:39:52-!- Gambit [~derek@pa-67-234-108-206.dhcp.embarqhsd.net] has joined #wesnoth 20140527 20:39:55-!- Gambit [~derek@pa-67-234-108-206.dhcp.embarqhsd.net] has quit [Changing host] 20140527 20:39:55-!- Gambit [~derek@wesnoth/developer/grickit] has joined #wesnoth 20140527 21:27:37-!- claymore [~claymore@unaffiliated/claymore] has quit [Quit: Leaving] 20140527 21:32:24-!- panda___ [~IMO@AMontsouris-653-1-62-116.w92-141.abo.wanadoo.fr] has quit [Remote host closed the connection] 20140527 21:41:48-!- Haldrik [~haldrik@unaffiliated/haldrik] has quit [Quit: Haldrik] 20140527 21:48:18-!- Falcon` is now known as falcon` 20140527 21:54:07-!- prophile [~alynn@oftn/member/prophile] has quit [Quit: The Game] 20140527 22:04:35-!- oldlaptop [~quassel@74.43.47.240] has quit [Ping timeout: 252 seconds] 20140527 22:09:04-!- prophile [~alynn@oftn/member/prophile] has joined #wesnoth 20140527 22:16:01-!- oldlaptop [~quassel@74.43.47.240] has joined #wesnoth 20140527 22:22:46-!- fabi [~fabi@wesnoth/developer/fendrin] has joined #wesnoth 20140527 22:30:42-!- Samual_ [~dioteckte@xonotic/core-team/Samual] has quit [Ping timeout: 245 seconds] 20140527 22:37:22< lamefun> can I initialize arrays out of order? 20140527 22:37:39< lamefun> first $x[2] then $x[0] then $x[1]? 20140527 22:38:20-!- JackBauer24 [~JackBauer@89-79-180-156.dynamic.chello.pl] has quit [Quit: Konversation terminated!] 20140527 22:41:05-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 255 seconds] 20140527 22:42:03< iceiceice> i think so 20140527 22:57:42-!- Wuzzy [~Wuzzy@p549FA1D6.dip0.t-ipconnect.de] has quit [Quit: Wuzzy] 20140527 22:59:54-!- cc__ [~cc@AMarseille-151-1-104-227.w92-150.abo.wanadoo.fr] has quit [Ping timeout: 265 seconds] 20140527 23:11:52-!- JackBauer24 [~JackBauer@89-79-180-156.dynamic.chello.pl] has joined #wesnoth 20140527 23:13:29-!- lamefun [~lamefun2@37.113.25.65] has quit [Ping timeout: 255 seconds] 20140527 23:38:35-!- lamefun [~lamefun2@37.113.25.65] has joined #wesnoth 20140527 23:38:52< lamefun> how to express this: ($cw_team_of_side_($unit.side)).is_player ? 20140527 23:39:19< lamefun> or rather CW_Guard_$(cw_team_of_side_$(unit.side).is_player)_{GUARD_NUM} 20140527 23:45:39-!- iceiceice [~chris@207-237-132-91.ny.subnet.cable.rcn.com] has quit [Remote host closed the connection] 20140527 23:54:13-!- apoi [~andi@85-126-180-242.volume.xdsl-line.inode.at] has quit [Ping timeout: 252 seconds] 20140527 23:58:36-!- JackBauer24 [~JackBauer@89-79-180-156.dynamic.chello.pl] has quit [Quit: Konversation terminated!] --- Log closed Wed May 28 00:00:27 2014