--- Log opened Fri Jun 22 00:00:58 2012 20120622 00:01:46-!- happygrue [~quassel@wesnoth/developer/wintermute] has quit [Read error: Connection reset by peer] 20120622 00:03:07-!- happygrue [~quassel@c-98-222-183-113.hsd1.il.comcast.net] has joined #wesnoth-dev 20120622 00:03:08-!- happygrue [~quassel@c-98-222-183-113.hsd1.il.comcast.net] has quit [Changing host] 20120622 00:03:08-!- happygrue [~quassel@wesnoth/developer/wintermute] has joined #wesnoth-dev 20120622 00:05:31-!- Appleman1234 [~Appleman1@122x217x180x132.ap122.ftth.ucom.ne.jp] has quit [Ping timeout: 264 seconds] 20120622 00:07:25-!- ancestral [~ancestral@75-168-39-185.mpls.qwest.net] has quit [Quit: i go sleeps kthxbai] 20120622 00:08:59-!- stikonas [~gentoo@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120622 00:15:10-!- stikonas [~and@bcm-131-111-216-103.girton.cam.ac.uk] has joined #wesnoth-dev 20120622 00:15:11-!- stikonas [~and@bcm-131-111-216-103.girton.cam.ac.uk] has quit [Changing host] 20120622 00:15:11-!- stikonas [~and@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120622 00:23:18-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120622 00:32:05-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Ping timeout: 246 seconds] 20120622 00:38:07-!- AndChat498225 [~AndChat49@178.101.204.153] has joined #wesnoth-dev 20120622 00:52:39-!- AndChat498225 [~AndChat49@178.101.204.153] has quit [Quit: Bye] 20120622 00:55:02-!- boucman [~rosen@wesnoth/developer/boucman] has quit [Quit: Leaving.] 20120622 01:05:17-!- Blueblaze [~Blueblaze@adsl-99-171-161-40.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120622 01:06:01-!- vernon [~freelande@BC0605BD.catv.pool.telekom.hu] has quit [Ping timeout: 276 seconds] 20120622 01:26:03-!- ancestral [~ancestral@75-168-39-185.mpls.qwest.net] has joined #wesnoth-dev 20120622 01:29:04-!- loonybot [~loonybot@wesnoth/bot/loonybot] has quit [Remote host closed the connection] 20120622 02:20:59-!- Bob_The_Mighty [~chatzilla@cpc4-brig16-2-0-cust378.3-3.cable.virginmedia.com] has joined #wesnoth-dev 20120622 02:23:15-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Quit: Computer has gone to sleep.] 20120622 02:26:51-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120622 02:31:46-!- Shakey [HydraIRC@c-24-14-169-218.hsd1.il.comcast.net] has joined #wesnoth-dev 20120622 02:34:41-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120622 02:44:45-!- atomicbomb [~quassel@180.246.188.156] has joined #wesnoth-dev 20120622 02:46:06-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120622 02:47:26-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120622 03:17:32-!- stikonas [~and@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120622 03:23:57-!- un214 [~un214@108.221.231.209] has joined #wesnoth-dev 20120622 03:27:22-!- atomicbomb [~quassel@180.246.188.156] has quit [Remote host closed the connection] 20120622 03:54:40-!- vultraz [~chatzilla@124.109.10.221] has quit [Ping timeout: 244 seconds] 20120622 03:56:15-!- atomicbomb [~quassel@125.160.81.53] has joined #wesnoth-dev 20120622 04:08:03-!- Blueblaze [~Blueblaze@adsl-99-171-161-40.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120622 04:25:24-!- kahoot [~kahoot@c-98-240-66-117.hsd1.tn.comcast.net] has quit [Quit: Leaving] 20120622 04:31:52-!- vultraz [~chatzilla@124.109.10.221] has joined #wesnoth-dev 20120622 04:37:29-!- Gambit [~gambit@wesnoth/developer/grickit] has quit [Ping timeout: 252 seconds] 20120622 04:43:31-!- Ivanovic_ [~ivanovic@dtmd-4db268b3.pool.mediaWays.net] has joined #wesnoth-dev 20120622 04:45:49-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has quit [Ping timeout: 244 seconds] 20120622 04:47:24-!- Ivanovic_ is now known as Ivanovic 20120622 04:48:12-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120622 04:55:33-!- ancestral [~ancestral@75-168-39-185.mpls.qwest.net] has quit [Quit: i go sleeps kthxbai] 20120622 05:03:33-!- un214 [~un214@108.221.231.209] has quit [Remote host closed the connection] 20120622 05:20:33-!- artisticdude_iOS [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120622 05:49:15-!- light_mage [~chatzilla@14.99.210.195] has joined #wesnoth-dev 20120622 05:51:33-!- Bob_The_Mighty [~chatzilla@cpc4-brig16-2-0-cust378.3-3.cable.virginmedia.com] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]] 20120622 05:52:43-!- Shakey [HydraIRC@c-24-14-169-218.hsd1.il.comcast.net] has left #wesnoth-dev [] 20120622 05:55:58-!- artisticdude_iOS is now known as artisticdude 20120622 05:58:31-!- light_mage [~chatzilla@14.99.210.195] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120424094101]] 20120622 06:00:35-!- light_mage [~chatzilla@14.99.210.195] has joined #wesnoth-dev 20120622 06:53:59-!- artisticdude_iOS [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120622 06:53:59-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Read error: Connection reset by peer] 20120622 07:07:06-!- alexanderthegre [~platinum@216-67-39-31-rb2.nwc.dsl.dynamic.acsalaska.net] has joined #wesnoth-dev 20120622 07:14:27-!- Ivanovic [~ivanovic@dtmd-4db268b3.pool.mediaWays.net] has quit [Changing host] 20120622 07:14:27-!- Ivanovic [~ivanovic@wesnoth/developer/ivanovic] has joined #wesnoth-dev 20120622 07:15:11< Ivanovic> shadowm: i think in our terms of usage we state that it has to be GPL when uploaded 20120622 07:15:13< Ivanovic> everything that is 20120622 07:16:08< shadowm> That does not answer my question. 20120622 07:18:25< shadowm> Then again, I guess you consider the "terms of usage" to be the forum post; in such case, it does, and leads to a new question. 20120622 07:18:31< shadowm> Why can't it be otherwise? 20120622 07:18:46< Ivanovic> no, i mean the popup you get before uploading to the server from ingame 20120622 07:19:07< Ivanovic> there it states explicitly "what you upload has to be gpl" 20120622 07:19:26< shadowm> It says, "all add-ons", and later says "content". 20120622 07:20:01< shadowm> We have been using both terms interchangeably for years, so it isn't clear whether it may refer to specific portions of a given add-on, or not. 20120622 07:21:57< Ivanovic> i think the meaning is a clear "*everything* you upload is licensed by GPL since you upload it and agree during the upload to place it under the GPL" 20120622 07:22:34< Ivanovic> so yeah, if the user uploads something which is not under GPL and can't be relicensed by the user uploading, that is a copyright infridgement by the uploading user 20120622 07:22:37< shadowm> I already said it's clear in the forum post. It isn't in the add-ons server, no matter how much you want to pretend it is. 20120622 07:22:42< shadowm> *add-ons server notice 20120622 07:23:08-!- csarmi [csarmi@188-143-125-96.pool.digikabel.hu] has quit [Ping timeout: 240 seconds] 20120622 07:23:08< shadowm> 01:18:24 Then again, I guess you consider the "terms of usage" to be the forum post; in such case, it does, and leads to a new question. 20120622 07:23:09< Ivanovic> why is it not clear there, too? 20120622 07:23:12< shadowm> 01:18:31 Why can't it be otherwise? 20120622 07:23:19< vultraz> Crendgrim has a non-gpl soundfile in his addon, but he left a note saying it's license(CC0) and origin 20120622 07:23:34< shadowm> vultraz: CC-0 is effectively PD in the U.S. where the add-ons server is hosted. 20120622 07:23:46< shadowm> And elsewhere, it may just as well be relicensed at will. 20120622 07:25:24< Ivanovic> shadowm: again, *why* is the message when uploading from ingame not clear? 20120622 07:25:35< Ivanovic> i think it always clearly stated that what you upload is gpl 20120622 07:25:42< Ivanovic> and has to be so 20120622 07:25:56< shadowm> I already said we use "add-on" and "content" interchangeably, hence the ambiguity. 20120622 07:26:02< shadowm> Again, why can't it be otherwise? 20120622 07:26:46< Ivanovic> yes, since the add-on consists of "content" 20120622 07:29:43< Ivanovic> do you have the exact wording for the uploading terms at hands? 20120622 07:29:49< Ivanovic> and can you paste it? 20120622 07:30:22< shadowm> The current one is: 20120622 07:30:23< shadowm> network::send_data(construct_message("All add-ons uploaded to this server must be licensed under the terms of the GNU General Public License (GPL). By uploading content to this server, you certify that you have the right to place the content under the conditions of the GPL, and choose to do so."), sock); 20120622 07:30:38< shadowm> (You keep evading my other question...) 20120622 07:33:06< Ivanovic> i think this states clearly enough, what you upload (all of it) is under GPL when uploading it 20120622 07:33:24< Ivanovic> so everything can also come with some additional license, but one license has to be GPL 20120622 07:33:41< Ivanovic> and that is IMO the case simply because those terms of usage say so 20120622 07:34:02< Ivanovic> yeah, terms of usage can be changed but are a hell to change regarding the implications for already uploaded stuff 20120622 07:34:49< shadowm> Okay, good to know that kind of artificial limits are imposed by admin laziness. 20120622 07:38:41-!- alexanderthegre [~platinum@216-67-39-31-rb2.nwc.dsl.dynamic.acsalaska.net] has quit [Quit: Leaving] 20120622 07:39:44-!- neXyon [~neXyon@84-119-66-146.dynamic.xdsl-line.inode.at] has joined #wesnoth-dev 20120622 07:57:08-!- Gallaecio [~quassel@84.120.114.134.dyn.user.ono.com] has joined #wesnoth-dev 20120622 08:02:00-!- neXyon [~neXyon@84-119-66-146.dynamic.xdsl-line.inode.at] has quit [Quit: bye] 20120622 08:05:09-!- light_mage [~chatzilla@14.99.210.195] has quit [Ping timeout: 248 seconds] 20120622 08:17:11-!- atomicbomb [~quassel@125.160.81.53] has quit [Ping timeout: 246 seconds] 20120622 08:20:40-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has quit [] 20120622 08:28:25-!- ToBeFree [~tobefree@unaffiliated/tobefree] has joined #wesnoth-dev 20120622 08:41:27-!- Gallaecio [~quassel@84.120.114.134.dyn.user.ono.com] has quit [Remote host closed the connection] 20120622 09:05:37-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120622 09:05:56-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has quit [Quit: Leaving] 20120622 09:21:24-!- crab_ [~Crab_@wesnoth/developer/crab] has quit [Ping timeout: 245 seconds] 20120622 09:41:54-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120622 09:45:19-!- light_mage [abhijit@14.96.32.163] has joined #wesnoth-dev 20120622 09:45:52-!- Blueblaze [~Blueblaze@99.171.161.40] has joined #wesnoth-dev 20120622 09:54:21-!- light_mage [abhijit@14.96.32.163] has quit [Quit: Leaving] 20120622 10:02:35-!- light_mage [~chatzilla@14.99.24.47] has joined #wesnoth-dev 20120622 10:05:31-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has quit [Read error: Connection reset by peer] 20120622 10:05:50-!- zookeeper [~lmsnie@wesnoth/developer/zookeeper] has joined #wesnoth-dev 20120622 10:15:10-!- Elvish_Pillager [~eli@71-10-229-241.dhcp.oxfr.ma.charter.com] has quit [Read error: Operation timed out] 20120622 10:45:31-!- boucman_mobile [~boucman@80.214.8.23] has joined #wesnoth-dev 20120622 10:45:31-!- boucman_mobile [~boucman@80.214.8.23] has quit [Changing host] 20120622 10:45:31-!- boucman_mobile [~boucman@wesnoth/developer/boucman] has joined #wesnoth-dev 20120622 10:52:21-!- Crab_ [Crab_@nat/google/x-ozbsaemerknhxhyt] has joined #wesnoth-dev 20120622 10:53:12-!- Crab_ [Crab_@nat/google/x-ozbsaemerknhxhyt] has quit [Changing host] 20120622 10:53:12-!- Crab_ [Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20120622 10:55:08-!- Blueblaze [~Blueblaze@99.171.161.40] has quit [Quit: Blueblaze] 20120622 10:55:26-!- ToBeFree [~tobefree@unaffiliated/tobefree] has quit [Read error: Connection reset by peer] 20120622 10:56:36-!- ToBeFree [~tobefree@unaffiliated/tobefree] has joined #wesnoth-dev 20120622 11:05:47-!- neXyon [~neXyon@84-119-66-146.dynamic.xdsl-line.inode.at] has joined #wesnoth-dev 20120622 11:38:24-!- loonybot [~loonybot@wesnoth/bot/loonybot] has joined #wesnoth-dev 20120622 11:39:07-!- stikonas [~and@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120622 12:51:20-!- Ayne [~Ayne@cpc2-sgyl34-2-0-cust493.sgyl.cable.virginmedia.com] has joined #wesnoth-dev 20120622 12:58:29-!- matthiaskrgr [matthiaskr@72.29.68.157] has quit [Ping timeout: 245 seconds] 20120622 13:02:13-!- light_mage [~chatzilla@14.99.24.47] has quit [Ping timeout: 248 seconds] 20120622 13:04:55-!- horon [~horon@nttkyo216070.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has joined #wesnoth-dev 20120622 13:07:09-!- boucman_mobile [~boucman@wesnoth/developer/boucman] has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )] 20120622 13:16:39-!- light_mage [~chatzilla@14.99.96.231] has joined #wesnoth-dev 20120622 13:21:31< light_mage> hi, is the line #textdomain wesnoth-Name_of_Campaign a comment or not? Thank you 20120622 13:24:28< Crab_> light_mage: it is a comment. yet, there is a tool which searches for such comments and uses them. 20120622 13:24:51< light_mage> Crab_: what is that tool 20120622 13:25:33< light_mage> Crab_: also, sir, won't all lines beginning with # in the cfg file, be comments? 20120622 13:26:01< Crab_> in this particular case, the tool which collect strings (to be used by translators) uses those comments to identify into which 'group' the strings from that file should be put 20120622 13:26:53< Crab_> # - those are comments from the point of view of WML preprocessor (except special cases like #ifdef ). but other tools can use them for their purpose. for example, it's possible to instruct wmllint by using some special comments 20120622 13:28:00< Crab_> you can read here - http://wiki.wesnoth.org/WesCamp#The_textdomain_bindings - about the usage of #textdomain comments to help translate campaigns 20120622 13:32:12-!- matthiaskrgr [matthiaskr@72.29.68.157] has joined #wesnoth-dev 20120622 13:32:27< Crab_> hi, Ayne 20120622 13:33:08< Ayne> hello 20120622 13:33:28< Crab_> It's great to see that patch committed. 20120622 13:34:56< Ayne> Yes. My first commit ever, I hope I haven't broken anything important (or preferably anything) ;) 20120622 13:35:24< Crab_> well, at least no one has noticed until now, that gives us chances that all will be good :) 20120622 13:35:41< Crab_> What do you plan to do now, apart from cleaning up the code? 20120622 13:38:30< Crab_> If there're no good plans, as of now, I have several things to suggest. 20120622 13:42:32< Crab_> I would suggest to focus on refactoring the game_state class 20120622 13:43:02< Ayne> I was going to clean up and do the rest of the refactoring you suggested and figure out what the next step after that is in the meantime 20120622 13:43:16< Crab_> cleanup+refactoring is a good thing 20120622 13:43:56< Crab_> yet, I think that proper next step would be to make sure that game_state has in-game state separate from out-of-game state 20120622 13:44:37< Crab_> so far, you've added carryover_info which would, in the future, contain all out-of-game state 20120622 13:45:02< Crab_> yet, so far out-of-game code has full access to game_state, which contains a lot of in-game state 20120622 13:45:06< Crab_> this leads to subtle bugs 20120622 13:45:33< Crab_> for example, code that is out-of-game can freely mess with variables in game_state 20120622 13:45:52< Crab_> yet, technically, 'variables' in-game and variables 'in the bank' are two different sets of variables 20120622 13:46:18< Crab_> and, if we want to allow restart of scenarios in different difficulty level, we need to store both sets at the same time 20120622 13:46:51< Crab_> the easiest way to deal with that problem is to modify the code in a way that would make those logic errors to be compile errors 20120622 13:48:31< Crab_> for example, remove all in-game info from game_state, pushing it into a separate class (you can name it game_info , to sound like 'carryover_info'), and make this class accessible from play_controller or via resources:: 20120622 13:48:37< Crab_> and only fix the places where it's used in-game 20120622 13:48:53< Crab_> the remaining compile errors would show you, exactly, where the mess is. 20120622 13:49:11< Crab_> (make sure to do this when you'll have no other uncommitted changes, so cleanup/refactor first, and commit that) 20120622 13:49:28< Crab_> this also means that clas game_state would no longer inherit from variable_set 20120622 13:49:44< Crab_> this would break a lot of code initally, but the fix would be trivial in 99% of cases. 20120622 13:52:17-!- Appleman1234 [~Appleman1@122x217x180x132.ap122.ftth.ucom.ne.jp] has joined #wesnoth-dev 20120622 13:54:42< Crab_> then, game_state might look like this - http://pastebin.com/Pirxsh2a 20120622 13:55:13< Crab_> later, we might even drop game_info from here completely. 20120622 13:55:23< Crab_> and move it to play_controller 20120622 13:55:42< Crab_> the main benefit would be that a lot of code would break 20120622 13:55:48< Crab_> break because it was not valid before 20120622 13:56:03< Crab_> (but worked before 'just because') 20120622 13:56:22< Crab_> for example, any out-of-game variable access would break because there'll be no variables in game_state 20120622 13:56:32< Crab_> this would force you to add them to carryover_info 20120622 13:57:00< Crab_> and, at the end of game, copy game variables to carryover_info 20120622 13:57:07< Ayne> ok.. Once I've finished the current refactoring, could we go through gamestate and make sure I know exactly what would have to be moved to game info? 20120622 13:57:17< Crab_> yes, of course 20120622 13:57:53< Crab_> in general, 'everything which is writable from within the game, except, maybe, snapshot and replay configs' 20120622 13:58:13< Crab_> wml variables - yet, menu items -yes, last clicked hex - yes, and so on 20120622 13:58:36< Crab_> note that since menu items and wml variables are persistent between scenarios, you'll need to add them to carryover info, as well. 20120622 13:59:04< Crab_> in some cases that would mean creating a new helper class to deal with them (to reuse that class as member in game_info and carryover_info) 20120622 14:00:03< Crab_> by the way, in the end, game_state would contain exactly all the info which goes into the save game sections - replay, game_info (which can be turned into a snapshot), carryover_info, starting position 20120622 14:00:33< Crab_> thus save/load would work on game_state in some quite simple ways (except for some backward compatability code blocks) 20120622 14:01:47< Crab_> Does this seem reasonable? 20120622 14:02:59< Ayne> It sounds like a lot of work, but that's what I'm here for after all ;) I can definitely see the benefits 20120622 14:03:16< Crab_> If you'll have questions then, ask, when you'll be ready, we'll go over the code in game_state and figure out where to put everything 20120622 14:03:17-!- mjs-de [~mjs-de@p3EE23566.dip.t-dialin.net] has joined #wesnoth-dev 20120622 14:03:49< Crab_> I'll be afk for the weekend (until Tuesday), but would have some email access 20120622 14:04:57< Ayne> Ok, I will keep working on the carryover code for now and hopefully when you are back we can discuss the changes to game_state in more detail and deal with any questions that might come up 20120622 14:05:05< Crab_> great 20120622 14:07:01< Crab_> Ayne: as I see from your original schedule, you'll be on holidays at the start of July, right? 20120622 14:07:55< Ayne> Yes, one week. I don't know yet if I will take my laptop with me, but if I do I will probably not have a lot of time to work 20120622 14:08:11< Crab_> no, it's ok to have this holiday and don't work 20120622 14:08:48< Crab_> I would expect you to finish the cleanup before that, but it's ok if this refactoring that we're talking about now would be finished later, after the holidays and midterm evaluation 20120622 14:09:05< Crab_> just note that you'd have to complete your part of midterm evaluation in time. 20120622 14:09:48< Crab_> (the evaluation is open from July 9 19:00 UTC to July 13 19:00 UTC) 20120622 14:10:25< Ayne> Unless I run into any major issues I definitely plan to finish cleaning up carryover_info before I leave 20120622 14:10:46< Ayne> Hopefully earlier 20120622 14:10:54< Crab_> Ok, sounds good. Notify me if you'll spot any issues in there. 20120622 14:11:05< Ayne> I'll put a note in my calendar, but I will be back by then, so that should not be a problem 20120622 14:11:40< Crab_> by the way, how's the project going for you overall? are there any things that you'd prefer to be done in a better way? 20120622 14:13:10-!- light_mage [~chatzilla@14.99.96.231] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120424094101]] 20120622 14:13:35< Ayne> No, I'm quite happy with it so far. It's a bit scary how much they haven't taught us at uni, but I think I'm learning a lot from what you've been telling me about the issues with my code 20120622 14:14:15< Crab_> Ok, that's good. Good luck, then :) 20120622 14:14:58-!- Appleman1234 [~Appleman1@122x217x180x132.ap122.ftth.ucom.ne.jp] has quit [Remote host closed the connection] 20120622 14:16:53-!- light_mage [abhijit@14.99.52.9] has joined #wesnoth-dev 20120622 14:17:01< Ayne> Thank you :) 20120622 14:38:09-!- boucman [~rosen@wesnoth/developer/boucman] has joined #wesnoth-dev 20120622 14:46:49-!- light_mage [abhijit@14.99.52.9] has quit [Ping timeout: 250 seconds] 20120622 14:55:47-!- light_mage [~chatzilla@14.99.211.180] has joined #wesnoth-dev 20120622 15:01:50-!- apoi [~andi@85-126-180-242.volume.xdsl-line.inode.at] has quit [Quit: leaving] 20120622 15:08:12-!- apoi [~andi@85-126-180-242.volume.xdsl-line.inode.at] has joined #wesnoth-dev 20120622 15:22:42-!- light_mage [~chatzilla@14.99.211.180] has quit [Remote host closed the connection] 20120622 15:41:50< bloodycoin_m> boucman: I am having a bit of trouble trying to kill PE on game exit... >.< 20120622 15:42:04< boucman> ok 20120622 15:42:18< boucman> naive question, why do you want to ? 20120622 15:43:06< bloodycoin_m> reporting situation + maybe you have a suggestion? 20120622 15:44:27< boucman> bloodycoin_m: ok, your singleton is still not how I would expect it to be... 20120622 15:44:52< bloodycoin_m> what do you mean? 20120622 15:45:18< boucman> gimme a sec 20120622 15:45:54< boucman> ok, your way of doing it works, it's not the common pattern, but it works 20120622 15:46:02< boucman> so don't worry about it for the moment 20120622 15:47:07< boucman> http://www.codeproject.com/Articles/1921/Singleton-Pattern-its-implementation-with-C 20120622 15:47:37< boucman> not very different, but i am so used to seeing the standard pattern that your coded looked weird to me at first sight 20120622 15:47:40-!- artisticdude_iOS [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Quit: Colloquy for iPod touch - http://colloquy.mobi] 20120622 15:47:50< bloodycoin_m> ;P 20120622 15:49:59< boucman> ok, so if PE exists for the duration of the program (which seems to be the case) 20120622 15:50:05< boucman> then just don't call the dtor 20120622 15:50:58< bloodycoin_m> but don't you have to call delete on dynamically allocated objects? 20120622 15:51:16< boucman> the OS cleans it for you at program exit 20120622 15:51:48< bloodycoin_m> oh... didn't know this one.. 20120622 15:52:07< boucman> that's not a good advice, you usually want to clean up at program exit, but it's not crucial and I want to move on to more concrete stuff 20120622 15:52:37< boucman> want do you think the next step should be ? 20120622 15:52:38-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120622 15:53:02< Crab_> well, the OS is not calling the destructors for you, but the memory is reclaimed and files are closed. so, if your destructors have no side effects (like creating files, etc), you can just ignore the 'leak'. 20120622 15:53:06< bloodycoin_m> just to get clear... which part of my singleton confuses you? that I check if it exist in ctor? 20120622 15:53:36< boucman> that you return the new object and that the new object ctor sets the singleton_ 20120622 15:53:41< boucman> that's not the common pattern 20120622 15:54:20< boucman> moreover it's a good habit to make the ctor private (like in the example I sent to you) so accidental copies won't happen (right now you still have a public copy ctor iirc) 20120622 15:54:35< boucman> that way they will be caught at compile time 20120622 15:54:50-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 15:55:13< bloodycoin_m> hmm... singleton_ = this is done in display.cpp too... soo... :) 20120622 15:55:30< boucman> I'm not mentoring that code :P 20120622 15:55:43-!- Appleman1234 [~Appleman1@122x217x180x132.ap122.ftth.ucom.ne.jp] has joined #wesnoth-dev 20120622 15:55:58< boucman> but yes, as I said your code is not wrong, it's just not the way I am used to see that pattern, so I can't "fast track" it, I have to analyze it 20120622 15:56:13< bloodycoin_m> I also did check in ctor, because ctor was directly called in play_controller.... but I think it's not needed anymore 20120622 15:56:16< boucman> though I think having a private ctor would be really safer, you should do that 20120622 15:56:32< bloodycoin_m> yes, will do 20120622 15:56:40< bloodycoin_m> (almost done) 20120622 15:59:41-!- light_mage [~chatzilla@14.96.3.81] has joined #wesnoth-dev 20120622 16:00:24< bloodycoin_m> boucman: as for next step.. I am not sure... should I work more on wml parameters, or move on to different kind of user.. 20120622 16:00:38< boucman> i'd go for WML 20120622 16:01:14< boucman> try to implement a couple "real effects" like sparks or whirlwinds so we can showstuff to the artists and readact some wiki pages to get them drolling 20120622 16:01:33< boucman> adding to terrain and WML will be cool later, but they will have something real to play with 20120622 16:03:44< bloodycoin_m> ok, but then we need to think how much customization we want to give through wml.. 20120622 16:04:20< boucman> we are still talking of hardcoded but parameterized effects, not lua effects... 20120622 16:04:41< boucman> so the parameters will depend on the effect itself, at least for most of them 20120622 16:05:15< bloodycoin_m> err... what I mean.. how much and what parameter we want to expose 20120622 16:05:25-!- mattsc [~mattsc@216.123.55.165] has joined #wesnoth-dev 20120622 16:06:57< bloodycoin_m> because, now I am taking all info from effect_type, but I can move those parameters to the effects, to allow more variation. 20120622 16:07:38< bloodycoin_m> yet, again, if I allow to much variation, effects might not look good 20120622 16:07:56< boucman> well, move all the parameters that make sense to WML, but now that I think of it, we don't have a mechanic in effect_type to add effect dependant parameters, do we ? 20120622 16:08:19< boucman> "look good" is not your responsability, it's the artist's/wml author 20120622 16:08:55< boucman> you need only make sure that the sensible range is within the legal range, you don't need to make sure they are equal nor that relationship between parameters make sense 20120622 16:09:05< bloodycoin_m> "look good" is partly mine, because I still hardcode movement functions ^^' 20120622 16:09:39< bloodycoin_m> what do you mean by "effect dependant parameters"? 20120622 16:10:00-!- Crab_ [Crab_@wesnoth/developer/crab] has left #wesnoth-dev [] 20120622 16:11:34< boucman> suppose that you have an effect that make particle circle the unit as in ellipses as if there was a gravitic pull 20120622 16:12:08< boucman> the you probably want some parameters like "big axis range" "small axis range" 20120622 16:12:22< boucman> however they only make sense for that particular type of effect 20120622 16:12:43< boucman> so you don't want to add it to other types of effect 20120622 16:14:34< bloodycoin_m> hmm... ok, true, makes sense... and I thnk I know how to do it 20120622 16:14:40< boucman> inheritence :) 20120622 16:14:51< bloodycoin_m> nop 20120622 16:14:56< boucman> oh ? 20120622 16:15:28< boucman> my first idea would have new effects inherit from an abstract effect_type adding whatever is needed to parse the new WML arguments 20120622 16:15:35< bloodycoin_m> parameter map in effects, and parameter extraction in movement function 20120622 16:15:48< boucman> though I would need a way to limit pairing with effectçconfigurator to correct ones 20120622 16:15:55< boucman> mkay 20120622 16:16:39< bloodycoin_m> since I know what kind of parameters I am expecting in movement function 20120622 16:17:06< boucman> ok, go for it if you feel confident it will work, i'll look at it once it's done 20120622 16:26:35-!- noy [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120622 16:28:28-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120622 16:29:03-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 16:30:51-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120622 16:31:10-!- timotei [~timotei@188.24.2.47] has joined #wesnoth-dev 20120622 16:31:11-!- timotei [~timotei@188.24.2.47] has quit [Changing host] 20120622 16:31:11-!- timotei [~timotei@wesnoth/developer/timotei] has joined #wesnoth-dev 20120622 16:31:27-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 16:41:23-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120622 16:41:59-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 16:50:37-!- mattsc_ [~mattsc@216.123.55.165] has joined #wesnoth-dev 20120622 16:50:37-!- mattsc [~mattsc@216.123.55.165] has quit [Read error: Connection reset by peer] 20120622 16:50:37-!- mattsc_ is now known as mattsc 20120622 16:51:55-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120622 16:52:15-!- ToBeFree [~tobefree@unaffiliated/tobefree] has quit [Read error: Connection reset by peer] 20120622 16:52:24-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 16:58:31-!- Appleman1234 [~Appleman1@122x217x180x132.ap122.ftth.ucom.ne.jp] has quit [Ping timeout: 265 seconds] 20120622 17:09:03-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120622 17:09:40-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 17:23:40-!- horon [~horon@nttkyo216070.tkyo.nt.ngn2.ppp.infoweb.ne.jp] has quit [Quit: Leaving...] 20120622 17:24:06-!- crab_ [~Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20120622 17:26:07-!- noy [~Noy@wesnoth/developer/noy] has quit [Quit: noy] 20120622 17:38:38-!- crab_ [~Crab_@wesnoth/developer/crab] has quit [Ping timeout: 240 seconds] 20120622 17:47:08-!- mattsc [~mattsc@216.123.55.165] has quit [Quit: I'm asleep] 20120622 17:52:01-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth-dev 20120622 17:58:43-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120622 17:59:28-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 18:06:19-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has quit [Quit: Leaving] 20120622 18:09:18-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Quit: Computer has gone to sleep.] 20120622 18:14:47-!- negusnyul [~negusnyul@dsl54020994.pool.t-online.hu] has joined #wesnoth-dev 20120622 18:21:20-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Read error: Connection reset by peer] 20120622 18:21:41-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 18:30:59-!- Blueblaze [~Blueblaze@adsl-76-202-16-168.dsl.hstntx.sbcglobal.net] has joined #wesnoth-dev 20120622 18:33:03-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120622 18:33:36-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 18:46:38-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120622 18:51:12-!- Gallaecio [~quassel@84.120.114.134.dyn.user.ono.com] has joined #wesnoth-dev 20120622 18:54:53-!- light_mage [~chatzilla@14.96.3.81] has quit [Ping timeout: 256 seconds] 20120622 18:55:18-!- _vdn1 [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 18:58:03-!- _vdn [~nazgul-sa@ppp85-141-115-239.pppoe.mtu-net.ru] has quit [Ping timeout: 252 seconds] 20120622 18:58:20-!- anonymissimus [~chatzilla@HSI-KBW-078-042-163-105.hsi3.kabel-badenwuerttemberg.de] has joined #wesnoth-dev 20120622 19:01:29-!- mattsc [~mattsc@fw.hia.nrc.ca] has joined #wesnoth-dev 20120622 19:01:41< anonymissimus> Ayne: okay, here's a first "bug report": in the test scenario, when ending the scenario via the menu, there now comes the transient dialog saying that I won the scenario...I'm not sure but I think this wasn't the case previously 20120622 19:01:57< anonymissimus> not a very important problem though 20120622 19:03:38< Ayne> anonymissimus: I'll look into it, thanks for letting me know 20120622 19:06:34< anonymissimus> it also looks as if I can no longer load any of my savegames 20120622 19:07:19< anonymissimus> while we officially do not provide such compatibility over versions there in practice is 20120622 19:07:37< Ayne> Yes, both my fault, sorry. For some reason I was able to load old savegames when I tried it, then committed, and it hasn't worked since, I don't know why it worked the first time 20120622 19:07:49< anonymissimus> especially for start-of-scenario saves 20120622 19:08:53< Ayne> I already fixed that and I found the reason for the report showing up, I'll commit a fix today 20120622 19:09:12< anonymissimus> (I would expect that even saves from 1.6 load so-so in trunk, with some values reset to default and such probably) 20120622 19:17:45< anonymissimus> Ayne: perhaps it's because the error only appears with start-of-scenario saves as opposed to turn saves 20120622 19:19:27< Ayne> That could be it. I don't remember what I first tested it with 20120622 19:19:55< anonymissimus> it tries to read a carryover_bank config child in gamestatus:513 which is normally there probably 20120622 19:20:59< anonymissimus> hm, another old save which is a turn save also doesn't work 20120622 19:21:12< Ayne> It's there with new saves, but not with old ones, since it's what I've added. I just need to check a few things to make sure that what I've been doing since the commit works and then I will commit the fix 20120622 19:21:19< anonymissimus> okay, guess I let you work on it now :P 20120622 19:24:53-!- Crendgrim [~crend@77-22-112-72-dynip.superkabel.de] has joined #wesnoth-dev 20120622 19:39:10-!- _vdn1 [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has quit [Read error: No route to host] 20120622 19:39:50-!- _vdn [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 19:43:57-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has quit [Ping timeout: 255 seconds] 20120622 19:45:43-!- crab_ [~Crab_@wesnoth/developer/crab] has joined #wesnoth-dev 20120622 19:53:54-!- crimson_penguin [~ben@wesnoth/developer/crimsonpenguin] has joined #wesnoth-dev 20120622 20:04:23-!- knotwork [~markm@unaffiliated/knotwork] has quit [Remote host closed the connection] 20120622 20:04:57-!- noy_ [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120622 20:05:28-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Quit: artisticdude] 20120622 20:06:24-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120622 20:06:58-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Client Quit] 20120622 20:07:48-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has joined #wesnoth-dev 20120622 20:27:03-!- noy_ [~Noy@wesnoth/developer/noy] has quit [Quit: noy_] 20120622 20:29:33-!- _vdn [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120622 20:30:10-!- _vdn [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 20:31:48-!- Elvish_Hunter [029dff1d@gateway/web/freenode/ip.2.157.255.29] has joined #wesnoth-dev 20120622 20:31:56-!- noy_ [~Noy@wesnoth/developer/noy] has joined #wesnoth-dev 20120622 20:34:20< CIA-87> ayne * r54460 /trunk/src/ (5 files): 20120622 20:34:21< CIA-87> Fixed issue with old savegames and victory reports 20120622 20:34:21< CIA-87> Refactoring still WIP 20120622 20:37:14-!- knotwork [~markm@unaffiliated/knotwork] has joined #wesnoth-dev 20120622 20:44:36-!- Blueblaze [~Blueblaze@adsl-76-202-16-168.dsl.hstntx.sbcglobal.net] has quit [Quit: Blueblaze] 20120622 21:05:00-!- _vdn [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120622 21:05:35-!- _vdn [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 21:17:00-!- light_mage [abhijit@14.96.49.133] has joined #wesnoth-dev 20120622 21:17:19-!- the_new_lipk [~lipk@host-91-147-212-174.biatv.hu] has joined #wesnoth-dev 20120622 21:20:05-!- stikonas [~and@wesnoth/translator/stikonas] has quit [Quit: Konversation terminated!] 20120622 21:23:16-!- stikonas [~gentoo@wesnoth/translator/stikonas] has joined #wesnoth-dev 20120622 21:23:16-!- Bob_The_Mighty [~chatzilla@cpc4-brig16-2-0-cust378.3-3.cable.virginmedia.com] has joined #wesnoth-dev 20120622 21:25:08-!- _vdn [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has quit [Quit: Leaving.] 20120622 21:25:45-!- _vdn [~nazgul-sa@ppp85-141-117-178.pppoe.mtu-net.ru] has joined #wesnoth-dev 20120622 21:31:30-!- Elvish_Pillager [~eli@71-10-229-241.dhcp.oxfr.ma.charter.com] has joined #wesnoth-dev 20120622 21:33:48-!- Elvish_Hunter [029dff1d@gateway/web/freenode/ip.2.157.255.29] has quit [Quit: Ciao!] 20120622 21:34:12-!- Bob_The_Mighty [~chatzilla@cpc4-brig16-2-0-cust378.3-3.cable.virginmedia.com] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]] 20120622 21:35:15-!- light_mage [abhijit@14.96.49.133] has quit [Quit: Leaving] 20120622 21:41:10-!- the_new_lipk [~lipk@host-91-147-212-174.biatv.hu] has quit [Quit: - )] 20120622 21:44:55-!- crab_ [~Crab_@wesnoth/developer/crab] has quit [Ping timeout: 276 seconds] 20120622 21:52:00-!- Shakey [HydraIRC@c-24-14-169-218.hsd1.il.comcast.net] has joined #wesnoth-dev 20120622 22:03:48-!- vultraz [~chatzilla@124.109.10.221] has quit [Ping timeout: 244 seconds] 20120622 22:19:44-!- ancestral [~ancestral@12.145.225.25] has joined #wesnoth-dev 20120622 22:27:12-!- ancestral [~ancestral@12.145.225.25] has quit [Quit: i go sleeps kthxbai] 20120622 22:32:12-!- negusnyul [~negusnyul@dsl54020994.pool.t-online.hu] has quit [Quit: Konversation terminated!] 20120622 22:34:19-!- Bob_The_Mighty [~chatzilla@cpc4-brig16-2-0-cust378.3-3.cable.virginmedia.com] has joined #wesnoth-dev 20120622 22:36:49-!- yann [~dwitch@nan92-1-81-57-214-146.fbx.proxad.net] has quit [Excess Flood] 20120622 22:37:57-!- yann [~dwitch@nan92-1-81-57-214-146.fbx.proxad.net] has joined #wesnoth-dev 20120622 22:38:08-!- [Relic] [~relic@99-58-54-211.lightspeed.milwwi.sbcglobal.net] has joined #wesnoth-dev 20120622 22:53:26-!- shadowm_laptop [ignacio@wesnoth/developer/shadowmaster] has joined #wesnoth-dev 20120622 22:54:13-!- ToBeFree [~tobefree@unaffiliated/tobefree] has joined #wesnoth-dev 20120622 23:03:03-!- timotei [~timotei@wesnoth/developer/timotei] has quit [Quit: SIGKILL] 20120622 23:07:35-!- Gallaecio [~quassel@84.120.114.134.dyn.user.ono.com] has quit [Remote host closed the connection] 20120622 23:18:42-!- yann [~dwitch@nan92-1-81-57-214-146.fbx.proxad.net] has quit [Excess Flood] 20120622 23:21:10-!- yann [~dwitch@nan92-1-81-57-214-146.fbx.proxad.net] has joined #wesnoth-dev 20120622 23:32:28-!- artisticdude [~artisticd@vsat-148-64-186-230.c005.g4.mrt.starband.net] has quit [Read error: Connection reset by peer] 20120622 23:40:53-!- Gambit [~gambit@wesnoth/developer/grickit] has joined #wesnoth-dev --- Log closed Sat Jun 23 00:00:00 2012