Timestamps are in GMT/BST.
| 00:12:21 | | Watusimoto has joined |
| 02:22:49 | | Watusimoto_ has joined |
| 02:25:18 | | Watusimoto Quit (Ping timeout: 258 seconds) |
| 02:39:19 | | Watusimoto_ Quit (Ping timeout: 244 seconds) |
| 02:57:39 | | Darrel Quit (Read error: Connection reset by peer) |
| 02:57:55 | | Darrel has joined |
| 07:36:18 | | LordDVG has joined |
| 08:06:44 | | Darrel Quit (Read error: Connection reset by peer) |
| 09:15:28 | | Watusimoto has joined |
| 09:15:57 | | LordDVG Quit (Ping timeout: 264 seconds) |
| 09:39:37 | | Watusimoto Quit (Remote host closed the connection) |
| 10:01:13 | | raptor has joined |
| 10:01:13 | | ChanServ sets mode +o |
| 10:51:54 | | -tomaw- :[Global Notice] Hi all! We'll shortly be upgrading our services version so there'll be a short period of time where NickServ, ChanServ etc will be unavailable. |
| 10:55:14 | | ChanServ Quit (shutting down) |
| 11:11:01 | | LordDVG has joined |
| 11:24:48 | | ChanServ has joined |
| 11:24:48 | | orwell.freenode.net sets mode +o |
| 11:32:11 | | -tomaw- :[Global Notice] NickServ, ChanServ and co are back online now. You can read about some of the new features on our blog: http://blog.freenode.net/2014/11/atheme-7-2-and-freenode/ |
| 12:58:15 | | LordDVG Quit (Remote host closed the connection) |
| 13:10:10 | | Watusimoto has joined |
| 13:14:43 | raptor | sam686: do you happen to have those old forum attachments laying around somewhere still? The ones you had a backup copy of that let us restore some from the latest server loss |
| 13:15:01 | raptor | maybe they're on the bitfighter server, but i can't find them |
| 14:20:33 | | LordDVG has joined |
| 14:25:03 | | Watusimoto Quit (Remote host closed the connection) |
| 15:32:42 | | fordcars has joined |
| 15:47:23 | raptor | I'm not sure I know what I'm doing with the pleiades codebase... |
| 15:55:45 | | LordDVG Quit (Quit: Leaving) |
| 15:57:06 | | LordDVG has joined |
| 16:01:22 | | fordcars Quit (Quit: Page closed) |
| 16:58:43 | | Darrel has joined |
| 17:24:33 | | LordDVG Quit (Remote host closed the connection) |
| 17:59:00 | | Darrel Quit (Ping timeout: 244 seconds) |
| 17:59:34 | | Darrel has joined |
| 18:07:25 | | ChanServ Quit (*.net *.split) |
| 18:10:30 | | ChanServ has joined |
| 18:10:30 | | orwell.freenode.net sets mode +o |
| 18:24:18 | | ChanServ Quit (*.net *.split) |
| 18:28:46 | | ChanServ has joined |
| 18:28:46 | | orwell.freenode.net sets mode +o |
| 18:31:45 | | ChanServ Quit (*.net *.split) |
| 18:32:34 | | amgine123 has joined |
| 18:34:56 | | Xavi92 has joined |
| 18:36:35 | | ChanServ has joined |
| 18:36:36 | | orwell.freenode.net sets mode +o |
| 19:16:24 | | kumul has joined |
| 19:30:32 | | Xavi92 Quit (Remote host closed the connection) |
| 20:13:28 | | Watusimoto has joined |
| 20:28:56 | | Watusimoto Quit (Read error: Connection reset by peer) |
| 20:35:02 | | Watusimoto has joined |
| 20:39:20 | raptor | DISASTER |
| 20:52:03 | | Watusimoto Quit (Ping timeout: 250 seconds) |
| 21:18:00 | amgine123 | >.> |
| 22:32:28 | | Watusimoto has joined |
| 22:35:25 | Watusimoto | hi |
| 22:38:43 | raptor | hi |
| 22:39:46 | Watusimoto | I found a crash in the editor I don't know how to fix (yet) |
| 22:40:10 | Watusimoto | inside idEntryCallback(), we do this: |
| 22:40:10 | Watusimoto | ClientGame *clientGame = static_cast<ClientGame *>(object->getGame()); |
| 22:40:11 | Watusimoto | UIManager *uiManager = clientGame->getUIManager(); |
| 22:40:23 | Watusimoto | but objects don't really belong to a game in the editor any more |
| 22:40:39 | Watusimoto | so I need to figure out a static method to get the UI manager |
| 22:41:48 | raptor | Settings.get()-> |
| 22:42:05 | Watusimoto | btw, I think my brain is broken, at least as far as Lua is concerned |
| 22:42:11 | raptor | oh goodie! |
| 22:42:18 | raptor | my turn then? :) |
| 22:42:32 | Watusimoto | yes |
| 22:42:34 | Watusimoto | I think so |
| 22:42:44 | Watusimoto | I left the function with my latest attempt commented out |
| 22:42:54 | Watusimoto | look in my last night's checkin |
| 22:43:03 | Watusimoto | I updated all the comments, documentation, and tests |
| 22:43:08 | raptor | I wasn't sure where you were, but I was going to try and test C API clearing of a table, then try calling our table.clear() Lua method from the C API. then comparing |
| 22:43:22 | raptor | there was a checkin? |
| 22:43:34 | Watusimoto | I spent like 2 hours trying to make it work; I couldn;t make either of those approaches work |
| 22:43:37 | Watusimoto | let me see |
| 22:43:55 | raptor | doesn't look like you pushed anything |
| 22:44:03 | | BFLogBot Commit: 2acdbc1ee7 | Author: watusimoto | Message: Update with placeholder for lua_clearTable(), which still needs to be written; tests should pass when that function works |
| 22:44:10 | raptor | and are you working on 020 or 019 branch? |
| 22:44:11 | Watusimoto | I think I did :-) |
| 22:44:12 | raptor | ah ha |
| 22:44:14 | raptor | heh |
| 22:44:16 | raptor | thanks |
| 22:44:40 | Watusimoto | I hope this is the 020 branch... |
| 22:45:39 | raptor | yes |
| 22:45:41 | raptor | good |
| 22:45:58 | Watusimoto | I'm thinking about adding a static method to get the editorUI |
| 22:46:13 | raptor | i thought you could already get any UI statically |
| 22:46:18 | Watusimoto | I can imagine having two gameUIs going at once, but not two editorUIs |
| 22:46:32 | Watusimoto | i don't think so |
| 22:46:47 | Watusimoto | because we've always imagined having multiple game clients running at once |
| 22:46:54 | Watusimoto | so there would be multiple gameUIs |
| 22:47:03 | raptor | why would you need a static call again? |
| 22:47:17 | Watusimoto | idEntryCallback() is a static method |
| 22:47:20 | raptor | ahhh |
| 22:47:24 | raptor | so make it not static |
| 22:47:35 | Watusimoto | it references the code above only on its way to getting the editorUI |
| 22:47:46 | Watusimoto | can you pass a non-static method as a callback? |
| 22:47:56 | Watusimoto | I think you can, but I remember it causing heaps o' trouble |
| 22:47:57 | raptor | not really sure, honestly - it was a wild guess |
| 22:54:10 | Watusimoto | we only use this callback in two places... maybe I could pass a UI along with the other stuff |
| 22:54:24 | Watusimoto | though that seems kind of icky |
| 22:55:23 | raptor | the more I read about 'static' in c++, the more I find it icky... |
| 22:55:37 | Watusimoto | this is crazy |
| 22:56:21 | Watusimoto | we use an object to get a client game, to get a ui manager, to get the editor UI, to do a search for objects to make sure there are no duplicate ids |
| 22:56:33 | raptor | ah yes... i think callbacks need to be static functions |
| 22:56:41 | raptor | because otherwise you need to pass an object |
| 23:00:26 | raptor | i'd say pass in a pointer |
| 23:00:36 | raptor | we pass in ClientGame* to a lot of callbacks |
| 23:01:46 | amgine123 | if yu ever need testing call me! |
| 23:42:32 | raptor | lua stack for dummies |
| 23:48:23 | raptor | Watusimoto: i'm not sure I can use the C API to clear the table and to leave it on the stack... |
| 23:48:44 | Watusimoto | no? |
| 23:48:52 | raptor | calling a method with an element on the stack pops that element from the stack |
| 23:49:06 | Watusimoto | you mean calling a lua function? |
| 23:49:12 | raptor | yes |
| 23:49:23 | raptor | so calling table.clear(filltable) |
| 23:49:28 | Watusimoto | true; I figured the function you'd call would push the table back on the stack |
| 23:49:33 | raptor | would pop filltable from the stack |
| 23:49:39 | Watusimoto | you can see what I was trying to do |
| 23:49:42 | raptor | oh so it would return the table again |
| 23:49:45 | Watusimoto | and that was my solution |
| 23:49:51 | raptor | hmmm |
| 23:50:00 | Watusimoto | because you are right |
| 23:50:28 | Watusimoto | I figure a push is cheap |
| 23:50:38 | raptor | yeah, compared to a copy |
| 23:50:42 | raptor | ok... i have an idea |
| 23:50:49 | raptor | let me see if this works.. |
| 23:50:52 | Watusimoto | but I couldn't figure out how to do an anonymous function that did clear then push |
| 23:51:21 | raptor | i just added 'return tab' to our table.clear() method |
| 23:56:03 | Watusimoto | ha, ok |
| 23:56:08 | Watusimoto | is that weird? |
| 23:56:23 | raptor | it seems really weird but the more i think about it.. it is elegant |
| 23:58:06 | Watusimoto | it allows you to make sure the table is really clear |
| 23:58:21 | Watusimoto | table.clear().clear().clear().clear() |
| 23:58:41 | Watusimoto | oh wait, I blew that one |
| 23:58:46 | raptor | hahaha |
| 23:58:56 | Watusimoto | table.clear(table.clear(table.clear(filltable)))) |
| 23:59:01 | raptor | ok, tell me if looks off before I run it: http://pastie.org/pastes/9779395/text |
| 23:59:08 | raptor | *if this |
| 23:59:33 | Watusimoto | that made my brain melt |
| 23:59:39 | Watusimoto | I have a lua allergy, I think |
| 23:59:43 | raptor | ok, i'll just run it :) |
| 23:59:50 | Watusimoto | run the tests... you'll find out! |