Timestamps are in GMT/BST.
| 00:07:49 | | bobdaduck Quit (Remote host closed the connection) |
| 00:16:50 | raptor | good night! |
| 00:16:53 | | raptor Quit () |
| 01:49:30 | | watusimoto has joined |
| 01:49:30 | | ChanServ sets mode +o |
| 03:08:18 | | LordDVG has joined |
| 03:45:27 | | Flynnn Quit (Quit: Leaving) |
| 04:06:19 | | LordDVG Quit (Ping timeout: 246 seconds) |
| 04:41:59 | | LordDVG has joined |
| 06:07:44 | | Wuzzy has joined |
| 06:09:13 | | LordDVG Quit (Remote host closed the connection) |
| 06:43:22 | | Nothing_Much has joined |
| 06:43:22 | | Nothing_Much Quit (Changing host) |
| 06:43:22 | | Nothing_Much has joined |
| 07:19:08 | | YoshiSmb has joined |
| 07:36:28 | kaen | morning all |
| 07:37:07 | kaen | watusimoto, how attached are you to the way our lua doxygen comments are aligned? |
| 07:38:21 | kaen | because I'm going to have to reformat nearly all of them, so if I don't have to align them I'd rather not |
| 07:47:04 | | raptor has joined |
| 07:47:04 | | ChanServ sets mode +o |
| 08:24:45 | | YoshiSmb Quit (Ping timeout: 250 seconds) |
| 08:53:19 | | raptor Quit () |
| 09:39:02 | | Nothing_Much Quit (Quit: bye) |
| 09:39:18 | | Nothing_Much has joined |
| 09:43:01 | | Wuzzy Quit (Read error: Connection reset by peer) |
| 09:44:08 | | bobdaduck has joined |
| 09:57:51 | | raptor has joined |
| 09:57:51 | | ChanServ sets mode +o |
| 09:57:56 | raptor | buenos! |
| 09:58:36 | bobdaduck | bueanso |
| 10:03:19 | raptor | watusimoto: is your Settings work essentially to remove all the private members of IniSettings and just grab them directly from the INI? |
| 10:03:59 | watusimoto | the intent is this: I recently added a setting and I needed to put entries in 4 or 5 different places just to get it set up |
| 10:04:09 | raptor | yes |
| 10:04:12 | watusimoto | the eventual idea is that you only need to add it in one place |
| 10:04:17 | raptor | ok |
| 10:04:26 | watusimoto | loading and saving and intializing will all be automatic |
| 10:04:33 | watusimoto | declare it and you are ready to use it |
| 10:04:37 | raptor | ok |
| 10:04:39 | raptor | sounds good |
| 10:05:03 | watusimoto | my current intent is to get this working for the Settings section, then I may let the rest go until after 019 is out |
| 10:05:14 | raptor | OK |
| 10:05:23 | watusimoto | this ties into a time constraint I have that I should mention |
| 10:05:33 | watusimoto | I will be in the US for a little over a week |
| 10:05:40 | watusimoto | starting on Friday |
| 10:05:43 | raptor | OK |
| 10:05:52 | watusimoto | during that time I will probably not have access to a machine I can code on |
| 10:06:03 | watusimoto | though I will be available at least sometimes online |
| 10:06:08 | raptor | well.. kaen and I will try our best to fix the template issues outside of vc++... :) |
| 10:06:29 | watusimoto | if I want to work on Bitfighter, I will probably do non-code tasks, such as cleaning up the lua docs, website work, etc. |
| 10:06:34 | raptor | oooo |
| 10:06:36 | raptor | excellent |
| 10:06:38 | watusimoto | which has been neglected my me for a while anyway |
| 10:06:51 | raptor | the poor main page of bitfighter.org.. |
| 10:07:10 | raptor | there's this ugly gray bar that is supposed to be the high scores? |
| 10:07:10 | watusimoto | and so I am trying to work on projects now that can be wrapped up tonight and tomorrow night |
| 10:07:21 | watusimoto | while still leaving me time to pack, clean, otherwise preapre for my trip |
| 10:08:01 | watusimoto | settings seem(ed) like a good place to focus, except that compilation is such a pain because my templating skillz are not up to date |
| 10:08:22 | watusimoto | it almost makes me wish I had gone the xmacro route... |
| 10:08:52 | raptor | while searching for how to fix those template errors last night, I ran across one SO post that just said to forget templates and write overloaded methods |
| 10:09:09 | watusimoto | that can't always work |
| 10:09:14 | watusimoto | that's where I started |
| 10:09:14 | raptor | yeah |
| 10:09:20 | raptor | i mean, i agree |
| 10:09:23 | watusimoto | but you need to be able to return different types |
| 10:09:32 | watusimoto | T getVal() |
| 10:09:39 | watusimoto | can't do that with an overload |
| 10:09:48 | watusimoto | setval(T val) |
| 10:09:50 | watusimoto | that you can |
| 10:11:00 | raptor | this is an interesting read on how to overload return values: http://stackoverflow.com/questions/226144/overload-a-c-function-according-to-the-return-value |
| 10:11:13 | raptor | using operator trickery |
| 10:11:33 | watusimoto | we have a similar problem with MenuItems... some return a string, others an int. I did that without templates, and I've always considered my solution functional but ugly and clumsy |
| 10:11:53 | raptor | templates sometimes look so ugly and clumsy, though... |
| 10:11:55 | watusimoto | I've read that post |
| 10:11:58 | watusimoto | recetnly |
| 10:12:19 | watusimoto | I;m starting to like templates, despite the pain they cause me |
| 10:12:44 | raptor | so how does templating with specializations reduce code more than overloading? |
| 10:12:55 | watusimoto | ah yes, overloading the cast operator |
| 10:13:06 | watusimoto | I tried that for an evening, and couldn't get it to work properly |
| 10:13:13 | raptor | ah |
| 10:13:25 | watusimoto | it did work in some cases, but I couldn't structure the code quite right to get it to work in the case where I needed it |
| 10:14:41 | watusimoto | It shaped my answer to my question here: |
| 10:14:41 | watusimoto | http://stackoverflow.com/questions/17994833/templates-inheritance-and-virtual-methods-c |
| 10:14:46 | watusimoto | (you may have seen this) |
| 10:15:31 | watusimoto | one problem was I find this somewhat confusing: |
| 10:15:32 | watusimoto | int shipYear = *settings.getSetting("shipYear"); |
| 10:15:37 | watusimoto | why that *? |
| 10:15:59 | watusimoto | but you needed it because otherwise you are casting from a pointer which doesn't work |
| 10:16:38 | raptor | interesting |
| 10:17:20 | watusimoto | kaen spent some time with me working through the issue |
| 10:18:58 | raptor | ok |
| 10:19:16 | raptor | aww man, OSX is broken too... |
| 10:19:42 | watusimoto | let me do a little more work on it before you worry about osx |
| 10:19:52 | watusimoto | I need to change some of your fixes from last night |
| 10:19:57 | raptor | ok |
| 10:20:23 | raptor | what i didn't understand (if you say my commit message) was if i removed the specializations in config.h the game would still compile |
| 10:20:27 | raptor | *saw |
| 10:20:44 | watusimoto | I'm really not sure about that |
| 10:20:50 | raptor | full recompile worked |
| 10:21:42 | raptor | my only theory is that maybe the linker passed because the definitions in config.cpp were ordered early on |
| 10:26:59 | raptor | error: 'const class std::map<std::string, TNL::S32, std::less<std::string>, std::allocator<std::pair<const std::string, TNL::S32> > >' has no member named 'at' |
| 10:27:29 | raptor | config.h:257 |
| 10:27:35 | raptor | that's what fails to compile on OSX |
| 10:29:13 | raptor | ha! |
| 10:29:17 | raptor | at() is c++11 |
| 10:29:18 | raptor | no wonder |
| 10:29:25 | raptor | we can't go there yet! |
| 10:29:57 | bobdaduck | um |
| 10:30:04 | bobdaduck | I think I'm teaching footloose how to make levelgens |
| 10:30:22 | kaen | watusimoto, I have some questions about the luadocs |
| 10:30:46 | watusimoto | ok, better to hold it till I'm back on, as I am about to leave |
| 10:30:56 | kaen | ok |
| 10:31:06 | kaen | I'll be around whenever you're back |
| 10:31:18 | watusimoto | super |
| 10:31:22 | watusimoto | raptor: I'll replace the at |
| 10:31:32 | raptor | yay |
| 10:34:19 | watusimoto | back in a bit |
| 10:39:03 | | watusimoto Quit (Ping timeout: 264 seconds) |
| 10:41:20 | bobdaduck | [10:41:46 AM] bobdaduck: So, variables can have a bunch of different data types. They can be words, or numbers, or boxes, or whatever |
| 10:41:20 | bobdaduck | [10:41:57 AM] footie: or brownies. |
| 10:41:20 | bobdaduck | [10:41:59 AM] bobdaduck: or brownies, yeah |
| 10:42:08 | raptor | sounds legit |
| 11:04:31 | | Watusimoto has joined |
| 11:04:55 | | Nothing_Much Quit (Ping timeout: 246 seconds) |
| 11:05:46 | Watusimoto | ok, on for a while... procrastinating cleaning the apartment |
| 11:10:38 | raptor | is the replacement for at() just the [] operator? |
| 11:11:16 | Watusimoto | I don't actually know... yet |
| 11:11:47 | Watusimoto | ah, I remmeber why I used at... |
| 11:12:15 | Watusimoto | it throws an exception if the key isn't found; the alternative does not, but rather adds an empty element at the key in question |
| 11:12:43 | Watusimoto | now.. what was the a;ternative? |
| 11:13:02 | Watusimoto | in any case, we know that the element exists because this is protected with an assert |
| 11:14:12 | Watusimoto | maybe find? |
| 11:14:56 | raptor | this is the source to at() on my system: http://pastie.org/8215796 |
| 11:14:59 | raptor | (cleaned up) |
| 11:15:14 | Watusimoto | ah, [] is the alternative |
| 11:15:19 | Watusimoto | but [] adds an element |
| 11:15:24 | Watusimoto | but we don't care, in our case |
| 11:16:01 | Watusimoto | you know... if you're creating a local variable in a short function, why would you call it __i? |
| 11:16:05 | Watusimoto | why not just i? |
| 11:16:13 | Watusimoto | it makes the code... disturbing |
| 11:16:35 | | Nothing_Much has joined |
| 11:16:35 | | Nothing_Much Quit (Changing host) |
| 11:16:35 | | Nothing_Much has joined |
| 11:16:52 | Watusimoto | so yes, I'll replace the at with [] |
| 11:16:55 | raptor | disturbing is an excellent word for it |
| 11:17:00 | Watusimoto | or you can if you want an immediate solution |
| 11:17:14 | raptor | you can, it's fine |
| 11:17:16 | Watusimoto | I have some compile issues at the moment and won't be able to commit for a while |
| 11:17:17 | Watusimoto | ok |
| 11:17:48 | raptor | no problem |
| 11:18:38 | raptor | I've had the odd thought that there is one very odd man who maintains the GNU c++ standard libs, all alone in a small, dark room.... cackling |
| 11:18:59 | raptor | every time I look at the source, that is.. |
| 11:23:17 | Watusimoto | I think you nailed it |
| 11:31:15 | Watusimoto | raptor: what does this comment mean? |
| 11:31:16 | Watusimoto | -- Not even used?? ~raptor |
| 11:31:31 | Watusimoto | near the static string toString calls in config.cpp |
| 11:31:40 | raptor | oh |
| 11:31:51 | raptor | those four functions below aren't used anywhere in the class |
| 11:33:09 | raptor | ok, i lied |
| 11:33:12 | raptor | they are used |
| 11:33:20 | raptor | my IDE was saying they weren't, though... |
| 11:33:37 | Watusimoto | :-) |
| 11:33:49 | raptor | forgot about that comment.. |
| 11:55:35 | Watusimoto | comment is now gone |
| 12:06:41 | Watusimoto | see if this next push fixes mac compile |
| 12:06:42 | | BFLogBot Commit: 218f99d6b96e | Author: watusimoto | Message: Remove at() method, make initialization more generic with addition of getSection() method |
| 12:06:49 | raptor | ok |
| 12:07:15 | kaen | Watusimoto, how do you feel about moving the "static" text out of the doxygen stuff and onto the wiki |
| 12:07:23 | Watusimoto | hi kaen |
| 12:07:25 | kaen | so can have a more traditional API docs/Manual pair |
| 12:07:26 | kaen | hello |
| 12:07:34 | kaen | so we can* |
| 12:07:53 | Watusimoto | I'm not sure exactly what you mean, but probably yes |
| 12:07:53 | raptor | I like API, and I like docs |
| 12:08:15 | Watusimoto | or rather, I probably feel "yes" |
| 12:08:33 | kaen | I mean the stuff that was formerly on the "Bitfighter lua documentation" page |
| 12:08:37 | kaen | or something like that |
| 12:08:50 | Watusimoto | you mean make doxygen a subsection of a larger docs site, and get rid of some of the docs from doxygen |
| 12:09:09 | kaen | eh, not necessarily make it part of another site |
| 12:09:18 | Watusimoto | well, part of the wiki? |
| 12:09:21 | kaen | yes |
| 12:09:30 | Watusimoto | sure |
| 12:09:47 | kaen | ok, I've actually already started but I wanted to make sure you were on board before going full steam |
| 12:09:50 | Watusimoto | the current doxygen-only structure has some shortcomings |
| 12:10:05 | kaen | specifically that it's hard for users to contribute to |
| 12:10:11 | raptor | convert everything to javadocs! |
| 12:10:15 | Watusimoto | can you show me what you've got yet? or is it too early? |
| 12:10:19 | Watusimoto | I hate javadocs |
| 12:10:37 | Watusimoto | it *could* be a bit better if someone wrote a stylesheet for it |
| 12:10:47 | kaen | I literally have only taken the original "static text" and put onto separate pages on the wiki |
| 12:10:48 | Watusimoto | but it jsut feels nasty |
| 12:10:49 | raptor | i especially like the kind that just tell you the method signature.. |
| 12:11:17 | kaen | and I added a "scripting" category to use as a portal for all scripting stuff |
| 12:11:43 | Watusimoto | ok, the users will only be able to edit the "conversational" part of the docs; the reference part will be only modifiable via altering the source |
| 12:11:50 | Watusimoto | ? |
| 12:11:51 | kaen | exactly |
| 12:11:55 | Watusimoto | well, sure |
| 12:12:01 | kaen | so users can help write tuts and examples and how-to's |
| 12:12:13 | Watusimoto | that was alwasys the intention |
| 12:12:18 | kaen | perfect |
| 12:12:35 | Watusimoto | the only real difference here is where to draw the line between wiki and doxygen |
| 12:12:53 | Watusimoto | and teh stuff you are moving to the wiki is exactly the stuff that is an akward fit for doxygen |
| 12:13:02 | Watusimoto | so it sounds like a good move |
| 12:13:02 | kaen | yes, I feel that way |
| 12:13:04 | kaen | ok cool |
| 12:13:07 | kaen | and finally |
| 12:13:21 | kaen | the wiki is almost unreadable in my opinion for large bodies of text |
| 12:13:29 | Watusimoto | uh oh |
| 12:13:35 | Watusimoto | I know where this conversation is going... |
| 12:13:38 | kaen | can we move it out of drupal and into a standard mediawiki instance? |
| 12:13:44 | kaen | er |
| 12:13:48 | kaen | whatever the CMS is |
| 12:13:50 | Watusimoto | the wiki is a standard mediawiki instance |
| 12:13:59 | Watusimoto | it's not in drupal |
| 12:14:11 | kaen | does it just have a similar stylesheet? |
| 12:14:14 | Watusimoto | yes |
| 12:14:18 | kaen | ah cool |
| 12:14:25 | kaen | mind if we restore the default one? |
| 12:14:40 | Watusimoto | well, this is a difficult question |
| 12:14:46 | kaen | I can see how it would be |
| 12:14:55 | Watusimoto | the wiki in general should, I think, match the rest of teh site |
| 12:15:06 | Watusimoto | but I also see your point about the docs being difficult to read |
| 12:15:23 | raptor | mixed line endings! |
| 12:15:36 | Watusimoto | and in any case doxygen is using a completely different style |
| 12:15:40 | Watusimoto | raptor: which file? |
| 12:15:48 | raptor | seems like any one you touch.. |
| 12:16:12 | raptor | in this case config.cpp (since I'm editing it) |
| 12:16:23 | Watusimoto | kaen: so is it possible to have diffeernt styles for different sections of the wiki? |
| 12:16:38 | Watusimoto | raptor: I modified one in a different editor |
| 12:16:40 | raptor | I only catch it when upon commit, Xcode automatically converts the whole file to the same type so there are a lot more changed lines |
| 12:16:45 | Watusimoto | let me see which file that was |
| 12:17:13 | Watusimoto | hmmm... that was config.h |
| 12:17:19 | Watusimoto | config.cpp was only modified in vc++ |
| 12:17:32 | Watusimoto | and if that were chanigng line endings, it would be happening on every file |
| 12:17:40 | raptor | yep |
| 12:17:46 | Watusimoto | is it? |
| 12:18:07 | Watusimoto | because I have vc++ set to respect line endings, and I have hg set to fix line endings... |
| 12:18:13 | Watusimoto | so, are both failing? |
| 12:18:28 | | BFLogBot Commit: 58f7c814f05e | Author: buckyballreaction | Message: Fix compiling in OSX |
| 12:18:58 | kaen | am I missing something? OSX has been green for two builds now |
| 12:19:14 | raptor | ok, i need a place to post a diff |
| 12:19:37 | Watusimoto | raptor: I'm setting vc++ to check for line endings when it loads, as well |
| 12:19:41 | Watusimoto | not sure if that will make a difference |
| 12:19:48 | raptor | Watusimoto: doing: dos2unix zap/*.cpp zap/*.h |
| 12:19:59 | raptor | and then 'hg diff' generates a 755K diff file |
| 12:20:06 | Watusimoto | what?!? |
| 12:20:22 | raptor | so yeah... looks like any file you touch is changing line endings to DOS |
| 12:20:28 | | LordDVG has joined |
| 12:20:51 | raptor | kaen: compiling with gcc-4.0 on osx 10.4 i386 is what fails |
| 12:20:56 | kaen | oh :< |
| 12:21:22 | raptor | newer gcc as a non-standard at() method to help you out in case someone inadvertently uses the c++ standard |
| 12:24:28 | kaen | hippies. |
| 12:25:23 | kaen | Watusimoto, the only way I can think of is to have two separate wikis :P |
| 12:25:38 | Watusimoto | ok, the line endings were set to "preserve current" I changed it to "Unix". But it always reverts to "user current" |
| 12:26:16 | raptor | hahaha |
| 12:26:39 | Watusimoto | because the wiki is part of the main tab set from the website, I think it should not turn from black to white on that tab |
| 12:26:39 | raptor | that might be the 'express' part... |
| 12:26:48 | Watusimoto | raptor: but the current is LF |
| 12:27:09 | raptor | well, we'll just have to see... |
| 12:27:17 | raptor | sam686 got his line endings to work somehow |
| 12:27:25 | raptor | he didn't use the hg plugin though |
| 12:27:34 | raptor | but he did use 2008 professional |
| 12:28:25 | Watusimoto | lame |
| 12:28:29 | Watusimoto | this article: http://support.microsoft.com/kb/268901 |
| 12:28:42 | Watusimoto | suggests altering your flow to run dos2unix after every save |
| 12:28:48 | Watusimoto | I mean.. wtf |
| 12:28:58 | kaen | helpful! |
| 12:29:06 | raptor | that's a rather long article... |
| 12:29:18 | kaen | anyway, since it loses the header, background, text styles, etc. Then I think it will be clear that it's a "different part" of the site so they might forgive the jump |
| 12:29:27 | kaen | I have to go, though. Back soon |
| 12:29:31 | kaen | < 1 hours |
| 12:29:31 | Watusimoto | bye |
| 12:29:38 | raptor | bye |
| 12:29:50 | Watusimoto | but in any event, I have the line ending plugin for hg which should fix it. let me verify that config |
| 12:30:04 | raptor | Watusimoto: that is old article... |
| 12:30:18 | raptor | Last Review: July 13, 2004 |
| 12:31:23 | raptor | there's this freeware plugin: http://www.grebulon.com/software/stripem.php |
| 12:31:57 | Watusimoto | oops |
| 12:32:10 | raptor | did you do it backwards? |
| 12:32:22 | raptor | i would just not use the mercurial plugin.. |
| 12:32:34 | Watusimoto | and yet... the save with unix endings seems a save-by-save option |
| 12:32:59 | Watusimoto | you can't use addins in vc++ express, sadly |
| 12:33:24 | raptor | "File > Advanced Save Options", select Unix Line Endings. |
| 12:33:30 | raptor | that's what you did, right? |
| 12:33:41 | Watusimoto | yes |
| 12:33:46 | Watusimoto | it's not a sticky option |
| 12:33:50 | raptor | what |
| 12:33:58 | Watusimoto | try it -- set it then look again |
| 12:34:11 | raptor | why would that not be for all files... |
| 12:34:35 | Watusimoto | I always thought it was... maybe it is... yet your evidence refutes that |
| 12:34:43 | Watusimoto | I need to look at a file in a bin editor |
| 12:34:45 | raptor | it feels like microsoft create a product, then randomly cripple it |
| 12:37:03 | Watusimoto | it is free, after all |
| 12:42:15 | Watusimoto | I plead NOT GUILTY |
| 12:42:25 | Watusimoto | I modified a file with VC++ |
| 12:42:45 | Watusimoto | I inserted an x as the first character, then hit enter (so the x appeared on a line by itself) |
| 12:42:49 | Watusimoto | I saved the file |
| 12:42:57 | Watusimoto | I looked at the file in a hex viewer: |
| 12:43:08 | Watusimoto | first line: |
| 12:43:09 | Watusimoto | 00000000: 780a 2f2f 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d :x.//-------------------- |
| 12:43:14 | Watusimoto | the 78 is the x |
| 12:43:18 | Watusimoto | the 0a is a LF |
| 12:43:26 | Watusimoto | the 2f is a / |
| 12:43:26 | raptor | 0a ok |
| 12:43:35 | Watusimoto | there is no CR there |
| 12:44:00 | Watusimoto | now, let me check that file in, and you can see if it has any crs in it after it's made it into hg |
| 12:44:08 | | fordcars has joined |
| 12:44:12 | raptor | ok |
| 12:45:40 | Watusimoto | what is CR in hex? |
| 12:45:41 | Watusimoto | 0c? |
| 12:45:47 | Watusimoto | 0d |
| 12:45:48 | Watusimoto | ? |
| 12:46:12 | Watusimoto | 0d |
| 12:46:34 | Watusimoto | ok, have verified the file I just committed has no x0ds in it anywhwere |
| 12:46:34 | raptor | AToBScroller.h has them |
| 12:47:28 | | BFLogBot Commit: c8e664d37ebe | Author: watusimoto | Message: Test for line ending issue |
| 12:47:30 | | BFLogBot Commit: b5294ab5773d | Author: watusimoto | Message: Merge |
| 12:47:53 | Watusimoto | sorry I mssed all those ats! |
| 12:47:54 | raptor | what line did you edit? |
| 12:48:10 | Watusimoto | in the committed version, I inserted a space immediately following the comment block |
| 12:48:43 | Watusimoto | whoa |
| 12:48:48 | Watusimoto | line 25 |
| 12:49:03 | Watusimoto | I told you I activated a setting in VC++ to alert me of inconsistent line endings on load |
| 12:49:09 | Watusimoto | well... it just triggered |
| 12:49:15 | Watusimoto | on the file I just edited |
| 12:49:35 | Watusimoto | telling me I have mixed line endings |
| 12:49:40 | Watusimoto | where did they come from??? |
| 12:50:01 | Watusimoto | ... from the commit, I think |
| 12:50:10 | raptor | that commit is good |
| 12:50:14 | raptor | just 0a |
| 12:50:20 | Watusimoto | maybe hg is forcing the line endings to crs somehow |
| 12:50:36 | raptor | 0d 0a is what we don't want |
| 12:50:54 | Watusimoto | vc++ will let me use the unicode line separator as a line ending. should I go with it? :-) |
| 12:50:59 | Watusimoto | just to mix things up a bit? |
| 12:51:18 | raptor | ha |
| 12:51:20 | raptor | yes |
| 12:51:30 | raptor | wait 'unicode' ? |
| 12:51:33 | raptor | if you have teh mercurial line ending plugin, i'd disable it... |
| 12:51:45 | Watusimoto | maybe that's the problem |
| 12:51:48 | raptor | that test commit is good |
| 12:51:50 | Watusimoto | will try that next |
| 12:52:00 | Watusimoto | but the merge is where the line endings came from |
| 12:52:03 | Watusimoto | I think |
| 12:52:10 | raptor | wait wait.. |
| 12:53:15 | raptor | nope |
| 12:53:18 | raptor | the merge was good, too |
| 12:53:19 | Watusimoto | modifying the file in my text editor does not change the endings |
| 12:53:25 | Watusimoto | yes, but not on my end |
| 12:53:34 | raptor | what!? |
| 12:53:43 | raptor | how does that even happen?? |
| 12:53:47 | Watusimoto | after the merge, vc++ said "files changed, want to reload" |
| 12:53:52 | Watusimoto | so I did |
| 12:54:10 | Watusimoto | two files reloaded (one was settings.cpp, not sure what the other was, because I was confused and ddn't look) |
| 12:54:35 | Watusimoto | when they loaded, vc++ said "hey, mixed line endings. want to convert to cr/lf?" |
| 12:54:47 | raptor | oh |
| 12:54:56 | Watusimoto | but there were two files involved in the commit |
| 12:55:05 | raptor | the merge brought in my unix line endings from changing config.cpp |
| 12:55:09 | raptor | that's why it reloaded |
| 12:55:14 | Watusimoto | sorry, not settings.cpp, config.cpp |
| 12:55:19 | raptor | ha |
| 12:55:28 | Watusimoto | the two files were config.cpp and energyguagerenderer.cpp |
| 12:55:34 | raptor | yes |
| 12:55:46 | Watusimoto | and config.cpp got mixed line endings somehow |
| 12:55:51 | Watusimoto | though I did not edit it at all |
| 12:55:55 | raptor | i did! |
| 12:56:02 | raptor | the merge brought in my at() changes |
| 12:56:05 | Watusimoto | could you have inserted the crs? |
| 12:56:09 | raptor | which now had unix line endings |
| 12:56:11 | raptor | no |
| 12:56:24 | Watusimoto | ok, so you commiteed, I merged, and I ended up with crs |
| 12:56:33 | raptor | yeah, well, then that's your editor |
| 12:56:39 | Watusimoto | no |
| 12:56:41 | raptor | because i still have unix endings |
| 12:56:42 | Watusimoto | I didn't edit |
| 12:56:44 | raptor | after merge |
| 12:56:48 | Watusimoto | hg did the merge |
| 12:56:57 | raptor | yes |
| 12:56:57 | Watusimoto | and the crs were detected when the file loaded into vc++ |
| 12:57:10 | raptor | and what you pushed in the merge had unix endings |
| 12:57:12 | Watusimoto | so I think hg inserted the crs |
| 12:57:17 | Watusimoto | yes |
| 12:57:25 | raptor | not on my end, nor on google's end |
| 12:57:38 | Watusimoto | hg is the only thing that touched settings.cpp after it arrived on my machine |
| 12:57:51 | raptor | welll |
| 12:58:06 | raptor | are you ruling out vc++ didn't just do the conversion for you without asking? |
| 12:58:31 | Watusimoto | it detected the anomolay when it tried to reload when it detected the file change |
| 12:58:38 | Watusimoto | so it detected before it had the file loaded |
| 12:58:49 | Watusimoto | it couldn't have made the change |
| 12:59:38 | Watusimoto | so perhaps it is the eol extension in mercurial |
| 12:59:47 | Watusimoto | I'm going to disable it and we'll see if it improves things |
| 12:59:57 | Watusimoto | that, in combination with the new detection regime should fix it |
| 13:00:14 | Watusimoto | because we know that I can write in vc++, and commit without introducing crs |
| 13:00:33 | Watusimoto | it's only merging that messed things up (in this case, at least) |
| 13:00:41 | Watusimoto | let's try a test |
| 13:00:49 | Watusimoto | commit a modification to config.cpp |
| 13:01:05 | Watusimoto | and lets see if it happens again |
| 13:02:19 | Watusimoto | wait... my copy has crs in it |
| 13:02:52 | raptor | hg revert -a |
| 13:04:59 | raptor | you say 'it couldn't have made the change' like it is gospel truth |
| 13:05:11 | Watusimoto | there is another possibility |
| 13:05:31 | Watusimoto | it is the gospel truth... because the endings were detected on loading |
| 13:05:39 | Watusimoto | but I'm going to prove it |
| 13:05:49 | raptor | found the culprit? |
| 13:05:56 | Watusimoto | I modified settings.cpp in my text editor to have NO CRs |
| 13:05:59 | Watusimoto | verified it in hex mode |
| 13:06:08 | Watusimoto | reloaded it into vc++ |
| 13:06:16 | Watusimoto | will modify, change, and retest |
| 13:06:29 | raptor | ok |
| 13:06:33 | Watusimoto | sorry, modify, save, and reexamine with hex editor |
| 13:07:00 | Watusimoto | then if you modify settings.cpp, I can merget that in and we can see if any crs are introduced |
| 13:07:10 | raptor | ok |
| 13:08:04 | Watusimoto | ok, modified file in vc++, saved it, examined in hex editor. no CRs |
| 13:08:13 | raptor | modify how? |
| 13:08:19 | Watusimoto | inserted a space |
| 13:08:21 | Watusimoto | let me insert a newline |
| 13:08:23 | Watusimoto | and retest |
| 13:09:24 | Watusimoto | ok inserted a couple of blank lines, deleted some others |
| 13:09:27 | Watusimoto | still no CRs |
| 13:09:46 | Watusimoto | does that test satisfy you (for the moment at least?) |
| 13:09:56 | raptor | ok |
| 13:09:58 | raptor | yes |
| 13:09:58 | | BFLogBot Commit: 2014cc25a6e6 | Author: buckyballreaction | Message: Test for messed up newlines |
| 13:10:04 | raptor | when you merge that commit it ^^ |
| 13:10:07 | Watusimoto | so what di dyo change here? |
| 13:10:19 | raptor | I added 3 lines of comments all with unix line endings |
| 13:10:51 | raptor | so when you merge in, test in a hex editor before and after every vc++ step |
| 13:10:51 | Watusimoto | I just committed my changes; haven't merged, will reexamine |
| 13:11:06 | raptor | yeah look at the commit before merge.. |
| 13:11:08 | Watusimoto | yes |
| 13:11:22 | Watusimoto | vc++ detected no changes (unsurprising) |
| 13:11:22 | raptor | (remember to reload teh file) |
| 13:11:49 | Watusimoto | no crs |
| 13:12:00 | Watusimoto | I close and reopen the file in the hex editor every time |
| 13:12:05 | raptor | oh excellent |
| 13:12:07 | Watusimoto | ok |
| 13:12:09 | Watusimoto | merging |
| 13:12:40 | Watusimoto | hg says this: |
| 13:12:40 | Watusimoto | calling hook preupdate.eol: <function preupdate at 0x000000000294E6D8> |
| 13:12:46 | Watusimoto | vc++ wants to reload |
| 13:12:56 | Watusimoto | no warning about mixed line endings |
| 13:13:30 | Watusimoto | no crs in hex editor |
| 13:13:37 | Watusimoto | ok |
| 13:13:43 | Watusimoto | so that's all good |
| 13:13:48 | Watusimoto | I think I know what happened before |
| 13:14:01 | Watusimoto | I think config.cpp had other crs in it (I know it did, actually) |
| 13:14:13 | Watusimoto | and those probably triggered the mixed line ending warning |
| 13:14:34 | Watusimoto | so I am pretty confident that the crs aren't coming from my install of vc++ |
| 13:14:49 | Watusimoto | however, with this new warning on load, I'll keep an eye out for when they appear |
| 13:14:55 | Watusimoto | and see if I can track it down |
| 13:15:10 | Watusimoto | I understand why you suspect me as the culprit -- and I do share your suspicions |
| 13:15:35 | Watusimoto | so I will try to make some more careful observations and see what I can see |
| 13:15:38 | raptor | you are the culprit in commits past |
| 13:15:53 | Watusimoto | I don't deny it -- I just don't understand it |
| 13:16:09 | Watusimoto | watchful waiting |
| 13:16:20 | raptor | I think what was happening was either: |
| 13:16:50 | kaen | one lashing per 0x0D byte found! |
| 13:16:59 | raptor | 1. vc++ would save CRs for just the lines you edited in a class (eclipse does this, but for unix line endings) |
| 13:17:19 | raptor | 2. the hg plugin wasn't configured correctly |
| 13:18:12 | raptor | xcode on the other hand will convert the entire file upon save, instead of just modifying the lines |
| 13:18:27 | raptor | which is how i noticed this problem again.. |
| 13:19:34 | Watusimoto | the hg plugin has no configuation options as far as I can see |
| 13:19:55 | raptor | you removed it? |
| 13:19:58 | Watusimoto | well, either on or off |
| 13:19:59 | Watusimoto | no |
| 13:20:08 | Watusimoto | want me to? |
| 13:20:52 | raptor | yes |
| 13:21:21 | Watusimoto | ok |
| 13:21:26 | raptor | I think it is an unknown element that should be avoided |
| 13:21:34 | raptor | kaen: 10104 lashings! |
| 13:21:37 | Watusimoto | wait a minute... one more test |
| 13:21:46 | Watusimoto | I never committed the merge changes |
| 13:22:04 | Watusimoto | ok, vc++ says nothing changed after doing so |
| 13:22:31 | Watusimoto | and hex editor agrees |
| 13:22:54 | Watusimoto | eol disabled |
| 13:23:49 | raptor | now let's hope that didn't change anything... |
| 13:23:54 | raptor | in the current state |
| 13:38:21 | | LordDVG Quit (Remote host closed the connection) |
| 13:47:32 | Watusimoto | interesting article, especially as I am traveling internationally soon: |
| 13:47:33 | Watusimoto | http://www.economist.com/blogs/democracyinamerica/2013/08/travel-warnings-and-embassy-closures |
| 13:52:55 | raptor | i've started to find that 'the economist' has decent int'l news |
| 13:54:20 | | fordcars Quit (Quit: Page closed) |
| 13:56:57 | Watusimoto | they are quite good |
| 13:57:26 | Watusimoto | a bit on the libertarian side, which I don't mind, and a bit on the conservative side, which I don't always agree with, but (almost) always well reported |
| 13:58:04 | raptor | I haven't read much from them yet, just a few articles in the last couple months or so |
| 13:58:15 | raptor | but I felt it was well reported, too |
| 13:58:34 | Watusimoto | get a copy of their print mag, and be selective about what you read, or you'll never finish it |
| 13:58:42 | raptor | haha, it's big? |
| 13:58:47 | Watusimoto | dense |
| 13:59:00 | raptor | ah |
| 13:59:02 | raptor | good |
| 13:59:10 | Watusimoto | and definitely get a copy of their special christmas edition -- it's a two-week version with lots of very interesting articles |
| 13:59:11 | raptor | dense as opposed to fluff? |
| 13:59:15 | Watusimoto | it's always great |
| 13:59:20 | Watusimoto | yes |
| 13:59:23 | Watusimoto | lots of words |
| 13:59:31 | raptor | higher than a 7th grade reading level? |
| 13:59:39 | Watusimoto | every issue has at least one new word that's great |
| 13:59:41 | | thread_ has joined |
| 13:59:45 | Watusimoto | it's where I learned quango |
| 13:59:51 | raptor | or maybe america's average is 6th grade now? |
| 13:59:56 | thread_ | Hey guys! I finally have interwebs asgain |
| 13:59:58 | raptor | ha, ok |
| 14:00:21 | Watusimoto | and quisling |
| 14:00:25 | Watusimoto | hey! |
| 14:01:15 | raptor | are they based in the UK? |
| 14:01:24 | Watusimoto | (from wikipedia) |
| 14:01:25 | Watusimoto | During World War II, the word quisling became synonymous with traitor.[153] The term was coined by the British newspaper The Times in its lead of 15 April 1940, titled "Quislings everywhere." The editorial asserted |
| 14:01:25 | Watusimoto | To writers, the word Quisling is a gift from the gods. If they had been ordered to invent a new word for traitor ... they could hardly have hit upon a more brilliant combination of letters. Aurally it contrives to suggest something at once slippery and tortuous.[154] |
| 14:01:25 | Watusimoto | The noun has survived and for a while during and after World War II, the back-formed verb to quisle /ˈkwɪzəl/ was used. One who was quisling was in the act of committing treason.[155] |
| 14:01:27 | raptor | hard to tell from the site... |
| 14:01:38 | Watusimoto | they are uk based, yes |
| 14:02:01 | raptor | haha, awesome |
| 14:02:04 | raptor | a word in the making.. |
| 14:02:44 | Watusimoto | the problem with the economist is that if you start reading it, it becomes addictive, and tends to crowd out other activities |
| 14:02:50 | Watusimoto | I usually buy a copy when I fly |
| 14:02:56 | raptor | hmm... |
| 14:03:01 | kaen | I love the economist |
| 14:03:01 | raptor | I think i'll keep that in mind |
| 14:03:16 | Watusimoto | the key is to skip any articles you can |
| 14:03:24 | raptor | hehe |
| 14:05:39 | raptor | wow, i like that last line of the article |
| 14:05:53 | raptor | last 2 lines |
| 14:06:26 | kaen | it's like that all the time, to |
| 14:06:28 | kaen | too |
| 14:06:42 | raptor | well great! |
| 14:07:06 | Watusimoto | well... I'm not canceling my trip |
| 14:07:07 | raptor | I've been getting sick of the BBC, and i've been sick of all US news groups for a while now... |
| 14:08:04 | kaen | I went into a little bit of a news kick last year and felt the same way |
| 14:08:19 | kaen | I also really like the Guardian |
| 14:08:33 | raptor | maybe i'm starting to recognize BBC's bias a bit more |
| 14:08:34 | kaen | maybe I'm actually British and didn't know it |
| 14:08:37 | raptor | haha |
| 14:09:18 | raptor | one funny thing I noticed is that every article that has to do with France seems to try its utmost to show how messed up they are |
| 14:12:28 | kaen | I did A-F in like an hour |
| 14:12:31 | kaen | Then I hit GameInfo |
| 14:12:41 | raptor | oh no! |
| 14:12:44 | kaen | literally every function is missing docs x_x |
| 14:18:01 | raptor | Watusimoto: I'm actually curious what you would define 'conservative' (poitically? culturally?) - I'm not sure I even know what I think I would consider 'conservative' nowadays. 'libertarian' seems much more straight forward |
| 14:19:17 | kaen | That's a cogent point. The group that used to be categorically referred to as "conservatives" has fragmented pretty severely in the last few years |
| 14:19:39 | | thread_ Quit (Ping timeout: 250 seconds) |
| 14:19:41 | Watusimoto | conservative has a couple of aspects to it |
| 14:19:50 | raptor | just curious - because when people ask me if i'm 'a liberal' or 'a conservative', i usually just responde with 'both and neither' because those terms don't seem like good gropuings of anything to me... |
| 14:19:51 | kaen | in addition to the general liberal drift of american culture |
| 14:20:03 | Watusimoto | control of people's behavior (gays, for example) |
| 14:20:29 | raptor | ok, i can see that in the current conservative stream |
| 14:20:30 | Watusimoto | authoroitarian bent |
| 14:20:43 | raptor | interesting that one |
| 14:20:45 | Watusimoto | rejection of science |
| 14:20:49 | raptor | and that one |
| 14:20:57 | Watusimoto | usually religious overtones |
| 14:21:01 | Watusimoto | (though not always) |
| 14:21:16 | Watusimoto | (usually) militaristic |
| 14:21:31 | Watusimoto | none of those are libertarian traits |
| 14:21:41 | Watusimoto | yet, for some reason, libertarians ally with conservatives |
| 14:21:49 | raptor | so my dad is a full 40 years older than me, and he instilled completely different ideas of what 'conservative' means |
| 14:22:01 | raptor | i would say he probably taught more libertarian |
| 14:22:03 | Watusimoto | individual freedom is shared by the conventional left and libertarians |
| 14:22:53 | Watusimoto | (except rand paul, who isn't really libertarian in my book, as he rejects gay marriage and, I think, abortion) |
| 14:23:06 | Watusimoto | sorry |
| 14:23:09 | Watusimoto | ron paul |
| 14:23:17 | Watusimoto | I don't know where rand stands on those issues |
| 14:23:52 | Watusimoto | so on a lot of issues libartarians are a better fit with liberals |
| 14:24:21 | Watusimoto | and you see a tiny bit of alliance over the nsa issues |
| 14:24:37 | raptor | yeah, my idea of 'conservative' is waaay different than what you describe, but I guess I see your description pretty acurate nowadays |
| 14:24:51 | Watusimoto | what do you think of it as? |
| 14:24:56 | kaen | muddy. |
| 14:25:39 | bobdaduck | Well, here in Utah, there are "conservatives" and then there are "utah conservatives" |
| 14:25:48 | kaen | the definition you provided misses the group that refers to themselves as "progressive republicans" who have a more liberal view of social issues but are still conservative economically and militarily |
| 14:26:17 | bobdaduck | I dunno kaen, at that point you have so many sub-groupings of political axis that everything starts to lose meaning |
| 14:26:24 | raptor | growing up i thought of it as 'live and let live, work hard, save, be nice to your neighbor' |
| 14:26:34 | | BFLogBot Commit: e8b537dc6314 | Author: watusimoto | Message: Line endings, test |
| 14:26:35 | kaen | > so many sub-groupings of political axis that everything starts to lose meaning |
| 14:26:35 | | BFLogBot Commit: a1c818bb7f0f | Author: watusimoto | Message: Merge |
| 14:26:37 | | BFLogBot Commit: 3fd4c5eb32a4 | Author: watusimoto | Message: Some unit tests |
| 14:26:38 | kaen | and here we are. |
| 14:26:38 | | BFLogBot Commit: 8b5b5803934c | Author: watusimoto | Message: More tests, make No == 0 for correct boolean conversion |
| 14:27:10 | Watusimoto | I missed progressive republicans because there aren't any anymore... at least not at the national level |
| 14:27:11 | raptor | but now that i think about it, he never really did align with any adjective |
| 14:27:47 | raptor | in fact, he taught that to align with one of the 'big adjective' groups is to lose a bit of your own free will in thinking |
| 14:27:52 | Watusimoto | 'live and let live, work hard, save, be nice to your neighbor' << those sound like liberal values to me |
| 14:28:07 | raptor | but he was a registered republican |
| 14:28:14 | raptor | might be independent now.. |
| 14:28:35 | kaen | raptor, that was a very good thing to have taught |
| 14:28:36 | kaen | imo |
| 14:28:51 | Watusimoto | of course -- who can argue with any of that? |
| 14:29:19 | raptor | anyways... i didn't mean to dive into politics too much - I was just curious |
| 14:29:23 | Watusimoto | those values, in any event, are not at all represented by the modern republican party |
| 14:29:38 | raptor | i think i agree with that |
| 14:29:43 | Watusimoto | not to say that there aren't plenty of people who vote republican who agree with those values |
| 14:29:59 | Watusimoto | it's just none of them get elected to political office, at least in the areas I know |
| 14:30:22 | kaen | work hard and save are definitely core republican values. I can't disagree with the first and last though. |
| 14:30:37 | Watusimoto | who is opposed to working hard and saving? |
| 14:30:41 | kaen | indeed. |
| 14:30:43 | raptor | uhh... |
| 14:30:56 | Watusimoto | I mean what political group? |
| 14:30:59 | raptor | ah |
| 14:31:19 | Watusimoto | who wants to give bigger subsidies to farmers? |
| 14:31:37 | Watusimoto | to me that represents neither working hard nor saving, at least at the government level |
| 14:31:38 | raptor | i was going to make a comment about experiences growing up in and around inner cities but I refrain |
| 14:31:45 | kaen | I don't think "live and let live" is truly embraced by any large party either. nearly all want to regulate something. |
| 14:31:54 | raptor | man... farmers |
| 14:31:56 | raptor | one summer |
| 14:32:09 | raptor | I weeded a 20 acre mint field with my brothers for this one farmer |
| 14:32:13 | Watusimoto | deomcrats tend to want to regulate environmental issues and guns |
| 14:32:26 | raptor | he didn't want to hire the local illegals, but local white boys |
| 14:32:31 | Watusimoto | but not who to marry or what you can smoke |
| 14:32:55 | raptor | and i remember after one work day I had to return some tools |
| 14:33:02 | Watusimoto | weeding is terrible work |
| 14:33:21 | raptor | walking inside and finding the farmer and his twin daughter just staring at a wall, saying nothing, not moving an inch |
| 14:33:23 | kaen | let's not forget economic regulations. especially protectionism and union laws. |
| 14:33:34 | raptor | *daughters |
| 14:33:53 | raptor | me walking in after long day was the biggest event of their work day... |
| 14:33:57 | Watusimoto | (guns is an area of honest disagreement between liberals and libertarians, but I attribute that more to a rural-urban divide than anything else... guns in cities cause problems; guns in rural areas much less so) |
| 14:34:00 | raptor | so yeah... farmers |
| 14:34:41 | Watusimoto | unions are an interesting case |
| 14:34:47 | kaen | agreed. |
| 14:34:51 | Watusimoto | definitely associated with the left |
| 14:34:59 | Watusimoto | historically very far left |
| 14:35:03 | Watusimoto | in some ways |
| 14:35:23 | raptor | go detroit! |
| 14:35:29 | Watusimoto | but also representing freedom of association and freedom of bargaining for your wage, somewhat libertarian values |
| 14:35:33 | raptor | sorry - that was my last political comment... |
| 14:35:38 | Watusimoto | :-) |
| 14:36:03 | Watusimoto | ah, one other aspect of conservatives: supportive of corporations |
| 14:36:31 | Watusimoto | libertarinas probably even more so (if not directly, that at least as a consequence of other beliefs) |
| 14:36:37 | Watusimoto | the left, not at all |
| 14:37:58 | Watusimoto | hey, maybe the farmers were tired |
| 14:38:09 | raptor | they had shade! |
| 14:38:15 | Watusimoto | :-) |
| 14:39:00 | | LordDVG has joined |
| 14:39:06 | raptor | my brother and I had this old cassette player that would play the output of decoded mp3s over an analog cable |
| 14:39:18 | raptor | this was when napster was first starting... |
| 14:39:48 | raptor | and that was our music player for the weeding |
| 14:40:10 | raptor | good thing about the job: you didn't smell so bad at the end of the day |
| 14:40:30 | kaen | "@luafunc num GameInfo::getGameTypeName()" |
| 14:40:34 | kaen | ^ does that look right? |
| 14:40:40 | Watusimoto | I spent a summer pouring concrete in a hot greenhouse |
| 14:40:44 | raptor | no - string? |
| 14:40:44 | Watusimoto | very heavy stuff |
| 14:40:52 | kaen | I put it in the standard /** */ block, but it's not showing up in a doc |
| 14:41:07 | kaen | oh, yeah signature is incorrect, but is it malformed? |
| 14:41:24 | raptor | i think it needs: * @luafunc |
| 14:42:02 | Watusimoto | arguably shouldn't need that |
| 14:42:06 | kaen | here it is verbatim: http://pastie.org/8216429 |
| 14:42:18 | kaen | not required with normal doxygen commands, but I have it anyway |
| 14:42:31 | kaen | (copy/pasted) |
| 14:42:32 | Watusimoto | any weird whitespaces in there? |
| 14:42:33 | raptor | it might be a parser regex failure somewhere... |
| 14:42:43 | raptor | like \s+ instead of \s* |
| 14:43:02 | raptor | maybe the alignment of the closing '*/' |
| 14:43:04 | | LordDVG Quit (Remote host closed the connection) |
| 14:43:26 | Watusimoto | cause it looks right |
| 14:44:02 | kaen | as far as I can tell, there are none |
| 14:44:08 | raptor | it looks right, yes |
| 14:44:09 | raptor | oh |
| 14:44:13 | kaen | I'm using vim with whitespace displayed |
| 14:44:15 | raptor | maybe the class is missing something |
| 14:44:23 | kaen | nope, class page shows up |
| 14:44:28 | raptor | like the REGISTER_LUA_SUBCLASS(FlagItem, MountableItem); |
| 14:44:33 | raptor | ok |
| 14:44:42 | kaen | in fact, getGameTypeName shows up on the LuaGameInfo page |
| 14:44:51 | kaen | (with all the other methods from the table) |
| 14:45:15 | kaen | oh! |
| 14:45:23 | kaen | hmm... nope |
| 14:50:54 | kaen | ok. Time to dive into temp-doxygen then... |
| 14:57:23 | raptor | sorry, i ran out of ideas |
| 14:57:49 | Watusimoto | weird is all I can say |
| 15:01:31 | bobdaduck | uh |
| 15:01:37 | bobdaduck | So good news and bad news |
| 15:02:45 | bobdaduck | Good news is footloose's levelgen is coming along nicely. |
| 15:02:49 | bobdaduck | Bad news is, circles |
| 15:02:54 | raptor | NO CIRCLES |
| 15:03:09 | raptor | another scripter on the (foot)loose! |
| 15:03:13 | bobdaduck | footie: big mommy n daddy circles |
| 15:03:13 | bobdaduck | footie: n little baby circles. |
| 15:03:13 | bobdaduck | footie: CIRCLE FAMILIESSSSSSSSS |
| 15:03:13 | bobdaduck | footie: ;D |
| 15:03:13 | bobdaduck | footie: go bully raptor into adding them. |
| 15:05:12 | bobdaduck | She doesn't quite understand the flow of programming and indentation |
| 15:05:39 | raptor | she'll get it eventually (if she actually wants to learn) |
| 15:05:44 | bobdaduck | I'm not sure how really to explain that except for repetition |
| 15:07:36 | kaen | tell her that programs have to be easy for humans to read. and then really the rest is repetition |
| 15:08:26 | raptor | yes. none of this: http://www.cpan.org/misc/japh |
| 15:08:29 | kaen | you could talk about the logical structure of code and breaking it up into semantic components, but I think it might all just go back to brownies |
| 15:08:40 | bobdaduck | rofl |
| 15:09:16 | kaen | how about this: http://www.ioccc.org/1988/westley.c |
| 15:09:24 | raptor | oh no, not the ccc |
| 15:09:26 | kaen | (prints pi by measuring the circle) |
| 15:09:29 | raptor | occc |
| 15:09:30 | bobdaduck | rofl |
| 15:09:33 | raptor | no way |
| 15:11:16 | raptor | oh hey they're in the middle of the contest now |
| 15:11:24 | Watusimoto | btw, my dad sent me this link, to a very mainstream American journalist (Ted Koppel) commenting in a very mainstream media outlet (WS Journal) |
| 15:11:25 | Watusimoto | http://online.wsj.com/article/SB10001424127887324653004578650462392053732.html?mod=hp_opinion |
| 15:11:27 | kaen | yep |
| 15:11:40 | Watusimoto | yet... he sounds almost like the Ecomomist writer |
| 15:11:59 | kaen | that's a good open |
| 15:16:09 | kaen | okay, if I change it to LuaGameInfo it works fine. |
| 15:16:41 | raptor | hmm... seems like we may have a discrepancy between the cpp class name and what it is called within the Lua API |
| 15:17:20 | kaen | I don't think it's really called anything in the LuaAPI |
| 15:17:32 | kaen | you can't usefully GameInfo.new() can you ? |
| 15:17:48 | raptor | not any more! |
| 15:17:50 | kaen | and if you print() it, it's <userdata> |
| 15:18:28 | kaen | the only real problem is that it's called GameInfo a few places in the docs |
| 15:19:17 | raptor | yeah it was |
| 15:19:35 | raptor | but it was introducing a memory leak |
| 15:19:45 | raptor | so i made a member on game |
| 15:23:31 | raptor | there's even a deprecation warning for it in the helper_functions.lua files |
| 15:23:54 | | Watusimoto_ has joined |
| 15:27:15 | | Watusimoto Quit (Ping timeout: 276 seconds) |
| 15:33:07 | | Watusimoto_ Quit (Read error: Connection reset by peer) |
| 15:34:24 | | Watusimoto has joined |
| 16:05:19 | raptor | good article |
| 16:20:15 | | bobdaduck Quit (Read error: Connection reset by peer) |
| 16:21:16 | | Wuzzy has joined |
| 16:25:07 | | Little_Apple has joined |
| 16:25:15 | | FoOtloOse has joined |
| 16:25:35 | Little_Apple | hello |
| 16:25:50 | raptor | hi |
| 16:26:11 | Little_Apple | raptor: FoOtloOse would like some assistance with a levelgen. |
| 16:27:01 | raptor | I sadly don't have time at the moment (still at work) |
| 16:27:08 | kaen | I do |
| 16:27:19 | kaen | FoOtloOse, Little_Apple, ^ |
| 16:27:19 | raptor | yay kaen |
| 16:27:25 | Little_Apple | !! |
| 16:28:13 | kaen | so, how can I help? |
| 16:28:26 | Little_Apple | levelgen! |
| 16:28:47 | kaen | hmm. in the imperative case? |
| 16:29:19 | Little_Apple | er... a brownie volcano. |
| 16:29:30 | kaen | yes. |
| 16:29:40 | kaen | one could possibly brownie volcano |
| 16:29:47 | kaen | what are you stuck on? |
| 16:29:53 | Little_Apple | erm.. actually something else.. |
| 16:30:00 | Little_Apple | she needs help with zones i think |
| 16:30:03 | kaen | ok |
| 16:30:10 | Little_Apple | er.. growzones... |
| 16:30:13 | Little_Apple | something. |
| 16:30:16 | kaen | FoOtloOse, can you paste your script on pastie.org |
| 16:30:20 | kaen | and tell what doesn't work? |
| 16:30:28 | kaen | also paste any level code you might have |
| 16:30:31 | FoOtloOse | i didnt start yet. |
| 16:30:33 | kaen | oh |
| 16:30:36 | kaen | hehe |
| 16:30:38 | Little_Apple | c: |
| 16:30:39 | FoOtloOse | :D |
| 16:30:41 | kaen | so you need a tutorial :) |
| 16:30:43 | FoOtloOse | its my homework |
| 16:30:48 | Little_Apple | indeed. |
| 16:30:53 | kaen | homework from bob? |
| 16:30:56 | FoOtloOse | he gave me luadocs geom class thing n goalzone class |
| 16:30:57 | FoOtloOse | yup |
| 16:31:03 | FoOtloOse | i did the other earlier.. |
| 16:31:09 | kaen | brilliant |
| 16:31:34 | kaen | ok. so what are you supposed to make it do? |
| 16:31:44 | FoOtloOse | growing goalzones |
| 16:31:58 | FoOtloOse | i dont even know. |
| 16:32:06 | kaen | do they grow in any specific way? |
| 16:32:17 | FoOtloOse | he said.. |
| 16:32:18 | Little_Apple | basically make a goal bigger using magic i believe |
| 16:32:33 | kaen | just once, or gradually over time? |
| 16:32:41 | FoOtloOse | goalzone that gets bigger when a ship enters it |
| 16:32:48 | kaen | ok |
| 16:33:05 | kaen | do you know how to get the goal zone? |
| 16:33:13 | FoOtloOse | nope. |
| 16:33:30 | FoOtloOse | i have no clue about anything. except circles. <3 |
| 16:33:43 | kaen | you know how to create circles? |
| 16:33:49 | FoOtloOse | YEA. |
| 16:33:50 | FoOtloOse | :D |
| 16:34:09 | kaen | what are the steps? |
| 16:34:30 | FoOtloOse | elseif(name == "bobdaduck") then local newCircle = Circle.new() newCircle:setLoc(ship:getLoc()) levelgen:addItem(newCircle) Timer:scheduleOnce(function() newCircle:removeFromGame() end, 5000) end |
| 16:34:32 | FoOtloOse | :D |
| 16:34:51 | FoOtloOse | http://pastie.org/8216668# |
| 16:34:51 | kaen | can you think of how you'd make it work with goal zones? |
| 16:34:59 | FoOtloOse | i dunnooooooo |
| 16:35:26 | FoOtloOse | do the same thing but replace it with goalzone n change it a bit to make it grow? |
| 16:36:13 | kaen | yes. and do you know about events? |
| 16:36:23 | FoOtloOse | kinda |
| 16:36:31 | kaen | have you seen levelgen:subscribe ? |
| 16:36:47 | FoOtloOse | think so |
| 16:36:56 | FoOtloOse | is that the like |
| 16:37:04 | FoOtloOse | subscribe(Event.ShipEnteredZone) |
| 16:37:04 | FoOtloOse | ? |
| 16:37:08 | kaen | yes. |
| 16:37:10 | Little_Apple | yes! |
| 16:37:12 | FoOtloOse | :D |
| 16:37:22 | kaen | do you know what this means -> "function onShipEnteredZone(ship, zone, zoneType, zoneId)" |
| 16:37:25 | kaen | ? |
| 16:37:36 | FoOtloOse | its the thing |
| 16:37:44 | FoOtloOse | that like |
| 16:37:49 | FoOtloOse | you can put the things in |
| 16:38:13 | kaen | specifically, do you know what `zone` will refer to? |
| 16:38:15 | FoOtloOse | u use it to pick a function to do something? |
| 16:38:23 | FoOtloOse | the place? |
| 16:38:30 | kaen | yes :) |
| 16:38:32 | FoOtloOse | :D |
| 16:38:38 | kaen | so, how would you make the zone bigger? |
| 16:38:58 | FoOtloOse | plastic surgery. |
| 16:39:21 | FoOtloOse | i dunna |
| 16:39:26 | kaen | do you know what a Point is ? |
| 16:39:35 | FoOtloOse | nope |
| 16:39:43 | Little_Apple | they're what you use to win arguments. |
| 16:39:52 | FoOtloOse | i started 6 hours 40min ago. :D |
| 16:39:56 | Little_Apple | badumtsh |
| 16:39:56 | kaen | do you know what a Geometry is (in bitfighter) ? |
| 16:40:01 | FoOtloOse | nope. |
| 16:40:09 | FoOtloOse | this thingy? http://bitfighter.org/luadocs/class_geom.html |
| 16:40:21 | kaen | yes, exactly |
| 16:40:57 | kaen | do you know what it means in regards to zones? |
| 16:41:05 | FoOtloOse | uh |
| 16:41:19 | FoOtloOse | it makes them do awesome stuff? |
| 16:41:49 | kaen | in a sense. |
| 16:42:05 | kaen | I think I'm sensing a gap in bob's instruction here |
| 16:42:14 | FoOtloOse | :D |
| 16:42:27 | kaen | do you know that a Zone has a Geom ? |
| 16:42:34 | FoOtloOse | nope. |
| 16:42:39 | kaen | okay, it does. |
| 16:42:43 | FoOtloOse | mkay |
| 16:42:46 | kaen | can think what that controls? |
| 16:42:52 | FoOtloOse | uh |
| 16:42:55 | kaen | it's related to the homework. |
| 16:43:08 | FoOtloOse | the scaling rotating n all tools? |
| 16:43:14 | kaen | kind of |
| 16:43:18 | kaen | so, in the editor |
| 16:43:18 | Little_Apple | the shaaaaaaaaape |
| 16:43:24 | kaen | right |
| 16:43:25 | kaen | the shape |
| 16:43:31 | kaen | in the editor |
| 16:43:35 | kaen | when you edit a zone |
| 16:43:41 | kaen | it's a list of points connected by lines |
| 16:43:48 | kaen | (in order) |
| 16:44:02 | kaen | you don't really need to care exactly about all of that though |
| 16:44:10 | kaen | so, how would you get a zone's geometry? |
| 16:44:20 | FoOtloOse | by the shape? |
| 16:44:31 | kaen | I mean in lua |
| 16:44:35 | FoOtloOse | the numbers? |
| 16:44:36 | kaen | oops, bob left you high and dry again |
| 16:44:44 | FoOtloOse | or point things? |
| 16:44:55 | kaen | http://bitfighter.org/luadocs/class_bf_object.html#a373785c1ec741fc6f3842a87b3835c81 |
| 16:45:06 | kaen | you would do `zone:getGeom()` |
| 16:45:16 | kaen | so that's how you get a zone's geometry |
| 16:45:23 | kaen | how would you set a zone's geometry? |
| 16:45:59 | FoOtloOse | put numbers in? |
| 16:46:15 | kaen | sure, but there's a method for it |
| 16:46:26 | kaen | it's kind of like getGeom(), and it's listed on that same page |
| 16:46:38 | kaen | (which I linked to above) |
| 16:46:47 | kaen | it's called setGeom() |
| 16:47:00 | FoOtloOse | BfObject::setGeom ( geometry ) ? |
| 16:47:06 | kaen | yes, exactly :) |
| 16:47:12 | kaen | the "geometry" part of that line |
| 16:47:16 | kaen | is telling you what you pass in |
| 16:47:48 | kaen | and you'll also see "geom BfObject::getGeom ( )" |
| 16:47:56 | FoOtloOse | mkay |
| 16:48:02 | kaen | where "geom" means that it's *returning* a geom |
| 16:48:03 | kaen | so |
| 16:48:14 | kaen | you can get the geom, then do something to it, then set the geom |
| 16:48:39 | kaen | so the only thing left, is how to make it bigger. |
| 16:49:10 | Little_Apple | psst |
| 16:49:13 | Little_Apple | kaen: |
| 16:49:20 | Little_Apple | could you simplify a bit more? |
| 16:49:35 | kaen | sure thing |
| 16:49:47 | Little_Apple | thaaaank yoooooooou |
| 16:49:59 | kaen | you don't really need to worry exactly about what a geom is, how it's made up |
| 16:50:32 | kaen | you just need to get the geom, scale it to make it smaller like in the editor, then set the zone's geom again |
| 16:50:37 | kaen | spoiler alert: |
| 16:50:49 | kaen | local geom = zone:getGeom() |
| 16:51:01 | FoOtloOse | k... |
| 16:51:23 | kaen | zone:setGeom(Geom:scale(geom, 2, 2)) |
| 16:51:37 | FoOtloOse | i dont have a goal zone... |
| 16:51:48 | kaen | I think bob left you out on your own too much about all this ... |
| 16:51:54 | kaen | you can just make one :) |
| 16:51:54 | FoOtloOse | :D |
| 16:52:01 | FoOtloOse | WHAT COLOUR. |
| 16:52:25 | kaen | the important thing is that you know how to look things up |
| 16:52:37 | FoOtloOse | ctrl f D: |
| 16:52:39 | FoOtloOse | ::D |
| 16:52:41 | FoOtloOse | :D |
| 16:52:42 | | BFLogBot Commit: 275ebfccf9aa | Author: watusimoto | Message: Convert relative/absolute to new setting schema |
| 16:52:43 | | BFLogBot Commit: d81565fea7ac | Author: watusimoto | Message: Move toString methods to stringUtils; reduce potiential for bugs with creating UIMenu item for control method |
| 16:52:45 | | BFLogBot Commit: 4b6d0d9a6307 | Author: watusimoto | Message: Migrate voiceEcho to new settings system |
| 16:52:46 | Watusimoto | ok gents (and ladies) |
| 16:52:49 | Watusimoto | time to hit the sack |
| 16:52:52 | Watusimoto | good night all! |
| 16:52:53 | FoOtloOse | night |
| 16:52:55 | kaen | night! |
| 16:53:01 | kaen | FoOtloOse, so GoalZone::GoalZone ( polyGeom team ) |
| 16:53:05 | kaen | according to the GoalZone page |
| 16:53:07 | | Watusimoto Quit (Remote host closed the connection) |
| 16:53:10 | kaen | to make a new GoalZone |
| 16:53:13 | FoOtloOse | okaaaaay |
| 16:53:16 | kaen | you just do `GoalZone.new(team)` |
| 16:53:26 | kaen | team can be a number, 1 is a good choice if you don't care |
| 16:53:33 | kaen | team *must* be a number |
| 16:53:40 | FoOtloOse | k |
| 16:53:44 | kaen | then you have to add the GoalZone to the game |
| 16:53:49 | kaen | levelgen:addItem(zone) |
| 16:53:53 | FoOtloOse | am i supposed to be putting this in the levelgen? |
| 16:53:54 | FoOtloOse | :D |
| 16:53:55 | kaen | (you knew these already) |
| 16:54:00 | kaen | uh ... |
| 16:54:03 | kaen | you probably could |
| 16:54:13 | FoOtloOse | where? |
| 16:54:19 | FoOtloOse | SO MANY PLACES. |
| 16:54:30 | kaen | you put startup code in main() |
| 16:54:54 | FoOtloOse | which issssssss? :D |
| 16:55:10 | kaen | function main() --[[ put code here ]]-- end |
| 16:55:25 | FoOtloOse | mkay |
| 16:55:36 | FoOtloOse | what code put? |
| 16:55:55 | kaen | the code to create your goalzone |
| 16:55:59 | kaen | which I described above |
| 16:56:16 | kaen | local zone = GoalZone.new(1) ; levelgen:addItem(zone) |
| 16:56:28 | kaen | don't copy and paste code though :/ |
| 16:56:33 | kaen | you should at least type it in |
| 16:56:46 | FoOtloOse | aw :c |
| 16:57:09 | kaen | then, you want something to happen when "ShipEnteredZone" |
| 16:57:19 | kaen | so you'll put code into: |
| 16:57:20 | FoOtloOse | at the top? |
| 16:57:42 | kaen | function onShipEnteredZone(ship, zone) --[[ code here ]]-- end |
| 16:58:08 | Little_Apple | or you could have a function in there |
| 16:58:33 | Little_Apple | or something.. |
| 16:58:35 | Little_Apple | IGNORE ME |
| 16:58:36 | FoOtloOse | do i make a new shipenteredzone or use the one i have? |
| 16:58:42 | kaen | use the one you have |
| 16:58:49 | FoOtloOse | k |
| 16:58:50 | kaen | you can only have one, in fact (as far as I know) |
| 16:58:54 | FoOtloOse | aw |
| 16:58:56 | kaen | so in that function |
| 16:59:09 | kaen | you'll get the geom, scale it, then set the geom |
| 16:59:27 | FoOtloOse | okaaaaaaaay |
| 16:59:48 | kaen | geom roughly means "shape" as it is represented in level code (either a point, or some lines, or a whole polygon) |
| 17:00:11 | kaen | so |
| 17:00:47 | kaen | zone:setGeom(Geom:scale(zone:getGeom(), 2, 2)) |
| 17:00:51 | kaen | should do it in one line |
| 17:01:11 | FoOtloOse | where in the shipenteredzonething do i put it? |
| 17:01:21 | kaen | just after the "function ... " line |
| 17:01:33 | FoOtloOse | k |
| 17:01:46 | kaen | see, you just started seven hours ago |
| 17:02:00 | kaen | you should actually still be learning to *read* code before he makes you write it on your own :P |
| 17:02:05 | FoOtloOse | aw. |
| 17:02:08 | FoOtloOse | i asked for it :D |
| 17:02:13 | kaen | ok |
| 17:02:32 | kaen | anyway I hope you got something out if it besides answers :) |
| 17:04:14 | kaen | I'll be around if you have questions |
| 17:15:28 | FoOtloOse | tybye la says cheese muffins. personally i like cheesebread. |
| 17:15:29 | | FoOtloOse has left #bitfighter |
| 17:27:14 | | Nothing_Much Quit (Quit: bye) |
| 17:40:24 | raptor | later! |
| 17:40:26 | | raptor Quit () |
| 17:52:12 | | Little_Apple Quit (Quit: Page closed) |
| 18:23:56 | | bobdaduck has joined |
| 18:27:20 | kaen | bobdaduck |
| 18:27:29 | bobdaduck | yes going through the logs now |
| 18:27:32 | kaen | ok |
| 18:30:34 | kaen | I tried socratic questioning at first but she wasn't ready ... |
| 18:32:34 | bobdaduck | She doesn't know what a coordinate plane is |
| 18:33:39 | bobdaduck | finished reading logs |
| 18:33:41 | bobdaduck | ouch |
| 18:34:04 | kaen | too many choices |
| 18:34:08 | kaen | blank paper problem. |
| 18:34:43 | bobdaduck | I wasn't trying to explain it to her, I was just trying to get her to throw some code together in the right way xD |
| 18:35:16 | kaen | yeah |
| 18:35:19 | kaen | hey |
| 18:35:24 | kaen | I'm working on tutorials for 019 |
| 18:35:27 | kaen | want to help? |
| 18:35:44 | bobdaduck | Uh |
| 18:35:52 | bobdaduck | What do I need to do? |
| 18:35:57 | kaen | I dunno yet really |
| 18:36:02 | bobdaduck | Do I need to pull and build 019? |
| 18:36:05 | kaen | nah |
| 18:36:10 | bobdaduck | Or just write down a bunch of things that sound good? xD |
| 18:36:13 | kaen | it's going to go on the wiki |
| 18:36:23 | kaen | mostly just make sure I don't over-complicate things |
| 18:36:44 | | Nothing_Much has joined |
| 18:36:45 | kaen | maybe keep me on course and away from things like anonymous functor generators |
| 18:37:05 | bobdaduck | xD |
| 18:37:11 | kaen | and also generally help write about topics |
| 18:37:16 | kaen | whatever comes up |
| 18:37:18 | bobdaduck | Use brownie-speak |
| 18:37:22 | kaen | I'm shooting for a bitfighter scripting manual |
| 18:37:31 | kaen | eh, I'd rather just use simple english. |
| 18:37:39 | bobdaduck | Brownie speak is simple english. |
| 18:37:39 | bobdaduck | xD |
| 18:37:42 | kaen | ok |
| 18:38:15 | kaen | like, I've got the first three tutorial code written |
| 18:38:44 | kaen | 1. add a textitem 2. change it to say "hello, <playername>" onMsgReceived 3. Make it follow the player |
| 18:39:02 | kaen | so I'm trying to have like a real easy one-at-a-time transition from 0 to basic levelgen knowledge |
| 18:39:17 | bobdaduck | I had footloose start with a globalMsg hello world onshipSpawned |
| 18:39:18 | kaen | and *then* have a layer of task-specific how-to's for intermediate users |
| 18:39:35 | kaen | that's good too |
| 18:39:40 | bobdaduck | And then had her make it so it gives her a random amount of brownies |
| 18:39:41 | kaen | I think tutorial one is four lines ... |
| 18:39:44 | bobdaduck | and if brownies > 7 |
| 18:39:49 | bobdaduck | say specific things. |
| 18:39:50 | bobdaduck | xD |
| 18:39:57 | kaen | see, I' |
| 18:40:01 | kaen | m kind of torn |
| 18:40:06 | kaen | on how much I want to teach lua |
| 18:40:16 | kaen | I was thinking have a chapter 0 as a programming crash course |
| 18:40:26 | bobdaduck | I was actually kind of planning on making a lua tutorial myself soonish |
| 18:40:29 | kaen | with lots of links to the lua wiki to keep us from writing things that already exist |
| 18:40:34 | kaen | ok perfect |
| 18:41:10 | kaen | pretty much you could put variables, functions, and conditionals on a single page |
| 18:41:21 | bobdaduck | I dunno about teaching actual programming |
| 18:41:30 | kaen | exactly my thoughts |
| 18:41:42 | kaen | because _k's tutorial promised that you needed "no programming knowledge" |
| 18:41:51 | kaen | so it was super bloated with lua-specific things |
| 18:42:13 | bobdaduck | Yeah |
| 18:42:23 | bobdaduck | His is just outdated is all |
| 18:42:25 | kaen | whereas if we assume a basic amount of programming knowledge, you can read a short primer and then get up to speed by reading *very* simple examples |
| 18:42:42 | kaen | it's outdated to the point of needing a complete rewrite |
| 18:42:47 | kaen | it's also mixed with API documentation |
| 18:42:48 | bobdaduck | yeah |
| 18:43:15 | kaen | and we have real doxygen docs which I've updated (up through the letter G) |
| 18:43:51 | kaen | so we could write super short tutorials compared to what exists |
| 18:44:02 | kaen | and just use lots of API doc links and lua wiki links |
| 18:44:11 | kaen | teach a man to fish, etc. |
| 18:45:12 | kaen | I've already started moving the old psuedo-tutorials from the docs to the wiki |
| 18:45:16 | kaen | I'll finish that up tonight |
| 18:45:26 | kaen | and post what I have for tutorial stuff |
| 19:22:33 | bobdaduck | I think I may be teaching footloose to name all her variables penguin |
| 19:22:42 | bobdaduck | but I also think she understands it better that way |
| 19:29:46 | bobdaduck | "alright, so we're going to give penguin this bunch of numbers to hold." |
| 19:29:55 | bobdaduck | "later we'll ask for them back" |
| 19:37:27 | | raptor has joined |
| 19:37:27 | | ChanServ sets mode +o |
| 19:37:32 | raptor | good morning! |
| 19:38:13 | kaen | wait what? |
| 19:38:24 | bobdaduck | penguins. |
| 19:38:33 | kaen | penguins can't hold things |
| 19:38:37 | bobdaduck | LOOK |
| 19:38:41 | bobdaduck | SHE UNDERSTANDS IT BETTER, K? |
| 19:38:49 | kaen | they lack opposing digits |
| 19:38:59 | kaen | :) |
| 19:39:14 | kaen | in other news, I recently explored vim's selection mode |
| 19:39:44 | kaen | I can select paragraphs, the insides of quotes, brackets, and parenthesis with like four keystrokes |
| 19:39:53 | kaen | three |
| 19:40:14 | kaen | vap, va", va(, etc. |
| 19:41:09 | kaen | now I'm trying to decided whether I spent more time reading about selection modes in vim than I would have spent selecting things using a mouse ... |
| 19:41:50 | raptor | haha |
| 19:43:06 | raptor | bobdaduck: i'm breaking loadouts |
| 19:43:18 | bobdaduck | cool |
| 19:43:26 | kaen | also, removing onTick |
| 19:43:27 | raptor | so i hope you didn't use them much.. |
| 19:43:30 | bobdaduck | rofl |
| 19:43:33 | raptor | wait what?? |
| 19:43:37 | bobdaduck | xDD |
| 19:43:37 | kaen | jp :) |
| 19:43:43 | raptor | ha ok |
| 19:43:53 | raptor | why i oughta... |
| 19:43:57 | kaen | hehe |
| 19:49:25 | bobdaduck | *adds deployable walls to DnD* |
| 19:49:37 | raptor | what |
| 19:49:43 | raptor | you can do that? |
| 19:49:49 | bobdaduck | uh |
| 19:49:53 | raptor | you can't do that.. |
| 19:49:56 | raptor | can you? |
| 19:50:29 | bobdaduck | uhhhh |
| 19:52:59 | bobdaduck | yes. |
| 19:53:01 | bobdaduck | Technically. |
| 19:53:26 | kaen | they just don't show up client-side? |
| 19:53:40 | bobdaduck | yeah |
| 19:55:19 | bobdaduck | you um |
| 19:55:22 | bobdaduck | can't remove them though. |
| 19:56:13 | kaen | so, raptor, I've got a lot of this going on: |
| 19:56:14 | kaen | * @brief Get the highest score among all teams. |
| 19:56:14 | kaen | * @return The highest score among all teams. |
| 19:56:43 | kaen | following suit from the docs that already exist which already did this ridiculous duplication |
| 19:56:56 | kaen | if I omit @brief, it gets no description in the method list |
| 19:57:14 | kaen | if I omit @return there's no big bold "Return" section in the long description |
| 19:57:30 | kaen | if I keep putting both I will die from the pain of guilt. |
| 19:57:51 | kaen | think I can drop @brief? |
| 19:57:58 | kaen | for simple getters, I mean |
| 19:58:48 | raptor | hmmm |
| 19:59:01 | raptor | well, I honestly don't know doc conventions.. |
| 19:59:39 | kaen | I'm usually pretty familiar with them, but this case has always been a gray area for me |
| 20:00:03 | raptor | maybe @return is just the return value: @return int score |
| 20:00:08 | raptor | or soemthing... |
| 20:00:24 | kaen | still seems redundant |
| 20:00:30 | kaen | also don't doc return types there |
| 20:00:35 | kaen | use the sig |
| 20:01:16 | kaen | I'm going to drop @return, I think |
| 20:01:22 | kaen | no |
| 20:01:23 | kaen | yes |
| 20:01:24 | kaen | no. |
| 20:01:24 | raptor | hmmm |
| 20:01:27 | kaen | I have no idea. |
| 20:01:32 | raptor | let's look at javadocs! |
| 20:02:16 | raptor | example: http://www.docjar.com/html/api/java/util/HashMap.java.html |
| 20:03:11 | raptor | ok, that's just as bad as what we do! |
| 20:03:22 | raptor | look at 'public V put' |
| 20:03:56 | raptor | maybe only use @return when needed for complex return issues |
| 20:04:11 | raptor | like @return this can return nil and eat puppies! |
| 20:04:36 | kaen | I think so |
| 20:04:45 | kaen | I had a hunch we'd been abusing @return |
| 20:05:01 | raptor | yeah, looks like we are.. |
| 20:05:58 | raptor | well, actually |
| 20:06:09 | raptor | that java doc uses @return for anything that has a return |
| 20:08:11 | kaen | here's maybe a closer relative to lua (JS) from the YUI library |
| 20:08:29 | kaen | https://github.com/yui/yui3/blob/master/src/base/js/BaseCore.js |
| 20:08:39 | kaen | it's using yui-doc which has a doxygen like syntax |
| 20:09:10 | kaen | and again, appears to use @return for anything that explicitly returns a value |
| 20:09:33 | kaen | wow. they even doc'd their private methods |
| 20:09:57 | kaen | that's a massive pain in yui-doc because there's no auto-detection of anything |
| 20:10:27 | kaen | you have to literally declare every class, method, and parameter in the doc |
| 20:10:29 | kaen | anyway |
| 20:10:35 | kaen | @return is conventional |
| 20:10:54 | raptor | ok, yeah, we should keep the @return |
| 20:13:38 | kaen | I think I figured out the problem |
| 20:13:45 | kaen | I should be more thorough in the @return |
| 20:14:08 | kaen | specifically, I should describe the map from all possible input to all possible output |
| 20:14:28 | raptor | what method is this? |
| 20:14:53 | kaen | most of LuaGameInfo |
| 20:15:02 | raptor | ah |
| 20:15:05 | raptor | that monster |
| 20:15:15 | kaen | I've got the first pass done |
| 20:15:21 | kaen | then I got all philosophical |
| 20:15:25 | raptor | heh |
| 20:15:51 | | Nothing_Much Quit (Quit: bye) |
| 20:21:08 | kaen | any idea what Burst::getWeapon() is for? |
| 20:21:41 | bobdaduck | rofl |
| 20:21:46 | kaen | oh, to make it compatible with Projectile:getWeapon() |
| 20:21:51 | bobdaduck | I imagine its to check what weapon the burst is using |
| 20:22:17 | kaen | it's so that when you get a bag of projectiles, you don't crash when you pull out a Burst |
| 20:22:55 | kaen | on to GoalZone! |
| 20:23:58 | raptor | uhh |
| 20:29:54 | kaen | fascinating |
| 20:30:08 | kaen | WallItem, LineItem, and TextItem, all do not inherit from the Item class |
| 20:30:41 | kaen | yet CoreItem, EngineeredItem, PickupItem do |
| 20:31:20 | raptor | hmmm |
| 20:31:56 | raptor | http://bitfighter.org/~raptor/doxygen/current/class_zap_1_1_item.html |
| 20:32:33 | raptor | and even weirder: http://bitfighter.org/~raptor/doxygen/current/class_zap_1_1_bf_object.html |
| 20:41:11 | | bobdaduck Quit (Ping timeout: 240 seconds) |
| 20:57:06 | raptor | kaen: have you ever seen C syntax like this?: http://pastie.org/pastes/8217255/text |
| 20:58:15 | raptor | oh wait, it's obj-c |
| 20:58:18 | raptor | yuk |
| 20:59:43 | | bobdaduck has joined |
| 21:04:28 | | Flynnn has joined |
| 21:07:34 | kaen | whoa is that the syntax for a lambda function!? |
| 21:08:03 | kaen | oh no, it's a block |
| 21:08:07 | kaen | I don't even |
| 21:08:52 | raptor | sigh |
| 21:09:03 | raptor | yeah, introduced in 10.6 |
| 21:09:20 | raptor | i just sent an e-mail informing the SDL list that someone broke OSX 10.5 again... |
| 21:09:35 | kaen | hehe |
| 21:10:03 | kaen | I'm still puzzled that you can pass around blocks |
| 21:11:01 | raptor | found this article on it (for osx 10.6): http://arstechnica.com/apple/2009/08/mac-os-x-10-6/10/ |
| 21:12:00 | raptor | sadly osx 10.4 support was dropped last week from SDL - but I've been secretly maintaining a diff to still support it :) |
| 21:12:03 | kaen | somehow I knew I would read the word "closure" |
| 21:12:10 | | bobdaduck Quit (Remote host closed the connection) |
| 21:12:16 | kaen | hehe crafty |
| 21:13:18 | raptor | i'm almost thinking 10.4 support might need to be dropped after 019... |
| 21:13:46 | kaen | egads! 23 pages of 10.6 review |
| 21:13:55 | raptor | yeah... |
| 21:14:04 | kaen | I'm thinking you're correct |
| 21:14:06 | raptor | and i still hate it (but it looks pretty) |
| 21:14:17 | kaen | if we're planning on going the SDL2 route anyway |
| 21:14:26 | raptor | well, osx already uses sdl2 |
| 21:14:55 | kaen | oh that's right |
| 21:15:21 | raptor | i don't know what that committer was thinking - the compile errors are in brand new classes taht add to the API |
| 21:15:25 | raptor | and it's in RC4! |
| 21:15:34 | kaen | bah |
| 21:15:40 | kaen | that's just irresponsible |
| 21:17:00 | kaen | but if SDL2 has officially dropped support for 10.4 then I think that means we have, too (unless we use a different RC?) |
| 21:17:15 | raptor | yeah |
| 21:17:22 | raptor | 018a uses some really pre-version |
| 21:17:30 | raptor | some random revision i chose that didn't crash too badly |
| 21:17:36 | kaen | heh |
| 21:17:42 | raptor | but I've since updated our lib to RC2 or something |
| 21:17:48 | raptor | which should still be fine |
| 21:21:58 | kaen | http://arstechnica.com/information-technology/2013/08/os-x-apps-run-on-linux-with-wine-like-emulator-for-mac-software/ |
| 21:22:20 | raptor | whoa |
| 21:22:21 | kaen | just posted yesterday, in fact |
| 21:22:25 | raptor | where did that come from!? |
| 21:24:51 | raptor | oh interesting - i didn't really know about GNUStep |
| 21:26:08 | kaen | me either |
| 21:26:21 | kaen | very interesting project |
| 21:27:05 | kaen | one year in and he's already running gui apps? that's pretty good |
| 21:28:49 | kaen | bet he's getting a lot of emails today :) |
| 21:29:01 | kaen | maybe we can get bitfighter into ars ... |
| 21:29:10 | raptor | ha! |
| 21:55:44 | kaen | how would you feel about 80-character wrapping the luadocs comments? |
| 21:55:57 | raptor | sounds good to me |
| 21:55:59 | kaen | I can do it in vim with vpgq |
| 21:56:04 | raptor | ha |
| 21:56:24 | kaen | and then I'll just add a blank line between directives so it's easy to tell where they end |
| 21:58:13 | kaen | ohhhh yeahh. |
| 21:58:16 | kaen | that looks a ton better |
| 21:58:28 | kaen | on our way to a beautiful code base |
| 21:58:42 | raptor | watusimoto may protest... |
| 21:58:49 | raptor | he loves his wide screen |
| 21:58:58 | kaen | I feared so ... |
| 21:59:18 | kaen | we need to get him into side-by-side editing |
| 21:59:32 | kaen | that's the *true* beauty of a wide screen |
| 21:59:38 | raptor | heh |
| 21:59:38 | kaen | and the reason I still edit cpp with vim |
| 21:59:53 | kaen | I can have four files usefully open on the screen at once |
| 22:00:35 | kaen | but I'm on a 16:9 |
| 22:00:45 | kaen | or something |
| 22:16:20 | raptor | honestly I love lots and lots of vertical space and I am a bit saddened at the loss of 4:3 for coding's sake |
| 22:26:13 | kaen | S32 Item::lua_isInCaptureZone(lua_State *L) { return returnBool(L, false); } |
| 22:26:18 | kaen | should I even document this? |
| 22:26:29 | raptor | ha ha ha |
| 22:26:36 | raptor | no |
| 22:26:40 | kaen | ok |
| 22:26:56 | kaen | it will actually show in the docs just from being in the method table |
| 22:27:00 | raptor | that's an issue that is now obsolete since we've moved to object type numbers |
| 22:27:11 | raptor | that should probably be adjusted in the c++... |
| 22:28:23 | kaen | ok |
| 22:42:05 | raptor | oh man |
| 22:42:08 | raptor | i just realized |
| 22:42:39 | kaen | hm? |
| 22:42:59 | raptor | if we just return a loadout as a table |
| 22:43:15 | raptor | then why do we need all the methods on the Loadout object now? |
| 22:43:24 | kaen | I literally switched to this window to ask that |
| 22:43:32 | kaen | I just hit loadouttracker.cpp |
| 22:43:36 | raptor | ha! |
| 22:43:42 | raptor | ok, let's make the right decision here |
| 22:44:08 | raptor | do we want/need any of the methods? |
| 22:45:16 | kaen | I have no idea ... |
| 22:45:30 | kaen | equals and isValid seem potentially useful |
| 22:45:35 | raptor | ok, we don't need getWeapon and getModule |
| 22:45:54 | kaen | so, scripters *never* need to handle a LoadoutObject? |
| 22:45:54 | raptor | and I replace setWeapon and setModule with ship:setLoadoutWeapon/Module |
| 22:46:09 | kaen | er, Loadout object |
| 22:46:12 | raptor | so that leaves equals and isValid |
| 22:46:17 | raptor | well, they used to |
| 22:46:23 | kaen | now they don't? |
| 22:46:31 | raptor | that's what we seem to be doing |
| 22:46:37 | kaen | ok |
| 22:46:41 | raptor | is that good? |
| 22:46:59 | kaen | the only thing we'd potentially be sacrificing is isValid |
| 22:47:05 | raptor | for a scripter, would that be nicer? |
| 22:47:44 | kaen | I think you'd either be specifying loadouts literally, or copying them from another player |
| 22:47:48 | raptor | except *no* scripts use isValid or equals (that I know of) |
| 22:48:00 | kaen | so I can't imagine actually using isValid |
| 22:48:32 | kaen | and if you're constructing/applying loadouts of unknown validity, you can probably write your own isvalid |
| 22:48:46 | kaen | since you're just counting numbers above and below zero |
| 22:49:01 | raptor | yes... |
| 22:49:19 | kaen | "you can write your own" feels like a cop-out |
| 22:49:35 | kaen | but it's factually accurate |
| 22:49:46 | kaen | anyway, I say we're safe to just drop it from the API |
| 22:49:51 | raptor | ok |
| 22:49:54 | kaen | I'll skip it for now until we hear from wat |
| 22:50:01 | raptor | ok |
| 22:50:08 | raptor | it's looking like dropping it would be good... |
| 22:50:27 | raptor | but yes, I think it'd be good to get his input |
| 23:02:23 | | Wuzzy2 has joined |
| 23:02:42 | kaen | I do not understand why there is a PlayerInfo and LuaPlayerInfo |
| 23:03:05 | raptor | thinking... |
| 23:03:12 | kaen | all of LuaPlayerInfo's methods a asserted false and "not implemented" |
| 23:03:19 | kaen | but they are all implemented on PlayerInfo |
| 23:03:30 | raptor | and RobotPlayerInfo |
| 23:03:43 | kaen | oh ok |
| 23:03:53 | raptor | so depending on if the owning ClientInfo class is a player or a robot, that returns different stuff.. |
| 23:04:21 | kaen | and LuaPlayerInfo is the abstract interface |
| 23:04:34 | raptor | yes |
| 23:04:49 | kaen | cool. sounds easy enough |
| 23:05:38 | | Wuzzy Quit (Ping timeout: 264 seconds) |
| 23:06:09 | | Wuzzy2 Quit (Client Quit) |
| 23:06:13 | raptor | back in a bit.. |
| 23:11:21 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 23:16:46 | | Flynnn has joined |