Timestamps are in GMT/BST.
| 00:00:02 | fordcars | Sure |
| 00:00:08 | fordcars | raptor, just delet isRobot() |
| 00:00:20 | fordcars | in onMessageReceived to get the Event Bug |
| 00:00:23 | raptor | will that make it crash? |
| 00:01:07 | raptor | my version doesn't have that |
| 00:01:16 | raptor | so maybe event bug is already fixed |
| 00:01:22 | sam686 | ON skybot: longText = {"Indeed.asdfasdfasdfasdfasdfasdfasdfasdfasdf"} and without isRobot, will crash |
| 00:01:23 | raptor | oh! yeah... actually, i remember fixing that |
| 00:01:28 | sam686 | with 2 or more bots |
| 00:01:41 | sam686 | and, lf eliza didn't have isRobot it can crash too |
| 00:02:11 | raptor | ok, let me test... |
| 00:02:46 | raptor | oh wait,, is that a stackoverflow? |
| 00:02:55 | sam686 | yes |
| 00:02:58 | raptor | hahaha |
| 00:03:09 | raptor | ok - not sure what we can do about that... |
| 00:04:58 | sam686 | once again, it only happens if there is 2 or more robots that runs globalMsg in onMsgReceived |
| 00:05:20 | Skybax | lol ford, it just crashed xD |
| 00:05:34 | fordcars | Hahahahahaha |
| 00:05:36 | fordcars | Wow |
| 00:05:45 | Skybax | We weren't even doing anything |
| 00:05:53 | fordcars | There is no reason it would, it must be a Bitfighter problem |
| 00:06:17 | sam686 | was there bots when it crashed> |
| 00:06:20 | fordcars | Only one bot? |
| 00:06:24 | fordcars | Yeah |
| 00:06:25 | Skybax | Yeah only one bot |
| 00:06:37 | Skybax | And Ford and I |
| 00:06:40 | fordcars | The bots were not going to talk either |
| 00:06:41 | raptor | define crash? |
| 00:06:51 | raptor | game crash, or bot crash? |
| 00:06:55 | fordcars | Add bot, wait a little, crash |
| 00:06:59 | fordcars | Bitfighter crash |
| 00:07:22 | Skybax | The screen went white and a window came up saying Bitfighter has stopped working and it was troubleshooting and then another window comes up and says they couldn't find a solution and gives me a button to close program |
| 00:07:43 | fordcars | raptor, isn't there a Bitfighter random number generator? |
| 00:08:03 | Skybax | It actually happened earlier just when I hit the level editor button, too |
| 00:08:06 | fordcars | In global, ok nmn |
| 00:09:00 | raptor | yes |
| 00:09:03 | fordcars | Hey SKybax, there is a Bitfighter random number generator, I'll use that, it should be better :) |
| 00:09:04 | raptor | ok you found it |
| 00:09:11 | fordcars | Yeah, thanks :) |
| 00:09:16 | raptor | add skybot? |
| 00:10:00 | fordcars | raptor, is it global: or bf: |
| 00:10:04 | raptor | bf: |
| 00:10:08 | fordcars | Ah ok |
| 00:10:09 | raptor | wait no |
| 00:10:12 | raptor | if global, then nothing |
| 00:10:15 | fordcars | Oh ok |
| 00:10:21 | fordcars | :getRand..... |
| 00:10:30 | raptor | no colon |
| 00:10:54 | fordcars | Oh |
| 00:11:06 | fordcars | Ok thanks :) |
| 00:11:35 | Skybax | Would it be possible to extend the range that Skybot begins to cloak? |
| 00:11:49 | Skybax | I can see it just as it goes into cloak, and that gives away it's position |
| 00:12:40 | Skybax | It would probably work perfectly if not for the cloaking delay cause of the fade |
| 00:13:55 | fordcars | Uh sure, but it will require a bit of work, but I'll do it :P |
| 00:14:39 | Skybax | This is exciting |
| 00:15:05 | fordcars | Poo, sorry it'll have to be after diner HAHA |
| 00:15:08 | fordcars | Later :P |
| 00:15:11 | | fordcars Quit (Quit: Page closed) |
| 00:27:04 | | vs73nx_ has joined |
| 00:28:40 | | fordcars has joined |
| 00:29:07 | | vs73nx Quit (Ping timeout: 260 seconds) |
| 00:39:19 | sam686 | forget the 'live chat' button, what about putting that live chat option as a link in 'Contact'? |
| 00:39:43 | sam686 | that can solve the idiot problem of seeing 'live chat' from home page, but not from forum.. |
| 00:42:38 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 00:52:27 | fordcars | Uh, In method onTick(): ...\Roaming\Bitfighter\scripts\lua_helper_functions.lua:36: bad argument #1 to 'pairs' (table expected, got nil -- did you use '.' instead of ':'?) |
| 00:52:52 | raptor | fix your syntax |
| 00:53:24 | fordcars | But, where? |
| 00:53:32 | raptor | read the full stack trace |
| 00:53:44 | raptor | it'll tell you a line number where it originated |
| 00:56:20 | fordcars | Uh, I don't see anything |
| 00:56:32 | fordcars | It says it is in shield, but I didn't touch that |
| 00:56:39 | raptor | what is the full trace? |
| 00:56:54 | fordcars | http://pastie.org/8605099 |
| 00:57:32 | fordcars | Oh ahhhh I think I know |
| 00:58:07 | fordcars | I had 2 for loops and used v,i twice |
| 00:58:18 | raptor | that woudl do it.. |
| 00:58:20 | fordcars | Unrelated to the stack trace though |
| 00:58:29 | fordcars | !gci |
| 00:58:29 | BFLogBot | GCI Students Welcome! Please see: http://bitfighter.org/wiki/index.php/GCI_Student_Bootstrap for getting started. |
| 00:59:09 | fordcars | Thanks :P |
| 00:59:42 | fordcars | Oh, that wasn't it |
| 00:59:51 | fordcars | Getting same stack trace |
| 01:00:07 | raptor | past your code somewhere please |
| 01:00:28 | fordcars | http://pastie.org/8605104 |
| 01:01:57 | raptor | can you do this in main(): logprint(table.clear) |
| 01:02:02 | raptor | and see if it is nil |
| 01:02:19 | fordcars | Sure |
| 01:03:02 | fordcars | It didn't go to main() yet |
| 01:03:06 | fordcars | It was still 'compiling' |
| 01:03:18 | fordcars | Oh wait |
| 01:03:20 | raptor | that seems like a different issue... |
| 01:03:22 | fordcars | function: 0224DFF0 |
| 01:03:25 | fordcars | Is that it? |
| 01:03:27 | raptor | yes |
| 01:03:29 | raptor | ok, good |
| 01:03:32 | raptor | then that exists |
| 01:03:46 | fordcars | Ok |
| 01:05:18 | raptor | items is nil |
| 01:05:21 | raptor | why is it nil |
| 01:05:22 | fordcars | Yeah |
| 01:05:26 | fordcars | I think I knw |
| 01:05:31 | raptor | items = orderArrayByDistance |
| 01:05:33 | fordcars | function orderArrayByDistance(arrToOrder) |
| 01:05:34 | raptor | that would do it |
| 01:05:39 | fordcars | No table.clear! |
| 01:05:45 | raptor | with no table return function |
| 01:08:49 | fordcars | Ok I got it |
| 01:08:57 | fordcars | I was using items, but it was nil in function orderArrayByDistance(arrToOrder) |
| 01:09:29 | fordcars | But I removed table.removed, so it's all good ;) |
| 01:09:31 | fordcars | Thanks |
| 01:09:55 | fordcars | Oh poo nm I need table.remove |
| 01:10:54 | raptor | when you run a function, it's default return type is nil |
| 01:11:03 | raptor | so by doing this: items = orderArrayByDistance |
| 01:11:08 | raptor | you are setting items to be nil |
| 01:11:08 | fordcars | Oh right sorry |
| 01:11:28 | raptor | unless you can guarantee you return a table in orderArrayByDistance() |
| 01:11:31 | fordcars | But I got to figure out scope stuff now |
| 01:11:39 | raptor | but i don't hink that's what you want... |
| 01:11:51 | fordcars | Well I added "return finalArray" |
| 01:11:57 | fordcars | In orderArrayByDistance() |
| 01:13:14 | fordcars | Ok I got it |
| 01:15:41 | fordcars | Ok, what |
| 01:16:16 | fordcars | I added a return to return the table in orderARrayByDistance(), and I cleaned the for in there to make it work, and I still get the same error |
| 01:34:05 | fordcars | OOooh now I think I am good |
| 01:51:40 | | vs73nx_ is now known as vs73nx |
| 02:03:08 | | NothingMuchHereT is now known as Nothing_Much |
| 02:15:34 | | Nothing_Much Quit (Remote host closed the connection) |
| 02:38:55 | Skybax | My dinner is amazing |
| 02:46:30 | raptor | does it do a good song and dance? |
| 02:49:37 | Skybax | It does in my tummy |
| 02:52:51 | | Flynnn has joined |
| 02:59:02 | oskopek | holy sh... it's 4am |
| 02:59:15 | oskopek | better get going.. good night |
| 03:05:34 | fordcars | I have a weird need for sushi right now |
| 03:05:54 | raptor | get up, get a drink of water, sit down - need gone |
| 03:06:04 | fordcars | Hah |
| 03:06:11 | fordcars | If my water has fish in it :) |
| 03:06:27 | fordcars | But seriously, I don't have sushi |
| 03:07:00 | Skybax | Sadness |
| 03:20:55 | fordcars | raptor, is it table.insert and table:remove? |
| 03:31:06 | raptor | both are dot . |
| 03:56:31 | | Nothing_Much has joined |
| 04:01:09 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 04:07:13 | fordcars | raptor, can I show you something? |
| 04:12:05 | fordcars | Oh nevermind, but table.remove(tempArr,closestItemIndex) doesn't work (bad argument) |
| 04:14:37 | raptor | hi |
| 04:14:39 | raptor | say what? |
| 04:15:58 | fordcars | table.remove is really hating me, I haveno idea what to do |
| 04:16:13 | fordcars | I keep getting: 265: bad argument #1 to 'remove' (table expected, got nil -- did you use '.' instead of ':'?) |
| 04:16:30 | fordcars | With it, and my bot goes crazy, but only in single-player games |
| 04:16:36 | fordcars | *single-team |
| 04:17:19 | fordcars | Oh, ignore 265: bad argument #1 to 'remove' (table expected, got nil -- did you use '.' instead of ':'?) |
| 04:17:35 | fordcars | Ok, sorry, no table problems |
| 04:18:12 | raptor | it means your tempArr is nil |
| 04:18:15 | fordcars | But the bot still goes crazy |
| 04:18:29 | fordcars | Yeah, sorry I repaired that, forgot I changed that table |
| 04:19:22 | fordcars | But my bot gets the table it needs, but its just weird |
| 04:20:02 | fordcars | It knows there is player, but it can't go to it's point and always goes left, it can't aim at the player either |
| 04:29:25 | raptor | i'm heading to bed early, night! |
| 04:29:43 | | raptor Quit () |
| 04:37:35 | | Skybax Quit (Ping timeout: 245 seconds) |
| 04:39:09 | | Skybax has joined |
| 04:56:44 | | Skybax_ has joined |
| 04:57:41 | | Skybax Quit (Ping timeout: 248 seconds) |
| 05:05:38 | | noneofmynickswor Quit (Quit: Leaving) |
| 05:18:49 | | Skybax has joined |
| 05:20:00 | | Skybax_ Quit (Ping timeout: 265 seconds) |
| 05:51:07 | | Skybax Quit (Ping timeout: 260 seconds) |
| 05:56:43 | | Skybax has joined |
| 05:56:59 | fordcars | Skybax, you better be happy >:) |
| 05:57:14 | Skybax | What? |
| 05:57:15 | fordcars | I finally found the problem with single-team games |
| 05:57:21 | Skybax | Hoorah! |
| 05:57:22 | fordcars | It took around 2 hours :) |
| 05:57:32 | Skybax | Was it fun? lol |
| 05:57:36 | fordcars | Hahaha tots |
| 05:57:59 | Skybax | Awesome |
| 05:58:07 | fordcars | I made the code clearer too, now I just have to find a good number for the range the bot sees other players to cloak |
| 05:58:24 | Skybax | What was it at before? |
| 05:58:43 | fordcars | Uh, it was Bitfighter defined, I don't know |
| 05:58:48 | Skybax | Ah |
| 05:58:51 | fordcars | I completely rewrote that part |
| 05:59:36 | Skybax | Try, like.. 20 shiplengths lol |
| 06:03:04 | fordcars | Lol |
| 06:04:37 | fordcars | I think I got it |
| 06:04:49 | fordcars | Want to see it? |
| 06:07:13 | fordcars | Anyway, uploading to forums |
| 06:17:21 | fordcars | Done! |
| 06:39:15 | | Skybax_ has joined |
| 06:39:33 | | Skybax Quit (Ping timeout: 248 seconds) |
| 06:44:54 | | Skybax_ is now known as Skybax |
| 06:45:04 | Skybax | Awesome! |
| 06:49:26 | Skybax | lol wow it's even more powerful now xD it follows you even when you're cloaked! Guess I can't use that against it anymore |
| 06:52:03 | Skybax | Skybot reigns supreme! |
| 06:55:43 | Skybax | Now all that needs to happen is the devs need to release the next version so the bot swirly thing will be fixed x) |
| 06:55:55 | Skybax | The cloak works great |
| 06:56:07 | Skybax | Bitfighter just likes to teleport the bots in! |
| 06:56:36 | Skybax | Thanks for putting up with me and for making this awesome bot, fordcars! :D |
| 06:58:31 | fordcars | Wow that is true, no more hiding with cloak for you mhahahaha |
| 06:58:55 | fordcars | Your welcome SKybax! |
| 06:59:36 | Skybax | Hahaha just crashed again xD |
| 06:59:46 | fordcars | xD |
| 07:01:47 | Skybax | Did anybody else ever get the crash too, or just me? |
| 07:02:13 | fordcars | Just you :P |
| 07:02:21 | Skybax | Sweet |
| 07:02:24 | fordcars | I didn't crash in 019 yet actually |
| 07:02:53 | fordcars | But is may be because of SDL |
| 07:02:57 | Skybax | wat told me to download microsoft visual studios express to be able to find what's causing the crashes, but idk what to do with it |
| 07:03:07 | fordcars | Yeah |
| 07:03:11 | Nothing_Much | Hi guys |
| 07:03:15 | Skybax | Hiya |
| 07:03:16 | fordcars | There are some debugging tools in that |
| 07:03:18 | fordcars | Hi |
| 07:03:24 | Nothing_Much | What's goin' on? |
| 07:03:29 | Skybax | Well I have it lol it's been sitting on my desktop for a while now |
| 07:03:42 | fordcars | Skybax, when it crashes, do you get a 0x0000873 or something? |
| 07:04:28 | fordcars | Skybax, if you have Microsoft Tools, I recommend getting Bitfighter source |
| 07:04:52 | Skybax | I don't know what that multiplication problem means |
| 07:05:06 | fordcars | It is the address of the command that crashed |
| 07:05:15 | fordcars | It may help to find the problem |
| 07:05:47 | fordcars | I think wat or raptor may be able to figure out what went wrong with that |
| 07:05:52 | Skybax | I don't get anything that tells me how or why it's crashed. I even tried opening Bitfighter in cmd so that I could getting a running log of what goes on |
| 07:05:59 | Skybax | It just stops working |
| 07:06:02 | fordcars | Heh |
| 07:06:15 | fordcars | Do you have time right now? |
| 07:06:22 | Skybax | Sure |
| 07:06:26 | fordcars | Ok |
| 07:06:45 | fordcars | Wait |
| 07:06:47 | fordcars | !gci |
| 07:06:47 | BFLogBot | GCI Students Welcome! Please see: http://bitfighter.org/wiki/index.php/GCI_Student_Bootstrap for getting started. |
| 07:07:23 | fordcars | Do you have a 32 or 64 bit computer? |
| 07:07:38 | Skybax | Uhh.. I think it's 64.. how do I find out xD |
| 07:07:56 | fordcars | Uh, do you have Program Files(86x) ? |
| 07:07:59 | fordcars | In my computer |
| 07:08:35 | fordcars | C: |
| 07:08:47 | Skybax | Yes |
| 07:08:52 | Nothing_Much | You're on 64 bit |
| 07:08:53 | Nothing_Much | :D |
| 07:08:54 | fordcars | Ok, it is 64 bit |
| 07:08:55 | Skybax | Booyah |
| 07:08:56 | fordcars | :D |
| 07:09:13 | fordcars | Ok, get this: http://mercurial.selenic.com/release/windows/mercurial-2.8.1.win32-py2.7.exe |
| 07:09:30 | Skybax | What is it |
| 07:09:51 | Skybax | Says I need Python to use it |
| 07:09:55 | fordcars | Yeah: http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi |
| 07:10:03 | fordcars | Haha, it will get you the Bitfighter source |
| 07:10:09 | Skybax | Fancy |
| 07:10:11 | fordcars | It is not necessairy, but it will help allot |
| 07:10:45 | fordcars | You can get latest source with 1 command. If you don't trust me (>:)), http://bitfighter.org/wiki/index.php/GCI_Student_Bootstrap is pretty much what you are doing |
| 07:11:26 | Skybax | I trust you xD |
| 07:11:31 | fordcars | Happily you only need 3 programs |
| 07:11:34 | fordcars | xD |
| 07:11:54 | Skybax | My internet is decided to be a poo and take forever to download this Python thing |
| 07:12:02 | fordcars | Poo |
| 07:12:14 | fordcars | After, you'll need this: http://www.cmake.org/files/v2.8/cmake-2.8.12.1-win32-x86.exe and you are done! |
| 07:12:28 | fordcars | Download Microsoft tools would of been the biggest thing anyway :P |
| 07:12:44 | Skybax | See that one took ten seconds |
| 07:12:48 | fordcars | Heh |
| 07:12:49 | Skybax | Why is the other one taking an hour |
| 07:13:00 | Skybax | It should take fifteen seconds |
| 07:13:01 | fordcars | Maybe their server was slow |
| 07:13:15 | fordcars | Python is slow? |
| 07:13:19 | Skybax | Yes |
| 07:13:33 | Skybax | 30 minutes to download 16 mb |
| 07:13:43 | fordcars | Oh poo please cancel :) |
| 07:13:54 | Skybax | Cancelyed! |
| 07:14:14 | fordcars | Oh ok never mind haha |
| 07:14:32 | Skybax | What now? |
| 07:14:41 | fordcars | Well, it might help if you restart... I thought I had given you the wrong link |
| 07:14:55 | fordcars | restart the download, not computer :P |
| 07:15:02 | Skybax | I did |
| 07:15:10 | fordcars | It is downloading? |
| 07:15:31 | Skybax | Yes |
| 07:15:35 | Skybax | Faster but still slowly |
| 07:15:42 | fordcars | Ok, well go make yourself a sandwich :) |
| 07:16:24 | Skybax | Haha xD |
| 07:16:30 | fordcars | xD |
| 07:18:14 | fordcars | Skybax, did you install Microsoft Tools? |
| 07:18:24 | Skybax | I'm not sure |
| 07:18:33 | fordcars | And are they 2010 or 2013? |
| 07:18:40 | fordcars | Or 2012 |
| 07:18:44 | Skybax | The Visual Studios? |
| 07:18:47 | fordcars | yeah |
| 07:18:51 | Skybax | 2013 |
| 07:18:54 | fordcars | Ok |
| 07:19:17 | fordcars | Are you don downloading> |
| 07:19:18 | fordcars | ? |
| 07:19:32 | Skybax | 4.5/15.9 |
| 07:19:37 | fordcars | Whoa |
| 07:19:40 | fordcars | Hah |
| 07:19:45 | Skybax | I took a NyQuil a little bit ago and I think the drowsyness is kicking in lol |
| 07:20:14 | fordcars | Heh, after the download you can always continue another, your pretty much done anyway |
| 07:20:16 | Nothing_Much | Skybax: Fight it for the moment! |
| 07:20:28 | fordcars | Hah |
| 07:21:11 | Nothing_Much | GameJolt's pretty active, though the forums could be better (ramble) |
| 07:22:24 | fordcars | Yeah, I downloaded the featured game earlier |
| 07:24:12 | Skybax | Python is done |
| 07:24:23 | fordcars | Yay! |
| 07:24:30 | fordcars | Is everything done downloading? |
| 07:24:47 | Skybax | Yesh. I have all three things you sent me |
| 07:24:52 | fordcars | If they are, install the three programs |
| 07:25:01 | fordcars | And then, you are done all the crap |
| 07:27:07 | Skybax | It won't let me install Python until Visual Studio is done repairing |
| 07:27:28 | fordcars | What did you do :O |
| 07:27:47 | Skybax | I opened it and it said it needed to repair lol |
| 07:27:52 | fordcars | Oh okokok |
| 07:27:57 | fordcars | I think it did that here too |
| 07:28:07 | fordcars | Windows stuff |
| 07:28:12 | Skybax | Yeup |
| 07:28:42 | Skybax | I really wish I had a Mac haha |
| 07:29:13 | fordcars | Haha |
| 07:29:21 | fordcars | I am getting linux on this computer |
| 07:29:33 | fordcars | I am more of a Mac Linux guy |
| 07:29:40 | fordcars | But I have Windows :) |
| 07:29:42 | Skybax | I'm not smart enough for Linux |
| 07:29:50 | fordcars | Hehe |
| 07:30:00 | Nothing_Much | Skybax: Use Ubuntu, that's easy to use :D |
| 07:30:05 | fordcars | Yeah |
| 07:30:05 | Skybax | I'm a Mac guy but I have Windows because I didn't have enough money to get a Mac that could do what I wanted it to lol |
| 07:30:19 | fordcars | Lol |
| 07:30:36 | Skybax | But I got this Dell Inspiron that can run every game I can throw at it for only $700 |
| 07:30:51 | fordcars | Whoa |
| 07:31:03 | Nothing_Much | Nice dude |
| 07:31:13 | fordcars | I got this new laptop as a gift, getting Linux soon |
| 07:31:14 | Nothing_Much | Put Ubuntu on that thang yo |
| 07:31:21 | fordcars | I have Windows 8 :x |
| 07:31:21 | Skybax | xD |
| 07:31:29 | Skybax | I have Windows 8.1 |
| 07:31:35 | fordcars | Me too :) |
| 07:31:47 | fordcars | Good looking, but it's still Windows |
| 07:31:51 | Skybax | A lot of people don't like it but I think it's cool |
| 07:32:10 | fordcars | Hehe, pressing on the Windows Button |
| 07:32:24 | Nothing_Much | Windows 8 is okayish |
| 07:32:27 | Skybax | Everyone complained about not having a "Start" button on the bottom left so with the .1 update they put the Windows button there xD |
| 07:32:41 | fordcars | xD yeah |
| 07:32:44 | fordcars | Is it done "repairing"? |
| 07:32:51 | Skybax | Almost halfway |
| 07:33:14 | Skybax | The problem is, now I have way too many games |
| 07:33:31 | Nothing_Much | Oh man |
| 07:33:37 | Skybax | Back when I had a Mac, my gaming was limited, but I still always had something to play |
| 07:33:43 | fordcars | Hah I barely have any, I don't have allot of bandwith for Internet |
| 07:33:45 | Skybax | Now I have like 200 games and I can never decide what to do |
| 07:33:58 | fordcars | I have 3 I think haha |
| 07:34:18 | Skybax | I have 175 of 682 gb free |
| 07:34:21 | Skybax | Most of it is games |
| 07:34:30 | fordcars | Heh |
| 07:34:57 | Skybax | 158 of them are Steam games |
| 07:35:00 | Nothing_Much | I wish most games were on Linux :( |
| 07:35:16 | Nothing_Much | Steam games included |
| 07:35:16 | Skybax | Almost every Humble Bundle game is on Linux too |
| 07:35:38 | fordcars | Nothing, they are getting there |
| 07:35:41 | fordcars | Yeah |
| 07:36:04 | fordcars | Nothing, get Overgrowth NOW |
| 07:36:08 | Skybax | I'm actually selling game files haha and most of them are available for Linux |
| 07:36:08 | Nothing_Much | Overgrowth? |
| 07:36:09 | fordcars | It is awesome |
| 07:36:09 | Nothing_Much | wuts dat |
| 07:36:17 | fordcars | http://store.steampowered.com/app/25000/ |
| 07:36:23 | Nothing_Much | Skybax: What do you mean game files? |
| 07:36:41 | fordcars | Saves? |
| 07:36:57 | Nothing_Much | Wait, how do you sell that stuff? |
| 07:37:05 | Nothing_Much | fordcars: type "not" then hit tab :) |
| 07:37:13 | Skybax | The internet |
| 07:37:17 | fordcars | :) I always forget |
| 07:37:24 | Nothing_Much | no like |
| 07:37:29 | Nothing_Much | are you making money? |
| 07:37:30 | Nothing_Much | o.o |
| 07:37:44 | Skybax | I haven't yet haha |
| 07:37:49 | Skybax | But look http://seattle.craigslist.org/oly/vgm/4274444355.html |
| 07:38:13 | Skybax | I have steam codes, steam games in my steam inventory, and just game files |
| 07:38:22 | Nothing_Much | Uh |
| 07:38:33 | Nothing_Much | You realize that most games on Steam require you to buy them right? |
| 07:38:39 | Nothing_Much | Because like |
| 07:38:47 | Skybax | You can sell steam codes |
| 07:39:02 | Nothing_Much | When you put the game files in the Steam folder, you have to verify that you bought the game |
| 07:39:11 | Nothing_Much | Yeah I know about the steam codes |
| 07:39:15 | Skybax | The game files aren't steam compatible lol |
| 07:39:24 | Nothing_Much | Oh really? |
| 07:39:33 | Nothing_Much | Well, that's interesting |
| 07:39:39 | Nothing_Much | That's also illegal lol |
| 07:39:49 | Skybax | Shhhh |
| 07:39:51 | fordcars | I think he is selling non steam games |
| 07:39:53 | fordcars | Lol |
| 07:40:06 | Nothing_Much | Yeah, I'm not supportive of that dude >.> |
| 07:40:31 | fordcars | <.< |
| 07:40:32 | | Watusimoto has joined |
| 07:40:33 | fordcars | >.> |
| 07:40:39 | fordcars | ^.^ |
| 07:40:40 | Skybax | <.< |
| 07:40:42 | Nothing_Much | v.v |
| 07:40:43 | fordcars | v.v |
| 07:40:46 | Nothing_Much | apsodfhja |
| 07:40:56 | fordcars | Hi watusimoto! |
| 07:41:02 | fordcars | *Good morning |
| 07:41:06 | Nothing_Much | Hi wat |
| 07:41:18 | Nothing_Much | Skybax: pm'd ya |
| 07:42:17 | fordcars | Skybax, is it done? |
| 07:44:34 | Skybax | Like 3/4 of the way |
| 07:44:48 | fordcars | Goood |
| 07:44:58 | vs73nx | Watusimoto: hi |
| 07:45:47 | Watusimoto | hi all -- I'm on my way out the door to work; I can chat a little in about an hour if that's ok |
| 07:46:00 | vs73nx | ok |
| 07:46:21 | fordcars | Sure |
| 07:47:27 | fordcars | Skybax, I have to go :(((((( When you are done installing everything, wait until tomorror or follow |
| 07:47:31 | fordcars | !gci |
| 07:47:31 | BFLogBot | GCI Students Welcome! Please see: http://bitfighter.org/wiki/index.php/GCI_Student_Bootstrap for getting started. |
| 07:47:42 | fordcars | *tomorrow |
| 07:48:28 | fordcars | So, night guys! |
| 07:48:33 | | fordcars Quit (Quit: Page closed) |
| 07:48:38 | Skybax | Okay |
| 07:48:39 | Skybax | Night! |
| 07:48:55 | Nothing_Much | L8r ford |
| 07:51:31 | | Watusimoto Quit (Ping timeout: 260 seconds) |
| 08:10:07 | | LordDVG has joined |
| 08:19:49 | | Skybax Quit (Ping timeout: 248 seconds) |
| 08:40:35 | | watusimoto has joined |
| 08:40:35 | | ChanServ sets mode +o |
| 08:40:52 | | Nothing_Much Quit (Remote host closed the connection) |
| 08:41:13 | watusimoto | hi |
| 08:46:31 | oskopek | hello |
| 08:55:42 | vs73nx | ok im back |
| 08:56:07 | vs73nx | Watusimoto: i need you help to finish my code off |
| 08:56:13 | watusimoto | hi |
| 08:57:47 | vs73nx | im having problems with inheritence and polymorthism |
| 09:01:54 | watusimoto | ok |
| 09:02:44 | vs73nx | just let me make a pastie to fully explain the problem |
| 09:10:30 | vs73nx | http://pastie.org/8605956 |
| 09:12:24 | vs73nx | Watusimoto: ok, so i have my class LevelSource, and i return a subling of LevelSource EG: FileListLevelSource. my dilema is with calling a function :EG newLevelSource->loadLevels(folderManager); |
| 09:13:16 | vs73nx | the function is present in both levelsources but the compiler thinks that i want to call a function in LevelSource |
| 09:13:57 | watusimoto | sorry -- which two classes is that function in? |
| 09:15:08 | vs73nx | ]look in the pastie |
| 09:15:14 | watusimoto | I see it |
| 09:15:18 | vs73nx | FolderLevelSource and FileListLevelSource |
| 09:15:33 | vs73nx | both of which are subclasses of LevelSource |
| 09:15:43 | watusimoto | that code should work |
| 09:15:48 | vs73nx | it doesnt |
| 09:16:16 | watusimoto | so when you say the wrong function is running, which one is running, and which do you expect to be running? |
| 09:16:35 | vs73nx | error: ‘class Zap::LevelSource’ has no member named ‘loadLevels’ |
| 09:17:17 | watusimoto | ok, does LevelSource have a function called loadLevels? |
| 09:18:07 | vs73nx | LevelSource *newLevelSource = GameSettings::chooseLevelSource(levelList, str); returns a subclass, both of which have LoadLevels but yet newLevelSource still points to LevelSource |
| 09:18:23 | watusimoto | yes, it will point to LevelSource |
| 09:18:26 | vs73nx | LevelSource doesnt have loadlevels |
| 09:18:33 | vs73nx | ok then... |
| 09:18:37 | watusimoto | think of LevelSource as an interface |
| 09:18:42 | watusimoto | that the other two classes implement |
| 09:18:48 | watusimoto | (in Java terms) |
| 09:19:12 | vs73nx | ok |
| 09:19:18 | watusimoto | so in this case, it sounds like you need to add a loadLevels function to the interface; i.e. to LevelSource |
| 09:19:33 | vs73nx | a virtual function? |
| 09:19:37 | watusimoto | make sure you use the exact signature that the child classes use, and make sure to use the keyword virtual |
| 09:19:38 | watusimoto | yes |
| 09:19:51 | watusimoto | if it is not virtual, the children will not override it |
| 09:20:18 | watusimoto | in this case, you can make it "pure virutal" by adding the = 0; to the end, which means that all children will need to implement it. |
| 09:20:42 | watusimoto | this will probably create an error with the other LevelSource child class, but you can add a dummy implementation to that one. |
| 09:21:24 | vs73nx | ok i got further now... |
| 09:21:38 | vs73nx | /home/vs73nx/development/eclipseProgs/c++/vs37nx-bitfighter-dev/zap/GameSettings.cpp:498:37: error: cannot call member function ‘std::string Zap::GameSettings::getString(CmdLineParams::ParamId)’ without object |
| 09:21:38 | vs73nx | if(GameSettings::getString(USE_FILE) == "") |
| 09:21:38 | vs73nx | ^ |
| 09:22:14 | watusimoto | is getString declared as a static function? |
| 09:22:29 | watusimoto | if not, you'll need to call it with a GameSettings object |
| 09:22:39 | watusimoto | settings->getString() |
| 09:22:51 | vs73nx | oh |
| 09:22:55 | vs73nx | whoops |
| 09:23:28 | vs73nx | but this is in GameSettings.cpp |
| 09:23:46 | vs73nx | so i can just do getSTring |
| 09:23:52 | vs73nx | *getString() |
| 09:23:57 | watusimoto | maybe; try that |
| 09:24:09 | vs73nx | no |
| 09:24:13 | vs73nx | i cant |
| 09:25:54 | watusimoto | I see the problem |
| 09:26:05 | watusimoto | chooseLevelSource is not a member of GameSettings |
| 09:26:14 | watusimoto | it is in the file, but it's just a loose static function |
| 09:26:21 | watusimoto | you need to add GameSettings::chooseLevelSource() |
| 09:26:33 | watusimoto | if you want it to be able to access member functions like getString |
| 09:26:43 | vs73nx | ahh |
| 09:26:53 | vs73nx | oh dear |
| 09:26:56 | vs73nx | your right |
| 09:27:32 | watusimoto | these details can be tricky and easy to overlook, but are also quite important! |
| 09:27:52 | watusimoto | you'll learn after you make this mistake 100 times, as I have |
| 09:29:31 | vs73nx | ok i have a function GameSettings::isUsingPlaylist() yet it still complains about cannot call member function ‘std::string Zap::GameSettings::getString(CmdLineParams::ParamId)’ without object |
| 09:30:12 | watusimoto | try adding a this-> in front of the function (don't leave it in, but it might help you find the problem in the short term) |
| 09:30:36 | vs73nx | ok |
| 09:30:59 | vs73nx | error: ‘this’ is unavailable for static member functions |
| 09:31:17 | vs73nx | isUsingPlaylist and chooseLevelSource are static |
| 09:31:33 | watusimoto | ok, then you need an actual settings object; or make them non-static |
| 09:32:14 | watusimoto | probably better to go the non-static route |
| 09:33:09 | vs73nx | yeah made them non static |
| 09:35:19 | vs73nx | is there a gameSettings object that is acessable in gameConnection? |
| 09:36:28 | watusimoto | can gameConnection access a game object? that's where the settings are, I think |
| 09:36:47 | vs73nx | dont know |
| 09:37:48 | watusimoto | look for getgtame() or mGame... those are the usual places |
| 09:38:44 | watusimoto | or try mServerGame |
| 09:38:53 | vs73nx | gameConnection has mClientGame and mServerGame |
| 09:39:00 | watusimoto | also see if it has a mSettings |
| 09:39:09 | watusimoto | sometimes the settins are stored there |
| 09:39:34 | vs73nx | it does |
| 09:39:39 | watusimoto | ok, use that |
| 09:40:07 | watusimoto | also, for the moment, please add a TNLAssert(mSettings, "Settings should not be NULL!"); line in there somewhere, just to be sure |
| 09:40:07 | vs73nx | watusimoto: hmm |
| 09:40:13 | vs73nx | Zap::GameSettingsPtr Zap::Game::mSettings’ is protected |
| 09:40:30 | watusimoto | so? |
| 09:40:52 | watusimoto | you are in the same class, right? you don't need external access |
| 09:41:43 | vs73nx | yes i am |
| 09:41:54 | vs73nx | im working in GameConnection |
| 09:42:06 | watusimoto | then it should be no problem |
| 09:42:28 | vs73nx | 'but there is D: |
| 09:43:18 | vs73nx | http://pastie.org/8606028 |
| 09:43:27 | vs73nx | ^ Full compile time srror |
| 09:43:30 | vs73nx | *error |
| 09:44:24 | watusimoto | btw, get rid of the == true; it's totally unnecessary (though harmless) |
| 09:44:54 | vs73nx | ah |
| 09:44:59 | vs73nx | done |
| 09:45:14 | watusimoto | so what is the fundamental problem with the compiler error? |
| 09:45:24 | watusimoto | what is it telling you? |
| 09:45:53 | vs73nx | im accessing a member of Game.h, which is protected... |
| 09:46:12 | vs73nx | that member is mSettings |
| 09:46:37 | watusimoto | right; why are you accessing a "remote" copy of mSettings? why not use the copy on the local object? |
| 09:46:57 | vs73nx | ? |
| 09:47:19 | watusimoto | GameConnection has its own mSettings |
| 09:47:34 | vs73nx | oh |
| 09:50:14 | vs73nx | ok it works |
| 09:50:25 | vs73nx | jus tsome small compile time errors that i can fix |
| 09:50:39 | watusimoto | good |
| 09:53:06 | oskopek | watusimoto: how can I get/set all possible position data of a GeomObject? using getPos() only returns the one Point for PolyLines, f.e... would getVert() work? |
| 09:53:53 | watusimoto | in the editor, you mean? |
| 09:53:57 | oskopek | yes |
| 09:54:26 | vs73nx | oh a big implementation problem... |
| 09:55:00 | vs73nx | parseLevelLine requires pointers to Game and gameObjectDatabase. |
| 09:55:27 | vs73nx | but wherever getFilePlaylist is called i dont have access to those pointers. |
| 09:55:27 | watusimoto | oskopek: not sure, but you can look at other functions that move objects to see... take a look at translateSelectedItems (I think that's what it's called) |
| 09:56:29 | oskopek | watusimoto: oh me, stupid.. yes, they use getVert.. thanks |
| 09:57:57 | watusimoto | vs73nx: where are you talking about? Your code will be called in the same context that the folderPlayList code is called, and that needs to do fundamentally the same thing as what you are doing. How does folderPlayList solve the problem? |
| 09:59:46 | vs73nx | getFilePlaylist() is called in gameConnection, and GameSettings... i can get the pointers in gameConnection but not in gameConnection |
| 10:02:30 | watusimoto | I'm a bit confused. did you write getFilePlaylist? |
| 10:02:43 | vs73nx | yes |
| 10:03:02 | watusimoto | ok, and what does it do? |
| 10:03:05 | vs73nx | also where can i get a pointer to game in GameSettings |
| 10:03:07 | vs73nx | ? |
| 10:03:55 | watusimoto | >>> where can i get a pointer to game in GameSettings <<< you should know that :-) You were getting an error trying to use it not 10 minutes ago! |
| 10:04:09 | watusimoto | oh wait, no you weren't |
| 10:04:10 | watusimoto | sorry |
| 10:04:14 | watusimoto | I am confused |
| 10:04:17 | vs73nx | it reads the filename from -usefile, and then it reads the file using getFilePlaylist(). next it checks that each filename ends in .level |
| 10:04:26 | watusimoto | you probably can't get one in gameSettings |
| 10:04:31 | watusimoto | unless you pass one one |
| 10:05:04 | vs73nx | oh |
| 10:05:23 | vs73nx | i need to pass getFilePlaylist a pointer to Game |
| 10:05:38 | watusimoto | why do you need game in order to check if the filenames end in .level? |
| 10:06:27 | vs73nx | no |
| 10:06:37 | vs73nx | i need game to call getFilePlaylist |
| 10:06:56 | vs73nx | which needs game to call parseLevelLine |
| 10:07:36 | watusimoto | I'm a bit lost... the fundamental answer is if you need game in GameSettings, you'll need to pass one in. |
| 10:08:12 | vs73nx | oh i get it |
| 10:08:21 | vs73nx | getPlaylist(Game *game) |
| 10:12:38 | | vs73nx Quit (Changing host) |
| 10:12:38 | | vs73nx has joined |
| 10:16:03 | vs73nx | another erro |
| 10:16:10 | vs73nx | *error |
| 10:16:13 | vs73nx | /home/vs73nx/development/eclipseProgs/c++/vs37nx-bitfighter-dev/zap/GameSettings.cpp:519:92: error: cannot convert ‘Zap::LevelSourcePtr {aka boost::shared_ptr<Zap::LevelSource>}’ to ‘Zap::LevelSource*’ in return |
| 10:16:13 | vs73nx | return LevelSourcePtr(new FolderLevelSource(getLevelList(), getFolderManager()->levelDir)); |
| 10:16:49 | vs73nx | nvm |
| 10:28:43 | vs73nx | also where would i get a pointer to Game in main.cpp? |
| 10:30:21 | vs73nx | nvm |
| 10:35:42 | | LordDVG Quit (Remote host closed the connection) |
| 10:42:22 | vs73nx | watusimoto: ive gottem much closer now... |
| 10:42:35 | watusimoto | you'll get there! |
| 10:43:11 | vs73nx | ive got some new errorws though |
| 10:43:12 | vs73nx | http://pastie.org/8606145 |
| 10:44:55 | watusimoto | not sure, but it looks to me like some stupid syntax error or something simple |
| 10:45:15 | vs73nx | i think its a stupid error aswell |
| 10:45:38 | vs73nx | but its late at night so i cant even see startight :) |
| 10:45:43 | vs73nx | *straight |
| 10:46:54 | watusimoto | then go to sleep and revisit it when you are rested |
| 10:46:58 | watusimoto | seriously -- that works! |
| 10:47:04 | vs73nx | i cant |
| 10:47:10 | vs73nx | GCI finishes tom morrow |
| 10:47:17 | vs73nx | so i need to finish it |
| 10:47:30 | watusimoto | if you are close, we'll give you credit and you can finish after the deadline |
| 10:47:47 | watusimoto | you are hardly the first person to be in this position |
| 10:48:33 | vs73nx | and hey, next year ill be ready to complete tasks in a jiffy |
| 10:48:52 | vs73nx | * read win GCI |
| 10:48:55 | watusimoto | so I would recommend getting some sleep and taking a fresh look tomorrow |
| 10:49:20 | vs73nx | ok |
| 10:49:42 | vs73nx | will i still be able to submit it for GCI tomorrow? |
| 10:49:47 | watusimoto | we have several projects that won't be finished by the deadline |
| 10:50:13 | vs73nx | oh |
| 10:50:28 | watusimoto | we had several last year as well |
| 10:52:03 | vs73nx | ok |
| 10:52:09 | vs73nx | before i leave... |
| 10:52:47 | vs73nx | in GameSettings i made a few helper functions... |
| 10:53:25 | vs73nx | getPlaylistFile(), which returns the filename of the playlist file... |
| 10:54:00 | vs73nx | bool isUsingPlaylist(), which im pretty sure you can guess what it does... |
| 10:54:42 | vs73nx | getlevelLoc(), which if isUsingPlaylist() calls getPlaylistFile(), |
| 10:55:11 | vs73nx | and will otherwise return getFolderManager()->levelDir; |
| 10:55:37 | vs73nx | and thats it |
| 10:55:47 | vs73nx | and with that... goodnight everyone |
| 10:56:08 | watusimoto | ok, sounds good. good night! |
| 10:56:26 | | vs73nx Quit (Quit: bedtime!) |
| 11:06:59 | oskopek | watusimoto: using getVert, setVert I'm now able to undo moving/transforming walls.. the problem is, only the vertices get moved, not the "wall object" (blue box surrounding vertices).. I've been looking at the translateSelectedItems method for half an hour now, and can't get it to work no matter what I do.. |
| 11:07:49 | oskopek | http://fpaste.org/66077/00645113/ this is the method I use for setting vertices back.. |
| 11:07:57 | oskopek | moving normal objects works just fine |
| 11:07:57 | watusimoto | ah yes, walls are a bit of a strange case |
| 11:08:05 | watusimoto | so the vertices move, but the outline does not |
| 11:08:11 | watusimoto | you need to rebuild the wall outlines |
| 11:08:28 | watusimoto | there is some code int here to do that |
| 11:08:57 | oskopek | database->getWallSegmentManager()->recomputeAllWallGeometry(database); ? |
| 11:09:23 | watusimoto | rebuildEverything() will definitely work, as will recomputeAllWallGeometry |
| 11:09:34 | oskopek | ok, thanks, I'll try that |
| 11:10:08 | watusimoto | actually, rebuildEverything probably calls recomputeAllWallGeometry() |
| 11:10:15 | oskopek | yes |
| 11:10:21 | oskopek | that's where I found it |
| 11:10:38 | watusimoto | probably better to use rebuildEverything() |
| 11:10:45 | oskopek | ok |
| 11:10:57 | watusimoto | walls are ugly complex things |
| 11:11:15 | watusimoto | when you think about it... you have the body of teh walls, and the outlines that all need to merge together nicely |
| 11:11:17 | | vs73nx has joined |
| 11:11:37 | watusimoto | they are not like other objects that pretty much stand alone |
| 11:11:59 | vs73nx | watusimoto: before i REALLY go can you please give me an extensoin on my task? |
| 11:12:08 | watusimoto | I think I did |
| 11:12:30 | oskopek | vs73nx: I don't think it'll help if GCI ends in about 5 hours |
| 11:13:01 | vs73nx | apparently i can finish it after GCI |
| 11:13:05 | watusimoto | well, eitehr way, don't worry about that.... you focus on finishing the task, and we'll take care of interfacing with GCI |
| 11:13:23 | watusimoto | we're not going to mark you as incomplete when you are this close |
| 11:13:32 | oskopek | yeah, I've noticed.. half the code of the Editor has something to do with fixing walls |
| 11:13:43 | watusimoto | walls are a real pain |
| 11:13:50 | oskopek | it still doesn't work :/ |
| 11:13:56 | watusimoto | every time you move one, it affects everything else |
| 11:15:03 | watusimoto | so even after running rebuildeverything the outlines do not match with the vertices? |
| 11:15:36 | oskopek | no, they didn't |
| 11:15:37 | vs73nx | ok then, see you all later! |
| 11:15:45 | oskopek | bye |
| 11:15:55 | | vs73nx Quit (Client Quit) |
| 11:15:58 | watusimoto | is everything in the same database? |
| 11:16:57 | oskopek | well it should be.. |
| 11:37:33 | | Nothing_Much has joined |
| 11:38:52 | watusimoto | oskopek: the walls in question must be in a different database somehow, otherwise rebuildeverything would work |
| 11:38:55 | oskopek | it is, mDatabaseId stays the same after all moves |
| 11:40:29 | oskopek | i'll do one more test just ot be sure |
| 11:41:30 | oskopek | DB_ID: 8 |
| 11:41:30 | oskopek | WALLS_DB_ID: 8 |
| 11:41:30 | oskopek | WALLS_DB_ID_BF: 8 definately the same db.. |
| 11:42:11 | oskopek | if I move the wall |
| 11:42:13 | oskopek | then undo |
| 11:42:21 | oskopek | the outline stays in place |
| 11:42:28 | oskopek | and I can "move" the outline again |
| 11:42:37 | oskopek | and then it resnaps to where it should be |
| 11:43:36 | | yomanurock has joined |
| 11:43:58 | yomanurock | wasatimotu: are you there? |
| 11:44:36 | watusimoto | yes |
| 11:44:51 | yomanurock | im working on the copy/paste |
| 11:45:08 | yomanurock | could you tell me where to implement my function? |
| 11:46:57 | watusimoto | you can replace the current copy/paste functions with your new ones |
| 11:47:15 | watusimoto | so when you copy, it goes to the clipboard, and when you paste, it comes from the clipboar |
| 11:47:41 | yomanurock | but wont it work if i switch names? |
| 11:47:51 | yomanurock | (of the functions) |
| 11:48:06 | watusimoto | right now, when you hit ctrl+c, copySelection() runs |
| 11:48:16 | watusimoto | you can change it to run your copy() function |
| 11:48:37 | watusimoto | or replace the existing copySelection with your copy fn |
| 11:48:43 | yomanurock | yes, but if i just switch the names of the functions (new and old), wont that work? |
| 11:48:52 | watusimoto | it might |
| 11:49:20 | watusimoto | so have you actually tested your code? |
| 11:49:30 | yomanurock | it builds without errors |
| 11:49:45 | watusimoto | yes, but does it work? |
| 11:50:55 | yomanurock | when i start the binary, it says -- |
| 11:50:55 | watusimoto | I need to go to a meeting... I just wanted to ask you to be sure to test the code before you resubmit |
| 11:51:01 | watusimoto | I'll be back in a bit |
| 11:51:05 | yomanurock | k |
| 11:51:48 | yomanurock | bye :) |
| 11:55:16 | yomanurock | can anyone else help me? |
| 11:55:29 | yomanurock | when i run the binary, it says -- |
| 11:55:31 | yomanurock | http://pastie.org/8606288 |
| 11:55:50 | yomanurock | (it says so from the first time i built the binary) |
| 12:02:01 | | Platskies Quit (Ping timeout: 246 seconds) |
| 12:06:40 | oskopek | yomanurock: do you have SDL2 installed? you need it in order to complete the copy/paste task |
| 12:06:58 | yomanurock | yes i do have SDL2 installed |
| 12:07:35 | oskopek | not sure here, but did you link it correctly? |
| 12:08:11 | yomanurock | yes i did |
| 12:08:37 | yomanurock | oh sorry, had to install some more libraries for video support |
| 12:08:41 | yomanurock | works now |
| 12:09:09 | oskopek | what platform are you on? |
| 12:09:23 | yomanurock | linux (fedora 17) |
| 12:09:47 | oskopek | if you added any dependencies, you should probably include them in the README |
| 12:10:16 | yomanurock | do you know how to implement (and where to implement) my functions? |
| 12:13:28 | yomanurock | ? |
| 12:14:34 | watusimoto | yomanurock: that assert happened inside shutdownBitfighter(). How did you get there? i.e. did the game start and then you quit? |
| 12:15:58 | yomanurock | no |
| 12:16:42 | watusimoto | then you probaby got there because the video system did not initialize |
| 12:16:54 | yomanurock | but could you tell me where to implement my new functions? |
| 12:17:08 | watusimoto | in uieditor |
| 12:17:22 | watusimoto | you implemented them in the right place, I believe |
| 12:17:31 | yomanurock | i have implemented them in uieditor |
| 12:17:53 | watusimoto | good. that is the right place |
| 12:17:57 | yomanurock | but you asked how to test them |
| 12:18:22 | watusimoto | I did |
| 12:18:44 | watusimoto | You don't call them from anywhere, so I didn't see a way to test them |
| 12:18:49 | yomanurock | for that purpose, i will have to call the function somewhere |
| 12:18:54 | oskopek | just remove the old copySelection() function and rename your new one to copySelection() |
| 12:19:04 | watusimoto | yes |
| 12:19:10 | watusimoto | exactly |
| 12:19:20 | yomanurock | but raptor told me to add a new function, not to remove the old |
| 12:19:59 | yomanurock | and also, in my changes, i have switched names of the two functions |
| 12:20:02 | yomanurock | (new and old) |
| 12:20:11 | yomanurock | so, it has already been called |
| 12:20:28 | watusimoto | however you do it, you want to call you copy function when the user hits ctrl+C |
| 12:20:34 | yomanurock | k |
| 12:20:45 | yomanurock | so, will removing the old one work? |
| 12:20:50 | yomanurock | or do i just rename it |
| 12:21:14 | yomanurock | or i can even commentit |
| 12:21:28 | watusimoto | either your function needs to be called copySelection() or the ctrl+C handler needs to call copy() |
| 12:21:35 | yomanurock | k |
| 12:21:56 | yomanurock | so ill just rename the old one as copySelection_old() |
| 12:22:03 | yomanurock | and the new one as copySelection() |
| 12:23:28 | watusimoto | that will work. You can just delete the old function |
| 12:23:47 | watusimoto | when yours works, we won't need it anymore |
| 12:23:57 | | Platskies has joined |
| 12:24:55 | | yomanurock_ has joined |
| 12:25:11 | | yomanurock_ has left #bitfighter |
| 12:26:20 | | yomanurock Quit (Ping timeout: 240 seconds) |
| 12:27:00 | | yomanurock has joined |
| 12:28:23 | | Darrel Quit (Read error: Connection timed out) |
| 12:29:08 | | Darrel has joined |
| 12:29:14 | yomanurock | watasimotu, could you review my task? |
| 12:31:23 | oskopek | does TNL vector handle deleting pointer on .erase()? |
| 12:34:33 | watusimoto | yomanurock: I can't do it right now, but can look when I get home later |
| 12:34:43 | watusimoto | does it work? |
| 12:35:11 | oskopek | yomanurock: I can help you test it if you want |
| 12:35:30 | watusimoto | thanks oskopek!! |
| 12:35:39 | oskopek | no problem |
| 12:35:42 | watusimoto | it should be easy to test |
| 12:39:32 | oskopek | yomanurock: do you have link to you clone? |
| 12:41:45 | yomanurock | wait a sec... |
| 12:42:27 | yomanurock | http://code.google.com/r/mjuvekar0-googleci/source/checkout |
| 12:43:43 | oskopek | did you try it out? or are you still getting that SDL error? |
| 12:45:16 | yomanurock | still getting the sdl error |
| 12:45:21 | yomanurock | but im sure it works |
| 12:45:36 | oskopek | you should resolve the error and test it first, probably |
| 12:45:50 | yomanurock | will |
| 12:45:59 | yomanurock | but could you test first? |
| 12:46:16 | | LordDVG has joined |
| 12:46:29 | oskopek | I will, but before you submit anything, it's good practice to test it first |
| 12:47:54 | yomanurock | k thx :) |
| 12:49:35 | | yomanurock has left #bitfighter |
| 12:50:27 | watusimoto | oskopek: one idea I had for testing whether or not your walls are in the right place is to delete everything from the database and see what still draws. If only your stuff (or only other stuff) still draws, you'll know you have a problem. |
| 12:51:16 | oskopek | watusimoto: good idea, I'll try that |
| 12:51:31 | | yomanurock has joined |
| 12:52:21 | yomanurock | oskopek: did you say anything when i was gone (had to reboot for some installation) |
| 12:52:22 | watusimoto | also, you could hae rebuildEverything print the address of the database it is using, and see if it is different after you call it as opposed to when you do something like add a wall |
| 12:52:41 | yomanurock | if you did, could you repeat? |
| 12:52:58 | oskopek | yomanurock: nope |
| 12:53:13 | yomanurock | does the code work, or are you still testing? |
| 12:53:26 | watusimoto | yomanurock: for the record, we log this channel, if you ever want to see what has been written in your absence. The logs are at bitfighter.org/irclogs |
| 12:53:35 | oskopek | watusimoto: ok, even simpler |
| 12:53:56 | yomanurock | wasatimoto: thx |
| 12:55:23 | oskopek | watusimoto: the pointer address, right? |
| 12:55:27 | watusimoto | yes |
| 12:55:36 | watusimoto | use %p with printf or logprintf |
| 12:57:38 | | Platskies Quit (Quit: Platskies) |
| 13:01:55 | watusimoto | ok, back in a while |
| 13:03:29 | oskopek | watusimoto: it's definately the same DB |
| 13:08:55 | oskopek | I'll push what I have.. I'm starting to get lost.. the only (hopefully) things that don't work so yet are: moving wall outlines, undoing a deleted object (should be easy to fix, the pointer is deleted somewhere probably) and a similar problem with "overwriting history" (when you do an action, undo, do a different action, and then undo) -- the references to the deleted objects are being kept in the UndoAction, I need to remove them somehow from |
| 13:08:55 | oskopek | there.. (answered two of my questions just by writing them down, again) |
| 13:09:15 | oskopek | yomanurock: you have a build error |
| 13:09:23 | yomanurock | what does it say? |
| 13:09:33 | oskopek | /home/oskopek/gci/bitfighter/mjuvekar0-googleci/zap/UIEditor.cpp:69:27: fatal error: SDL_clipboard.h: No such file or directory |
| 13:09:33 | oskopek | #include <SDL_clipboard.h> |
| 13:09:50 | oskopek | you need to look at cmake |
| 13:10:06 | yomanurock | oskopek, do you have libsdl and sdl (2)? |
| 13:10:11 | oskopek | you didn't add SDL2 as a dependency |
| 13:10:21 | yomanurock | where do I add it? |
| 13:10:23 | oskopek | cmake didn't fail |
| 13:10:25 | oskopek | it should |
| 13:10:30 | oskopek | CMakeLists.txt |
| 13:10:39 | yomanurock | k |
| 13:10:43 | yomanurock | wait... |
| 13:10:49 | yomanurock | which CMakeLists? |
| 13:11:22 | oskopek | ./CMakeLists.txt |
| 13:11:36 | oskopek | project folder |
| 13:11:46 | yomanurock | it says that sdl2 is default |
| 13:11:54 | oskopek | yes, not sure which library the header is in, thought |
| 13:12:24 | yomanurock | got it, if sdl2 is not there, it finds sdl (1) |
| 13:12:40 | yomanurock | so, do i just delete the place where i find sdl1? |
| 13:13:35 | oskopek | you should enforce SDL2 somehow |
| 13:14:13 | yomanurock | anyways, got to go, bye! |
| 13:14:15 | | yomanurock has left #bitfighter |
| 13:17:58 | oskopek | oh, too late |
| 13:18:08 | oskopek | just change the import to SDL2/SDL_clipboard.h |
| 13:51:01 | | YoshiSmb has joined |
| 14:01:42 | YoshiSmb | sam... |
| 14:49:03 | YoshiSmb | trying to learn to create a bot: http://pastie.org/private/eplz1xgkvb03xms8wcug |
| 14:58:46 | watusimoto | does it work? |
| 14:59:48 | YoshiSmb | yes |
| 14:59:54 | watusimoto | excellent! |
| 15:00:08 | YoshiSmb | http://bitfighter.org/forums/viewtopic.php?f=12&t=2201 |
| 15:09:44 | sam686 | YoshiSmb have a problem not being able to open console with ctrl+/, because his keyboard / button is shift+7, there is no / without shift on his keyboard |
| 15:09:46 | oskopek | watusimoto: I'm hitting a weird thing here, do you have 2 minutes? |
| 15:11:04 | watusimoto | that's an interesting problem! in 019a he'll be able to remap it |
| 15:11:27 | watusimoto | oskopek: did you make any progress |
| 15:11:47 | watusimoto | sam686: in my office, we have at least 4 different keyboard layouts around |
| 15:12:16 | oskopek | yes.. I've almost fixed the history rewriting problem, but the thing is |
| 15:12:22 | oskopek | imagine the following: |
| 15:12:26 | oskopek | I add an object |
| 15:12:29 | watusimoto | belgian, german, french, american, possibly a swiss or two, but not sure |
| 15:12:32 | oskopek | I add another one |
| 15:12:40 | oskopek | I undo the last object |
| 15:12:47 | oskopek | and then add a new one |
| 15:12:57 | watusimoto | ok |
| 15:13:09 | sam686 | yoshiSMB said he can type the following with keyboard: ºª!"·$%&/()=?'¡¿`+^*Ǩ_:;<>{}[]€\|@#~€¬ |
| 15:13:13 | oskopek | so, the 2. object gets erased completely, even from the UndoAction |
| 15:13:22 | oskopek | but another object appears |
| 15:13:28 | oskopek | a 4th one |
| 15:13:31 | watusimoto | sam686: so YoshiSmb can help us test the abilities of the keyboard remapping |
| 15:13:45 | oskopek | and I'm clueless as to guess from where |
| 15:13:49 | watusimoto | oskopek: yes, correct |
| 15:14:02 | watusimoto | well, except for the 4th one |
| 15:14:31 | watusimoto | I think you should have 2 objects at the end of your sequence, plus the deleted object |
| 15:14:52 | oskopek | yes, exactly |
| 15:15:06 | oskopek | but in the debug, a fourth object appears in the db |
| 15:15:10 | watusimoto | so what is the 4th one? i.e. what kind of object? |
| 15:15:33 | oskopek | I dunno, how do I'll print it's type |
| 15:15:34 | watusimoto | if you think it is a copy of one of the other 3, you can create 3 different objects in your sequence, and see which the 4th is |
| 15:15:53 | watusimoto | good qustion |
| 15:16:59 | watusimoto | I think there is a string in the root Object (in TNL) that might have what you need |
| 15:18:13 | watusimoto | Try getClassName |
| 15:18:35 | watusimoto | also getTypeNumber returns a number you can look somewhere to see what class it is |
| 15:18:47 | watusimoto | but getClassName is probably easier |
| 15:19:02 | watusimoto | usually I tell what an object is by inspecting it in a debugger, but printing is probably easier |
| 15:20:59 | oskopek | I'm kind off lost in gdb |
| 15:21:06 | watusimoto | I understand |
| 15:21:56 | sam686 | does not look like you could remap / ctrl+/ from bitfighter.ini at all |
| 15:22:11 | sam686 | also, ctrl+/ could happen in-game, hosting. |
| 15:22:36 | | Watusimoto_ has joined |
| 15:23:35 | watusimoto | true |
| 15:25:34 | YoshiSmb | back, Watusimoto: does the 'Idler' work? |
| 15:25:51 | watusimoto | I don't know -- I didn't try it |
| 15:26:01 | watusimoto | but if it works for you, then it works |
| 15:27:23 | sam686 | I said it to YoshiSmb (in a mess of long chat in pm) that it worked from http://pastie.org/private/eplz1xgkvb03xms8wcug |
| 15:27:34 | sam686 | the bot basically do nothing after 3 lines of chat |
| 15:28:29 | YoshiSmb | well, i change it on now. |
| 15:28:45 | YoshiSmb | (just when i post the code on the forums) |
| 15:30:25 | sam686 | even the one in the forum works http://bitfighter.org/forums/viewtopic.php?t=2201 |
| 15:35:45 | oskopek | watusimoto: fixed!!! |
| 15:37:56 | watusimoto | excellent!!! |
| 15:43:35 | | LordDVG Quit (Remote host closed the connection) |
| 16:07:54 | | koda has joined |
| 16:08:30 | oskopek | watusimoto: but, I've found even more errors :/ |
| 16:10:38 | watusimoto | of course! |
| 16:11:00 | watusimoto | you are doing complex stuff; I'd be amazed if you didn't |
| 16:12:20 | oskopek | I'll let it be for today |
| 16:22:57 | watusimoto | ok. also don't worry too much about the end of gci |
| 16:23:10 | watusimoto | I think you are pretty close, so we'll take care of the project from the gci end |
| 16:23:24 | watusimoto | just be sure to finish it :-) |
| 16:26:53 | | Flynnn has joined |
| 16:26:57 | oskopek | watusimoto: I will for sure, after all that work |
| 16:27:14 | watusimoto | I know you will :-) |
| 16:27:31 | watusimoto | actually, your task is one of my favorites, so I hope we get it to work! |
| 16:29:25 | oskopek | I have a lot of school stuff coming up :/ leaves less time for the fun stuff |
| 16:29:39 | | Flynnn Quit (Client Quit) |
| 16:44:50 | watusimoto | no worries |
| 16:47:17 | | Watusimoto_ Quit (Ping timeout: 265 seconds) |
| 16:55:35 | | raptor has joined |
| 16:55:35 | | ChanServ sets mode +o |
| 16:56:16 | raptor | good day! |
| 16:56:57 | | koda Quit (Ping timeout: 265 seconds) |
| 17:06:22 | sam686 | my apartments kitchen sink is clogged again (since about 6 months ago), tried using toilet plunger only to have the water turn black. Bathroom sink is fine. |
| 17:06:33 | raptor | mine did the same think |
| 17:06:41 | raptor | continue using the plunger |
| 17:06:49 | raptor | until it drains |
| 17:07:10 | sam686 | The worst problem is, if I hear up stairs kitchen sink drain, our kitchen sink gets more water and can overflow like it almsot did 6 months ago |
| 17:07:21 | raptor | blech |
| 17:07:23 | sam686 | the up stairs is a different apartment, though.. |
| 17:07:28 | raptor | ls |
| 17:10:06 | sam686 | I guess toilet plunger won't work in my case, all the water will only be pushed into up stairs, though not quite enough for water to reach the up stairs sink. |
| 17:10:35 | raptor | you should tell them to plug their sink while you try to fix yours... |
| 17:10:55 | sam686 | already told some apartment people, they may later try fixing it |
| 17:11:14 | raptor | in my experience - the toilet plunger *always* works, you just have to be dedicated and smart about it |
| 17:11:56 | sam686 | its too cold outside, and to get from one apartments to another requires going outside.. |
| 17:12:03 | raptor | haha |
| 17:12:12 | raptor | oh yeah - you guys have really cold winters |
| 17:12:34 | sam686 | its like -20 F outside right now in sioux falls, SD. |
| 17:12:45 | raptor | BBRrrrrrrrr |
| 17:14:09 | sam686 | toilet plunger trick may work, if the clog is closer to my sink, which appears not.. |
| 17:14:37 | raptor | oh? then that may be a problem... |
| 17:14:39 | sam686 | and I don't know how many sinks are effected too.. |
| 17:15:53 | | YoshiSmb Quit (Ping timeout: 272 seconds) |
| 17:17:48 | sam686 | My internet had heavy dropped packets on the sending direction yesterday, but I think I now fixed it myself by removing a cable splitter, which appears to give better signal to my cable modem.. |
| 17:18:25 | sam686 | it was about, 30% dropped packets, now its more like 0.1% dropped packets.. |
| 17:19:01 | watusimoto | sam686: get a plumber's snake |
| 17:19:43 | sam686 | I don't have it, and rignt now, my apartment people will try to fix it later today or tomorrow.. |
| 17:19:43 | watusimoto | it will fix your sink better than a plunger would |
| 17:19:48 | watusimoto | ok |
| 17:19:53 | watusimoto | they'll use a snake |
| 17:20:20 | watusimoto | I bought a cheap plastic one for like $3 that I keep in my bathroom, and have a couple of others |
| 17:20:36 | watusimoto | including one badass momma I used to clear a plugged street drain in front of my house |
| 17:20:49 | watusimoto | with mixed success |
| 17:21:08 | sam686 | another problem, I shouldn't use dish washer machine as they drain straight into sink's drainage, and can also overflow kitchen sink if clogged. |
| 17:21:17 | watusimoto | yuck |
| 17:21:33 | sam686 | and my disk washer is full of dirty dishes.. |
| 17:22:19 | sam686 | bathroom kink and toilet is ok and isn't clogged, so I can use that for water/cleaning if needed.. |
| 17:22:55 | watusimoto | wash your dishes in that toilet |
| 17:23:02 | watusimoto | just stick them in and flush |
| 17:23:08 | watusimoto | it's just as good |
| 17:23:22 | sam686 | or I can use bathroon sink, that good. |
| 17:23:37 | watusimoto | you need the flushing action to really get the dishes clean |
| 17:24:27 | sam686 | it could use so much water from flushing so many times, and having to wait a minute for toilet to be ready for another fluch |
| 17:25:51 | sam686 | and it isn't good for small items like fork,spoon, risk of losing them in the toilet drain. |
| 17:26:12 | watusimoto | put them together in a sock |
| 17:26:19 | watusimoto | that should help |
| 17:26:21 | | koda has joined |
| 17:26:28 | sam686 | well then dirt gets trapped inside a sock.. |
| 17:26:43 | raptor | or get a dog... |
| 17:27:08 | watusimoto | then the dog can do the flushing! |
| 17:27:12 | watusimoto | perfect!@ |
| 17:33:12 | sam686 | any updates to improvement contest? |
| 17:35:27 | raptor | yes, i've been doing that this morning - post is almost done |
| 17:38:35 | | Flynnn has joined |
| 17:43:21 | | Flynnn Quit (Ping timeout: 265 seconds) |
| 18:05:05 | | BFLogBot Commit: 3d90b3d1b640 | Author: sam8641 | Message: Fix crash while punching through firewall, fix page up/down crash in server browser |
| 18:05:06 | | BFLogBot Commit: 662c1e164ebf | Author: sam8641 | Message: Fix lua_getScore/lua_getRating was always returning zero |
| 18:05:53 | | fordcars has joined |
| 18:15:25 | | fordcars Quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
| 18:16:25 | | thread_ has joined |
| 18:17:46 | raptor | new maps up |
| 18:17:52 | thread_ | whooo! |
| 18:31:57 | raptor | voting up |
| 18:42:10 | | watusimoto Quit (Ping timeout: 245 seconds) |
| 18:52:55 | | LordDVG has joined |
| 19:00:42 | | Flynnn has joined |
| 19:01:01 | | Watusimoto has joined |
| 19:10:25 | | Darrel Quit (Read error: Connection reset by peer) |
| 19:10:39 | | LordDVG Quit (Remote host closed the connection) |
| 19:16:40 | Watusimoto | raptor: this specify teams in the robot file turns out to be enormously complex to implement correctly |
| 19:17:42 | Watusimoto | thank goodness we have some testing implemented to make it easier to figure out when things are broken |
| 19:18:34 | raptor | huh |
| 19:20:57 | Watusimoto | when a client normally joins, it is assigned to the smallest team] |
| 19:21:02 | Watusimoto | not so with a robot in the level file |
| 19:21:16 | raptor | ah yes, that bug |
| 19:22:10 | Watusimoto | and when you add players to an autoleveled game, you need to count some robots as if they were humans for the purpose of determining how many autolevel bots to add |
| 19:22:26 | Watusimoto | so you need to track which bots are which |
| 19:22:45 | raptor | oh lovely |
| 19:23:02 | Watusimoto | yes; there are lots of weird situations that need to be handled |
| 19:23:03 | Watusimoto | ugh |
| 19:23:36 | | koda Quit (Quit: Leaving) |
| 19:30:12 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 19:30:16 | | Darrel has joined |
| 19:51:29 | | Skybax has joined |
| 19:53:29 | | Watusimoto Quit (Ping timeout: 246 seconds) |
| 19:54:33 | | Flynnn has joined |
| 20:01:37 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 20:08:19 | | Flynnn has joined |
| 21:01:07 | raptor | Skybax: did fordcars get you to compile and hack on bitfighter? |
| 21:01:15 | Skybax | No |
| 21:01:26 | Skybax | We went to bed right as everything finished installing lol |
| 21:01:35 | raptor | ah ok |
| 21:02:16 | Skybax | And Mercurial still can't find Python even after I installed it |
| 21:02:37 | raptor | ah, you may need to restart after installing python |
| 21:03:12 | Skybax | Okay |
| 21:10:13 | | thread_ Quit (Ping timeout: 272 seconds) |
| 21:14:10 | | Watusimoto has joined |
| 21:25:37 | sam686 | Skybax, using windows or mac? as for Mercurial on windows, turtoiseHG might be easier to use and still have hg command line option, but much easier to install in windows. TurtoiseHG includes mercurial + python together I believe. |
| 21:25:57 | Skybax | Windows. I already downloaded everything tho |
| 21:26:10 | raptor | Skybax: why was he trying to get you to do crazy developer stuff? |
| 21:26:22 | Skybax | To figure out why Bitfighter keeps crashing |
| 21:26:44 | raptor | oh... you're still having that problem? is it the 'random' crashing problem? |
| 21:26:49 | Skybax | Yes |
| 21:27:00 | Skybax | Skybot makes it happen more often |
| 21:27:23 | sam686 | is anything more then just bitfighter crashing? |
| 21:27:28 | raptor | but still random, with Skybot? |
| 21:27:31 | Skybax | Yes |
| 21:27:58 | Skybax | And I'm the only one it happens to lol |
| 21:28:07 | raptor | that's so weird - do you have antivirus running? |
| 21:28:20 | raptor | inconsistency in crashing is the worst.. |
| 21:28:23 | Skybax | I think just the basic Windows antivirus |
| 21:28:25 | sam686 | what computer you using? windows 8? 7? xp? cpu? memory? |
| 21:28:32 | Skybax | Windows 8.1 |
| 21:28:56 | sam686 | oh and what hardware graphics you using? |
| 21:28:56 | raptor | i wonder if you're the only one on windows 8... |
| 21:29:05 | raptor | i should get a VM of that somehow... |
| 21:29:05 | | vs73nx has joined |
| 21:29:09 | Skybax | I believe it's NVIDIA |
| 21:29:23 | Skybax | ford is on windos 8.1 |
| 21:29:28 | raptor | oh? |
| 21:29:30 | Skybax | And he can't reproduce the crash |
| 21:29:32 | | vs73nx Quit (Changing host) |
| 21:29:32 | | vs73nx has joined |
| 21:29:34 | raptor | argh |
| 21:30:05 | vs73nx | hello everyone |
| 21:30:08 | Skybax | Hi |
| 21:30:13 | sam686 | I do have windows 8, my other intel atom dual core with intel gma 3600 (powerVR based gpu) |
| 21:30:18 | Watusimoto | hi sam686, raptor: did either of you make any recent modifications to the code that might result in mEnergy being undefined in Ship::packUpdate? |
| 21:30:24 | sam686 | it works fine with bitfighter without random crashing |
| 21:30:25 | Watusimoto | by recent I mean the last, say 2 weeks? |
| 21:30:34 | raptor | Watusimoto: I think sam686 did |
| 21:30:42 | raptor | me points fingers |
| 21:30:43 | sam686 | although I just don't get line smoothing at all on that very weak gpu.. |
| 21:31:44 | sam686 | and I just don't get any sort of random crashing at all like Skybax do... |
| 21:33:16 | raptor | Watusimoto: maybe 1047dcab338c+ |
| 21:33:22 | raptor | oosp: 1047dcab338c |
| 21:34:03 | sam686 | my windows 8 is so weak, it doesn't have a fan at all, zero fans. and it has about 64 GB of SSD. In a positive side its battery lasts more then 6 hours. |
| 21:34:55 | Skybax | Actually wait.. I might have AMD graphics.. |
| 21:35:24 | raptor | Skybax: you can find out with this: http://filehippo.com/download_gpuz/ |
| 21:37:01 | sam686 | on windows, control panel, system, tells you about several things about your computer |
| 21:38:35 | Skybax | Okay yeah I have an AMD Radeon HD 7730M |
| 21:39:08 | sam686 | right click desktop, screen resolution, advanced, tells you about graphics name and model (although intel graphics don't always tell you the model, because many is integrated into CPU) |
| 21:40:02 | Watusimoto | well, whatever it is is causing a test to fail |
| 21:40:09 | Watusimoto | luckily, not one I'm working on! |
| 21:40:36 | vs73nx | hi Watusimoto! |
| 21:40:55 | | BFLogBot Commit: 5467cba390fa | Author: watusimoto | Message: Fix all bot manager tests (again) |
| 21:40:57 | | BFLogBot Commit: 861f78f6f73a | Author: watusimoto | Message: Merge |
| 21:41:02 | Watusimoto | hi |
| 21:41:05 | Watusimoto | be back in a minute |
| 22:02:23 | | Skybax_ has joined |
| 22:04:37 | | Skybax Quit (Ping timeout: 240 seconds) |
| 22:05:46 | | Skybax_ is now known as Skybax |
| 22:08:09 | | Skybax_ has joined |
| 22:10:45 | | Skybax Quit (Ping timeout: 248 seconds) |
| 22:10:54 | | Skybax_ is now known as Skybax |
| 22:19:13 | Watusimoto | hi] |
| 22:21:03 | vs73nx | Watusimoto: hello, in main.cpp is ClientGame a pointer to game? |
| 22:22:34 | sam686 | mEnergy being undefined? I don't have any compile errors though... |
| 22:22:54 | Watusimoto | either Game or more likely to a ClientGame |
| 22:23:05 | Watusimoto | sam686: unitialized |
| 22:23:43 | sam686 | uninitalized? then maybe the constructor forgot to set them, either ship constructor or robot constructor.. |
| 22:23:45 | Watusimoto | if you run the tests on my most recent checkin, you should get a crash somewhere in TestServerGame |
| 22:24:46 | vs73nx | when i pass clientGame as an arg to chooseLevelSource it gives me the error i had last night |
| 22:25:25 | Watusimoto | probably |
| 22:25:36 | sam686 | partially the result of recording game play, but the real problem is somethere in constructor mEnergy was never set and stays at random junk value. |
| 22:26:00 | Watusimoto | mEnergy is set in ship->initialize() |
| 22:26:58 | raptor | found a windows 8 vm! |
| 22:27:07 | Watusimoto | which should get run for non-robots |
| 22:27:23 | Watusimoto | vs73nx: what was the error? |
| 22:27:38 | vs73nx | error: expected primary-expression before ‘(’ token |
| 22:27:42 | sam686 | pack/unpack is the same for ship/robots, as robots don't have their own specific packUpdate |
| 22:27:45 | vs73nx | that one |
| 22:27:55 | Watusimoto | oh that one |
| 22:28:03 | vs73nx | but it only happens when i pass clientGame as an arg |
| 22:28:39 | Watusimoto | try this: create a temp variable, assign clientGame to that then try passing that, just to see what happens |
| 22:28:47 | raptor | syntax error! |
| 22:28:56 | Watusimoto | yes, I suspect so |
| 22:29:12 | Watusimoto | that's what I suggested last night, but I looked at the line, and it wasn't obviously so |
| 22:29:26 | Watusimoto | but I don't have the full context, so it's hard to say |
| 22:29:35 | raptor | guaranteed syntax error |
| 22:29:45 | sam686 | I got an out of bound value in Ship::packUpdate mEnergy = 0xcdcdcdcd |
| 22:29:51 | vs73nx | Game *game = ClientGame; |
| 22:29:57 | raptor | OCD OCD OCD OCD |
| 22:30:07 | vs73nx | gives me expected primary-expression before ‘;’ token |
| 22:30:19 | vs73nx | hmm |
| 22:30:28 | Watusimoto | whoa... ClientGame is not a varibnale |
| 22:30:33 | Watusimoto | it is a class name |
| 22:30:38 | vs73nx | yeah its a classs |
| 22:30:57 | vs73nx | but i need a pointer to Game inside main.cpp |
| 22:30:58 | Watusimoto | so you can't assign a variable like that |
| 22:31:29 | Watusimoto | you need a client game or a servergame? |
| 22:31:38 | sam686 | and its a robot that have mEnergy=0xCDCDCDCD |
| 22:31:43 | Watusimoto | you probably need a servergame |
| 22:31:48 | vs73nx | hmm |
| 22:31:57 | vs73nx | yeah servergame seems better |
| 22:31:58 | Watusimoto | because clients don't load levels |
| 22:32:11 | vs73nx | really? |
| 22:32:20 | vs73nx | huh, ok |
| 22:32:24 | Watusimoto | the editor does, but the clients get their levels from the server |
| 22:32:31 | raptor | we may want to rethink the logic of not having robot::initialize call ship::initialize... |
| 22:32:52 | Watusimoto | if you think about it.... the server is in Germany with the levels, but the client is in Australia |
| 22:33:19 | Watusimoto | that's how you can play levels you don;t have on your server |
| 22:34:09 | vs73nx | ok |
| 22:35:29 | sam686 | there is 2 different Ship::initialize, one if called from constructor that doesn't set mEnergy |
| 22:38:25 | Watusimoto | but that intiailize calls the other |
| 22:38:31 | Watusimoto | (if it's not a bot) |
| 22:41:47 | vs73nx | ok, so where can i get a pointer to servergame in main.cpp |
| 22:42:24 | Watusimoto | from mGameManager |
| 22:42:29 | Watusimoto | or gameManager |
| 22:42:36 | Watusimoto | or maybe it's static |
| 22:42:43 | Watusimoto | GameManager:: |
| 22:42:53 | Watusimoto | sorry, I thought I wrote that before |
| 22:43:11 | vs73nx | its not static |
| 22:43:13 | vs73nx | but thanks |
| 22:43:26 | Watusimoto | ServerGame *serverGame = GameManager::getServerGame(); |
| 22:43:30 | Watusimoto | it is |
| 22:44:03 | vs73nx | it works |
| 22:44:08 | vs73nx | compilation sucess |
| 22:44:36 | vs73nx | linking error though |
| 22:45:06 | vs73nx | undefined reference to Zap::LevelSource::loadLevels(Zap::FolderManager*) |
| 22:45:44 | Watusimoto | Did you add a new file to the project? |
| 22:45:51 | vs73nx | no |
| 22:46:12 | vs73nx | the error occurs in LevelSource.cpp.o |
| 22:46:16 | Watusimoto | is that function defined? |
| 22:46:37 | vs73nx | its a virtual function in levelsource |
| 22:46:39 | Watusimoto | (check the spelling between the .h and the .cpp version) |
| 22:46:54 | Watusimoto | is the signature identical? |
| 22:47:04 | vs73nx | yes |
| 22:47:09 | Watusimoto | check to make sure the implementations have the identical sigs |
| 22:48:43 | raptor | wiindows 8 booted up! |
| 22:48:54 | raptor | first order of business... install Bitfighter! |
| 22:49:04 | Watusimoto | windows 8? |
| 22:49:05 | vs73nx | heh |
| 22:49:14 | Watusimoto | and here I thought we were friends! |
| 22:49:21 | vs73nx | i have a Windows 8 VM, disc.. |
| 22:49:27 | vs73nx | somewhere... |
| 22:49:40 | vs73nx | i think... |
| 22:49:52 | vs73nx | i also have a VM of windows 98 |
| 22:50:29 | vs73nx | what good fun it was... |
| 22:50:33 | raptor | IE is the the msot important web browser because it's first task is to download firefox |
| 22:50:44 | vs73nx | heh |
| 22:50:50 | Watusimoto | :-) |
| 22:51:01 | vs73nx | although if there was wget on windows... |
| 22:51:17 | Watusimoto | we have a major (to us, at least) website at work that we've never tested with IE because none of us have it or will run it |
| 22:51:33 | Watusimoto | well, I suppose our customers have tested it, and it doesn't work |
| 22:51:57 | Watusimoto | I have wget on my windows machine |
| 22:52:08 | vs73nx | its funny that i had a VM of an operating system that is older than me! |
| 22:52:21 | vs73nx | * Windows 98 |
| 22:53:10 | Watusimoto | great! wget --help loads windows help, which shows the message: "Why can't I get Help from this program?" |
| 22:53:24 | vs73nx | heh |
| 22:53:56 | raptor | next order of business, install Skybax and see if he crashes the game |
| 22:57:04 | raptor | second order of business - install adblock so I can browse the web! |
| 22:57:25 | vs73nx | it compiles... |
| 22:57:33 | vs73nx | but it segfaults |
| 22:57:40 | vs73nx | well... good fun! |
| 22:58:53 | raptor | i need my start menu... |
| 23:01:08 | vs73nx | haha |
| 23:04:45 | raptor | Skybax: how fast does it take for skybot to crash the game? |
| 23:04:54 | raptor | also skybot is scary |
| 23:07:26 | vs73nx | skybot = skynet? |
| 23:07:28 | sam686 | oh one idea for Skybax: run bitfighter -dedicated and join your server, that will tell you whether your server crash, or your client crash.. |
| 23:07:51 | Watusimoto | raptor: I'm rethinking one of our bot "rules" |
| 23:08:11 | Watusimoto | if I add a bot with /addbot, maybe autoleveling should stay on |
| 23:08:27 | raptor | how come? |
| 23:08:35 | Watusimoto | 1) because it's hard not to |
| 23:08:48 | Watusimoto | 2) because it's kind of akin to adding a new player |
| 23:08:58 | raptor | commands are advanced-ish and should allow more control |
| 23:09:05 | Watusimoto | sure |
| 23:09:21 | Watusimoto | but disabling autoleveling is not giving more control necessarily |
| 23:09:31 | Watusimoto | because the player isn't necessarily asking for that to happen |
| 23:09:42 | Watusimoto | the player wants to add another player |
| 23:09:51 | raptor | so maybe we need a /disableautoleveling |
| 23:09:55 | Watusimoto | maybe a special bot |
| 23:09:58 | Watusimoto | yes, maybe that |
| 23:10:01 | raptor | or an extra option for admins in the menu |
| 23:10:22 | Watusimoto | just an extra item on the bots menu |
| 23:10:24 | Watusimoto | - more bots |
| 23:10:28 | Watusimoto | - fewer bots |
| 23:10:33 | Watusimoto | - disable autoleveling |
| 23:10:52 | raptor | autoleveling seems too weird of a term |
| 23:10:59 | Watusimoto | yes, of course better worded |
| 23:11:25 | raptor | maybe auto-balancing |
| 23:11:34 | vs73nx | hmm |
| 23:11:48 | raptor | how on earth do i shut down windows 8? |
| 23:12:02 | Watusimoto | we have more bots, less bots, remove all bots, mabye have robots balance teams <yes>/<no> like we do on the host menu |
| 23:12:43 | vs73nx | raptor: i dunno, thats the reason that i dont use windows 8 |
| 23:12:57 | Watusimoto | raptor: you pause your VM |
| 23:13:00 | raptor | heh, i have to install a 3rd part app: classicshell |
| 23:13:05 | vs73nx | yes |
| 23:13:12 | vs73nx | classicshell is good |
| 23:13:20 | raptor | force-shutdown saves the day! |
| 23:13:46 | vs73nx | hmm |
| 23:13:56 | vs73nx | my segfailt give me t a bt like this |
| 23:13:58 | vs73nx | http://pastie.org/8608124 |
| 23:14:48 | raptor | ServerGame is null |
| 23:15:02 | vs73nx | hmm |
| 23:15:15 | vs73nx | im passing to initHosting() LevelSourcePtr levelSource = LevelSourcePtr(settings->chooseLevelSource(game));... |
| 23:15:25 | vs73nx | oh |
| 23:15:46 | vs73nx | raptor: how did you figure that out? |
| 23:16:12 | raptor | secrets of a seasoned segfault programmer |
| 23:16:22 | vs73nx | oh |
| 23:16:35 | raptor | line 0 says ServerGame::resetLevelLoadIndex (this=0x0) |
| 23:16:40 | raptor | this=0x0 |
| 23:16:44 | vs73nx | and 0x0 is null |
| 23:16:51 | raptor | that means that the object, ServerGame, is NULL |
| 23:16:53 | raptor | yes |
| 23:18:00 | vs73nx | GameSettingsPtr settings = game->getSettingsPtr(); |
| 23:18:13 | vs73nx | doesnt look like that returns a null pointer... |
| 23:18:22 | raptor | no |
| 23:18:33 | vs73nx | whoops |
| 23:18:33 | raptor | but the ServerGame object in 'initHosting' is NULL |
| 23:18:36 | vs73nx | wrong statement |
| 23:19:10 | raptor | classicshell shows me the shutdown button! |
| 23:19:31 | raptor | windows 8 feels like it has multiple personality disorder |
| 23:22:09 | vs73nx | wait... |
| 23:22:27 | vs73nx | i dont pass initHosting a serverGame |
| 23:22:53 | vs73nx | only a GameSettings object and my levelsource |
| 23:23:06 | vs73nx | and two Bools |
| 23:23:18 | raptor | you don't have to pass it one |
| 23:23:28 | raptor | but whatever is in initHosting is NULL |
| 23:23:33 | raptor | and that's why it's crashing |
| 23:23:38 | vs73nx | hmm |
| 23:23:50 | vs73nx | i didnt touch the inithosting function |
| 23:24:13 | raptor | you did indirectly by passing in different objects |
| 23:24:26 | raptor | it could be that it uses those objects but fails to create the servergame with them |
| 23:25:21 | vs73nx | ah |
| 23:25:22 | vs73nx | alright |
| 23:27:48 | vs73nx | hmm |
| 23:35:39 | raptor | heading home. later! |
| 23:35:41 | | raptor Quit () |
| 23:46:58 | | Flynnn Quit (Quit: This computer has gone to sleep) |