Timestamps are in GMT/BST.
| 00:05:46 | bobdaduck | Hi |
| 00:23:58 | | raptor has joined |
| 00:23:59 | | ChanServ sets mode +o raptor |
| 00:24:22 | bobdaduck | Arg! Beta you gave me doesn't have circle plugin! |
| 00:24:33 | raptor | hi |
| 00:24:34 | raptor | what? |
| 00:24:45 | bobdaduck | Er, curve tool |
| 00:24:53 | raptor | what!? |
| 00:24:57 | raptor | beta should have it... |
| 00:25:23 | raptor | huh.. |
| 00:25:28 | raptor | oh |
| 00:25:34 | raptor | is it missing in the INI? |
| 00:26:02 | raptor | under the section [EditorPlugins] |
| 00:26:06 | raptor | add: Plugin1=Ctrl+;|draw_arcs.lua|Make curves! |
| 00:27:14 | raptor | Watusimoto! |
| 00:27:20 | raptor | ha! he saw my SO post |
| 00:27:54 | bobdaduck | What? |
| 00:28:25 | raptor | umm.. this conversation requires a certain decompression algorithm to understand |
| 00:29:34 | bobdaduck | lol |
| 00:31:31 | Watusimoto | yes, he did |
| 00:31:41 | raptor | still trying to comprehend his response.. |
| 00:31:47 | Watusimoto | and made those changes to luaw as a result |
| 00:31:54 | Watusimoto | it led to his changes |
| 00:32:09 | raptor | wow, a post of mine led to Real Change |
| 00:32:14 | Watusimoto | :-) |
| 00:53:16 | Watusimoto | ok, going to bed |
| 00:53:29 | Watusimoto | however, after some thought, I think alex may have addressed our issue |
| 00:53:32 | Watusimoto | it seems to fit |
| 00:53:45 | Watusimoto | maaaaaybe we have a way to move forward with lua |
| 00:54:24 | Watusimoto | night! |
| 00:55:21 | raptor | night! |
| 01:00:12 | | Watusimoto Quit (Ping timeout: 256 seconds) |
| 02:13:09 | | kaen Quit (Ping timeout: 256 seconds) |
| 02:17:26 | | kaen has joined |
| 02:17:27 | | kaen Quit (Max SendQ exceeded) |
| 02:32:24 | | Platskies has joined |
| 02:44:21 | | SolumnMushroom has joined |
| 02:54:41 | SolumnMushroom | Hello all! |
| 02:54:51 | raptor | hi |
| 02:58:46 | Little_Apple | raptor: how do i get a levelgen to add spybugs? |
| 02:58:54 | Little_Apple | it doesnt want to work... |
| 02:58:55 | raptor | umm |
| 02:58:57 | raptor | hmm |
| 02:59:02 | Little_Apple | do i need to assign a team? |
| 02:59:03 | raptor | have an error? |
| 02:59:13 | raptor | you may need to assign a team first... looking |
| 02:59:45 | Little_Apple | thats my guess... |
| 02:59:55 | Little_Apple | and yes i got an error... |
| 03:00:09 | raptor | can you pastie the error for me? |
| 03:00:14 | Little_Apple | i can send a screen cap |
| 03:00:38 | raptor | ok actually |
| 03:00:40 | raptor | needs a team |
| 03:00:51 | Little_Apple | how do i assign a team number? |
| 03:00:52 | raptor | the constructor says it requires a point and a team |
| 03:01:00 | raptor | umm like this: 0 |
| 03:01:08 | raptor | oh wait |
| 03:01:14 | raptor | do you have the lua docs open? |
| 03:01:21 | Little_Apple | ill send you a pastie of my script |
| 03:01:25 | raptor | no no |
| 03:01:28 | raptor | go here: |
| 03:01:30 | raptor | http://bitfighter.org/luadocs/index.html |
| 03:01:38 | Little_Apple | gotcha |
| 03:01:39 | raptor | click 'class list' on the left |
| 03:01:47 | raptor | select spybug |
| 03:01:56 | raptor | click 'List of all members' |
| 03:02:28 | Little_Apple | what am i looking at... |
| 03:02:30 | raptor | you'll see a 'setTeam' method |
| 03:02:46 | raptor | so you'd do bug = SpyBug.new() |
| 03:02:58 | raptor | bug.setLoc(point.new(0,0)) |
| 03:03:04 | raptor | bug.setTeam(0) |
| 03:03:04 | Little_Apple | ok... |
| 03:03:13 | raptor | then levelgen:addItem(bug) |
| 03:03:17 | raptor | oops |
| 03:03:24 | raptor | use ':' colons instead of periods |
| 03:03:30 | Little_Apple | k... |
| 03:03:38 | raptor | does that make sense? |
| 03:04:30 | Little_Apple | uh.. |
| 03:04:57 | Little_Apple | can i just send you my script? its probably really messy |
| 03:05:19 | raptor | not yet... |
| 03:06:06 | | bobdaduck Quit (Ping timeout: 245 seconds) |
| 03:06:16 | raptor | ok, sent me your spybug method |
| 03:07:47 | Little_Apple | oh man. http://pastie.org/6338477 |
| 03:08:07 | Little_Apple | starting from scratch next time |
| 03:08:23 | raptor | see the line: resourceitem:setLoc(0,0) |
| 03:08:34 | raptor | right below it put: resourceitem:setTeam(0) |
| 03:08:36 | Little_Apple | yea... |
| 03:08:42 | raptor | 0 is the team |
| 03:08:50 | raptor | 0 = team 1; 1 = team 2 |
| 03:08:50 | Little_Apple | i did that... |
| 03:08:55 | raptor | -1 = neutral |
| 03:08:57 | raptor | i think |
| 03:09:08 | raptor | ok |
| 03:09:22 | raptor | why don't is ee it in your script? |
| 03:09:33 | Little_Apple | its probably way over on the right... |
| 03:09:36 | Little_Apple | blah |
| 03:09:45 | raptor | what on EARTH |
| 03:09:50 | raptor | did you do.. |
| 03:10:03 | Little_Apple | lol |
| 03:10:15 | Little_Apple | it looks all pretty in my text edit window... |
| 03:12:03 | Little_Apple | fixing up... |
| 03:13:10 | raptor | ok, i see it |
| 03:13:14 | raptor | let me test your spybug... |
| 03:13:49 | raptor | oh, haha, that's because you used TABs instead of RETURNs to space the file... |
| 03:13:57 | Little_Apple | yea... |
| 03:14:04 | Little_Apple | it was all lined up nice and pretty |
| 03:14:29 | Little_Apple | and i want the spybugs to spawn in the center of the zone.. |
| 03:15:21 | raptor | ok |
| 03:15:55 | Little_Apple | one day... |
| 03:16:01 | Little_Apple | one day ill understand all of this. |
| 03:16:19 | raptor | you're on your way! |
| 03:16:54 | Little_Apple | i understood normal levelgens... |
| 03:18:11 | SolumnMushroom | Time to break out the old NDS for some Pokemon Black 2 |
| 03:19:14 | raptor | IT WORKS!#@#!@!! |
| 03:19:17 | raptor | EUREAKKKAA |
| 03:19:22 | raptor | BEWAAHAHAHAAHAAHA |
| 03:19:23 | Little_Apple | :D |
| 03:19:28 | raptor | ok, now to Little_Apple's problem... |
| 03:19:40 | raptor | if you see bobdaduck tell him i have his script ready... |
| 03:19:48 | Little_Apple | okie dokie |
| 03:20:17 | Little_Apple | i told footloose to tell bob |
| 03:20:53 | raptor | interesting... spybugs don't seem to work... |
| 03:21:01 | SolumnMushroom | I'm really happy that my old Mario Kart Racing Red NDS still works |
| 03:21:24 | raptor | ha |
| 03:21:48 | SolumnMushroom | Limited edition |
| 03:22:07 | Little_Apple | did i find a bug? |
| 03:22:21 | raptor | i think so |
| 03:22:25 | raptor | testing... |
| 03:23:18 | Little_Apple | awesome. |
| 03:23:30 | raptor | i can add bursts... |
| 03:24:01 | raptor | BUG! |
| 03:24:03 | raptor | good find |
| 03:24:13 | Little_Apple | danke |
| 03:25:49 | raptor | huh, i'm not sure i can fix this one right now - i may have to ask watusimoto because i don't know what's going on.. |
| 03:26:01 | Little_Apple | aw ok |
| 03:26:18 | Little_Apple | !Little_Apple |
| 03:26:24 | Little_Apple | darn. |
| 03:26:51 | raptor | oh wait |
| 03:26:56 | raptor | i think i see the problem... |
| 03:26:57 | raptor | testing |
| 03:27:08 | Little_Apple | good luck! |
| 03:27:08 | | SolumnMushroom is playing Pokemon Black 2 |
| 03:27:38 | Little_Apple | excited for pokemon x & y? |
| 03:27:58 | SolumnMushroom | No |
| 03:28:04 | Little_Apple | ahahahaha |
| 03:28:25 | SolumnMushroom | Because I don't have a 3DS |
| 03:28:34 | Little_Apple | neither do i d: |
| 03:29:21 | | bobdaduck has joined |
| 03:29:32 | Little_Apple | hello |
| 03:29:40 | bobdaduck | Hey. |
| 03:29:48 | bobdaduck | Raptor perchance loadoutzone creation script? |
| 03:29:58 | raptor | oh bobdaduck have i got something useful for you |
| 03:30:07 | bobdaduck | oooh! |
| 03:31:02 | SolumnMushroom | My NPCs are saying :3 |
| 03:31:10 | SolumnMushroom | I'm not even kidding |
| 03:31:55 | raptor | ok bobdaduck, enjoy: http://pastie.org/6338570 |
| 03:32:11 | Little_Apple | there should be a script that just has the word swag flash around all over the map |
| 03:32:17 | Little_Apple | and give people seizures... |
| 03:33:04 | bobdaduck | lol |
| 03:33:20 | | bobdaduck begins deciphering code |
| 03:34:33 | raptor | I try and document my code for consumption |
| 03:34:50 | bobdaduck | Yeah |
| 03:34:58 | bobdaduck | A lot of the functions and math you used is unfamiliar to me though |
| 03:34:59 | bobdaduck | so |
| 03:35:12 | raptor | that's OK |
| 03:35:21 | raptor | you'll get there when you're level 5 or 6 or so... |
| 03:35:33 | bobdaduck | How would I theoretically adapt this to have three loadout zones? |
| 03:36:03 | raptor | using absolute points? |
| 03:36:11 | bobdaduck | Yeah |
| 03:36:19 | raptor | call the one method levelCodeToPoint on three different global strings |
| 03:36:27 | raptor | see the 'levelCode' string at the top? |
| 03:36:34 | bobdaduck | yeah |
| 03:36:39 | raptor | just make a few more variables with your desired coordinates |
| 03:36:56 | raptor | and where you create the geometry with: zonePointArray = levelCodeToPoint(levelCode) |
| 03:37:02 | bobdaduck | okay |
| 03:37:06 | raptor | do others like: zonePointArray2 = levelCodeToPoint(levelCode2) |
| 03:37:07 | SolumnMushroom | I'm battling electric type stuff |
| 03:37:18 | Little_Apple | any luck on the bug? |
| 03:37:23 | raptor | and pass those into spawnLoadoutZone() |
| 03:37:28 | raptor | Little_Apple: still looking... |
| 03:37:40 | Little_Apple | k |
| 03:37:48 | raptor | your bug is weird... |
| 03:38:47 | Little_Apple | thank you. |
| 03:38:51 | Little_Apple | i try. |
| 03:39:14 | raptor | oh haha |
| 03:39:28 | raptor | let me see if this works... |
| 03:40:13 | raptor | works! |
| 03:40:54 | Little_Apple | yea raptor! |
| 03:41:08 | raptor | uh oh |
| 03:41:14 | raptor | watusimoto checked in new code... |
| 03:41:15 | Little_Apple | uh oh what? |
| 03:41:25 | Little_Apple | ohdear? |
| 03:41:28 | bobdaduck | lol |
| 03:41:37 | raptor | this means i have to make sure the game isn't broken real quick... |
| 03:42:05 | raptor | BFLogBot |
| 03:42:05 | BFLogBot | I'm a real boy.... I think? |
| 03:42:08 | raptor | you fail me |
| 03:42:17 | raptor | you did not tell about the new code |
| 03:42:22 | bobdaduck | rofl |
| 03:42:52 | Little_Apple | i think you hurt his feelings |
| 03:43:00 | raptor | Little_Apple: ok for now |
| 03:43:07 | raptor | the fix is to use 'SpyBugItem' |
| 03:43:18 | raptor | in SpyBugItem.new() |
| 03:43:32 | Little_Apple | on the build i have? |
| 03:43:34 | raptor | but, after my fix you'll have to change back to SpyBug.new() |
| 03:43:35 | raptor | yes |
| 03:43:39 | Little_Apple | ok |
| 03:43:48 | raptor | so continue using your build, i can get a new one later tonight after a few bugs |
| 03:44:00 | Little_Apple | ok |
| 03:44:30 | Little_Apple | ok. |
| 03:44:31 | raptor | ha, watusimoto's last commit message: "Sliiiiigthtly hacky fix" |
| 03:44:43 | raptor | yeah, that was made at 2am |
| 03:44:46 | Little_Apple | either that didnt work or my script is beyond repair. |
| 03:44:47 | bobdaduck | lol |
| 03:45:23 | bobdaduck | Raptor |
| 03:45:27 | raptor | yes yes |
| 03:45:29 | bobdaduck | It says it needs a team on luadocs |
| 03:45:36 | bobdaduck | but I can't see where in your script you define a team? |
| 03:45:36 | raptor | what needs a team? |
| 03:45:39 | raptor | ok |
| 03:45:41 | raptor | uh |
| 03:45:42 | bobdaduck | Loadoutzone |
| 03:45:51 | Little_Apple | gtg |
| 03:45:52 | raptor | because if it's not provided it's set to team 0 |
| 03:45:53 | Little_Apple | laters |
| 03:45:55 | raptor | neutral |
| 03:45:57 | | Little_Apple Quit (Quit: Page closed) |
| 03:46:07 | raptor | so you can call zone:setTeam(1) |
| 03:46:20 | raptor | if you want before levelgen:addItem |
| 03:46:28 | bobdaduck | okay |
| 03:47:42 | raptor | don't fail me logbot! |
| 03:47:50 | | BFLogBot Commit: a244120ae80b | Author: buckyballreaction | Message: Fix adding a SpyBug with the Lua API |
| 03:47:54 | raptor | yay |
| 03:48:10 | bobdaduck | lol |
| 03:48:39 | bobdaduck | Okay raptoh |
| 03:48:46 | bobdaduck | Want to see the fruits of your labors? |
| 03:48:58 | raptor | uh oh |
| 03:49:00 | raptor | and yes! |
| 03:49:04 | bobdaduck | Pass is your real name capitalised |
| 03:50:36 | SolumnMushroom | Goodbye all |
| 03:50:45 | | SolumnMushroom Quit (Quit: Leaving) |
| 03:53:25 | bobdaduck | I think I can probably figure it out, honestly |
| 03:53:32 | raptor | ok, nevermind |
| 03:53:36 | raptor | use a global bool |
| 03:53:41 | bobdaduck | right |
| 03:53:49 | raptor | set it to something then when you run the function change it |
| 03:54:03 | raptor | but check it before running the function |
| 03:54:32 | bobdaduck | Already done |
| 03:54:46 | raptor | there's a special coding word for that... |
| 03:55:01 | bobdaduck | Switch? |
| 03:55:03 | bobdaduck | Toggle? |
| 03:55:10 | bobdaduck | Blackbox? |
| 03:55:13 | bobdaduck | Encapsulation? |
| 03:55:17 | bobdaduck | For loops? |
| 03:55:48 | bobdaduck | Code gremlins? |
| 03:56:54 | raptor | idempotence |
| 03:56:58 | raptor | that's the word |
| 03:57:05 | bobdaduck | lol |
| 03:57:12 | bobdaduck | I'm going to stick with "toggle", thanks. |
| 03:57:16 | raptor | basically if you try to run something loads of times, it just operates that once |
| 03:57:21 | raptor | oh ok |
| 03:59:55 | raptor | who in their right mind makes the default size of zones be 3x9 ?? |
| 04:01:39 | raptor | ha |
| 04:01:42 | raptor | ok bobdaduck |
| 04:01:53 | | Platskies Quit (Remote host closed the connection) |
| 04:01:59 | raptor | soccerball crashes the game because it tries to send the ball home to a spawn point |
| 04:02:01 | raptor | but... |
| 04:02:12 | bobdaduck | lol |
| 04:02:21 | bobdaduck | and rofl zones |
| 04:02:30 | bobdaduck | but....? |
| 04:02:38 | raptor | no spawn points... |
| 04:02:53 | raptor | so tell me |
| 04:02:58 | raptor | the best way to handle this |
| 04:03:06 | raptor | i see at least two options: |
| 04:03:19 | raptor | 1. send the ball to 0,0 (some default spawn point) |
| 04:03:38 | raptor | 2. send the ball to where it started (might get a bit crazy) |
| 04:03:42 | raptor | 3. something else? |
| 04:03:46 | raptor | ideas? |
| 04:05:39 | bobdaduck | lol |
| 04:05:57 | bobdaduck | Lemme think for a second |
| 04:06:03 | raptor | because, you're the closest person I have to a developer at the moment... :) |
| 04:06:08 | bobdaduck | lol |
| 04:07:30 | bobdaduck | Where it started is best |
| 04:07:45 | bobdaduck | IF there's no flag spawns on the level. |
| 04:07:52 | bobdaduck | If there's flag spawns it should set those as the default. |
| 04:07:58 | raptor | hmm... ok |
| 04:09:20 | raptor | oh yikes this will be complicated |
| 04:09:23 | raptor | because |
| 04:09:34 | raptor | hmmm |
| 04:09:42 | raptor | i'd have to create a new spawn point object as well |
| 04:09:50 | raptor | and then that is part of the level for good |
| 04:10:53 | bobdaduck | lol |
| 04:10:58 | raptor | wait, i dea |
| 04:11:01 | bobdaduck | Well |
| 04:11:18 | bobdaduck | Soccerballs pre-placed into level auto generate a spawnpoint right? |
| 04:11:21 | bobdaduck | couldn't they use that? |
| 04:11:27 | raptor | yes! |
| 04:11:33 | raptor | and i just found out how |
| 04:11:42 | bobdaduck | lol okay |
| 04:24:00 | raptor | i'm evangelizing |
| 04:24:55 | raptor | someone asked about how to do something in SDL2 (our main game framework), and I said: "here, look at this cool game that does just what you want" |
| 04:27:27 | bobdaduck | rofl |
| 04:27:29 | | BFLogBot Commit: d6f47df4bd34 | Author: buckyballreaction | Message: Fix crash: If a soccerball is added by Lua, make sure a spawn point is set at it's starting location. Is this what we want? |
| 04:28:24 | | kaen has joined |
| 04:29:14 | | BFLogBot Commit: 5b4ef6a24953 | Author: buckyballreaction | Message: Oops, completely forgot the Lua test for the soccer ball |
| 04:31:21 | bobdaduck | lol |
| 04:31:49 | raptor | I just found out that I could have sold my blood for several hundred dollars |
| 04:32:11 | raptor | although that would feel weird to do... sell it |
| 04:38:47 | bobdaduck | rofl |
| 04:38:58 | bobdaduck | Donating plasma or blood? |
| 04:39:44 | raptor | blood |
| 04:39:57 | raptor | plasma for money always felt wrong to do |
| 04:40:20 | raptor | but apparently i have the one blood type that they well allow people to pay for |
| 04:40:44 | raptor | O negative |
| 04:41:04 | raptor | but i'd still feel dirty being paid for blood |
| 04:41:10 | raptor | such a weird business... |
| 04:46:30 | bobdaduck | lol |
| 04:46:38 | bobdaduck | You're saving people's lives |
| 04:46:45 | bobdaduck | Doctors charge for that, don't they? |
| 04:47:01 | raptor | acutally, in my case, i found out that it's almost certain its saving lives |
| 04:47:26 | raptor | because O negative is the universal blood, so it is used in trauma situations (like car crashes) where there is no time to find out the blood type |
| 04:47:53 | raptor | anyways, the snacks afterwards were yummy |
| 04:48:13 | raptor | i ate the equivalent of 4 candy bars |
| 04:48:16 | raptor | or so |
| 04:48:19 | raptor | and 3 juices |
| 04:51:19 | bobdaduck | rofl |
| 04:51:33 | | BFLogBot Commit: 22299b8ff468 | Author: buckyballreaction | Message: Revert 66817280e64a (new asteroid sounds) so 018a servers don't give weird sound glitches to 018 clients |
| 04:51:58 | raptor | now to find that editor bug of Little_Apples |
| 05:00:51 | raptor | bobdaduck: any more bugs? |
| 05:00:58 | bobdaduck | Probably! |
| 05:01:21 | bobdaduck | Uh... |
| 05:01:34 | bobdaduck | Add an editor: GetOnScreen method for ship objects? |
| 05:01:51 | raptor | wait |
| 05:01:59 | raptor | that isn't still crashing you is it? |
| 05:02:06 | raptor | (didn't i give you a release build?) |
| 05:03:07 | bobdaduck | No its not crashing |
| 05:03:12 | bobdaduck | Its just annoying :P |
| 05:03:23 | raptor | how so? |
| 05:03:43 | raptor | oh, the dot? |
| 05:03:47 | bobdaduck | Yeah. |
| 05:03:50 | raptor | you want a ship to appear... |
| 05:03:55 | raptor | sigh |
| 05:04:12 | bobdaduck | lol |
| 05:04:20 | bobdaduck | Or at least say "Ship Item" |
| 05:04:30 | bobdaduck | instead of "EDITOR GETONSCREEN METHOD NOT IMPLEMENTED ARGGHHHHh" |
| 05:08:49 | raptor | haha |
| 05:15:36 | bobdaduck | MAN |
| 05:15:45 | bobdaduck | Its not letting me dynamically change a flags team randomly. |
| 05:16:24 | raptor | randomly? |
| 05:16:31 | bobdaduck | Well no. |
| 05:16:36 | bobdaduck | I dunno, my code is probably wrong |
| 05:16:44 | bobdaduck | Its not returning any errors though so |
| 05:17:43 | raptor | i can review if you'd like |
| 05:18:00 | bobdaduck | Nah |
| 05:18:07 | bobdaduck | It was just an aesthetic thing anyway |
| 05:18:38 | bobdaduck | Lol you don't even want to know what I would do with changing teams as a part of the level mechanics |
| 05:19:41 | raptor | evil |
| 05:19:48 | raptor | that's what you'd do |
| 05:38:24 | raptor | ok, bug hunting done for the night... |
| 05:38:25 | | BFLogBot Commit: aa87d3b12339 | Author: buckyballreaction | Message: Be consistent with 'Teleporter' name |
| 05:38:26 | | BFLogBot Commit: c4abdf435f9d | Author: buckyballreaction | Message: For bobdaduck: Fix ghost ship name in editor |
| 05:38:28 | | BFLogBot Commit: ff2c0a1de03b | Author: buckyballreaction | Message: Fix Core rendering bug when arbitrarily rotating it in the editor |
| 05:38:44 | bobdaduck | yay! |
| 05:38:58 | raptor | ok, want a new build before I go to bed? |
| 05:39:06 | raptor | this one let's you see the IDs in the editor, too.. |
| 05:39:09 | bobdaduck | Did you add asteroid spawning sizes? |
| 05:39:14 | raptor | uhh |
| 05:39:17 | bobdaduck | lol |
| 05:39:18 | raptor | no... |
| 05:39:23 | bobdaduck | okay |
| 05:39:23 | | raptor goes back to code |
| 05:39:27 | bobdaduck | xD |
| 05:39:32 | bobdaduck | You can go to bed if you want... |
| 05:40:03 | raptor | actually asteroid size is probably a good setter because we'd want small ones too |
| 05:43:14 | bobdaduck | Can we add ships and robots via levelgen? |
| 05:43:18 | raptor | NO |
| 05:43:19 | raptor | NEVER |
| 05:43:21 | raptor | EVER |
| 05:43:26 | raptor | maybe robots |
| 05:43:29 | bobdaduck | lol |
| 05:43:34 | raptor | some day |
| 05:43:58 | raptor | but that will be some work... because they'd have to plug into the robot running engine |
| 05:44:04 | bobdaduck | ah, yes. |
| 05:44:07 | bobdaduck | Well, oh well |
| 05:44:09 | bobdaduck | I'm going to bed |
| 05:44:22 | raptor | wait |
| 05:44:24 | raptor | question |
| 05:44:29 | bobdaduck | yeah |
| 05:44:38 | raptor | what happens if you call getSize() on an asteroid? |
| 05:44:44 | raptor | the code is a little ambiguous |
| 05:44:49 | bobdaduck | Uh. |
| 05:47:19 | bobdaduck | Returns asteroid size |
| 05:47:33 | raptor | yes |
| 05:47:38 | raptor | but what numbers for what size? |
| 05:47:46 | raptor | i'll let you go to bed anyways.. |
| 05:47:52 | bobdaduck | 3 for normal size |
| 05:47:54 | bobdaduck | 2 for medium |
| 05:47:57 | bobdaduck | 1 for small... |
| 05:48:01 | raptor | excellent! thanks! |
| 05:48:17 | bobdaduck | Just like in the level editor... xD |
| 05:48:19 | bobdaduck | goodnight |
| 05:48:20 | | bobdaduck Quit (Quit: Page closed) |
| 06:50:19 | | kodaws has joined |
| 06:53:06 | | BFLogBot Commit: c4326a4265a7 | Author: buckyballreaction | Message: Lua API: Asteroid:setSize() method added. Did I do this right? |
| 07:03:25 | raptor | and with that, good night! |
| 07:12:08 | | raptor Quit () |
| 07:18:27 | | kaen Quit (Read error: Connection timed out) |
| 07:33:07 | | Darrel has joined |
| 07:38:27 | | raptor has joined |
| 07:38:27 | | ChanServ sets mode +o raptor |
| 08:44:44 | | watusimoto has joined |
| 08:44:44 | | ChanServ sets mode +o watusimoto |
| 08:45:34 | raptor | hello! |
| 08:54:09 | | kodane has joined |
| 08:58:23 | raptor | ok watusimoto, i just finished merging in all changes upto the second-to-latest revision of LuaWrapper |
| 08:58:32 | watusimoto | hi |
| 08:58:36 | watusimoto | really? |
| 08:58:37 | raptor | hi |
| 08:58:39 | raptor | yes |
| 08:58:40 | raptor | it compiles, it runs - bots crash |
| 08:58:41 | watusimoto | great |
| 08:58:46 | watusimoto | same crash? |
| 08:58:49 | raptor | no |
| 08:58:57 | watusimoto | progress then! |
| 08:59:06 | raptor | crash on the absolute first call of a method |
| 08:59:10 | watusimoto | you included the older changes, I assume |
| 08:59:10 | raptor | every time |
| 08:59:14 | raptor | yes |
| 08:59:25 | watusimoto | that strikes me as a different sort of problem |
| 08:59:32 | raptor | yep |
| 08:59:33 | watusimoto | maybe just a simple implementation bug |
| 08:59:56 | watusimoto | probably on our part, the way we had to alter things slightly to make them work with proxies |
| 08:59:59 | raptor | i went through everything line-by-line diff with upstream |
| 09:00:07 | raptor | yeah |
| 09:00:22 | watusimoto | so that's not a discouraging to me |
| 09:00:30 | raptor | well, I think I'm finally ready to sleep... |
| 09:00:32 | watusimoto | ha |
| 09:00:34 | raptor | want my changes? |
| 09:00:36 | watusimoto | what time is it there? |
| 09:00:37 | watusimoto | yes |
| 09:00:40 | raptor | 2AM |
| 09:00:45 | watusimoto | :-) |
| 09:01:00 | watusimoto | email me a diff file; you can do it in the morning if you want |
| 09:01:05 | raptor | ok, i have two diffs |
| 09:01:13 | raptor | one to revert to our caching release |
| 09:01:20 | raptor | one to bring us upstream more |
| 09:01:25 | raptor | want them combined? |
| 09:01:31 | watusimoto | whatever makes sense |
| 09:01:46 | watusimoto | I'm not sure I'm psychologically prepared for this yet! |
| 09:01:52 | raptor | ok, i'll send them separately |
| 09:01:53 | watusimoto | the psychic scars are still sore |
| 09:01:54 | raptor | haha |
| 09:01:57 | raptor | hahaha |
| 09:02:01 | raptor | tell me about it.. |
| 09:02:06 | watusimoto | but WE WILL PREVAIL |
| 09:02:46 | watusimoto | ok, I'll look for it and see what I think. Get some sleep! |
| 09:04:13 | raptor | send via e-mail? |
| 09:04:18 | watusimoto | sure |
| 09:04:39 | watusimoto | thanks for jumping headfirst into the bowl of fire |
| 09:04:57 | watusimoto | that way I can enter more tentavely, try to get used to the temperature |
| 09:05:02 | raptor | haha |
| 09:05:43 | raptor | I've been fixing bugs all night, too |
| 09:05:51 | watusimoto | ok, good |
| 09:05:56 | raptor | so far 018a is looking quite stable |
| 09:06:01 | watusimoto | we fix them about the rate they're found |
| 09:06:19 | watusimoto | well, it has far fewer bugs than 018 |
| 09:06:20 | raptor | little_apple and bobdaduck have been good beta testers so far |
| 09:06:23 | watusimoto | good |
| 09:06:33 | watusimoto | Maybe we should add a testing section to the credits?? |
| 09:06:50 | raptor | Didn't I bring that up last time? |
| 09:06:53 | watusimoto | though that might just open the flood gates |
| 09:07:00 | watusimoto | yes, I think you did |
| 09:07:10 | raptor | we determined it will flood |
| 09:07:10 | watusimoto | I don't remember what we decided |
| 09:07:28 | raptor | so i compromised and mentioned specific people in the release announcement |
| 09:07:48 | raptor | Little_Apple still wants his bug finding badge... |
| 09:07:52 | watusimoto | ha |
| 09:08:16 | watusimoto | https://www.google.com/search?q=bug+icon&hl=en&safe=off&tbm=isch&tbo=u&source=univ&sa=X&ei=fHssUa7sNM-M0wXwg4A4&sqi=2&ved=0CDUQsAQ&biw=1600&bih=734 |
| 09:08:31 | watusimoto | http://files.softicons.com/download/toolbar-icons/wpzoom-developer-icon-set-by-wpzoom/png/48/bug.png |
| 09:08:33 | raptor | that's just what I was thinking! :) |
| 09:09:02 | watusimoto | though finding bugs is so easy! |
| 09:09:15 | raptor | haha, yeah.. |
| 09:09:50 | watusimoto | though I suppose a well described bug report is exactly what we want to encourage |
| 09:11:38 | raptor | So far I've been getting good ones from some of the 'older' players |
| 09:11:49 | watusimoto | they're learning |
| 09:12:15 | raptor | OK, well, off to bed for me |
| 09:12:19 | watusimoto | your real victory will be when amgine submits a well described, gramataically correct bug report |
| 09:12:22 | watusimoto | ok, good night |
| 09:14:19 | raptor | night! |
| 09:14:57 | | raptor Quit () |
| 09:56:08 | | kaen has joined |
| 09:57:04 | | kodane Quit (Quit: Colloquy for iPhone - http://colloquy.mobi) |
| 09:57:30 | | kaen Quit (Max SendQ exceeded) |
| 09:58:16 | | kaen has joined |
| 10:44:03 | | kodane has joined |
| 12:28:19 | | kodane Quit (Quit: Colloquy for iPhone - http://colloquy.mobi) |
| 14:48:03 | | kaen Quit (Ping timeout: 252 seconds) |
| 15:03:37 | | watusimoto Quit (Read error: Connection reset by peer) |
| 15:04:07 | | watusimoto has joined |
| 15:04:07 | | ChanServ sets mode +o watusimoto |
| 16:38:46 | | raptor has joined |
| 16:38:47 | | ChanServ sets mode +o raptor |
| 16:38:55 | raptor | good day! |
| 16:40:03 | raptor | haha Lamp - did exactly the opposite of what you suggested in rating the game on Desura.. |
| 16:40:22 | | Little_Apple has joined |
| 16:40:50 | Little_Apple | hello |
| 16:40:53 | raptor | hi |
| 16:41:06 | Little_Apple | how go the things? |
| 16:41:14 | raptor | the things go well |
| 16:41:36 | Little_Apple | thats good |
| 16:42:05 | raptor | oh |
| 16:42:13 | raptor | want another beta build? |
| 16:42:37 | Little_Apple | yes pleeease |
| 16:42:51 | raptor | I've fixed all of your bugs so far.. |
| 16:43:01 | Little_Apple | oh boy! |
| 16:44:34 | raptor | 64bit still OK? |
| 16:44:55 | Little_Apple | yep |
| 16:46:17 | raptor | building... |
| 16:47:15 | Little_Apple | can we fix it? |
| 16:47:22 | raptor | fix what? |
| 16:48:34 | Little_Apple | the bugs? |
| 16:48:47 | raptor | are you thinking of specific ones? |
| 16:50:14 | Little_Apple | oh nevermind. i was going for a bad pun. |
| 16:51:07 | raptor | yes. completely lost on me |
| 16:51:32 | raptor | ok Little_Apple, new build: http://sam6.25u.com/upload/Bitfighter-018a-64bit-beta2-c4326a4265a7.zip |
| 16:51:48 | Little_Apple | thank yooou |
| 16:55:46 | Little_Apple | i think the sound is broken... |
| 16:57:09 | Little_Apple | yep. raptor, you broke the sound :D |
| 16:58:26 | raptor | what |
| 16:58:37 | raptor | turn up the volume |
| 16:58:54 | Little_Apple | i did |
| 16:59:10 | Little_Apple | i opened the previous build too and the sound works fine. |
| 16:59:18 | Little_Apple | soooo...... |
| 16:59:18 | raptor | oops |
| 16:59:20 | raptor | fixing.. |
| 16:59:23 | Little_Apple | :P |
| 17:09:22 | raptor | i can't find the problem Little_Apple |
| 17:09:29 | Little_Apple | hmm |
| 17:09:29 | raptor | can you open the application 'Console' |
| 17:09:34 | Little_Apple | ok |
| 17:09:49 | raptor | and see if there is a weird error message when starting the game? |
| 17:09:53 | Little_Apple | k |
| 17:09:59 | raptor | you may have to start, then exit the game for th emessages to appear |
| 17:10:03 | raptor | Console is dumb that way |
| 17:10:48 | Little_Apple | lol |
| 17:11:17 | Little_Apple | i dont see any messages from bitfighter... |
| 17:11:46 | raptor | oh, haha |
| 17:11:49 | raptor | ok, found the problem |
| 17:11:53 | Little_Apple | awesome |
| 17:12:03 | raptor | let me get you a new build |
| 17:12:06 | raptor | please delete the old |
| 17:12:56 | Little_Apple | gotcha |
| 17:18:24 | | BFLogBot Commit: 7d61d135e122 | Author: buckyballreaction | Message: Fix broken sound loading due to the rename of the asteroid sounds |
| 17:25:27 | raptor | ok Little_Apple, try this one: http://sam6.25u.com/upload/Bitfighter-018a-beta2-7d61d135e122-OSX-64bit.zip |
| 17:25:30 | raptor | and thanks! |
| 17:25:58 | Little_Apple | no, thank you, sensei. |
| 17:28:13 | Little_Apple | hooray! sound is back! |
| 17:28:18 | raptor | oh good! |
| 17:33:01 | raptor | Your SpyBug should work now, too... :) |
| 17:36:55 | Little_Apple | i doubt the script would work anyways :P |
| 17:38:41 | Little_Apple | is there a way to spawn in multiple items without having to have a line for each item? |
| 17:40:48 | raptor | yes, you can use a loop |
| 17:41:31 | raptor | for i = 1, 10 do |
| 17:41:38 | raptor | spawnWhatever(location) |
| 17:41:40 | raptor | end |
| 17:41:49 | raptor | that will spawn 10 items |
| 17:41:53 | raptor | in 3 lines of code |
| 17:42:27 | raptor | but it only works if the location is the same |
| 17:42:52 | raptor | if you want the location to be different on each spawned item, then you'll have to do them separately or do some math |
| 17:43:17 | raptor | brb |
| 17:43:21 | | raptor Quit () |
| 17:51:45 | | raptor has joined |
| 17:51:45 | | ChanServ sets mode +o raptor |
| 17:56:11 | Little_Apple | so... what |
| 17:56:18 | raptor | ? |
| 17:56:29 | raptor | i had to restart everything, what were we taking about? |
| 17:56:29 | Little_Apple | for i = 1, 10 do |
| 17:56:36 | Little_Apple | spawnWhatever(location) |
| 17:56:40 | Little_Apple | end |
| 17:56:44 | raptor | oh yeah |
| 17:56:52 | Little_Apple | wha? |
| 17:57:11 | raptor | that's how you us a 'for' loop to do 10 things over and over again |
| 17:57:25 | | watusimoto Quit (Ping timeout: 272 seconds) |
| 17:57:42 | Little_Apple | so.. do i need to put anywhere in particular? |
| 17:57:54 | raptor | maybe if you told me your problem first... |
| 17:58:17 | Little_Apple | uno momento... |
| 17:59:34 | Little_Apple | ill send another pastie.... |
| 17:59:44 | Little_Apple | hopefully its not as ugly as the last one |
| 17:59:59 | Little_Apple | http://pastie.org/6342792 |
| 18:00:24 | raptor | ok |
| 18:00:28 | raptor | so |
| 18:00:39 | raptor | do you want to spawn everything at the same location? |
| 18:00:50 | Little_Apple | yep |
| 18:00:55 | raptor | all the same object? |
| 18:00:58 | Little_Apple | yep |
| 18:01:05 | raptor | then instead of the line: spawnResource(spawnPoint1) |
| 18:01:07 | raptor | use: |
| 18:01:13 | raptor | for 1, 10 do |
| 18:01:16 | raptor | spawnResource(spawnPoint1) |
| 18:01:17 | raptor | end |
| 18:01:20 | Little_Apple | ok |
| 18:01:32 | raptor | that will spawn 10 items at that exact location |
| 18:02:06 | Little_Apple | would it help if the script works in the first place? |
| 18:02:14 | raptor | YES |
| 18:02:29 | Little_Apple | oh.. well it doesnt... |
| 18:02:39 | raptor | error? |
| 18:04:16 | Little_Apple | could not validate params for function bfobject::setloc |
| 18:05:24 | raptor | change resourceitem:setLoc(0,0) |
| 18:05:31 | raptor | to |
| 18:05:36 | raptor | resourceitem:setLoc(location) |
| 18:05:40 | Little_Apple | ok |
| 18:07:02 | Little_Apple | still not working... |
| 18:07:13 | raptor | that's not descriptive enough! |
| 18:07:42 | Little_Apple | it gave me the same message... |
| 18:07:50 | raptor | use /clearcache |
| 18:07:51 | | kodaws Quit (Ping timeout: 245 seconds) |
| 18:07:54 | raptor | and restart the level |
| 18:08:33 | Little_Apple | same message |
| 18:10:06 | raptor | um |
| 18:10:15 | | Watusimoto has joined |
| 18:10:19 | Little_Apple | yolo |
| 18:11:46 | raptor | works for me! |
| 18:12:54 | Watusimoto | hi |
| 18:13:01 | raptor | hi |
| 18:13:18 | Watusimoto | so what is that big white line on our website -- any idea? |
| 18:13:18 | Little_Apple | can i see your script? |
| 18:13:22 | Little_Apple | i probably did something wrong |
| 18:13:27 | raptor | Watusimoto: ?? |
| 18:13:32 | Watusimoto | it's a div that contains n/a |
| 18:13:43 | Watusimoto | and is of type "unpublished node" or something |
| 18:13:58 | raptor | what |
| 18:14:03 | raptor | one moment.. |
| 18:14:32 | Watusimoto | do you see it on hour home page? just below the bitfighter 018 released story, just above tbe Bitfighter videos story |
| 18:15:07 | Little_Apple | i see it... |
| 18:15:25 | Watusimoto | interesting... it seems to have altered type since I last looked at it a few hours ago |
| 18:15:26 | Watusimoto | <div class="entry">n/a</div> |
| 18:16:11 | raptor | huh, it's there |
| 18:16:30 | raptor | Little_Apple: this works: http://pastie.org/6342877 |
| 18:17:16 | raptor | Watusimoto: so weird... |
| 18:18:07 | Little_Apple | oooh |
| 18:18:11 | Little_Apple | i see what i did wrong |
| 18:18:29 | Little_Apple | i forgot to add an end |
| 18:18:43 | raptor | Watusimoto: it also looks like several nodes are missing |
| 18:19:01 | Watusimoto | what do you mean? |
| 18:19:05 | raptor | i wonder if my user delete deleted them |
| 18:19:17 | raptor | older main page entry items |
| 18:19:21 | Watusimoto | I deleted all the old unpublished stories, and unpublished one of the storis from th efront page |
| 18:19:24 | Watusimoto | yes, that |
| 18:19:31 | raptor | oh ho! |
| 18:19:34 | raptor | you're the culprit! |
| 18:19:43 | Watusimoto | but only this afternoon! |
| 18:19:46 | raptor | ha! |
| 18:19:50 | raptor | guilty! |
| 18:19:54 | Watusimoto | uh oh |
| 18:20:03 | Watusimoto | guilty of what... exactly? |
| 18:20:12 | raptor | not sure yet |
| 18:20:16 | Little_Apple | yes! i got mine to work! |
| 18:20:16 | raptor | but guilty none the less |
| 18:20:19 | raptor | Little_Apple: yay |
| 18:22:10 | Watusimoto | the white div predated any action on my part |
| 18:22:43 | Watusimoto | in fact led to my actions |
| 18:23:03 | raptor | oh really |
| 18:24:31 | raptor | huh |
| 18:29:35 | Watusimoto | yup |
| 18:29:52 | raptor | in that case i'm probably the culprit somehow |
| 18:30:03 | raptor | probably with the plugin i had to install to bulk remove users |
| 18:30:06 | Watusimoto | maybe it was you, or perhaps sam, or whomever once asked if we should get rid of drupal |
| 18:30:20 | Watusimoto | I was thinking about that on the way home from work |
| 18:30:24 | Watusimoto | go to a static page |
| 18:31:18 | Watusimoto | because we make very little use of drupal |
| 18:31:34 | Watusimoto | most of what we use it for is to be a container for static chunks of html |
| 18:31:47 | raptor | yes |
| 18:32:00 | raptor | I will be the first to say: I hate website building |
| 18:32:31 | Watusimoto | I'll be the second! |
| 18:33:34 | Watusimoto | also, I think we should add a stats button to our now overcrowded main menu bar |
| 18:33:52 | Watusimoto | maybe move contact under get involved |
| 18:33:54 | Watusimoto | to make room |
| 18:34:07 | raptor | argh |
| 18:34:16 | raptor | i can't figure this out right now... need to focus on work stuff |
| 18:34:21 | Watusimoto | no worries |
| 18:34:29 | Watusimoto | I'll be around |
| 18:57:01 | raptor | so for drupal, i had to install a new module called 'Views' |
| 18:57:19 | raptor | this would let me do bulk operations like delete 5000+ users |
| 19:08:47 | Little_Apple | raptor: can levelgens alter objects that already exist in the level that havent been added by the levelgen itself? |
| 19:09:09 | raptor | yes |
| 19:09:14 | raptor | but you have to find them |
| 19:09:39 | Little_Apple | would it be simpler to just add it with the levelgen first? |
| 19:09:57 | raptor | that would be easier, because you'd know the ID and can grab it directly |
| 19:10:16 | raptor | otherwise, you'll have to do a finding method on a specific type |
| 19:10:22 | raptor | see the orbitbot.bot code |
| 19:17:52 | Watusimoto | ok, going to dinner -- will look at drupal more later |
| 19:19:03 | raptor | do Lua instead! |
| 19:19:10 | raptor | or something with code |
| 19:19:25 | raptor | forget the website it can manage itself :) |
| 19:22:55 | | Watusimoto Quit (Ping timeout: 272 seconds) |
| 19:25:33 | Little_Apple | woah people online |
| 19:25:49 | raptor | and all are on 017 servers |
| 19:26:59 | Little_Apple | oh dear |
| 19:28:02 | raptor | it's the canadian technical school! |
| 19:28:04 | raptor | BDHS |
| 19:28:12 | Little_Apple | seriously? |
| 19:28:16 | raptor | they have homemade maps... i want to break in.. |
| 19:28:18 | raptor | yes |
| 19:28:20 | Little_Apple | wow lol |
| 19:28:41 | Little_Apple | thats awesome lol |
| 19:30:49 | raptor | I"M IN |
| 19:31:03 | raptor | oh bother |
| 19:31:12 | Little_Apple | kicked? |
| 19:31:13 | raptor | they quit right when i joined!! |
| 19:31:17 | Little_Apple | ahahaha |
| 19:31:18 | raptor | server is gone.. |
| 19:31:38 | Little_Apple | maybe the students were playing behind the teacher's back |
| 19:31:45 | Little_Apple | and got caught |
| 19:31:46 | raptor | there were 10 of them.. |
| 19:32:18 | Little_Apple | maybe between class? |
| 19:32:40 | raptor | huh, yeah that would make sense |
| 19:34:19 | Little_Apple | ok, so how would i have a levelgen add in a teleporter? |
| 19:34:38 | raptor | you know how to add things now, right? |
| 19:34:49 | Little_Apple | sort of |
| 19:35:09 | raptor | addint has three steps: |
| 19:37:32 | raptor | http://pastie.org/6343293 |
| 19:37:38 | raptor | i documented the steps ^ |
| 19:38:07 | raptor | so with Teleporters steps 1 and 3 will be essentially the same |
| 19:38:18 | Little_Apple | oh thanks |
| 19:38:25 | raptor | but with step 2, you look here to help you out: http://bitfighter.org/luadocs/index.html |
| 19:38:33 | raptor | select 'Teleporter' from the class list |
| 19:38:47 | raptor | a teleporter will have a Geom instead of Loc |
| 19:39:22 | raptor | so use: :setGeom(point.new(0,0), point.new(1,1)) |
| 19:39:40 | raptor | where the first point is the teleporter entrance location, the second is the exit location |
| 19:40:35 | Little_Apple | ok... |
| 19:40:39 | Little_Apple | i can work with that |
| 19:40:50 | raptor | excellent |
| 19:41:09 | raptor | in case you don't know already, I'm trying to get you to understand things instead of just write code for you.. :) |
| 19:41:16 | raptor | (even though I write code for you..) |
| 19:41:30 | Little_Apple | lol |
| 19:41:43 | Little_Apple | yea i dont want you to write everything for me :P |
| 19:41:55 | Little_Apple | so ill try to figure mose of this out on my own if i can |
| 19:42:59 | raptor | hopefully i can help break it up into understandable pieces |
| 19:44:29 | Little_Apple | what you gave me is fine for now |
| 19:45:45 | Little_Apple | im guessing i won't need to assign a team to a teleporter |
| 19:46:07 | raptor | heh, nope |
| 19:49:17 | Little_Apple | dont i need some kind of action to add in the teleporter? |
| 19:49:39 | raptor | yes |
| 19:49:56 | Little_Apple | because isnt the pastie you sent me like setting up the command waiting for something to give it a yes? |
| 19:50:04 | raptor | correct |
| 19:50:09 | Little_Apple | woohoo |
| 19:50:11 | raptor | you'll need to run that command somehow |
| 19:50:25 | raptor | you do can do that in a number of ways: |
| 19:50:38 | raptor | 1. on level start within the main() portion of the script |
| 19:50:57 | raptor | 2. triggered by an event (onShipEnteredZone, etc.) |
| 19:51:03 | raptor | 3. Using a timer |
| 19:51:35 | Little_Apple | this teleporter is going to be around from the start so i think it would be best to have it start from the main() |
| 19:52:42 | raptor | ok, then you put your spawnTeleporter() or whatever method in main() |
| 19:52:49 | raptor | and it would show up a the start of a level |
| 19:52:59 | Little_Apple | ok thanks |
| 19:53:30 | Little_Apple | aha! it works! |
| 19:53:34 | Little_Apple | i didnt mess anything up! |
| 19:53:56 | raptor | great! |
| 19:55:30 | | kodapad has joined |
| 19:55:49 | Little_Apple | oh man levelgens are so cool |
| 19:56:26 | raptor | hah |
| 19:56:27 | raptor | yes |
| 19:56:34 | raptor | world's of possibilities! |
| 20:00:07 | | LordDVG has joined |
| 20:00:31 | Little_Apple | raptor: if i were to change the destination of a teleporter would i use setGeom or clearDests and then addDest? |
| 20:00:46 | Little_Apple | im guessing the second |
| 20:01:17 | raptor | yes, use the second |
| 20:01:45 | Little_Apple | ok |
| 20:02:16 | raptor | in fact, i have a ready made function for you |
| 20:02:17 | raptor | http://pastie.org/6343423 |
| 20:02:27 | raptor | but you need ot knwo the teleportedId in that one |
| 20:02:33 | raptor | teleporter ID |
| 20:02:43 | raptor | but that does just what you described |
| 20:04:02 | Little_Apple | so would i put the name of the teleporter into the parentheses? |
| 20:04:15 | Little_Apple | or would i need to assign an id in the levelgen? |
| 20:08:55 | | bobdaduck has joined |
| 20:08:58 | Little_Apple | hello |
| 20:09:33 | bobdaduck | hilow |
| 20:12:20 | raptor | when you create it, grab the id |
| 20:12:29 | raptor | store it in a global variable |
| 20:12:53 | raptor | hmm... our luadocs are out of date.. |
| 20:13:00 | raptor | let me see iif i can update them |
| 20:19:00 | Little_Apple | i dont want to have to resort to explaining my entire script to this koala here... |
| 20:19:22 | | bobdaduck_ has joined |
| 20:19:34 | raptor | haha |
| 20:22:21 | | bobdaduck Quit (Ping timeout: 245 seconds) |
| 20:22:35 | Little_Apple | ill get this thing working eventually... |
| 20:28:31 | raptor | yay Lua doc updated |
| 20:28:39 | raptor | there is a getId() |
| 20:28:43 | raptor | method for any object |
| 20:29:06 | raptor | so after addint the teleport, grab the ID |
| 20:29:12 | raptor | right after levelgen:addItem... |
| 20:29:29 | bobdaduck_ | There's a getId method? |
| 20:29:32 | raptor | do teleporterId = object:getId() |
| 20:29:35 | raptor | bobdaduck_: yes |
| 20:29:45 | raptor | oh bobdaduck_, can i get you a latest beta build? |
| 20:29:48 | bobdaduck_ | So if a resourceitem crossed a zone, I could get the ID of it and then delete it... Right? |
| 20:29:56 | bobdaduck_ | uh, sure. |
| 20:30:00 | bobdaduck_ | I'm at work but. |
| 20:30:03 | bobdaduck_ | What's in it? |
| 20:30:10 | raptor | bug fixes from last night |
| 20:30:30 | bobdaduck_ | Can I assign IDs to walls now? |
| 20:30:36 | raptor | bobdaduck_: no :( |
| 20:30:44 | raptor | that's going to be a problem |
| 20:30:58 | bobdaduck_ | lol |
| 20:30:59 | bobdaduck_ | okay |
| 20:31:19 | raptor | ok, i'll get you the build later when you're at home.. |
| 20:31:41 | raptor | ever object that is added to the level has an auto-assigned ID |
| 20:31:53 | raptor | usually some negative number -1, -2, etc |
| 20:32:13 | raptor | but you cannot trigger an event with a resource crossing a zone, only ships... |
| 20:33:12 | bobdaduck_ | what? Why not? |
| 20:33:28 | raptor | because only ship's crossing zones is coded in |
| 20:34:10 | bobdaduck_ | So I can't delete resourceitems when they enter a zone? |
| 20:34:18 | bobdaduck_ | Without using complicated math? |
| 20:34:37 | raptor | no |
| 20:34:44 | raptor | there is no event trigger for that |
| 20:34:58 | raptor | events: http://bitfighter.org/luadocs/group___event_enum.html |
| 20:36:10 | bobdaduck_ | Messsage recieved.... |
| 20:36:13 | bobdaduck_ | like, chat commands? |
| 20:38:32 | raptor | yes |
| 20:38:45 | raptor | have you not looked at eliza?? |
| 20:38:59 | bobdaduck_ | Nah I haven't touched bots. |
| 20:39:17 | raptor | so you can have a levelgen now wait for a person to say a specific word and do a trigger :) |
| 20:39:30 | bobdaduck_ | Engineering resourceitems |
| 20:39:34 | bobdaduck_ | healthpacks |
| 20:39:37 | bobdaduck_ | energyitems |
| 20:39:54 | bobdaduck_ | Nope, not even going to try it. |
| 20:39:57 | bobdaduck_ | On principle. |
| 20:41:15 | Little_Apple | think of the possibilities! |
| 20:41:19 | Little_Apple | math problems in dungeons! |
| 20:43:37 | Little_Apple | raptor: how do i find the id of the teleporter in my levelgen? |
| 20:43:38 | bobdaduck_ | lol |
| 20:43:54 | Little_Apple | is it just local object1 = Teleporter.new() ? |
| 20:46:20 | raptor | then |
| 20:46:21 | raptor | do |
| 20:46:33 | raptor | objectId = object1:getId() |
| 20:46:43 | raptor | and now objectId has the ID in it |
| 20:53:08 | Little_Apple | ok i almost got it working... |
| 20:56:12 | raptor | want to show my what you have? |
| 20:57:27 | Little_Apple | ok... |
| 20:57:36 | Little_Apple | i got it so it takes away the destination.. |
| 20:57:42 | Little_Apple | but can't get it to set a new one |
| 20:58:02 | Little_Apple | http://pastie.org/6343742 |
| 21:01:36 | raptor | looking |
| 21:01:37 | raptor | brb |
| 21:05:26 | raptor | ok |
| 21:06:05 | raptor | just put this at the top of the script, outside any functions: |
| 21:06:07 | raptor | object1Id = 0 |
| 21:06:11 | raptor | that makes it global |
| 21:06:18 | Little_Apple | ok |
| 21:06:29 | raptor | then you should be able to access that in other methods |
| 21:06:41 | raptor | so spawnTele1 sets the object1Id |
| 21:06:49 | raptor | then moveTeleDest1 |
| 21:06:52 | raptor | can grab it |
| 21:08:03 | raptor | Little_Apple: looks like you're getting a hang of the syntax! |
| 21:08:10 | Little_Apple | woohoo |
| 21:09:20 | Little_Apple | but i still cant get it to set the new dest |
| 21:09:39 | raptor | oh |
| 21:09:45 | raptor | it needs to be a 'point' |
| 21:09:53 | raptor | so wrap the coords in point.new() |
| 21:10:03 | raptor | looks like that part of our doc needs updating too... |
| 21:10:17 | Little_Apple | i can get it to recognize the teleport without "object1Id = 0" |
| 21:10:25 | | Watusimoto has joined |
| 21:10:30 | raptor | OK |
| 21:10:36 | raptor | let me diagnose |
| 21:11:52 | raptor | huh |
| 21:12:18 | Little_Apple | where should the point.new() go? |
| 21:12:46 | raptor | ok, i got it working |
| 21:12:54 | Little_Apple | once i get it to redirect the exit i think i can figure the rest out |
| 21:12:57 | raptor | like this: teleporter:addDest(point.new(510,510)) |
| 21:13:02 | Little_Apple | ok thanks |
| 21:13:52 | Little_Apple | it works! |
| 21:14:06 | raptor | hooray! |
| 21:14:43 | Little_Apple | thanks :P |
| 21:15:26 | raptor | you're welcome |
| 21:15:39 | raptor | better school than school huh? :) |
| 21:15:46 | Little_Apple | lol |
| 21:15:51 | raptor | (figuring things out on your own...) |
| 21:16:05 | Little_Apple | lol yea |
| 21:16:22 | Little_Apple | i feel accomplished. |
| 21:22:34 | Little_Apple | ok. one more thing. |
| 21:22:55 | Little_Apple | how can i make it so once a zone is activated it cant be activated again? |
| 21:23:50 | raptor | you use a toggle |
| 21:23:57 | raptor | i give you an example |
| 21:24:03 | Little_Apple | k |
| 21:26:45 | raptor | idempotency: http://pastie.org/6343889 |
| 21:29:04 | Little_Apple | ok.. |
| 21:30:07 | bobdaduck_ | You make it so the function flips a switch and only runs if the switch hasn't been flipped yet. |
| 21:35:57 | Little_Apple | hooray it doesnt want to work anymore |
| 21:41:35 | Little_Apple | not working.. |
| 21:42:18 | Little_Apple | dead... |
| 21:42:21 | Little_Apple | not alive... |
| 22:14:17 | | LordDVG Quit (Remote host closed the connection) |
| 22:23:39 | raptor | hi |
| 22:26:26 | Little_Apple | hi |
| 22:26:41 | Little_Apple | raptor: i cant seem to get my script to toggle... |
| 22:28:05 | bobdaduck_ | What's the problem? |
| 22:28:44 | Little_Apple | it pretty much makes nothing work lol |
| 22:29:23 | bobdaduck_ | what's the error? |
| 22:29:41 | bobdaduck_ | And: paste the script? |
| 22:29:52 | Little_Apple | k |
| 22:30:09 | Little_Apple | http://pastie.org/6344233 |
| 22:31:17 | Little_Apple | y no work, it |
| 22:31:25 | bobdaduck_ | line 22 |
| 22:31:29 | bobdaduck_ | indentation |
| 22:31:46 | bobdaduck_ | (that probably won't break it |
| 22:31:48 | bobdaduck_ | still looking |
| 22:31:49 | bobdaduck_ | ) |
| 22:31:49 | Little_Apple | oh that... |
| 22:31:57 | Little_Apple | i put it there as a test |
| 22:32:22 | Little_Apple | it didnt work the other way either.. |
| 22:32:23 | bobdaduck_ | Are you getting an error? |
| 22:32:38 | bobdaduck_ | line 14 |
| 22:32:43 | bobdaduck_ | no () around the if statement |
| 22:33:21 | bobdaduck_ | should read: "if(tele1Toggle == true) then" |
| 22:34:00 | Little_Apple | ah. |
| 22:34:03 | Little_Apple | as i suspected. |
| 22:34:08 | Little_Apple | RAPTOR YOU HAVE FAILED ME |
| 22:34:14 | bobdaduck_ | rofl |
| 22:34:26 | Little_Apple | he gave me a faulty example lol |
| 22:34:45 | | Darrel Quit (Quit: Closed IRC client) |
| 22:35:19 | Little_Apple | still wont work though |
| 22:35:53 | bobdaduck_ | That should have given you an error.... |
| 22:37:29 | bobdaduck_ | Check the console |
| 22:37:35 | bobdaduck_ | Ctrl-/ |
| 22:37:38 | bobdaduck_ | or / |
| 22:43:51 | Little_Apple | could not validate params for teleporter::addDest() |
| 22:44:30 | Little_Apple | hmmm |
| 22:46:25 | Little_Apple | raptor: help? |
| 22:46:58 | bobdaduck_ | what line number? |
| 22:47:04 | Little_Apple | not sure... |
| 22:47:24 | bobdaduck_ | it'll say in the error |
| 22:47:35 | Little_Apple | is it possible to scroll up in the console? |
| 22:48:12 | Little_Apple | ah. |
| 22:48:13 | Little_Apple | there is. |
| 22:51:54 | bobdaduck_ | ...Well? |
| 22:52:08 | Little_Apple | i think it says line 9... |
| 22:52:14 | Little_Apple | thats the only line it mentions |
| 22:53:02 | bobdaduck_ | hm |
| 22:53:46 | bobdaduck_ | the part where it says "could not validate params for teleporter::addDest()" |
| 22:53:54 | bobdaduck_ | that says line 9? |
| 22:54:05 | Little_Apple | i guess |
| 22:54:26 | bobdaduck_ | Run the level |
| 22:54:34 | bobdaduck_ | And then try to switch the teleporter destination |
| 22:54:41 | bobdaduck_ | and open the console with ctrl/ |
| 22:54:47 | bobdaduck_ | and tell me what it says |
| 22:54:49 | Little_Apple | ok |
| 22:55:44 | Little_Apple | am i looking for anything in particular? |
| 22:55:57 | bobdaduck_ | errors |
| 22:55:58 | bobdaduck_ | xD |
| 22:56:06 | bobdaduck_ | line numbers |
| 22:56:12 | bobdaduck_ | and what the error is. |
| 22:56:21 | Little_Apple | line 9 was the only one it mentioned.. |
| 22:56:57 | Little_Apple | i dont see anything |
| 22:57:17 | bobdaduck_ | Screenshot the console for me |
| 22:57:22 | bobdaduck_ | if that's not too much work? |
| 22:57:42 | Little_Apple | thats fine |
| 22:58:14 | Little_Apple | http://i.imgur.com/6uq04Xy.png |
| 23:00:35 | Little_Apple | anything? |
| 23:00:47 | bobdaduck_ | Thinking... |
| 23:01:06 | Little_Apple | anythink? |
| 23:01:08 | bobdaduck_ | Ah! |
| 23:01:14 | Little_Apple | what ah? |
| 23:01:18 | bobdaduck_ | Function moveteledest() |
| 23:01:21 | bobdaduck_ | calls for two inputs |
| 23:01:38 | bobdaduck_ | And line 95 has no paramaters being passed in to it |
| 23:01:52 | bobdaduck_ | At the very least, the error has something to do with that. |
| 23:03:06 | Little_Apple | soo.. |
| 23:04:13 | Little_Apple | eh? |
| 23:04:39 | bobdaduck_ | function moveTeleDest1(object1, dest) |
| 23:04:48 | bobdaduck_ | moveTeleDest1() |
| 23:05:02 | bobdaduck_ | it needs to have object1 and a dest in it |
| 23:05:40 | Little_Apple | wha? |
| 23:06:14 | bobdaduck_ | line 95 |
| 23:06:24 | bobdaduck_ | calls the moveteletdest bethod |
| 23:06:24 | Little_Apple | yes? |
| 23:06:36 | bobdaduck_ | without sending in a variable for object1 and dest |
| 23:06:53 | Little_Apple | ok.. |
| 23:07:15 | bobdaduck_ | so... I guess try putting object1, dest in there |
| 23:07:22 | Little_Apple | i tried that |
| 23:07:32 | Little_Apple | nothing |
| 23:07:53 | Little_Apple | the script works fine without the toggle stuff though |
| 23:09:12 | bobdaduck_ | move teletoggle = false on line 22 up inside the if statement |
| 23:09:16 | bobdaduck_ | and fix the indentation on it. |
| 23:10:00 | Little_Apple | i did that... |
| 23:10:07 | Little_Apple | a while ago |
| 23:10:36 | bobdaduck_ | inside the if statement too? |
| 23:10:56 | Little_Apple | yes |
| 23:11:35 | bobdaduck_ | ug. |
| 23:11:51 | bobdaduck_ | Think you could send me the level you're trying to use this in and let me take a look at it? |
| 23:12:04 | bobdaduck_ | OH |
| 23:12:07 | bobdaduck_ | clearcache! |
| 23:12:10 | bobdaduck_ | Try that first. |
| 23:12:11 | bobdaduck_ | xD |
| 23:12:29 | Little_Apple | i did......... |
| 23:13:09 | Little_Apple | level: http://pastie.org/6344448 |
| 23:13:11 | bobdaduck_ | oh okay then send me the level code. |
| 23:13:29 | Little_Apple | script: http://pastie.org/6344449 |
| 23:19:18 | bobdaduck_ | I'm at work so I'm not working on your problem fulltime, mind you |
| 23:21:17 | Little_Apple | k |
| 23:24:31 | bobdaduck_ | Your code is messy |
| 23:25:01 | Little_Apple | indeed |
| 23:27:25 | bobdaduck_ | Only error I'm getting |
| 23:27:31 | bobdaduck_ | is missing an "end" somewhere |
| 23:28:37 | Little_Apple | hmmmmm... |
| 23:34:56 | raptor | hi |
| 23:34:59 | raptor | sorry, meetings |
| 23:35:06 | raptor | someone say my name? |
| 23:36:48 | raptor | Little_Apple: |
| 23:36:49 | bobdaduck_ | Yeah |
| 23:36:50 | bobdaduck_ | Raptor |
| 23:36:54 | bobdaduck_ | fix little Apple's script |
| 23:36:59 | Little_Apple | lol |
| 23:37:02 | raptor | moveTeleDest1 |
| 23:37:17 | raptor | I'm going to give you a secret coding guru trick |
| 23:37:29 | raptor | when you start an 'if' statement |
| 23:37:37 | raptor | the FIRST thing you do, is close it |
| 23:37:47 | raptor | so |
| 23:37:49 | raptor | if(tele1Toggle == true) then |
| 23:37:51 | raptor | end |
| 23:38:04 | raptor | first thing you do! always! |
| 23:38:21 | raptor | once done, you can then put the code in the middle |
| 23:38:28 | Little_Apple | ok.. |
| 23:38:34 | raptor | just as a trick.. |
| 23:38:42 | raptor | umm... this was leading me somewhere.. |
| 23:38:43 | raptor | oh |
| 23:38:54 | Little_Apple | is my script not swag enough? |
| 23:39:12 | raptor | your method should look like this: |
| 23:39:14 | raptor | http://pastie.org/6344582 |
| 23:39:20 | raptor | you were missing an 'end' |
| 23:39:27 | bobdaduck_ | lol |
| 23:39:35 | bobdaduck_ | I added that raptor |
| 23:39:43 | bobdaduck_ | Its still asking me for an end statement somewhere |
| 23:39:49 | Little_Apple | ah. |
| 23:40:00 | Little_Apple | its working so far for me.. |
| 23:40:13 | raptor | yes, that's what was missing |
| 23:40:20 | raptor | also, you're screen is HUGE, Little_Apple |
| 23:40:23 | raptor | *your |
| 23:40:27 | Little_Apple | lol |
| 23:40:36 | Little_Apple | im using a laptop with an external display :P |
| 23:40:42 | Little_Apple | it works! |
| 23:40:50 | raptor | also |
| 23:41:03 | raptor | what text editor do you use? |
| 23:41:11 | Little_Apple | just textedit |
| 23:41:19 | raptor | ok, that needs to change |
| 23:41:19 | Little_Apple | not the best but it works |
| 23:41:48 | raptor | because an editor that shows you the indentation properly will *really* help out finding problems |
| 23:42:16 | Little_Apple | got anything in mind? |
| 23:42:34 | raptor | notepad++ for windows, kate for linux... |
| 23:42:37 | raptor | osx, umm... |
| 23:42:39 | raptor | hmm... |
| 23:42:55 | Little_Apple | textwrangler? |
| 23:43:03 | raptor | heh |
| 23:43:08 | raptor | that's what i just found! |
| 23:43:11 | Little_Apple | lol |
| 23:43:21 | Little_Apple | i guess i can look it up |
| 23:43:35 | raptor | http://www.barebones.com/products/textwrangler/download.html |
| 23:43:42 | Little_Apple | got it |
| 23:43:59 | raptor | so script working now? |
| 23:44:16 | Little_Apple | yep! |
| 23:44:22 | raptor | yay! |
| 23:46:24 | Little_Apple | now to finish it... |
| 23:46:38 | raptor | cross the tees and dot the eyes |
| 23:46:50 | raptor | (ouch) |
| 23:47:55 | | Watusimoto Quit (Ping timeout: 260 seconds) |
| 23:50:13 | raptor | and the big question: what has watusimoto been doing so silently before he went to bed... |
| 23:51:46 | Little_Apple | sorting the different colored pieces of his frootloops. |
| 23:52:43 | | Little_Apple Quit (Quit: Page closed) |
| 23:53:02 | | Little_Apple has joined |
| 23:53:44 | Little_Apple | whoops |
| 23:57:50 | raptor | broken script?. |
| 23:57:57 | Little_Apple | ish |
| 23:58:05 | Little_Apple | just making lots of mistakes lol |
| 23:58:26 | bobdaduck_ | And being messy! |
| 23:58:29 | Little_Apple | shhhh |