#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-11-12

Timestamps are in GMT/BST.

00:00:04Darrel Quit (Quit: IRC client killed.)
00:01:50raptorstarting small
00:01:53raptorentering a new world
00:01:56raptoropening a new door
00:02:05BFLogBot Commit: 9a3f1f9fb98b | Author: buckyballreaction | Message: My first test! Starting Lua environment tests...
00:20:46raptorkaen: can you explain the use-case of TEST_F() ?
00:21:12sam686 has left #bitfighter
00:21:24raptorfor instance, I want to do a test to set up the Lua environment, but wish to do so only once for alll of the tests - accoding to the doc, this seems like what I want (TEST_F), but not sure...
00:24:17raptormaybe its not what i want...
00:24:23raptorwell i'm off, later!
00:24:25raptor Quit ()
01:20:55Nothing_Muchkaen: what's up?
01:32:32kaen Quit (Ping timeout: 244 seconds)
01:34:59kaen has joined
01:34:59kaen Quit (Changing host)
01:34:59kaen has joined
02:29:15Platskies has joined
03:05:35destroyerimo has joined
04:13:34raptor has joined
04:13:34ChanServ sets mode +o
04:14:04raptoroh man kaen - i just responded to the slipzone discussion about circle and at the same time you wrote its history!
04:14:18kaenhehe
04:16:05raptorwow, you did a good job at documenting
04:16:14raptorquite thorough actually...
04:16:14kaenlots of grep ...
04:16:17raptorhaha
04:17:51raptorIf you're open to suggestion - I may change the last paragraph a tiny bit
04:18:43raptornot sure to what.. but maybe to not poke people as much
04:18:53kaenyeah, you're right
04:18:58kaenit's pretty patronizing
04:20:36kaenI don't mind your resentment. I stand by my decision, and I would be happy to address your concerns. But I think it's fair to ask that you express your feelings in a civil manner, and remember that everyone here is a volunteer.
04:20:42kaennew edit ^
04:20:53raptorseems much better to me
04:23:02kaendebian-security wants me to package poly2tri, clipper, and lua-vec
04:23:12raptoroh wow
04:23:15raptoruhh
04:23:23kaenon the fence about recast
04:23:31raptorpoly2tri and clipper seem OK
04:23:33kaenbecause of the 3D -> 2D conversion
04:23:48kaenI think I have them convinced about TNL though
04:23:51raptorrecast is effectively our own mutation
04:24:03raptorlua-vec is... umm
04:24:11raptoraltered, somehow, I think
04:24:46raptoroh - I updated it to the newest Lua 5.1.5 and I think watusimoto made some weird logging changes
04:25:10raptoroh rats
04:25:25raptorlua-vec was 4D - 2D-ized by watusimoto, too
04:25:42raptoryou should tell them debian folks that, as well
04:26:08kaenoh man
04:26:09kaenok
04:26:59raptorif you don't mind, where are you having these discussions? are they public?
04:33:08kaen#debian-mentors on irc.debian.org
04:33:22raptorha! invite-only
04:33:29raptorthat's OK, I was just curious
04:33:53raptorthat's cool that you're getting into packaging
04:33:53kaenwhoa I didn't realize I was invited
04:34:08kaenprobably got sick of me spamming #debian with packaging questions :)
04:34:14raptorhaha
04:34:18kaenI've almost got poly2tri wrapped up
04:34:27kaenI ended up writing a CMakeLists.txt for it
04:34:33raptorcool!
04:34:49raptordoesn't it feel good to contribute to the wider community? I've always really like that
04:34:55kaenby the way, cmake is the preferred build system for debian packages after autotools :)
04:35:01raptorhooray!
04:35:11kaenoh, yeah, I love that feeling
04:35:33kaennot only did I scratch my own itch, but the itch of others before they even knew they were itchy :)
04:35:42raptorhahaha
04:37:07raptorback in a little bit...
04:54:20destroyerimo Quit (Read error: Connection reset by peer)
05:14:10Platskies Quit (Read error: Connection reset by peer)
05:28:29fordcars_xp has joined
05:29:20fordcars_xpkaen?
05:29:31kaenhi
05:29:44fordcars_xpBitfighter is telling me a variable is not declared, when it is declared as a global in main()
05:29:54fordcars_xpmapHeight = 24 -- Map Height
05:30:05fordcars_xpraycasting.levelgen:154: Variable 'mapHeight' cannot be used if it is not first declared.
05:30:19fordcars_xpin fuunction
05:30:28kaenpastie the whole script
05:30:43fordcars_xpuh sure, if you have time
05:31:11fordcars_xphttp://pastie.org/8473740
05:32:38kaenhmm, is this in 019?
05:32:44fordcars_xpin 018a
05:33:01kaenweird. anyway, try adding `local mapHeight` as the first line of the script
05:33:13fordcars_xpsure
05:34:12fordcars_xpseems to have worked
05:34:36fordcars_xpmaybe it's and invisible character or something
05:35:33kaenthat's possible, if you copied and pasted
05:35:39fordcars_xpyeha
05:35:57raptorattack of the phantom control characters!
05:36:08kaenoh, actually lua doesn't allow anything but alphanumerics and underscores in identifier names
05:36:23kaenso it would spit out an error about that if you tried, I think
05:36:29kaenor else just work :)
05:44:48fordcars_xpwow levelgen made Bitfighter crash
05:45:00fordcars_xpyay no logs!!!!
05:45:50kaenmy guess is a zone without geometry
05:45:58fordcars_xpahh maybe
05:46:22fordcars_xphttp://pastie.org/8473764
05:46:46fordcars_xpoh yeah, getGeom, does it return a table?
05:47:29fordcars_xpIf it is the problem, well this means it did the whole code, which is good news
05:47:54kaengetGeom returns a table for polygon objects, a single point for point objects
05:48:27kaentry passing those points in a table, btw
05:48:39fordcars_xphttp://pastie.org/8473767
05:48:49fordcars_xpuh
05:48:54kaensetGeom({pA, pB, pC, pD})
05:49:07fordcars_xpooohh, is that necessairy?
05:49:12kaenI believe so
05:49:21kaennot positive though
05:49:29fordcars_xpweird, it doesn't crash the first time it does it
05:53:22fordcars_xpman crashes
05:53:32raptormanpage not found
05:59:36Flynnn has joined
06:03:23fordcars_xpargh crashes
06:03:31fordcars_xpanyway to debug Bitfighter?
06:19:53Flynnn Quit (Quit: This computer has gone to sleep)
06:21:23Flynnn has joined
06:33:42fordcars_xp Quit (Quit: Page closed)
06:37:26kaen Quit (Ping timeout: 240 seconds)
06:55:50kumul Quit (Quit: Leaving)
07:01:59raptor Quit ()
07:04:04HylianSavior Quit (Read error: Connection reset by peer)
07:43:57Platskies has joined
08:07:55Invisible has joined
08:10:53watusimoto has joined
08:10:53ChanServ sets mode +o
08:12:41Darrel has joined
08:26:06Flynnn Quit (Quit: This computer has gone to sleep)
08:40:11Invisible Quit (Ping timeout: 260 seconds)
08:54:28Flynnn has joined
09:00:02sam686 has joined
09:00:02ChanServ sets mode +v
09:23:51watusimoto Quit (Ping timeout: 246 seconds)
09:35:13Skybax_ has joined
09:37:09Skybax Quit (Ping timeout: 246 seconds)
09:45:45Flynnn Quit (Quit: This computer has gone to sleep)
10:00:28Flynnn has joined
10:02:25Flynnn Quit (Client Quit)
10:19:11destroyerimo has joined
10:31:01Invisible has joined
10:49:39destroyerimo Quit (Read error: Connection reset by peer)
11:28:50Invisible Quit (Ping timeout: 240 seconds)
11:48:55Skybax_ Quit (Ping timeout: 244 seconds)
12:33:07Watusimoto has joined
12:33:12Invisible has joined
13:28:49Invisible Quit (Ping timeout: 272 seconds)
13:29:09LordDVG has joined
13:30:13Watusimoto Quit (Ping timeout: 252 seconds)
14:16:50Platskies__ has joined
14:18:19Nothing_Much Quit (Remote host closed the connection)
14:18:45kaen has joined
14:18:45kaen Quit (Changing host)
14:18:45kaen has joined
14:19:46Platskies Quit (Ping timeout: 244 seconds)
14:20:15Nothing_Much has joined
14:47:41LordDVG Quit (Remote host closed the connection)
14:50:10watusimoto has joined
14:50:11ChanServ sets mode +o
14:50:20Invisible has joined
14:55:08Platskies__ Quit (Quit: Leaving)
14:55:20YoshiSmb has joined
14:55:52watusimoto Quit (Ping timeout: 246 seconds)
15:20:39YoshiSmb Quit (Ping timeout: 250 seconds)
15:23:26Invisible Quit (Ping timeout: 240 seconds)
15:37:32HylianSavior has joined
16:36:43Invisible has joined
16:37:30Invisible Quit (Client Quit)
17:04:37Canseco has joined
17:23:31raptor has joined
17:23:32ChanServ sets mode +o
17:23:35raptorgood day!
17:29:31kaenmorning!
17:30:01raptorok goodie - you're here
17:30:04raptorTEST_F
17:30:12raptorhow is that different than TEST() ?
17:30:25raptorwith our gtests (if you have a moment..)
17:30:40raptorI read all the doc, and I'm not understanding something
17:40:01kaenoh yeah
17:40:27kaenTEST will auto-generate a Test subclass, and run your tests of methods of the class
17:40:49kaenTEST_F lets *you* define teh Test subclass, and then you can put startup/teardown in that class's constructor
17:40:58raptorohhhh
17:41:09kaenthere's an example of TEST_F usage in HttpRequestTest, I believe
17:41:32raptorOK, thanks
17:41:42kaenyou bet!
17:41:53kaenwelcome to the wonderful world of C++ testing, btw
17:42:49kaenand when I say wonderful, I mean terrifying
17:43:25raptorha
17:43:31raptorit doesn't seem so bad... yet
17:43:41kaengtest really really helps
17:43:49raptorbut I think you and watusimoto did a lot of the hard stuff already (like getting GamePair to work)
17:43:53kaenbut testing in an interpretted language is just SO much better
17:44:42kaenwhat really did all the groundwork for GamePair, I just wrapped them up into something reusable
17:44:45kaenwat*
17:45:27kaenI'm honestly still amazed that he got it to function. There was so much global state before we started down this road.
17:45:58kaenI never expected full-on integration testing
17:46:27kaenhe even wrote a test that uses the master server!
17:47:04kaennow if I could just get him to break his test suites into separate files ...
17:47:31Skybax has joined
17:53:13raptorhaha
17:53:19raptorI found teh main_test
17:53:25raptorit has loads of TEST_F...
17:53:37raptorso actually
17:53:58raptorwith TEST_F, can I do an EXPECT statement in the startup/teardown ?
18:07:10LordDVG has joined
18:10:49kaenI believe so
18:36:24Flynnn has joined
18:37:08Flynnn Quit (Client Quit)
18:38:06kaenhey guys its spicey here
18:38:15raptorhi spikey!
18:38:24kaenlolol
18:38:54kaenHi raptor
18:41:03Flynnn has joined
18:41:16Flynnn Quit (Remote host closed the connection)
18:42:00Flynnn has joined
18:45:36kaenthis always happens when I forget to lock my computer -.-
18:45:50raptorwelcome back!
18:54:21Flynnn Quit (Quit: This computer has gone to sleep)
19:06:30Skybax_ has joined
19:08:04Skybax Quit (Ping timeout: 244 seconds)
19:13:22raptorquestion of the day - to operator overload or to not operator overload
19:14:19kaennot!
19:14:32kaenunless it's semantically appropriate
19:14:41kaenin which case, then definitely yes.
19:15:18raptorI can think of only one use-case that would not create a maintenance nightmare - and that's with simple geometrical objecst like our Point object
19:15:29kaenyep
19:16:15raptora coworker was just telling about one time he had to debug software that had overloaded teh '=' operator to perform binary encryption
19:16:25kaen:C
19:16:54kaenboost's serialization libs use & for the bidirectional serialization
19:17:16Canseco Quit (Quit: Leaving)
19:17:27raptorwhat
19:29:19kaenhttp://www.boost.org/doc/libs/1_55_0/libs/serialization/doc/index.html
19:31:07raptorha!
19:31:09raptorwow
19:31:38raptoractually that might make sense to do for code simplification... as long as you knew you were in boost::serialization territory
19:38:53kaenyeah, in that context is makes sense
19:39:08kaenit actually lets you use the same code for serialization as unserialization
19:39:25kaenbut if didn't know what you're looking at, it would be pretty puzzling
19:39:48raptorlike a new language, but still (somehow) uses the c++ compiler...
19:56:48raptorwow - i'm just reading about this now: http://nakedsecurity.sophos.com/2013/11/04/anatomy-of-a-password-disaster-adobes-giant-sized-cryptographic-blunder/
19:56:55raptorit's fascinating, and hilarious!
20:08:31LordDVG Quit (Remote host closed the connection)
20:09:59Flynnn has joined
20:12:09kaen Quit (Ping timeout: 244 seconds)
20:14:11Flynnn Quit (Client Quit)
20:17:19Flynnn has joined
20:24:21Flynnn Quit (Quit: This computer has gone to sleep)
20:25:00raptor Quit ()
20:26:46Watusimoto has joined
20:36:20Flynnn has joined
21:32:05Nothing_Muchwow that is hysterical
21:35:25Skybax_ Quit (Ping timeout: 245 seconds)
21:53:50raptor has joined
21:53:50ChanServ sets mode +o
21:57:44raptorhello again!
21:59:01Nothing_Muchhey raptor
21:59:52Nothing_Muchquick question, did you have to compile Android from source or did you have an Android device handy with ya when you compiled bitfighter?
22:00:13raptorI used the Android NDK
22:00:19raptorit has emulated android systems in it
22:00:37raptorerr... the SDK does, but the NDK is needed to compile non-Java stuff
22:01:07Nothing_MuchAhh, how did you get the source code? Did you have to use the repo init command and stuff?
22:01:18raptorsource code for what?
22:01:41raptorthis is a developer's kit - https://developer.android.com/tools/sdk/ndk/index.html
22:01:46Nothing_MuchAndroid headers
22:01:47Nothing_Muchoh
22:01:50raptoryes
22:01:52raptorah ok
22:02:02raptoryes, the headers are all in the SDK+NDK
22:02:16raptorit took a while to get set up, but that was a while ago...
22:02:33Nothing_Muchhmm..
22:03:20Nothing_Muchapparently that's not what I need.. it's the entirety of android headers is what I need
22:03:42raptorprobably this, then: https://developer.android.com/sdk/index.html
22:04:01raptorinside is a utility to download all the APIs for the various versions
22:04:39Nothing_Muchalright, that should include Jelly Bean
22:54:10raptorWatusimoto: are we supposed to do something for GCI ?
22:54:24raptorI'm looking on this page and I don't see us: https://www.google-melange.com/gci/org/google/gci2013/copyleftgames
22:54:57raptoractually, I don't see some of the others either - maybe it's no big deal
23:01:06amgine123 has joined
23:01:15kaen has joined
23:01:18kaen Quit (Changing host)
23:01:18kaen has joined
23:01:47amgine123sup
23:02:20amgine123sorry i was gone yesterday I was at my grandpas grave for vetrens day
23:06:51amgine123anythng new
23:10:16raptorhi
23:10:42raptornope, nothing new really, we haven't committed too much since the build I got you
23:11:47amgine123ok
23:12:02amgine123did you fix the 2 assert crashes i found
23:12:56amgine123the object snaping to its previous locaton bug is annoying....
23:13:28Nothing_Muchamgine123: :(
23:17:58sam686There some kind of memory corruption on TestRobot.cpp near line 57. if levelgen.runString doesn't run, then no memory corruption.
23:18:49amgine123is it a fatal crash?
23:19:28amgine123is kaen afk i want to ask him somthing
23:20:19sam686memory corruption can crash in a middle, or when it is exiting, though that is in the test, not actually running regularly..
23:20:23kaen awakens from his slumber
23:20:32amgine123hi kaen
23:20:45kaenhi
23:21:03amgine123kaen question regarding my new plugin im working on
23:21:16sam686I could spam "_CrtCheckMemory();" and it detects memory corruption sooner
23:21:20kaenfire away
23:21:42amgine123i want a object to duplicate itself X times as inpute buu the user what would i use.
23:22:08kaendoesn't work yet amgine123 :<
23:22:15amgine123cant be done
23:22:16kaenthere's a clone method but it's unimplemented
23:22:17amgine123??
23:22:18raptorsam686: I may have introduced that...
23:22:21kaennot reasonably
23:22:31raptorlet me check something...
23:22:42amgine123ah ok i was goingto make a plugin were you can duliplicate a objec as many times as yu need
23:22:43Nothing_Muchkaen: you sleep 'till 3?
23:23:02amgine123guess ill hold onto the menu part of the plugin
23:23:30amgine123my other plugin still crashes kaen
23:23:52kaenNothing_Much: no, but I take naps
23:23:57amgine123btw samgave me a interesting lne somthing about objects in pairs hats that do?
23:24:14amgine123for my plugin
23:24:17Nothing_MuchAh
23:24:25kaensame thing as for i=1,#objects do
23:24:34sam686just updated to latest hg, now I get TNLAssert("L should not have been created yet!" test.exe!Zap::RobotTest_addBot_Test::TestBody() Line 21
23:24:39kaenyou can say for i,obj in ipairs(objects) do
23:24:58amgine123ah so its kind of a a different loop type
23:25:03kaenyes
23:25:25kaenwell, not really
23:25:33sam686Now I get "Only one ServerGame at a time, please! If this trips while testing, " (ServerGame.cpp)...
23:25:33kaensame type of loop, different way of writing it
23:25:58kaenit lets you skip the obj=objects[i] part by automatically getting obj from the list
23:26:11amgine123oh
23:29:37kaenamgine123: pastie your crashing plugin code
23:30:28sam686TestLuaEnvironment.cpp missing delete serverGame;?
23:30:32raptoryes
23:30:34raptori'm getting to it
23:30:43raptorsince that's the one i'm in the middle of writing
23:42:39Flynnn Quit (Quit: This computer has gone to sleep)
23:49:02Flynnn has joined
23:50:11raptorok sam686, try the next revision
23:50:21BFLogBot Commit: 0abf6b8391b1 | Author: buckyballreaction | Message: Clean-up my LuaEnvironmentTest and prepare for more tests
23:51:31raptorand thanks kaen for explaining the TEST_F better
23:51:50kaenglad to help :)
23:52:17kaensweet, lua tests! with a string evaluator!
23:52:31raptorwell...
23:52:33raptornot really
23:52:41kaenoh?
23:52:52raptorthe only way it throws false is if you make it throw an exception in the lua script
23:53:04raptorsoo... not *quite* there
23:54:32amgine123wait a lua bug tester?
23:56:09raptornot yet

Index Search ←Prev date Next date→

These logs were automatically created by BFLogBot on irc.freenode.net.