Timestamps are in GMT/BST.
| 00:26:59 | | BFLogBot Commit: f125ac19868b | Author: buckyballreaction | Message: Add CMake support to generate Visual Studio project files. Generated files compile and link |
| 00:28:43 | raptor | that was insane |
| 02:45:24 | | BFLogBot Commit: 80012f2cbd1c | Author: buckyballreaction | Message: Use Clipper's hierarchical PolyTree structures to maximize speed with poly2tri. This is about as fast as we can go with poly2tri and its limitation on non-complex polygons. We are now (slightly) faster than Triangle at triangulating levels in all cases I've tested |
| 02:53:26 | | raptor Quit () |
| 02:58:43 | | Watusimoto has joined |
| 03:28:46 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 03:29:11 | | Flynnn has joined |
| 03:57:05 | | Flynnn Quit (Quit: Leaving) |
| 04:03:17 | Watusimoto | kaen: assuming you are not around... if I'm wrong, please ping e |
| 04:03:18 | Watusimoto | me |
| 04:10:03 | | koda has joined |
| 04:37:32 | | Watusimoto Quit (Ping timeout: 268 seconds) |
| 04:41:24 | | LordDVG has joined |
| 05:24:10 | | Watusimoto has joined |
| 05:30:50 | | LordDVG Quit (Remote host closed the connection) |
| 07:00:55 | | koda Quit (Quit: koda) |
| 07:03:51 | kaen | Watusimoto, just woke up |
| 07:03:59 | Watusimoto | good morning! |
| 07:04:03 | kaen | morning! |
| 07:04:10 | Watusimoto | happy May Day! |
| 07:04:20 | kaen | same to you :) |
| 07:04:49 | Watusimoto | I am trying to get a 018a server up for testing and configuation purposes for the BBB, and for some reason cmake is failing |
| 07:05:05 | Watusimoto | I've documented my steps very carefully here: |
| 07:05:13 | Watusimoto | http://bitfighter.org/wiki/index.php/Building_Bitfighter#Linux |
| 07:05:23 | Watusimoto | under the Building a dedicated server on a typical clean Centos 5 or 6 virtual server instance section |
| 07:05:35 | Watusimoto | I started with a post-nuked clean server |
| 07:05:56 | Watusimoto | the two patches referenced are the two that were on sam's server |
| 07:06:10 | Watusimoto | it breaks at the cmake .. step |
| 07:06:44 | kaen | those patches look right, can you paste the cmake output? |
| 07:07:07 | Watusimoto | here: |
| 07:07:07 | Watusimoto | http://pastebin.com/SKvNnJsY |
| 07:07:22 | Watusimoto | the patches applied cleanly |
| 07:07:49 | Watusimoto | the Makefile is not being built |
| 07:08:12 | Watusimoto | but when I tried these same steps last night, it worked great |
| 07:08:21 | kaen | very strange indeed |
| 07:08:48 | Watusimoto | yes |
| 07:09:26 | kaen | can you check that ./cmake/Modules is empty? |
| 07:09:32 | Watusimoto | I would be willing to do it all again if you are completely stuck |
| 07:09:34 | Watusimoto | ok |
| 07:09:48 | Watusimoto | which folder is '.'? |
| 07:09:53 | Watusimoto | build? |
| 07:09:58 | kaen | the source root |
| 07:10:00 | kaen | bitfighter |
| 07:10:41 | Watusimoto | ls cmake/Modules |
| 07:10:41 | Watusimoto | FindMySQL.cmake FindZLIB.cmake |
| 07:10:48 | kaen | ok |
| 07:11:13 | kaen | try: rm ./cmake/Modules/FindZLIB.cmake |
| 07:11:26 | kaen | and then run cmake again |
| 07:11:51 | Watusimoto | [bitfighter@foo bitfighter]$ rm cmake/Modules/FindZLIB.cmake |
| 07:11:51 | Watusimoto | [bitfighter@foo bitfighter]$ cd build |
| 07:11:51 | Watusimoto | [bitfighter@foo build]$ cmake .. |
| 07:11:51 | Watusimoto | -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) |
| 07:11:51 | Watusimoto | -- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) |
| 07:11:51 | Watusimoto | -- Configuring done |
| 07:11:53 | Watusimoto | -- Generating done |
| 07:11:56 | Watusimoto | -- Build files have been written to: /home/bitfighter/bitfighter/build |
| 07:11:58 | Watusimoto | [bitfighter@foo build]$ |
| 07:12:12 | kaen | time to make :) |
| 07:12:18 | Watusimoto | :-) |
| 07:12:50 | kaen | yeah... I added cmake find modules from my ubuntu system into the tarball because I thought they weren't a standard part of cmake |
| 07:13:12 | kaen | and so in order to build 018a on anything other than (basically) my laptop, you have to clean the cmake/Modules directory |
| 07:13:24 | Watusimoto | oh wait... the makefile is built! |
| 07:13:35 | Watusimoto | I didn't get that when you mentioned that above |
| 07:13:40 | kaen | hehe |
| 07:14:24 | Watusimoto | you think I should add that rm step to the instructions? |
| 07:14:55 | Watusimoto | they're going to need to be rewritten for 019 anyway |
| 07:15:09 | Watusimoto | (making) |
| 07:16:00 | kaen | most definitely |
| 07:16:03 | Watusimoto | built! |
| 07:16:07 | kaen | \o/ |
| 07:18:08 | Watusimoto | ok, great, thanks! |
| 07:20:15 | Watusimoto | 185 ms lag from here |
| 07:22:03 | kaen | I don't see it |
| 07:30:41 | Watusimoto | who will be configuring the server? |
| 08:08:09 | | raptor has joined |
| 08:08:09 | | ChanServ sets mode +o raptor |
| 08:08:25 | raptor | good day! |
| 08:09:04 | raptor | Watusimoto: I'll be configuring the server |
| 08:09:16 | Watusimoto | lucky you! |
| 08:09:20 | raptor | I have some patches that I wish to apply and I'll be gathering the levels... |
| 08:09:53 | Watusimoto | I wrote up complete instructions including some security hints on how to install 018a on centos |
| 08:10:10 | Watusimoto | ways to make it easy to avoid chown -R bitfighter * |
| 08:10:13 | Watusimoto | :-) |
| 08:10:37 | raptor | hah! |
| 08:11:08 | Watusimoto | http://0bin.net/paste/93af0628952d724ba6a4b9447ecfb1e04ae34664#VaTOH/ZxME5FeUmujYfWIRwgJmH4rARY/lwKl/z8SMU= |
| 08:11:16 | Watusimoto | please confrim receipt |
| 08:11:21 | raptor | received |
| 08:11:33 | Watusimoto | that's the pw for the bitfighter account |
| 08:11:36 | Watusimoto | on the server |
| 08:11:36 | raptor | for access to said server? |
| 08:11:39 | raptor | ok |
| 08:11:39 | Watusimoto | yes |
| 08:12:00 | Watusimoto | 173.254.233.155 |
| 08:12:03 | Watusimoto | that's the ip |
| 08:12:16 | Watusimoto | so that account has no special privs, no root access |
| 08:12:22 | raptor | perfect! |
| 08:12:30 | Watusimoto | if you need anything I can either create you a prived account, or install whatever myself |
| 08:12:51 | raptor | I'm in! |
| 08:12:58 | Watusimoto | right now the server is running under screen |
| 08:13:08 | Watusimoto | you know how to work that, right? |
| 08:13:20 | raptor | yes-ish, but I prefer kaen-loop |
| 08:13:24 | raptor | :) |
| 08:13:26 | Watusimoto | whatever you like |
| 08:13:53 | raptor | server seems good so far? |
| 08:13:56 | Watusimoto | I found this for running my son's minecraft server. Was thinking about converting it to a bitfighter service |
| 08:14:21 | Watusimoto | oops where idd that go? |
| 08:14:24 | raptor | so much RAM without a web server! |
| 08:14:37 | Watusimoto | http://forums.bukkit.org/threads/tutorial-centos-bukkit-installation.56371/ |
| 08:14:40 | Watusimoto | under step 6 |
| 08:14:46 | Watusimoto | that machine has 1GB ram |
| 08:14:53 | Watusimoto | so would have a lot even with a web server |
| 08:14:55 | raptor | oh yeah, an init script |
| 08:15:03 | raptor | I've written those before |
| 08:15:04 | Watusimoto | it |
| 08:15:10 | Watusimoto | it's rather nice ... |
| 08:15:15 | raptor | yes |
| 08:15:18 | Watusimoto | service minecraft start |
| 08:15:23 | Watusimoto | even my son can do that! |
| 08:15:28 | Watusimoto | service bitfighter start |
| 08:15:44 | raptor | we could create a config file in /etc/ and have it point to a levels dir |
| 08:15:49 | raptor | and INI, etc |
| 08:16:08 | Watusimoto | that's an idea |
| 08:16:24 | Watusimoto | anyway, it would save users from having to dink around with screen or whatever |
| 08:16:54 | Watusimoto | and screen becomes slighly painful if you are su-ing to other users |
| 08:17:11 | Watusimoto | you have to change permissions on the pts file somewhere |
| 08:18:42 | Watusimoto | alright... I'm getting the boot from this computer |
| 08:18:51 | raptor | ok |
| 08:18:52 | Watusimoto | it is, apparently, time to play minecraft |
| 08:18:57 | raptor | hah |
| 08:19:34 | Watusimoto | they say they don't want the server today, but there is the possibility I'll need to temporarily convert it to a minecraft server |
| 08:19:45 | raptor | ok |
| 08:19:58 | Watusimoto | but I'll let you know if we do that |
| 08:21:32 | Watusimoto | Happy May Day, btw |
| 08:22:18 | raptor | oh it's May! |
| 08:22:20 | raptor | wow |
| 08:46:25 | | thread_ has joined |
| 08:46:34 | thread_ | hello! |
| 08:46:51 | raptor | hi |
| 08:49:14 | kaen | hi! |
| 08:55:22 | raptor | thread_: you can talk about stuff in the main channel - no need to ping me directly (also you may get better help from those more knowledgeable than I) |
| 09:11:32 | | koda has joined |
| 09:25:10 | | bobdaduck has joined |
| 09:30:59 | | Watusimoto Quit (Ping timeout: 264 seconds) |
| 09:31:01 | raptor | ok, I put together the BBB server |
| 09:31:07 | raptor | it has 2 levels on it! |
| 09:31:33 | raptor | what patches did we want to apply? the Lua FF patch, the team balance patch, and... ??? |
| 09:31:57 | bobdaduck | lol |
| 09:32:13 | bobdaduck | just work so hard that you release 019 before friday |
| 09:32:26 | raptor | bwahahaAHAHahaAhAhhHAA |
| 09:32:30 | bobdaduck | yah? YAH? |
| 09:32:38 | | raptor directs bobdaduck towards the running bug list |
| 09:32:56 | bobdaduck | Woah |
| 09:33:00 | bobdaduck | I've been slacking off |
| 09:33:47 | bobdaduck | Gotta find you some more bugs |
| 09:33:50 | raptor | so we need some way for you to send me levels |
| 09:34:06 | raptor | like gather what you can and zip it up and send it somehow |
| 09:34:21 | raptor | then we need to make an ordered level list |
| 09:34:45 | bobdaduck | yeah |
| 09:34:55 | bobdaduck | We don't have any sort of order on it though |
| 09:35:23 | raptor | usually the order is to just mix up the game types - I can start one on our BBBX page.. |
| 09:35:49 | bobdaduck | yeahh |
| 09:35:55 | bobdaduck | should probably get everything together though |
| 09:39:14 | raptor | what should be the opening map? Kompressor's Gambit ? |
| 09:40:42 | bobdaduck | Rave party? |
| 09:41:17 | raptor | I was serious about patches... any others that I forgot that may be required for one of your levels? |
| 09:41:37 | | Watusimoto has joined |
| 09:41:48 | bobdaduck | Not that I can think of |
| 09:41:56 | bobdaduck | We're only doing RTS though |
| 09:42:08 | raptor | i thought there was one of your levels that required the FF patch? |
| 09:42:12 | raptor | the team bases one? |
| 09:42:13 | bobdaduck | Hm |
| 09:42:18 | bobdaduck | *goes through levels* |
| 09:42:33 | raptor | it's the one where you never know where you are |
| 09:42:46 | raptor | had a stock-y feel to it |
| 09:42:51 | bobdaduck | traitor's gate |
| 09:42:57 | bobdaduck | yeah that's not even on the map list |
| 09:46:58 | raptor | 6 zone control?? |
| 09:47:04 | bobdaduck | ...Yeah? |
| 09:47:14 | Watusimoto | bobdaduck: you probably saw, the bbb server is up for performance testing |
| 09:47:38 | bobdaduck | Why? |
| 09:47:55 | raptor | to test the server and see if it'll be laggy |
| 09:47:56 | Watusimoto | to see how the pings are |
| 09:48:36 | bobdaduck | ah. |
| 09:48:48 | bobdaduck | Doesn't kaen's server have pretty good ping? Could we use his? |
| 09:48:52 | raptor | Watusimoto: I set up a 'servers' directory on the VPS and am setting up the 'bbbx' one |
| 09:49:01 | kaen | it has good ping but unstable network conditions |
| 09:49:15 | Watusimoto | how so? |
| 09:49:51 | kaen | well, the provider seems to have over-provisioned the physical servers, so occasionally the ping will rise to >300ms for periods of an hour or more |
| 09:50:03 | kaen | that occurs infrequently and sporadically |
| 09:50:15 | kaen | although I'm able to fix it by restarting the vps |
| 09:51:36 | kaen | when that's not happening though, I believe it's the fastest server for most of our players |
| 09:51:54 | Watusimoto | you're talking about the BBB server? |
| 09:52:07 | kaen | I was talking about my server :) |
| 09:52:12 | Watusimoto | ah, I see |
| 09:52:21 | Watusimoto | I was woindering how you claimed to restart it |
| 09:52:26 | kaen | hehe |
| 09:55:10 | raptor | ok bobdaduck, feel free to replace that bottom list with others... |
| 09:55:43 | bobdaduck | uh? |
| 09:55:45 | raptor | also, do you seriously want Tron as a filler map? |
| 09:55:53 | bobdaduck | its just all the maps sorted by gametype isn't it? |
| 09:55:55 | bobdaduck | Nah |
| 09:56:01 | raptor | filler maps need to last 10 min regardless of score |
| 09:56:02 | bobdaduck | Too small |
| 09:56:26 | raptor | yeah, so that bottom list is pre-ordered, but sorted by gametype |
| 09:56:41 | bobdaduck | I vote DnD as a filler map then |
| 09:56:42 | raptor | and we should finalize it first by removing/adding any other maps |
| 09:57:11 | raptor | that we have second thoughts about... |
| 09:57:16 | raptor | uhhh |
| 09:57:19 | raptor | DnD.... |
| 09:57:28 | raptor | that would require some levelgen patches, right? |
| 09:57:43 | raptor | (I've forgotten which ones I've given you...) |
| 09:57:46 | bobdaduck | perhaps |
| 09:58:17 | raptor | so we'd have 3 filler maps |
| 09:58:34 | raptor | one at each hour or so (or after every ~10 levels) |
| 09:58:38 | bobdaduck | yeah |
| 09:59:27 | raptor | I'm saddened I couldn't find Soccer Series 9+ |
| 10:00:00 | bobdaduck | lol |
| 10:00:04 | bobdaduck | _K never posted it |
| 10:02:17 | raptor | hmmm |
| 10:02:34 | raptor | I could probably copy it real quick from the youtub video... |
| 10:02:37 | raptor | :) |
| 10:04:25 | bobdaduck | It looked simple enough xD |
| 10:05:09 | raptor | so RTS is on the menu? |
| 10:06:34 | bobdaduck | Yeah |
| 10:06:47 | bobdaduck | I'm *slightly* concerned about doing both it and feudalism |
| 10:06:47 | raptor | *and* feudalism?? |
| 10:06:50 | bobdaduck | xD |
| 10:06:57 | raptor | I think we should do just one |
| 10:06:57 | bobdaduck | Make them really spread apart. |
| 10:07:00 | raptor | or that |
| 10:07:07 | bobdaduck | One RTS-like map per 2 hours won't be so bad. |
| 10:07:21 | bobdaduck | OR we could count them as filler break maps |
| 10:07:51 | bobdaduck | And so RTS/feudalism/dnd each hour as a break? |
| 10:08:44 | raptor | you have to guarantee that they'd last at least 10 min |
| 10:09:02 | bobdaduck | I would? |
| 10:09:03 | bobdaduck | xD |
| 10:09:03 | Watusimoto | my kids are planning on getting up at 4AM to play |
| 10:09:14 | Watusimoto | so pick good levels! |
| 10:09:27 | raptor | so RTS/Feudalism should not be break maps |
| 10:09:29 | bobdaduck | I mean DnD will last 40 minutes if we let it. Its completely arbitrary when DnD ends |
| 10:09:40 | bobdaduck | RTS has a map time of 20 minutes I think |
| 10:09:50 | bobdaduck | And usually resolves at about 5 minutes |
| 10:10:04 | bobdaduck | Nowait RTS is 30 minutes |
| 10:10:12 | bobdaduck | And Feudalism is 15... |
| 10:10:21 | raptor | no i mean guarantee it - with no possible way of winning even if 19 players are AFK and 1 is doing the level by himself |
| 10:10:46 | bobdaduck | So make level a dungeonz? |
| 10:11:03 | raptor | or put the score so high it's impossible or unattainable |
| 10:11:13 | Watusimoto | bobdaduck: invisible asks that you include lines, his contest winning level, as well as other contest winners. That's all. Back later |
| 10:11:23 | bobdaduck | We don't |
| 10:11:34 | raptor | oh yeah, Lines |
| 10:11:37 | bobdaduck | wait lines was posted wasn't it. |
| 10:11:40 | bobdaduck | I thought it wasn't... |
| 10:11:53 | raptor | oh, it may not have been... |
| 10:12:30 | bobdaduck | Well we'll have to make room for it |
| 10:12:37 | bobdaduck | And I refuse to get rid of lamp's flag dungeon. |
| 10:14:00 | raptor | ok then kil lHTF - Power Plant |
| 10:14:04 | raptor | *kill |
| 10:14:09 | bobdaduck | Nah |
| 10:14:11 | bobdaduck | I'm replacing |
| 10:14:12 | bobdaduck | uh |
| 10:14:15 | raptor | Feudalism? |
| 10:14:16 | bobdaduck | Shoot what did I just replace |
| 10:14:23 | bobdaduck | A ZC |
| 10:14:45 | raptor | replace the list below in the appropriate section |
| 10:15:28 | bobdaduck | kdone |
| 10:15:31 | raptor | ok |
| 10:15:42 | raptor | what about those maps under 'Possibles' ? |
| 10:15:43 | | Watusimoto Quit (Ping timeout: 258 seconds) |
| 10:15:53 | bobdaduck | Veto all of them |
| 10:16:07 | raptor | ok 'Around the Bend' is in our list |
| 10:16:20 | raptor | Reserves list? |
| 10:16:31 | bobdaduck | lol uhhh |
| 10:17:09 | bobdaduck | For if we go through the maps too fast right? |
| 10:17:16 | raptor | yes |
| 10:17:26 | bobdaduck | We'll probably want several of those. |
| 10:17:55 | bobdaduck | ah go back |
| 10:17:55 | bobdaduck | xD |
| 10:18:08 | raptor | k |
| 10:18:10 | bobdaduck | okay you can delete them now |
| 10:19:19 | raptor | bobdaduck: come to 'kaen test' to see one of the break maps |
| 10:36:11 | bobdaduck | !bot |
| 10:36:11 | BFLogBot | I'm a real boy! |
| 10:38:32 | raptor | !bbb |
| 10:38:32 | BFLogBot | Big Bitfighter Battle! |
| 10:39:57 | bobdaduck | yeaAHHHHHHHHH |
| 10:40:50 | thread_ | Hey raptor, you're the developer right? in the next version can we have a function in Lua that just returns a list of all ships? |
| 10:41:09 | thread_ | I feel like it would make the levelgens much cleaner if we didn't all register ship lists |
| 10:41:28 | raptor | hi thread_, i'm one of the devs |
| 10:41:57 | raptor | thread_: there is already a way to get all players in the level |
| 10:42:10 | thread_ | is there? |
| 10:42:18 | bobdaduck | There is? |
| 10:42:22 | raptor | yeah, but it may be documented poorly... |
| 10:42:26 | raptor | let me find it |
| 10:42:35 | raptor | I just found it 2 days ago..) |
| 10:43:23 | raptor | in main() do: game = GameInfo() |
| 10:43:36 | raptor | then anywhere you want is: game:getPlayers() |
| 10:43:46 | thread_ | that's wonderful! |
| 10:43:48 | raptor | that returns a list of PlayerInfo about all the players |
| 10:44:47 | bobdaduck | So I can then do something to all players based on that? |
| 10:44:49 | raptor | yeah, see the poorly documented stuff here: http://bitfighter.org/wiki/index.php/Scripting_018#GameInfo |
| 10:45:03 | raptor | bobdaduck: probably |
| 10:45:17 | raptor | you still have to keep you're own registry |
| 10:45:21 | raptor | *your |
| 10:45:58 | raptor | if you want to tie weird objects to players, that is |
| 10:47:10 | bobdaduck | hm |
| 10:55:26 | bobdaduck | are plugins able to get selected items? |
| 10:57:41 | bobdaduck | I'm wanting a plugin that converts a zone of one type (goalzone) into a zone of another type (invisible zone) without having to redo all the geometry |
| 10:58:09 | thread_ | I could probably write you a script that does that |
| 10:59:43 | bobdaduck | I'm looking for a plugin |
| 10:59:48 | bobdaduck | which is slightly different |
| 10:59:57 | thread_ | yea, just thought I'd offer |
| 11:00:10 | bobdaduck | (check out editor plugins in the... F1 menu? I dunno where it is xD) |
| 11:01:03 | bobdaduck | Plugins are basically levelgen scripts that you run from the editor to make simpler. The default one is a curve tool which makes circles that look nice and stuff |
| 11:01:18 | raptor | bobdaduck: plugins don't have that for 018a |
| 11:01:22 | raptor | 019 they do already |
| 11:01:26 | bobdaduck | drat. |
| 11:02:20 | raptor | and actually, I wrote a plugin for 019 that let's you select/deselect all objects of a specific type: http://code.google.com/p/bitfighter/source/browse/resource/editor_plugins/item_select.lua |
| 11:02:32 | bobdaduck | Whoo! |
| 11:02:44 | bobdaduck | Okay so what args go into counterMenuItem? |
| 11:02:53 | thread_ | now you can delete all walls without effort :P |
| 11:03:16 | bobdaduck | nmd found it |
| 11:04:03 | bobdaduck | That's something I requested a while ago |
| 11:09:37 | bobdaduck | What's a symbol that indicates speed but doesn't have directional affiliation? |
| 11:11:04 | kaen | speedometers |
| 11:11:24 | bobdaduck | Perfect! |
| 11:11:44 | bobdaduck | Where I can I find draw_curves.lua if I deleted mine? |
| 11:12:07 | raptor | http://code.google.com/p/bitfighter/source/browse/resource/editor_plugins/ |
| 11:12:30 | bobdaduck | Thanks |
| 11:12:35 | bobdaduck | accidentally deleted it a while ago |
| 11:38:14 | | Watusimoto has joined |
| 11:39:53 | bobdaduck | Someone should try to teach me about dictionaries again |
| 11:45:00 | | Watusimoto Quit (Ping timeout: 260 seconds) |
| 11:49:13 | kaen | bobdaduck, they're called "tables" in lua: http://lua-users.org/wiki/TablesTutorial |
| 11:49:30 | bobdaduck | I've read this before |
| 11:49:35 | bobdaduck | Will read again though |
| 12:00:35 | bobdaduck | Okay I guess cross-referencing tables is the confusing part for me |
| 12:01:16 | bobdaduck | Making two tables work together |
| 12:11:37 | thread_ | I think a table IS a dictionary actually. you can use a string as a key |
| 12:11:41 | kaen | you mean tables in tables? |
| 12:11:49 | thread_ | ex. table[apple] = foo |
| 12:11:53 | kaen | a table is both a dictionary and an array |
| 12:11:57 | raptor | table is a quadrilateral |
| 12:12:05 | raptor | array is a square |
| 12:12:12 | raptor | dictionary is a parallelogram |
| 12:12:25 | kaen | it has both ordered and unordered elements |
| 12:12:45 | bobdaduck | Oh shoot raptor we can't use DnD for the BBB -- Its not finished. There's still five classes to make plus whip/nunchucker |
| 12:13:50 | kaen | bobdaduck, what's your specific question about tables? |
| 12:14:03 | bobdaduck | I don't understand how to make two tables work together |
| 12:14:28 | bobdaduck | I'm not doing this, but lets say in DnD I want to actually store in a table what class each ship is |
| 12:14:29 | raptor | he probably wants it so one key -> multiple data |
| 12:14:41 | raptor | so a complex object of sorts |
| 12:15:11 | raptor | i usually do something like this: maintable (key -> subtable) |
| 12:15:33 | raptor | then subtable is a dictionary with whatever |
| 12:15:45 | bobdaduck | And then lets say I want to print out each ship and its class. I'd have to iterate through the registeredShips array, and then do SOMETHING to another array that stores the ship's class |
| 12:16:09 | raptor | subtable["name"] subtable["ship"] subtable["favoriteicecream"] |
| 12:16:27 | bobdaduck | At this point I am completely lost. |
| 12:16:37 | bobdaduck | Well, not completely. |
| 12:16:39 | bobdaduck | 85%. |
| 12:16:55 | thread_ | Are you thinking like with my blink script? I can go over how I did that if you want |
| 12:16:57 | raptor | so you need a lesson in data structures instead of anythign really Lua-y |
| 12:17:13 | bobdaduck | Probably |
| 12:17:30 | raptor | lunch! |
| 12:17:40 | bobdaduck | lunch! |
| 12:17:44 | thread_ | wat? |
| 12:17:48 | bobdaduck | lol |
| 12:18:42 | kaen | so, you want to iterate through nested tables? |
| 12:19:02 | bobdaduck | ....maybe? |
| 12:19:03 | bobdaduck | xD |
| 12:19:45 | bobdaduck | I don't have a specific use case; I just know it'll be really useful if I can figure them out. |
| 12:24:27 | kaen | it'd be better if you could explain it with a line of code that you want to work |
| 12:24:38 | kaen | but, here's how to iterate over nested tables: http://pastebin.com/CSVC4gRt |
| 12:25:52 | kaen | if you have a table `foo = { bar = { "one", "two", "three" } }` then you can access the subelements like so: `foo["bar"][1]` |
| 12:26:15 | bobdaduck | That's good to know |
| 12:26:37 | raptor | bobdaduck: you want something like this to store your data: http://pastie.org/7749269 |
| 12:26:40 | raptor | that is not Lua code |
| 12:26:47 | raptor | but to illustrate the structure |
| 12:28:19 | bobdaduck | Okay so lets say I have two tables, "registeredPlayers" and "registeredZoneSwords" |
| 12:28:32 | | Watusimoto has joined |
| 12:28:49 | bobdaduck | And for each player if he doesn't have a sword I make the sword for him |
| 12:29:01 | bobdaduck | How do I tie the sword to the player in the registeredPlayers table? |
| 12:29:18 | kaen | okay, you want the elements of you player's table to be tables themselves |
| 12:29:30 | bobdaduck | and, more importantly (or at least I understand this less) how do I access it later. |
| 12:29:55 | kaen | oh wait, what is your registeredPlayers table made of right now? |
| 12:30:01 | kaen | player names? or playerinfo objects? |
| 12:30:18 | | raptor goes to eat lunch |
| 12:30:20 | bobdaduck | uh I think its made of playerinfo objects in the example |
| 12:30:23 | bobdaduck | bye |
| 12:30:25 | kaen | okay, perfect |
| 12:30:29 | kaen | then they're already tables |
| 12:30:45 | kaen | so you just need to create your own attribute, which is really easy |
| 12:30:59 | kaen | registeredPlayers[index]["sword"] = swordZone |
| 12:31:08 | | bobdaduck is slowly becomeing lost |
| 12:31:23 | kaen | you just put two dereferences right after each other |
| 12:31:55 | bobdaduck | okay what if I register by player names instead of playerInfo |
| 12:31:57 | kaen | that's the same as: player = registeredPlayers[index] ; player["sword"] = swordZone |
| 12:32:25 | kaen | then you should just register it with a table, and put the name in that table alongside the sword zone |
| 12:33:01 | bobdaduck | uh, okay. |
| 12:33:08 | bobdaduck | I sort of understand |
| 12:34:23 | kaen | adding a new player would be like: table.insert(registeredPlayer, { name = playerName }) |
| 12:34:56 | kaen | which creates a table with an attribute "name" set to the player's name and adds that to the registeredPlayers table |
| 12:35:02 | kaen | now you have a table made of tables |
| 12:35:20 | kaen | to get the player's name: registeredPlayers[index]["name"] |
| 12:35:38 | kaen | to set the player's sword: registeredPlayers[index]["sword"] = swordZone |
| 12:35:41 | kaen | etc. |
| 12:35:54 | bobdaduck | why the quotes? |
| 12:36:03 | thread_ | those are strings |
| 12:36:14 | thread_ | Lua allows strings for keys in tables |
| 12:36:17 | kaen | more exactly, the table's keys are strings |
| 12:36:37 | kaen | if you did: registeredPlayers[index][sword] -- no quotes |
| 12:36:57 | kaen | then lua would look for a variable named sword, and use its contents as the key to look up |
| 12:37:01 | kaen | this is called interpolation |
| 12:37:17 | kaen | index is a variable, sword should be a string |
| 12:37:33 | kaen | (because index is the iterator variable of your loop) |
| 12:37:57 | bobdaduck | so table[key], right? |
| 12:38:06 | kaen | yes |
| 12:38:24 | kaen | unless key is the literal name of the key, then you want table["key"] |
| 12:39:46 | bobdaduck | okey |
| 13:02:50 | bobdaduck | raptor when you get back: Is it possible for me to check which player scored? |
| 13:02:55 | | bobdaduck goes to lunch |
| 13:05:17 | raptor | hi |
| 13:05:30 | raptor | nope, we'd need an event for it... |
| 13:12:00 | | thread_ Quit (Ping timeout: 245 seconds) |
| 13:25:55 | bobdaduck | There's a playerScored event |
| 13:25:58 | bobdaduck | er no |
| 13:26:01 | bobdaduck | scoring event anyway |
| 13:26:41 | bobdaduck | except its not in events |
| 13:26:43 | bobdaduck | uhhh |
| 13:26:46 | bobdaduck | xD |
| 14:01:31 | | kaen Quit (Ping timeout: 272 seconds) |
| 14:08:07 | bobdaduck | So how would I use that? |
| 14:08:23 | raptor | it's misleading |
| 14:08:26 | raptor | it's not an event |
| 14:08:30 | bobdaduck | is it touchable at all? |
| 14:08:33 | raptor | is an enum |
| 14:08:46 | bobdaduck | yah |
| 14:09:00 | bobdaduck | what would it be used for in levelgens. Is it touchable? |
| 14:09:10 | raptor | i know of know way to know when a scoring event takes place |
| 14:09:19 | raptor | *know of no |
| 14:09:27 | bobdaduck | what is the scoringEvent enum do. |
| 14:09:34 | raptor | there's examples around it I think |
| 14:09:50 | raptor | looks like it just lets you get the point value for a specific scoring event |
| 14:09:58 | bobdaduck | huh. |
| 14:11:03 | bobdaduck | Well, uh... Request for lua API: event onPlayerScored(playerinfo, gametype) |
| 14:11:52 | raptor | yeah, good request |
| 14:12:00 | raptor | can you open a google issue for me? |
| 14:12:12 | raptor | feature request |
| 14:12:32 | bobdaduck | uh |
| 14:15:07 | bobdaduck | !bug |
| 14:15:07 | BFLogBot | To enter a bug, please make sure it is reproducible and then go to http://code.google.com/p/bitfighter/issues/list | Also, see current running bug list: http://bitfighter.org/wiki/index.php/Running_Bug_List |
| 14:16:39 | bobdaduck | kdone |
| 14:17:12 | raptor | excellent! thanks |
| 14:23:07 | bobdaduck | Know what else would be really useful? |
| 14:23:20 | raptor | question for all the people: does anyone know of some opensource image sharing software that works like imgur/etc. but can be set up internally? like a pastie for images |
| 14:23:34 | bobdaduck | uh |
| 14:23:39 | bobdaduck | I use bitfighter.org/forums |
| 14:23:43 | raptor | internally == privately |
| 14:23:52 | raptor | needs to have drag and drop |
| 14:24:15 | bobdaduck | I got nothin' |
| 14:24:37 | bobdaduck | I'd really like to be able to manipulate individual projectiles via levelgen |
| 14:24:55 | | koda Quit (Quit: koda) |
| 14:26:02 | bobdaduck | Even if just adding/removing |
| 14:27:07 | bobdaduck | Though if I could do advanced things like burst:setLife() or phaser:setDamage() that would be nice too. |
| 14:27:51 | Watusimoto | I don't think we should be altering the fundamental physics of the game |
| 14:28:03 | bobdaduck | yeah yeah yeah xD |
| 14:28:17 | bobdaduck | I'm okay with that. |
| 14:28:39 | Watusimoto | raptor -- if you were on windows, I'd have a good solution for you |
| 14:28:44 | Watusimoto | for the image sharing |
| 14:29:06 | bobdaduck | One other more out-there request: playerInfo:isKeyPressed() |
| 14:29:14 | Watusimoto | assuming you are not on windows though |
| 14:29:58 | raptor | i need a web site to share stupid stuff with other developers internally |
| 14:30:08 | raptor | stupid stuff == code + screenshots, etc. |
| 14:30:21 | raptor | i've set up an internal pastie that's really ugly |
| 14:30:31 | raptor | but i need something for images.. |
| 14:31:06 | bobdaduck | playerInfo:isKeyPressed would actually be really nice... |
| 14:32:02 | bobdaduck | I dunno, is that even doable? |
| 14:36:04 | raptor | bobdaduck: not directly, you could only get things the server knows about: like ship movement, etc |
| 14:36:28 | bobdaduck | Okay how about this: isShipDroppingItem |
| 14:37:06 | bobdaduck | Could I use that to get every time someone presses the b key? |
| 14:42:07 | raptor | that could be programmed, but the user could have it mapped to any key he wants |
| 14:42:26 | bobdaduck | Right right. Just isShipDroppingItem would be nice... |
| 14:42:47 | bobdaduck | Ship:setHealth() and Ship:setEnergy() are going to be in 019, right? |
| 14:44:33 | bobdaduck | Sorry just suddenly wanting updates on a lot of things |
| 14:55:30 | | LordDVG has joined |
| 14:56:44 | bobdaduck | uh so back to the tables questions: how do I put values in the second part of the table? |
| 14:57:05 | bobdaduck | table.insert(thisTable, value1, value2)? |
| 14:57:28 | bobdaduck | thisTable[value1][value2]?' |
| 15:08:09 | | kaen has joined |
| 15:13:41 | | kaen Quit (Ping timeout: 264 seconds) |
| 15:46:12 | | kaen has joined |
| 16:01:00 | | thread_ has joined |
| 16:33:23 | bobdaduck | alright heading to the home! |
| 16:34:18 | | bobdaduck Quit (Remote host closed the connection) |
| 16:36:12 | | LordDVG Quit (Remote host closed the connection) |
| 16:36:50 | thread_ | what are the parameters on the ShipEnteredZone event? |
| 16:37:32 | raptor | that's documented here: http://bitfighter.org/wiki/index.php/Scripting_018 |
| 16:37:46 | raptor | we need to get that junk into the luadocs somehow |
| 16:38:47 | raptor | back later |
| 16:38:51 | | raptor Quit () |
| 16:49:30 | | thread_ Quit (Quit: Page closed) |
| 16:52:57 | Watusimoto | extra includes much? |
| 16:53:32 | Watusimoto | hold on |
| 16:53:34 | kaen | much extra includes |
| 16:53:37 | Watusimoto | machine locked |
| 16:54:32 | Watusimoto | http://pastie.org/7750381 |
| 16:54:44 | Watusimoto | my shuffling things around is paying off |
| 16:54:50 | Watusimoto | this is the header for game.cpp |
| 16:54:58 | Watusimoto | or rather the top of that file |
| 16:55:05 | Watusimoto | showing the includes I was able to remoe |
| 16:55:21 | Watusimoto | and this is before I started on any real work on the class |
| 16:55:30 | Watusimoto | I have 2-3 more that I think I should be able to get rid of |
| 16:55:52 | Watusimoto | other classes show similar results |
| 16:56:04 | Watusimoto | things are starting to get a bit untangled |
| 16:56:20 | Watusimoto | it is my goal to be able to add ship.cpp to our test framework without adding any opengl code |
| 16:56:55 | kaen | cool! |
| 16:57:21 | Watusimoto | should also make compiling a bit faster |
| 16:57:26 | kaen | I'm actually writing tests for HttpRequest right now |
| 16:57:35 | Watusimoto | excellent! |
| 16:57:43 | kaen | going swimmingly, but I'm having a bit of a rough patch |
| 16:57:53 | Watusimoto | I know the feeling |
| 16:58:21 | kaen | the core functionality requires a socket to test against. I've made a mock socket that inherits from TNL::Socket, but I can't usefully override it's methods because they're non virtual |
| 16:59:09 | kaen | I don't really want to tweak the libraries any more than they are, so I'm sort of meditating on how to test timeouts and other connection errors |
| 16:59:59 | Watusimoto | you could virtualize them |
| 17:00:07 | Watusimoto | or make the mock be the parent? |
| 17:00:38 | kaen | my goal is not to touch anything in TNL |
| 17:01:02 | kaen | and not depend on mocks in production code (e.g. by doing Mock->foo() ) |
| 17:02:09 | | koda has joined |
| 17:03:23 | Watusimoto | well, TNL is our baby now |
| 17:03:26 | Watusimoto | I think |
| 17:03:48 | Watusimoto | so virtualizing some methods so you can subclass wouldn't be the end of the world |
| 17:09:06 | Watusimoto | night! |
| 17:14:41 | | Watusimoto Quit (Ping timeout: 272 seconds) |
| 17:29:55 | | koda Quit (Quit: koda) |
| 19:04:35 | | raptor has joined |
| 19:04:35 | | ChanServ sets mode +o raptor |
| 19:21:52 | kaen | greetings |
| 19:21:56 | raptor | greetings! |
| 19:27:05 | raptor | I should start gathering BBB maps.. |
| 19:27:08 | raptor | work work |
| 19:30:48 | | fordcars has joined |
| 19:30:57 | fordcars | is bitfighter.org slow to anyone else? |
| 19:31:05 | raptor | always! |
| 19:31:09 | fordcars | haha |
| 19:31:36 | raptor | running fine for me... |
| 19:32:20 | | Flynnn has joined |
| 19:34:22 | fordcars | ok, it was only for a couple of minutes I guess |
| 19:34:42 | raptor | maybe your renter is torrenting again |
| 19:35:16 | fordcars | hahahaha probably! |
| 19:35:52 | fordcars | I think he is moving out soon though :D |
| 19:36:03 | raptor | you should use QoS and make sure he never uses more than 1/2 of the bandwidth throughput |
| 19:36:19 | raptor | if your router supports that |
| 19:38:14 | fordcars | yeah, we have a few options like that, and we can even block internet completely or setup a schedule :P But he is (supposedly) paying most of the internet |
| 19:38:24 | raptor | ah ok |
| 19:40:15 | | thread_ has joined |
| 19:44:33 | thread_ | raptor, kaen, can I get your help? I need someone to connect to my server so I can make sure my scripts work for multiple players |
| 19:44:42 | raptor | ok, i can |
| 19:45:02 | thread_ | server is speaker for the thread |
| 19:45:10 | raptor | IP? |
| 19:45:11 | thread_ | password is "wark!" |
| 19:46:02 | thread_ | 192.168.1.40 |
| 19:46:17 | raptor | that's an internal only IP |
| 19:46:21 | raptor | you're begins with 68 |
| 19:50:20 | thread_ | whatever, you made it. glad to know it works |
| 19:51:11 | | thread_ has left |
| 19:51:16 | kaen | I think I like that more than bob's swords |
| 19:51:21 | kaen | hi Flynnn |
| 19:51:34 | Flynnn | You sensed me switching tabs ._. |
| 19:51:40 | Flynnn | Hello :) |
| 19:52:45 | Flynnn | why the hell |
| 19:52:53 | Flynnn | has my browser decided to switch into http mode all of a sudden |
| 19:52:57 | Flynnn | ** https |
| 19:54:18 | | Test has joined |
| 19:54:20 | Test | Test |
| 19:54:28 | | Test Quit (Client Quit) |
| 19:56:02 | raptor | Test |
| 19:56:09 | raptor | was that bobdaduck? |
| 19:56:14 | Flynnn | that was me lol |
| 19:56:26 | Flynnn | I was looking for your issues list and stumbled upon the irc app |
| 19:58:49 | | Flynnn Quit (Quit: Leaving) |
| 19:59:11 | | Flynnn has joined |
| 19:59:18 | kaen | Flynnn, code.google.com/p/bitfighter/issues |
| 19:59:30 | Flynnn | thankyou |
| 19:59:35 | kaen | you bet :) |
| 19:59:58 | kaen | very vexing unit tests... |
| 20:00:06 | kaen | but it's a happy problem, imo :) |
| 20:00:48 | Flynnn | hehe |
| 20:15:52 | raptor | kaen: do you have an http directory listing of the levels on your server? |
| 20:16:04 | kaen | I do not |
| 20:16:44 | raptor | OK, I'll grab from here: http://sam6.25u.com/bitfighter/?C=S;O=A |
| 20:17:15 | kaen | I was just about to paste that link :) |
| 20:17:32 | raptor | i had just remembered it... |
| 20:20:15 | raptor | back in a bit |
| 20:28:40 | fordcars | btw, isRobot() doesn't work anymore, not even in eliza |
| 20:57:22 | fordcars | why are there 2 of me!!! In Little_Monkey, another fordacars?!? |
| 20:58:06 | fordcars | It had 0 ping, I had 349 |
| 20:58:26 | fordcars | anyway, changing password :3 |
| 21:10:47 | raptor | kaen: were the maps for the last contest released? |
| 21:10:54 | raptor | the one Quartz did? |
| 21:13:22 | fordcars | later guys |
| 21:13:28 | raptor | night |
| 21:14:09 | kaen | maybe in the results thread? |
| 21:14:17 | kaen | 99% sure he did |
| 21:14:48 | raptor | hmmm |
| 21:15:07 | kaen | raptor, http://bitfighter.org/forums/viewtopic.php?f=13&t=1894&p=19866&hilit=wild+west+results#p19866 |
| 21:15:12 | kaen | bottom of that post |
| 21:15:46 | raptor | ah ha! |
| 21:15:50 | raptor | thanks! |
| 21:17:49 | | fordcars Quit (Ping timeout: 245 seconds) |
| 21:20:33 | raptor | kaen: did your minefield.lua levelgen work with stock 018a? |
| 21:20:42 | kaen | yep |
| 21:20:47 | raptor | oh good |
| 21:21:02 | kaen | can't wait to play ricochet in a BBB :) |
| 21:21:08 | raptor | yeah! |
| 21:21:18 | raptor | (you correclty guessed that I'm hunting for the levels...) |
| 21:21:20 | kaen | I learned to bumper-car opponents into the minefields |
| 21:24:22 | raptor | 10 down 31 to go! |
| 21:24:26 | raptor | 35 |
| 21:39:44 | | Platskies has joined |
| 22:05:11 | raptor | ok I have all the levels I can get for the moment |
| 22:05:18 | raptor | 28 of 45 |
| 22:05:27 | raptor | need bobdaduck to help with the rest, tomorrow, I think |
| 22:30:45 | | Platskies Quit (Remote host closed the connection) |
| 22:41:53 | raptor | that's it! |
| 22:42:00 | raptor | I'm browsing the web with lynx from now on!! |
| 23:04:41 | | BFLogBot Commit: c647f17e4a27 | Author: kaen | Message: add HttpRequest tests, necessary mocks, and required TNL virtualizing |
| 23:04:42 | | BFLogBot Commit: ad0298a5eff7 | Author: kaen | Message: merge |
| 23:05:29 | raptor | commits! |
| 23:07:58 | raptor | and good night! |
| 23:08:01 | | raptor Quit () |
| 23:28:58 | | Flynnn Quit (Quit: Leaving) |