#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-11-19

Timestamps are in GMT/BST.

00:01:16BFLogBot Commit: 5d10fa041dd1 | Author: sam8641 | Message: Added some stuff for MasterServerConnection test
00:01:17BFLogBot Commit: df3833f4060d | Author: sam8641 | Message: TestObject fix
00:01:55raptorsam686: you didn't just do the GCI task, did you?
00:02:11sam686don't know, what was it?
00:02:41Watusimotoha!
00:02:43amgine123did you see my pc raptor XD
00:02:55sam686I just don't really pay much attention to gci stuff very much
00:04:07sam686and its only like 10 or 20 lines of added code..
00:05:14sam686its mostly because some of you started talking about how to do it, mostly the pastie.
00:06:07amgine123for what?
00:06:41sam686Im not sure which tack raptor thinks I done, but its something to do with a change I commited a few minutes ago
00:07:08Watusimotowell, I'm glad it's done
00:07:21WatusimotoI've been wrestling all evening with what should be a trivial case
00:07:41Watusimotonow I need to go to bed so I can get up early tomorrow
00:07:42sam686this change I done with: http://code.google.com/p/bitfighter/source/detail?r=5d10fa041dd1
00:08:31Watusimotogood night gentlemen!
00:08:34sam686excuse me with Platform::sleep(1000000); but I wanted to see the console a bit longer before it disappears..
00:08:52Watusimotooh, and i have a new idea about how we should resolve our worm issue, but I'll keep you all in suspense
00:08:54sam686( i took it off on next commit already)_
00:08:56Watusimotonight!
00:10:11amgine123btw i tried getting to worm run in game by adding it to the level but couldnt if you know the command tell me in pc (so its not leaked like slip zones)
00:11:07sam686"Worm" in bitfighter crashes 018a, and is currently not available (unknown object error) on 019
00:12:04amgine123ah just wonder what does it do is it like the object from KIX ?
00:12:24amgine123where you have to fill a box in but avoid the rampaging scribble?
00:13:03Watusimoto Quit (Ping timeout: 245 seconds)
00:14:00kaenmaybe Johnaudi can pivot to a different testing-related task
00:14:43amgine123waiting for a answer on what it does XD
00:16:52sam686http://google-melange.appspot.com/gci/task/view/google/gci2013/4554911064784896
00:17:00sam686Looks like I might have did the "Figure out how to get a MasterServer object...." part
00:17:10sam686but its still possible to write more tests
00:18:17Darrel Quit (Quit: Leaving)
00:22:07sam686At one point I had Worm working https://www.youtube.com/watch?v=Au_7n8Tiu_M
00:22:37sam686Maybe a better idea is to have Worm go in a set path around in circles, as in you set the path in editor like a Poly outline
00:24:18amgine123i think it should be more like the nemy in KIX where its a bunch of gruopd lines togherther moving ( like ina screensaver and touching iut one hit kills you)
00:26:26sam686One hit kill? that for Asteroids, so far..
00:26:40amgine123https://www.youtube.com/watch?v=oTRZEmNycXE
00:26:43amgine123like this kinda
00:27:22amgine123classic game ^_^
00:28:56amgine123\what do you think sam dooable?
00:29:24amgine123or raptor
00:29:44raptorhi
00:29:46raptorwhat?
00:29:58sam686it might be doable, but then it seems a bit like asteroids with lines instead of spot
00:30:43amgine123then make asteriods the non killable obsticales XD
00:30:51sam686Asteroid with rectangle or polygon shape?
00:31:38amgine123i think it would be cool
00:32:56raptorheading home!
00:33:01raptor Quit ()
00:33:48amgine123another example ( a little better) https://www.youtube.com/watch?v=zZt64cECO5g
00:53:19thread_ Quit (Ping timeout: 250 seconds)
01:17:11Nothing_Much Quit (Remote host closed the connection)
01:17:33Nothing_Much has joined
01:21:35Nothing_Much Quit (Remote host closed the connection)
01:43:39HylianSavior Quit (Quit: Leaving)
02:07:22raptor has joined
02:07:22ChanServ sets mode +o
02:44:53Nothing_Much has joined
02:47:31Nothing_Much Quit (Remote host closed the connection)
02:50:57Nothing_Much has joined
03:05:22kaenhi
03:05:35kaenhello bitfighter community
03:06:07kaeni was told not to swear
03:06:23kaenspicey out~
03:06:35raptorhi
03:06:47kaenwatsup :)
03:06:50raptoryes, we're on our best behavior for the GCI students
03:07:04kaenohhh, that's why!
03:07:34raptorwell... even otherwise... you'd be subject to the wrath of raptor..
03:07:44kaenlol.
03:08:05kaenI don't swear much so its not a problem
03:08:10raptor:)
03:08:17kaeni was thinking about being a gci student
03:09:15destroyerimo has joined
03:09:17raptorreally? maybe you mean GSoC (for the college kids, GCI is high school)
03:09:36kaenoh yeah thats what i mean lol
03:09:49kaenbryan was making fun of me for saying that -__- lol
03:09:58raptorI didn't know you had programming ability... do you code much?
03:12:01raptorif not, i'm sure kaen could teach you some, then you could join as 'spikey' and help us take over the world with Bitfighter!
03:12:24Nothing_Muchkaen: are you alright?
03:12:57raptorhe's uh... suffering from multiple personalities at the moment
03:13:08Nothing_Muchoh my
03:13:26Nothing_Muchoh, what's GCI?
03:14:02Nothing_Mucham I interrupting somethin'?
03:14:10raptorNothing_Much: https://developers.google.com/open-source/gci/
03:14:12raptornope
03:14:27raptorit's a Google sponsored programming contest of sorts
03:14:42raptorwe're mentors, so you may see several new people join the channel over the next month
03:14:56Nothing_Muchdude that's cool!
03:16:14Nothing_Muchwhere do I find bitfighter on the google code thing? (not the source code, but the promotion)
03:16:51raptorwe're actually part of an 'umbrella' called copyleftgames: http://gci.copyleftgames.org/
03:17:36Nothing_Muchwhoa, nice, where'd you hear about this? :O
03:19:05raptorkoda from hedgewars convinced us to join in last year
03:20:07Nothing_Muchnice
03:36:51amgine123hmm msuic sulty that wouldnt be hard to prgram in C++ would it
03:46:23kaensorry guys... girlfriend hijacked my irc client
03:46:36kaenshe's not a programmer :P
03:46:57kaenI told her to get on IRC herself and she thought I meant GCI for some reason
03:48:05kaenand then I told her what GCI was and she got super embarassed and ran away from the conversation
03:54:05Nothing_Muchkaen: lol
03:55:00kylebirnbaum has joined
03:55:44Nothing_MuchHi kylebirnbaum
03:56:35amgine123so kaen program land
03:57:03kylebirnbaumhi
03:57:24amgine123kaen are you here
03:59:07Nothing_MuchHow is everyone?
03:59:11kaenhi kylebirnbaum
03:59:21kaenhi amgine123, I'm here but if you want scripting help let's take it to PM
03:59:46kaenkylebirnbaum: I saw that you claimed the command history task
03:59:59kaenwhen raptor comes back around he can officially assign it to you
04:00:13raptorsay what
04:00:51raptorassigned!
04:01:02raptor goes back to child care
04:01:11kaenlet me know if you have any questions at all, kylebirnbaum
04:03:35amgine123hey raptor did you ever see why i wanted those jps in pc
04:05:23kylebirnbaumyes, I claimed the command history project. How should i go about this, should i download the source code? If so where can i find it, or should i try and make it seperately from the actual program? I find this very confusing.
04:05:42kaenwhat operating system do you use, kylebirnbaum?
04:10:47kaenwell, build instructions are here: http://bitfighter.org/wiki/index.php/Building_Bitfighter
04:11:08kaenif you're on windows, you'll need cmake, visual studio 2010, and tortoisehg
04:11:19kaenhttp://www.cmake.org/cmake/resources/software.html
04:11:26kaenhttp://tortoisehg.bitbucket.org/
04:11:43kaenhttp://go.microsoft.com/?linkid=9709949
04:17:32amgine123kaen pc
04:17:54sam686Crickets Chirping
04:18:09sam686just kidding its just silent..
04:21:07amgine123yeah
04:21:20amgine123i need programming advice but kaen died
04:23:10Nothing_Muchhe's just afk
04:24:59kylebirnbaumthanks i do run on windows. should i use visual studio 2010 or 2013
04:25:08kylebirnbaumor does it not matter
04:28:07Nothing_Muchkaen
04:28:45kaenyou should use 2010 because we have not tested 2013
04:29:01raptor2013 is tested
04:29:05sam686probably doesn't matter, though watusimoto have used 2010 for a while.
04:29:06raptorwatusimoto is on it now
04:29:09raptorover and out
04:29:17kylebirnbaumok, im more comfortable with 2010 anyway
04:29:39sam686and I use... 2008
04:30:17kaensam686: can you help kylebirnbaum checkout/build with tortoise and cmake gui?
04:30:21sam686though I did use 2010 for a little bit, but not very much, though they are mostly the same
04:30:21kaenI have to head out for an hour
04:31:55kaenanyway, our repository URL for tortoisehg is http://code.google.com/p/bitfighter/
04:32:03sam686I likely can't stay up for long, will have to get to sleep in about 15 minutes
04:32:14kaenhere's instructions for cloning in tortoisehg http://tortoisehg.bitbucket.org/manual/0.9/clone.html
04:32:29kaenthen use the cmake gui and point it at the bitfighter directory
04:32:41kaenuse bitfighter/build as the build directory
04:32:49kaenthen click generate
04:33:00kaenthen open the visual studio project files that are made in bitfighter/build
04:33:05kaenalright gotta run!
04:33:18kylebirnbaumthanks, bye
04:33:19amgine123noooo i need a hint
04:33:46Skybax_ has joined
04:36:16amgine123one last hint before you go
04:36:20amgine123klaen
04:44:14kylebirnbaumwhat do i clone in tortoise?
04:44:30raptorhi kylebirnbaum
04:44:37raptori can help for a few min.
04:44:42kylebirnbaumand where do i clone it to? sorry, im new to this
04:44:52raptorthis page has instructions for checking out code: http://bitfighter.org/wiki/index.php/Building_Bitfighter
04:45:15sam686you can clone http://code.google.com/p/bitfighter/
04:45:24raptoryou would clone the following URL: https://code.google.com/p/bitfighter/
04:45:32raptorheh, thanks sam686
04:46:00sam686I know https required for push (as well as password), but cloning http appears faster.
04:53:43kylebirnbaumok so im in cmd, i am at the 'hgtk clone [SOURCE] [DEST]' part. What goes in the SOURCE and DEST parts, so i just choose
04:53:59raptorSOURCE is the URL we posted above
04:54:08raptorDEST is a directory to put the source
04:54:16kylebirnbaumok
04:56:59raptori'm heading to bed, try following the instructions on the Building_Bitfighter page if you get stuck
04:57:02raptorgood night!
04:57:16raptor Quit ()
04:59:11kylebirnbaumhow do i change to the 'build' directory in the bitfighter source code tree.
05:03:58sam686jsut do a command: cd build (or you can put entire path to it)
05:04:30sam686can do cd c:\entire path to bitfighter code
05:19:43sam686will need to go to bed, see you tomorrow...
05:19:46sam686 has left #bitfighter
05:40:11kylebirnbaum Quit (Ping timeout: 250 seconds)
05:58:39amgine123 Quit (Quit: Page closed)
06:00:39Johnaudi has joined
06:01:01JohnaudiGood morning everybody
06:01:10JohnaudiAny developer online?
06:05:48Johnaudi Quit (Quit: Page closed)
06:11:30Johnaudi has joined
06:12:07Flynnn has joined
06:12:17Johnaudihere again
06:12:23Johnaudiwho's -not- afk?
06:17:53kumul Quit (Quit: Leaving)
06:48:53Platskies has joined
06:57:54destroyerimome!
07:05:20Johnaudican you code?
07:22:01Johnaudi Quit (Quit: Page closed)
07:49:41Platskies Quit (Read error: Connection reset by peer)
07:55:51koda has joined
08:28:50Darrel has joined
08:59:04Johnaudi_ has joined
08:59:12Johnaudi_hey any dev on?
09:13:04Johnaudi_ Quit (Quit: Page closed)
09:26:07Flynnn Quit (Quit: This computer has gone to sleep)
09:32:27Flynnn has joined
09:35:06Flynnn Quit (Client Quit)
09:58:28Flynnn has joined
10:13:53Skybax Quit (Ping timeout: 245 seconds)
10:13:54Skybax_ Quit (Ping timeout: 246 seconds)
10:19:22Flynnn Quit (Quit: This computer has gone to sleep)
10:21:19Invisible has joined
11:16:47destroyerimo Quit (Ping timeout: 252 seconds)
11:27:55Invisible Quit (Ping timeout: 245 seconds)
11:33:17Izaron has joined
11:58:40Izaron Quit (Read error: Connection reset by peer)
13:14:10maxpopov has joined
13:29:29maxpopov Quit (Ping timeout: 250 seconds)
13:46:10destroyerimo has joined
14:04:21Invisible has joined
14:20:06destroyerimo Quit (Ping timeout: 265 seconds)
14:23:18Johnaudi has joined
14:23:44Johnaudianyone on?
14:25:38Izaron has joined
14:25:43Izaronhi
14:26:08Johnaudihey
14:26:09Johnaudiyou dev?
14:26:42IzaronI GCI student
14:27:08Johnaudiwhat you doing?
14:30:05Platskies has joined
14:34:06Platskies Quit (Client Quit)
14:48:08destroyerimo has joined
14:52:14sam686 has joined
14:52:14ChanServ sets mode +v
14:57:03destroyerimo Quit (Ping timeout: 246 seconds)
15:12:48kaen Quit (Ping timeout: 246 seconds)
15:30:29Vlad_John has joined
15:32:22Vlad_Johnhi, any details you can give me about this Google Code-in 2013 task? link here:http://www.google-melange.com/gci/task/view/google/gci2013/5580044596412416
15:34:34sam686its about creating a scrollbar or scrolling them when needed
15:36:09Johnaudihey sam I'm in need of some help here
15:36:24sam686first, make sure you can build it from source first, some instruction here http://bitfighter.org/wiki/index.php/Building_Bitfighter
15:36:33sam686on Windows or linux?
15:42:48andrew_ has joined
15:46:18JohnaudiSo I was thinking may I take most of the bitfighter tasks and stay here you guys helping me out?
15:46:27JohnaudiI prefer these mentors over the others
15:46:34Izaron has left #bitfighter
15:46:34sam686sure
15:46:34andrew_what exactly should i do at this task on Gci 2013 contest?
15:46:45Johnaudiwhich task andrew?
15:46:53andrew_http://www.google-melange.com/gci/task/view/google/gci2013/6603341224214528
15:48:14Johnaudiit will load the levels from the source file, check if they have something in them (if they're empty or exist) if they do exist, load the
15:48:30sam686oh its reading a list of levels in a file and use that as a list of levels.
15:48:39Johnaudi^
15:48:47JohnaudiI wanted to take that one :(
15:49:00Johnaudibut oh well - I have no idea what to do in the current one I have
15:49:10Johnaudifrom what I've been told is make the game client connect to the game master
15:49:12Johnaudiand that's what I've done
15:49:20Johnaudibut still I don't think it got approved
15:50:19andrew_i have a list of levels and i have to check if all of them are ok? I have to debug them or what?
15:51:09sam686make sure it only runs the level listed on a file
15:55:58sam686I can't really control tasks on GCI, raptor can... when he joins here soon.
15:57:39JohnaudiOkay - I didn't do much though so I doubt he's going to approve it
15:57:46Johnaudibut the thing is so blurry I barely understood
15:58:14sam686I may have done part of it https://code.google.com/p/bitfighter/source/detail?r=5d10fa041dd1
15:58:29sam686without knowing this task existed until after my commit.
16:04:11Johnaudi Quit (Ping timeout: 250 seconds)
16:05:23Johnaudi has joined
16:06:07Johnaudiugh sam
16:06:08Johnaudiyour code
16:06:12Johnaudiis scaring me
16:06:30sam686your way is connecting to external internet master server
16:06:44sam686my was was connecting to internal master.
16:06:58sam686one way have some advantages other way also have some advantages..
16:07:34Johnaudihmm
16:07:40Johnaudiso my way was semi-correct?
16:07:42Johnaudi:o?!!
16:08:18Johnaudiif this gets approved I swear ima be coding all the other stuff (even though I might fail) with Bitfighter
16:08:41Johnaudiaka you guys
16:09:06sam686partly yes, but without the onConnectedToMaster(); instead do multiple GC->idle(100), maybe in a loop, it gaves time to connect to external master
16:09:34HylianSavior has joined
16:10:17Johnaudihmm so I should replace it with GC->idle(100); does this let it sleep 100 millisecs?
16:10:54sam686kindof, but it doesn't actually sleep, it ticks that many milliseconds
16:11:24sam686it does all kinds of handling stuff while it ticks in idle
16:11:49sam686and maybe the config automatically have the master server address as well.
16:12:45sam686Basically try to make it so GC->isConnectedToMaster() == true
16:15:24andrew_ Quit (Quit: Page closed)
16:17:07JohnaudiI am
16:17:10Johnaudioh
16:17:11Johnaudiwait
16:17:34Johnaudithanks a bunch sam, I'll be changing it right away
16:17:43sam686ok
16:18:03Vlad_John Quit (Ping timeout: 250 seconds)
16:18:04Johnaudiwait where is the master server's address stored at?
16:18:46sam686its in zap/config.cpp line 53
16:19:21sam686but its already in config so you don't need to worry about it..
16:19:33Johnaudihmm
16:19:34JohnaudiclientGame.setConnectionToMaster(new Zap::MasterServerConnection((Game*) &clientGame));
16:19:37Johnaudithat's your vers
16:19:51Johnaudiwhy did you create a new MasterServerConnection to get config?
16:20:40JohnaudiI mean
16:20:40sam686If looking at mine, i am not connecting to external master, only internal, so address not needed for internal connection (connectLocal used instead)
16:20:50Johnaudiahh okay
16:22:17Johnaudimay I ask
16:22:25Johnaudidid you study computer engineering at university?
16:22:39sam686to make it easier, you can do while(GC->isConnectedToMaster() == false) GC->idle(100);
16:22:44sam686I wasn't on university
16:23:02Johnaudiand how come you know all this stuff?
16:23:13sam686Just coding a lot on C++, was on bitfighter coding for a year, searching on how to do something
16:23:36Johnaudiyou should start an MMO man
16:23:38sam686maybe more years on some different languages, BASIC being my first language programming
16:23:42Johnaudiget lots of money
16:23:48Johnaudioh the one from the calculator?
16:24:01Johnaudi@BASIC
16:24:20sam686kindof like calculator, but wind up making a little game from programming..
16:24:55Johnaudimy friend made snake, darts and sudoku in tehre
16:24:59Johnaudihe's 17 now
16:25:12JohnaudiI'm 15 btw nice to meet you
16:25:16sam686ok
16:25:21sam686im 23
16:25:34Johnaudiyou're still young, why not go to university?
16:25:53sam686I might think about it, just I currently not on it.
16:26:12Johnaudiwell, is it about money issues?
16:26:31sam686partly, but not too sure yet.
16:26:32Johnaudiif so, you can easily get paid on the web these days
16:26:41sam686ok
16:27:02JohnaudiBitfighter is a paid service?
16:27:14sam686no, mostly now
16:27:18sam686not*
16:27:38Johnaudihow do you guys keep the master server up?
16:27:56Johnaudias in it costs a yearly does it?
16:28:23sam686Both the master server and bitfighter.org website is paid by watusimoto, mostly for a relatively cheap price due to very low traffic
16:29:00sam686web server and master server are both in same VPS server
16:29:25sam686my "Sam test" is.. actually running off from my home computer
16:29:34sam686(as seen if running 018a)
16:30:00Johnaudigood, that's economic
16:30:01Johnaudibtw
16:30:01JohnaudiClientGame *CG(&clientGame); do { CG->setReadyToConnectToMaster(true); CG->idle(100); } while (!CG->isConnectedToMaster());
16:30:11Johnaudilike this ^?
16:30:20sam686yes
16:30:31Johnaudishould I add anything else or is it done?
16:30:45sam686will it run?
16:30:57JohnaudiI can't run it in the first place - I get a CMake error
16:31:03sam686I can test it too if you send me the part you added
16:31:20sam686did you do CMake .. ( 2 dots at the end)?
16:31:30sam686cds build then cmake ..
16:31:37sam686cd not cds
16:31:50raptor has joined
16:31:50ChanServ sets mode +o
16:32:03Johnaudihm it's more of a ALL_BUILD error
16:32:06Johnaudihey raptor!
16:32:16Johnaudilet me update the file on gci
16:32:23raptorgood morning!
16:32:29sam686hi
16:32:48raptorjust a moment as i get caught up in the logs and settled in at work...
16:34:10JohnaudiOnce you're back, I've updated the file in GCI can you check if it runs? because it's returning me an error
16:34:51Johnaudisam I replaced the part added by me before with the one written above
16:35:33sam686Johnaudi idea was connecting to external internet server, my code was connecting to internal master
16:36:48Johnaudiso wait CG->setReadyToConnectToMaster(true); is connecting to the external internet server right?
16:37:13Johnaudinot internal
16:38:09sam686your test just hangs on me (freezes or nothing happening), maybe something more is needed, will look whats missing
16:38:28koda Quit (Ping timeout: 245 seconds)
16:38:45Johnaudiif you find what's missing just hint it to me - I should try to finish this task so I can get it approved for GCI :D
16:38:53Johnaudibut thanks for helping me out nevertheless!
16:38:58grypoB has joined
16:39:51Johnaudihmm I think I know why it's freezing, maybe because it's overloading 100 ticks everytime?
16:40:10Johnaudibecause it doesn't stop the current thread, but the 'CG' one.
16:40:30Johnaudiso it's probably just stacking 100 ticks over and over?
16:41:32grypoBHi, i'm working on the GCI task to associate a level to music, and I have a question: can a gameType call function from the SoundSystem ?
16:42:58Johnaudiah found the error try this:
16:42:59JohnaudiClientGame *CG(&clientGame); CG->setReadyToConnectToMaster(true); CG->onConnectedToMaster(); do { CG->idle(100); } while (!CG->isConnectedToMaster());
16:43:34grypoBor the other way round, can the SoundSystem know which gameType is being played ? any clue raptor ?
16:43:49sam686since mMasterServerList was blank, you need gameSettings->onFinishedLoading(); out side of loop before setReadyToConnectToMaster
16:44:10sam686that will convert the single string of addresses into multiple single address
16:44:16Johnaudiah but you told me it was in the config was it?
16:44:31Johnaudi@MasterServer
16:44:45sam686yes its in the config, but was only in a masterAddressList
16:44:47raptorhi again
16:44:56Johnaudiokay so
16:45:03JohnaudiClientGame *CG(&clientGame); gameSettings->onFinishedLoading(); CG->setReadyToConnectToMaster(true); CG->onConnectedToMaster(); do { CG->idle(100); } while (!CG->isConnectedToMaster());
16:45:25sam686If you check on zap/GameSettings.cpp onFinishedLoading, it splits into mMasterServerList
16:45:43Johnaudilol
16:45:56Johnaudiit's hard to check everything
16:46:02JohnaudiI mean
16:46:08Johnaudihow do you know where the stuff is located?
16:46:37sam686I was on bitfighter source code for a long time, I know where several parts is
16:47:13raptorgrypoB: we don't have a way for the SoundSystem to detect which gametype you're in, I don't think. But I suspect that you should be able to call a SoundSystem method from ClientGame when it detects a level has changed
16:47:32Canseco has joined
16:48:13grypoBraptor : that would do the trick, thanks
16:48:50sam686Johnaudi your second upload was just missing a gameSettings->onFinishedLoading(); after its there it works for me
16:49:31sam686And I would call it TEST_F(BfTest, MasterTestsExternal)
16:51:38Johnaudiokay added
16:51:42Johnaudiah damn didn't rename that
16:51:42raptorJohnaudi: you say your code needs review? Or is that what you're working on with sam686 right now?
16:52:09JohnaudiI asked if you could test but I guess it needs review now
16:52:13Johnaudithat's what I was working with sam atm
16:52:23Johnaudiwell unless if it's not working
16:52:35Johnaudisam is it necessary to rename it?
16:53:50sam686well, since I also named it the same for my internal master connection, either mine or your external master connection need to be renamed
16:54:04JohnaudiI'll rename mine then
16:54:16Canseco Quit (Quit: http://quassel-irc.org - Chatee c�modamente donde sea.)
16:54:42Canseco has joined
16:55:24Johnaudiokay done, anyone check if it's working please?
16:55:25sam686its runs good after making sure there isn't the same name in TEST_F
16:55:35sam686it appears to work just fine now
16:55:51Johnaudigreat! thanks a bunch!
16:56:05Johnaudithe game itself looks good btw - you guys plan on releasing it on a console?
16:56:20sam686I don't have control of GCI, maybe thats for raptor to do it, now raptor is here..
16:56:31Canseco Quit (Client Quit)
16:56:36raptorhi
16:56:47Johnaudihey raptor could you review it now?
16:56:51raptorJohnaudi: upload your latest code
16:56:55Johnaudidid
16:56:56raptori'll review it
16:57:02raptorand it compiles?
16:57:08sam686yes
16:57:32JohnaudiI don't know if it compiles here because it gives me an error from ALL_BUILD - I'm missing some libraries probably
16:57:35sam686(yes for me, Johnaudy couldn't quite compile yet..
16:57:52raptorignore ALL_BUILD -just compile the bitfighter_test one
16:58:26Johnaudi"Unable to start program "..." - The system cannot find the file specified"
16:58:42Johnaudilet me see if I can do it sec
16:58:56sam686are you on windows?
16:59:27sam686oh maybe you need to copy .DLL files from /lib to /exe
16:59:39JohnaudiI'm on win yes
17:00:03JohnaudiI'm building the solution alone so I don't think it's needed currently
17:00:10Johnaudiwhy is VB so slow in compiling? :/
17:00:21andrew_ has joined
17:00:37sam686computer speed? Mine is i7-2600
17:00:58amgine123 has joined
17:01:11amgine123sup
17:01:15sam686my i7 compiles in about less then 1 minute,
17:01:19Johnaudiintel centrino
17:01:21Johnaudihahaha
17:01:27sam686my intel atom takes a good 10 minutes to compile
17:01:42Johnaudiif I take a pic of my pc you'd laugh
17:01:57Johnaudiit's a laptop but I started calling it a PC
17:02:10Johnaudibecause it won't run without a charger (no battery)
17:02:15sam686centrino is a wireless/chipset stuff, not the actual CPU name..
17:02:19Johnaudikeyboard and pad are broken so I use external ones
17:02:28Johnaudioh
17:02:35Johnaudiit says Intel Centrino Inside :i
17:02:52kumul has joined
17:03:22Johnaudiyou know about computer and stuff right?
17:03:31sam686finding the cpu name, its in the system properties in windows (right click my computer and "Properites" to get to it)
17:03:31JohnaudiI'm getting a new system
17:03:54Johnaudinot responding
17:03:56Johnaudiwow that's even worse
17:04:08JohnaudiCore 2 Duo
17:04:25Johnaudicheck this
17:04:26Johnaudihttp://pcandparts.com/basesys.htm
17:04:36JohnaudiI'm getting the one that costs $1379.00
17:04:38Johnaudiis that a good price?
17:04:43Johnaudifor such specs?
17:05:08sam686way too expensive...
17:05:16Johnaudireally?
17:05:23JohnaudiI thought it was decent though
17:05:30raptorJohnaudi: this is the difference I find: http://pastie.org/8493096
17:05:32sam686I also have AMD fx-4100 and it compiles in about 1.5 minutes, and it cheap
17:05:34raptoris that right?
17:05:38Johnaudi2>FinalizeBuildStatus: 2> Deleting file "test.dir\Debug\test.unsuccessfulbuild". 2> Touching "test.dir\Debug\test.lastbuildstate". 2> 2>Build succeeded. 2> 2>Time Elapsed 00:04:49.03 ========== Build: 2 succeeded, 0 failed, 4 up-to-date, 0 skipped ========== @raptor
17:06:09Johnaudiwell I didn't remove the includes raptor
17:06:14Johnaudithese were recently added
17:06:21Johnaudibut yes that's correct
17:06:23raptorhmm...
17:06:34raptorsam686: am I conflicting with code here?
17:06:41raptorwith your code
17:06:44raptori mean
17:07:00sam686All I did to test others is copy only the MasterTestExternal stuff
17:07:27amgine123busy day? :)
17:08:37amgine123and I say that and the chat dies
17:08:40raptorso that diff
17:08:45Johnaudihaha
17:08:49sam686looks like raptor getting screwed up somehow, as the includes that shows as removed was added by me
17:08:53raptorshows several EXPECT_TRUE being removed...
17:09:10Johnaudiyup
17:09:13sam686the rest is about right
17:09:56Johnaudi@sam other manufacturers offered me 2300$ for such a system
17:10:03Johnaudiomg I'm being ripped off
17:10:16JohnaudiI thought it was the best for the price isn't it?
17:10:20Johnaudiit comes with a monitor and stuff
17:10:32raptorok Johnaudi can you explain to me what your code block does?
17:11:03Johnaudiit connects to the Master Server (External)
17:11:06sam686I custom build one of my own pc: A computer case, AMD fx-4100, compatible motherboard, power supply, hard disk, and operating system
17:11:09raptorI'm expecting to see some sort of EXPECT statement in there
17:11:40Johnaudiwhy though?
17:11:41sam686which comes another problem, what if it can't connect to master? It would just hand...
17:11:52sam686hang* or freeze
17:12:01Johnaudioh want me to add something like a timeout?
17:12:19Johnaudilet me make a quick edit
17:12:26raptorthat's the nature of a testing framework - you need it to verify something that is working
17:12:46raptorso maybe, make the while loop only do a fixed number of iterations
17:13:13raptorand then afterwards, add an EXPECT_TRUE statement to verify that we're connected to master
17:13:45Canseco has joined
17:14:02raptoralso sam686, are you getting an assert triggered when running the 'test' binary?
17:14:05Johnaudiyeah
17:14:05Johnaudidid
17:14:35Johnaudiint _timeout = 10000; // ticks before it stops connecting and idling ClientGame *CG(&clientGame); gameSettings->onFinishedLoading(); do { _timeout--; CG->setReadyToConnectToMaster(true); CG->idle(100); } while (!CG->isConnectedToMaster() && _timeout > 0);
17:14:49sam686raptor yes, but disabled (not commited) that assert for now..
17:14:49Johnaudiwant me to upload it to gci?
17:15:15Johnaudisam I can't build my own system here, because 3/4 of the companies do not ship to my country
17:15:18sam686not yet, missing EXPECT_TRUE
17:15:28sam686yes if you added EXPECT_TRUE
17:15:30Johnaudiwhat does EXPECT_TRUE do?
17:15:33raptorafter the loop, add an expect statement
17:15:42raptorit verifies that something is TRUE
17:15:59sam686the test will complain it failed if it didn't expect it to be true
17:16:03Johnaudiand once it verifies?
17:16:03HylianSavior Quit (Quit: Leaving)
17:16:05raptoryes... that
17:16:26Johnaudiokay sec
17:16:27raptorit will alert us if it failed or not - that's the beauty of the EXPECT statements - user verification
17:16:47sam686EXPECT_TRUE(true) (useless "true", replace with your condition that suppose to be true)
17:17:49sam686There is also EXPECT_FALSE(false) (once again replace "false" with something suppose to be false)
17:17:55JohnaudiEXPECT_TRUE(CG->isConnectedToMaster());
17:18:00Johnaudiso it's like
17:18:05sam686but you can just just one or the other
17:18:09sam686yes that about right
17:18:24Johnaudivoic EXPECT_TRUE(condition) if (condition == false) return ERROR;?
17:18:34Johnaudivoid*
17:19:05sam686it kindof like that, but you don't need to put in that function its already there
17:19:10raptoryep - but the framework does all the magic for us
17:19:23raptoryou just need to do the EXPECT_TRUE statement
17:19:25Johnaudiwhat's the framework again?
17:19:26JohnaudiI kinda like it
17:19:29sam686all you need is EXPECT_TRUE(...);
17:19:29raptorgoogletest
17:19:38Johnaudiah ok
17:19:43JohnaudiEXPECT_TRUE(CG->isConnectedToMaster());
17:19:49sam686correct
17:19:51JohnaudiisConnectedToMaster returns bool right?
17:19:52raptori think that's right
17:19:55raptoryes
17:19:55sam686yes
17:19:57Darrel Quit (Quit: Leaving)
17:20:02Johnaudiokay let me upload that to GCI
17:20:42Johnaudiuploaded
17:21:13raptorok, i'll check
17:22:58Johnaudiabout GCI, who chooses the winners btw?
17:23:19raptorI think a team at Google talks with each organization head
17:23:48raptorso we don't really have much say - but the organization head will talk to us about each student who has attempted tasks
17:24:30Johnaudieach org has the right to pick 2 - 3 students?
17:24:31amgine123on a scale of 1-10 how much harder is C++ compared to LUA
17:24:39raptori'm not sure
17:24:40LordDVG has joined
17:24:49Johnaudilua is not a great language to learn
17:24:55raptoramgine123: i'd say c++ is a magnitude more difficult
17:24:58Johnaudiit will blinden your syntax though
17:25:03raptorLua is great! :)
17:25:08raptorwe love Lua here
17:25:19sam686c++ is faster and/or less memory usage then LUA
17:25:22amgine123hmm maybe il master learning Lua then try to learn C++
17:25:26raptori mean, it's not a good nitty-gritty language
17:25:26JohnaudiI only coded on lua on the ipad with that game creation app
17:25:46raptorbut it's excellent for what we use it
17:25:51amgine123then i can actully be functional around here.
17:25:58Johnaudibut the thing is it strips the parenthasis from the if etc
17:26:31andrew_ Quit (Ping timeout: 250 seconds)
17:26:31Johnaudiif only the syntax would/can change I'd love to use it
17:27:07sam686I don't like LUA "end" being needed, I like C++ brackets { } better.
17:27:18Johnaudithat too
17:27:21Johnaudireminds me of Visual Basic
17:28:09Johnaudiweird question, why do people hate PHP?
17:28:10amgine123lol VB ^_^
17:28:25raptorsam686: what do you make of this assert?: http://pastie.org/pastes/8493160/text
17:28:28amgine123now there is a dead language
17:29:24sam686"There has been a failure in previous UI queuing!"
17:29:24raptorJohnaudi: i think your loop isn't actually waiting 10 seconds
17:29:34Johnaudiit's waiting 10000 ticks
17:29:36Johnaudinot 10secs
17:29:48sam686Don't know why its there and why it triggers, probably Watusimoto added it..
17:29:58raptorwell, 10000 ticks on my machine is too fast to be connected to master
17:30:14Johnaudioh, hmm let me turn that into sleep
17:30:22raptorthe test always returns false :(
17:30:38amgine123=p
17:30:39Johnaudiwell you sir, have a very slow internet connection! kidding
17:30:42sam686Try Platform::getRealMilliseconds();
17:30:43amgine123wish i could help
17:30:47Canseco Quit (Remote host closed the connection)
17:31:00sam68630 seconds or 30000 milliseconds is more then enough time to connect
17:31:25raptorPlatform::sleep(somenumber) I think
17:31:30raptorheh
17:31:32Canseco has joined
17:31:34sam686or putting Platform::sleep(1) in a loop will do
17:31:37amgine123possible error with master?
17:31:52sam686the test didn't wait long enough to connect to master
17:32:03sam686it exits the loop in less then .1 seconds
17:32:04Johnaudiconnection shouldn't take more then 10 seconds
17:32:09amgine123incorrect config of UI then trying to connect to master with a bad UI?
17:32:12raptori think 10 seconds is good
17:32:17raptorfor now
17:32:22Johnaudimaybe if I add sleep(10000);?
17:32:26Johnaudiwithout having to loop?
17:32:28amgine123is 5 to short?
17:32:32sam686no its a different test triggering UI problem
17:32:33Johnaudiyup
17:32:33amgine123seconds?
17:32:48raptori'd have a short sleep because it could return much sooner than 10 seconds
17:33:11Johnaudihow about I loop it between 2 secs
17:33:13Johnaudi?
17:33:17Johnaudifor 5 times
17:33:43sam686you have to keep running the idle loop or else the connecting will just halt on sleep(10000)
17:33:43Johnauditimeout = 5; while(xy) { dothis; Sleep(2000); _timeout--; }
17:34:10Johnaudihmmmm
17:34:12sam686I would do timeout = 5000; while(xy) { dothis; Sleep(2); _timeout--; }
17:34:25Johnaudigreat idea
17:34:31sam686oh and, thile(xy && timeout > 0) part
17:34:36Johnaudiyeah of course
17:34:43Johnaudilet me edit that
17:34:59sam686while not thile (i keep misspelling)
17:35:16Johnaudicoffee?
17:35:23JohnaudiPlatform::Sleep(millisecs) right?
17:35:26sam686I don't drink coffee..
17:35:33sam686yes
17:35:54Canseco Quit (Remote host closed the connection)
17:37:21Johnaudiokay uploading
17:38:30Johnaudidone
17:39:51Johnaudilet's pray it works
17:40:23grypoB Quit (Ping timeout: 250 seconds)
17:40:38raptoryou need to use Platform::sleep - 'Sleep' is windows only
17:40:54Johnaudio.o
17:40:58Johnaudiah okay
17:41:06raptorwelcoem to the world of multi-platform programming!
17:41:06JohnaudiI thought Platform was already included as ns
17:41:12Johnaudihaha
17:41:21JohnaudiI multiplatform program in another language
17:41:30JohnaudiGs2
17:41:30JohnaudiGraalonline
17:41:38raptoryes you ahve access, but it is a static method in our TNL network library
17:42:08Johnaudiq. what does TNL stand for agian?
17:42:15raptorTorqueNetworkLibrary
17:42:34raptorit's not very common
17:43:02Johnaudiuploaded
17:43:15raptoralso, if you want ot avoid uploading a lot, you can use http://pastie.org/
17:43:24raptorto show a code snippet
17:43:37raptorfor 'pre' pre-review
17:43:38Johnaudioh
17:43:40Johnaudiwow
17:43:41Johnaudilol
17:43:51Johnaudishould've told me that before I was finished
17:43:52Johnaudi:p
17:43:56Johnaudihaha thanks though
17:45:01Johnaudinothing wrong in that last upload?
17:45:04JohnaudiI hope**?
17:45:09sam686the seventh one on gci works fine for me and passes for me..
17:45:13raptorit compiled!
17:45:22JohnaudiHALLELOUYA!
17:45:24raptorit passed!
17:45:31Invisible Quit (Ping timeout: 240 seconds)
17:45:34raptorok, good job
17:45:46Johnaudiokay looks like I'm going to stick with bitfighter
17:45:53Johnaudiso I'll be here to annoy you guys the whole day!
17:45:54Johnaudihooray!
17:46:00sam686ok
17:46:01raptorwelcome! :)
17:46:11Johnaudithanks alot!
17:46:20Johnaudi1 task out of 0
17:46:20Johnaudiwoot
17:46:36JohnaudiI really wish the game was in C# though
17:46:57JohnaudiI'm really disappointed GCI didn't put any .NET languages :(
17:47:01Invisible has joined
17:47:18sam686umm, I never did C# yet..
17:47:24raptoryeah - most of the stuff is cross-platform... .NET isn't that friendly to that, I don't think
17:47:37raptorbut not completely sure... i guess there's MONO
17:47:42sam686I did a little of java, little visual basic, and a little PHP
17:48:00Johnaudi.NET is cross with some plugins though
17:48:05Johnaudinot sure if they call them 'plugins'
17:48:09Johnaudibut yeah something like that
17:50:00Johnaudithanks sam and raptor!
17:50:14Johnaudiso what's next now?
17:50:16raptorwatusimoto might want to do a review as well, but i closed the task for now
17:50:48Johnaudiokay
17:50:55sam686not sure whats next... I don't know much about GCI..
17:50:57Johnaudiso I didn't 100% pass yet
17:50:59raptorI think you're allowed to continue doing tasks
17:51:11raptorfor any group, as well
17:51:40raptorI have to get to work, so i'll be on sporadically
17:51:52Johnaudihave fun
17:51:54Johnaudiin work
17:52:03JohnaudiI'll do that thing about the editor
17:52:11JohnaudiQ. you guys have an editor??
17:52:23sam686yes Bitfighter have editor
17:52:26Johnaudioh wait editor is in lua ah
17:52:37Johnaudioh well, should I start learning lua?
17:53:02sam686editor is partly LUA, but level editor is mostly C++. in zap/UIEditor.cpp mostly.
17:53:17Johnaudi"Users can write Lua plugins for the Bitfighter editor. We'd need a plugin that generated simple polygons of n-sides and stars with n-points, to be constructed out of polywalls and other polygonal objects. Would need to create a simple menu for specifying options."
17:53:25Johnaudiso I can do it with C++?
17:53:35sam686that part about plugins is in LUA
17:54:34sam686Existing plugins is in resource\editor_plugins
17:54:45sam686that get mormally copied to exe/editor_plugins
17:55:11raptoryes, the task is basically writing a Lua plugin for our level editor
17:55:30JohnaudiI guess I'll pass
17:55:52Darrel has joined
17:57:18Johnaudiclaimed the task about the level source
17:58:15Johnaudiwhen you say "Fed those to the game" do you mean load the parametered one in game?
18:00:33Canseco has joined
18:00:36raptorgood question - I think watusimoto will have to explain that one as I'm not sure I understand what he's thinking either...
18:01:23sam686maybe its to read a list of files in text file rather then read directory for list of filenames in a levels folder?
18:02:43Johnaudiyes but what about "feeding it to the game"?
18:02:52Johnaudidoes he mean loading it but not 'setting' the level?
18:03:33sam686I think so, just use a list of files in a text file instead of a list of files in a folder I think
18:04:05sam686as if doing -LevelsList=list_of_levels.txt
18:04:16raptordon't we already have that?
18:04:44sam686currently there only a ignorelevel=something.level
18:05:13sam686or similar, I have to check whats there or not there
18:08:04Johnaudiso by that you guys mean some basic i/o stuff?
18:08:42sam686partly yes
18:10:06Johnaudiokay since I'm not that fancy with GUIs I'll create a simple function that will return an array of available level names
18:10:15Johnaudiis that what you guys need?
18:10:18sam686whats already there is "LevelSkipList" in zap/config.cpp, but I guess its asking to have option to load only the levels listed in "LevelsLoadList" that doesn't exist yet.
18:10:56Johnaudiyou mean the ones that DO exist
18:11:00Johnaudiright?
18:11:01sam686yes
18:11:16sam686and only the ones listed in the loading list
18:11:35Johnaudiokay where is the directory of the level.level and where should I write that function
18:11:42Johnaudic++ calls it function or method btw?
18:12:17sam686they are on exe/level as a working directory (where you normally run your projects) but also in resource/level
18:13:45amgine123 Quit (Ping timeout: 250 seconds)
18:15:19sam686there also command line startup, apparently I didn't see this until now, at GameSettings.cpp line 87
18:15:40Invisible2 has joined
18:16:15Invisible Quit (Ping timeout: 245 seconds)
18:17:13sam686As well as GameSettings::getLevelList is where we get the level list (GameSettings.cpp line 609)
18:22:02Canseco Quit (Remote host closed the connection)
18:31:40Nothing_Much Quit (Ping timeout: 264 seconds)
18:33:34Nothing_Much has joined
18:36:13tomek_bstok has joined
18:44:54Invisible2 Quit (Ping timeout: 246 seconds)
18:54:28tomek_bstokHello
18:54:44tomek_bstokI am a GCI student, can I ask you for help ?
18:55:34raptorhi tomek_bstok
18:55:37raptorwelcome
18:55:49tomek_bstokhello raptor
18:55:51raptorsure, ask whatever you'd like
18:56:11tomek_bstokI have downloaded bitfighter from source and compiled as it was described in the README.txt
18:56:20tomek_bstokso I compiled it from build/ directory
18:56:32raptorwhat platform are you on?
18:56:50tomek_bstoknow, there's no exe/ directory inside build/ is this as expected ?
18:57:02tomek_bstokUbuntu 12.04
18:57:41raptorok excellent
18:58:02raptorsee here for more up-to-date instructions: http://bitfighter.org/wiki/index.php/Building_Bitfighter
18:58:18raptorthe exe directory is in the parent dir
18:59:23raptoronce your in the exe directory, you'll have to set up the resources by running a command like so: for file in `ls -1 ../resource` ; do ln -s ../resource/$file ; done
18:59:30raptor*you're
19:00:48tomek_bstokah
19:01:00tomek_bstokI did the "cp ../resources/* . -R" is that also fine ?
19:01:14raptorshould be, yes
19:02:46tomek_bstokIt seems like I did everything as it was in the up-to-date tutorial
19:03:04tomek_bstoknow that I'm in the exe/ folder, how do I run the client app ?
19:04:26raptorif it compiled, then there should be a binary in there called 'bitfighter'
19:04:35raptoryou can run it by: ./bitfighter
19:04:43tomek_bstokin that case something went wrong as I do not see it inside exe
19:05:01raptorif you go back to the 'build' directory
19:05:09raptorrun 'make' again
19:05:15raptorand see what happens
19:05:52thread_ has joined
19:06:49tomek_bstokhere's the output: [ 45%] Built target tomcrypt [ 71%] Built target tnl [100%] Built target lua-vec
19:07:37raptordo 'make bitfighter'
19:08:50tomek_bstokinside build/ ?
19:08:56raptoryep
19:09:04tomek_bstokno rules to make 'bitfighter'
19:09:11raptorah ha!
19:09:22raptorthen that means you are missing some dependencies to install
19:09:30tomek_bstokah ha! ;)
19:09:36tomek_bstokThank you
19:10:43raptorin the build directory, you can re-run the cmake command do see what it says you're missing
19:11:39tomek_bstokyou're right, sorry
19:11:45tomek_bstokthere's a bunch of things
19:12:10tomek_bstokis there some sort of list of which libraries (and versions) are required ?
19:12:59raptoryes both in the README and on that page http://bitfighter.org/wiki/index.php/Building_Bitfighter
19:13:10raptorunder 'detailed instructions'
19:13:35raptorthere is a dependency list. you'll need to make sure the development headers for each is installed, too
19:18:30tomek_bstokI see some of the dependencies (such as SDL2) are tricky to install in 12.04 (it looks like)
19:18:43raptorwe support SDL 1.2, as well
19:18:54raptorso you can grab that instead
19:19:01tomek_bstokah, ok
19:19:30tomek_bstokbut in case I get into trouble later, is it known that the installation is simple in ubuntu 13.10 or something like that ?
19:19:48tomek_bstokmaybe it would be faster if I just used the newest OS instead ?
19:21:19raptorno, it'll take the same amount of time (if you're on Linux)
19:21:36raptorinstallation is the same for a developer :)
19:21:42raptorbut
19:22:19raptorone of our devs, kaen, set up a nifty script for you on ubuntu based distros to get a developer environment working: wget -O- https://gist.github.com/kaen/6393623/raw | sh
19:22:35raptorso if you wanted to start from scratch in a different directory, just run that script
19:22:52raptorit should prompt you for the root password and will install all the dependencies
19:26:16tomek_bstokit seems like i am almost done (I havent used the script above yet)
19:26:21tomek_bstok-- Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
19:26:49tomek_bstoki have installed libsdl-dev (which was 1.2)
19:26:51raptorthat's OK
19:27:01raptorit should say it's using 'SDL' right afterwards..
19:31:05sam686ignore could not find errors if continue on creating makefiles and other stuff.
19:31:54sam686as I got a could not find mysql but still continues to run and works
19:35:23raptorhe's on linux and can't ignore most of them
19:36:53tomek_bstokI think it works now, I installed mysql and such
19:37:07tomek_bstoki can run bitfighter, thank you very much for your help :)
19:37:36raptorgreat!
19:41:48tomek_bstokI can't enter the nickname from the keyboard, does that happen sometimes ?
19:41:58tomek_bstokI can navigate the menu
19:42:02tomek_bstokusing arrows
19:42:02raptorthat should never hapen
19:42:16raptorso game starts up
19:42:32tomek_bstokyes, I see the menu, black background etc
19:42:33raptoruse arrows to highlight nickname, type in nicknamr
19:42:42sam686does mouse work?
19:42:45tomek_bstokyes
19:42:47raptoror mouse to highlight
19:42:54tomek_bstokI can highlight
19:43:00tomek_bstokthe "|" blinks
19:43:06tomek_bstokbut I can't type in anything
19:43:26raptorhmm... let me compile real quick..
19:43:55sam686i guess maybe SDL 1.2 wasn't tested lately, i think, as I am on windows SDL 2.something.
19:44:19raptoryeah, no problems here
19:44:24raptori'm on linux + sdl 1.2
19:44:45Johnaudi Quit (Ping timeout: 250 seconds)
19:44:53raptortomek_bstok: which task did you grab?
19:45:03tomek_bstoknothing yet, I wanted to run it first
19:45:07raptorok
19:45:19sam686I heard one other person on linux having problem with SDL 1.x + linux (keyboard/mouse sometimes doesn't work while on bitfighter)
19:45:26raptorsam686: really??
19:45:36raptoron 019 or 018a?
19:45:54sam686he was on ubuntu, and not really sure if the person solved it as he was half-afk
19:46:00raptorhmmm
19:46:01HylianSavior has joined
19:46:13raptorkaen might know more about this...
19:46:53raptorok, I did a full recompile, no issues
19:50:34sam686what version of linux you using?
19:53:26sam686umm make -j8 it a little bit buggy, "[ 42%] [ 44%] [ 44%] [ 44%] [ 44%] [ 46%] Building CXX object zap/CMakeFiles/bitfighter.dir/BfObject.cpp.o"
19:53:37sam686and the next few lines of "Building CXX" is missing percent
19:53:51tomek_bstokraptor, Hey, Can I ask you about one task ?
19:54:17tomek_bstokI mean the "Player stats screen"
19:54:20raptorsam686: yeah cmake doesn't have synchronized log output
19:54:23raptortomek_bstok: ok
19:54:58tomek_bstokWhich file should I start looking at for the beginning ?
19:55:12tomek_bstokand what you would like to have exactly ?
19:56:00raptorwe have a custom UI framework, so you can look at the UI* classes
19:56:13raptorperhaps UIHighScores.cpp is a good start
19:57:04raptorthis task will probably require some usage of opengl
19:57:22raptoryou can make up the data yourself
19:57:41raptorwe have some stats online, here: http://www.bitfighter.org/stats/stats.php
19:58:09raptorif you click on a player, you'll see some individual stats; those are the ones you'd want to show in-game
19:58:36tomek_bstokand where should it be displayed ?
19:58:56raptorit would be a new UI screen, similar to UIHighScores
19:59:13raptorperhaps a 2nd page in HIGH SCORES (on the main menu)
19:59:45Johnaudi has joined
19:59:53Johnaudihi again
20:00:02Flynnn has joined
20:00:08sam686hi
20:00:13Johnaudididn't get to work on the level thing for now, got other projs
20:00:23tomek_bstokraptor, Only for me or for any player (by nickname) ?
20:00:35Johnaudibut anyways am I allowed to work on several tasks at once?
20:00:40Johnaudiliike 'reserved' tasks?
20:00:47Johnaudifor bitfighter
20:00:49Johnaudinot others
20:01:01raptortomek_bstok: eventually, any player, by nickname, but your task would just be to do the layout, so you can add fake data for yourself
20:01:29sam686reserved task? again, don't know much about GCI
20:01:46raptorJohnaudi: I think just one task at a time from us would be best; but I think it's up to you if you decide to do multiple from other groups
20:02:07JohnaudiI'd prefer staying with bitfighter
20:02:31Johnaudihey tomek what you working with?
20:02:37sam686I will keep it easier to do just one at a time..
20:02:41raptoralso, we'll get more tasks up eventually - probably several more with the testing framework
20:03:12Skybax has joined
20:03:16Skybax_ has joined
20:03:22Johnaudilike the one completed with sam before?
20:03:35raptoryes
20:03:50Johnaudigreat! I'm aiming for 30 tasks this GCI
20:04:05Johnaudiare you going to put alot of testing in?
20:04:09sam686yes, but that done right? then you can do more, since that isn't doing more then one at a time.
20:04:20raptorbut some may be more complicated
20:04:36raptorwe want lots of testing coverage
20:04:42raptorwe're slowly working our way there
20:04:42Johnaudi48 days, 24 tasks each takes 2 days
20:05:04Johnaudiyup, and some might be too easy like that level thing
20:05:24Johnaudiah what directory you want me to place the function again?
20:05:40Johnaudi@Level Lister thing
20:06:27raptorthere is a LevelSource class
20:06:44raptorkaen and watusimoto will be able to help with that more - I am unfamiliar with that code
20:06:54sam686I think it can go in bitfighter.ini file, (config.cpp)
20:07:00sam686but not too sure..
20:07:11raptoralso, just so you know - from what I remember last year, GCI students aren't necessarily judged on number of tasks completed
20:07:47raptori remember being asked if students did several different things, as well as how hard and comprehensive the task and solution was
20:08:16Johnaudioh?
20:08:20Johnaudiwell that's good news!
20:09:40Johnaudiyou want the level class to return an array of strings of the levelnames? would that be better?
20:10:06Canseco has joined
20:10:10sam686probaby yes.
20:10:11Johnaudialso I never saw/spoke to watusimoto
20:10:26Johnaudimaybe he's in a different Timezone?
20:11:34sam686Watusimoto seem to show up late at my night (Central Time Zone I am on)
20:12:29kumul Quit (Ping timeout: 252 seconds)
20:12:32sam686go ahead and do /ctcp sam686 time (here on IRC) to see my clock
20:13:13Johnaudioh it's 2pm for you
20:13:18sam686yes
20:18:24raptorwell, I have to go - I'll be back later tonight!
20:18:47sam686ok
20:18:55raptor Quit ()
20:19:14Johnaudistupid question: Error: "class xyz" has no member func
20:20:15sam686it might be you missing #include "xyz.h"
20:20:28Johnaudiyeah but I'm using LevelSource
20:20:40Johnaudistring[] LevelSource::example() {
20:20:43Johnaudi^^^
20:21:04Johnaudiwhere is LevelSource prototype functions located?
20:21:30Johnaudian look nvm I'll leave a note "Don't forget to prototype the function in the class!"
20:21:37Johnaudiso I don't have to upload 2 files etc
20:22:36Johnaudiis there a function to retrieve the whole list of the levels in config?
20:22:42Johnaudieven the ones who do not exist
20:23:41sam686loadLevelSkipList? (config.cpp line 419)
20:24:21sam686you can copy and change it to make your own
20:24:23JohnaudiSkipList meaning ALL the levels listed in the list?
20:25:00sam686the SkipList is levels not being loaded, currently already in the code.
20:25:30Johnaudiso my job is to do something similar to it by listing only available levels in the directory
20:25:31Johnaudicorrect?
20:25:41sam686There is loadLevels (line 396 config.cpp) that actually loads list of levels
20:25:47sam686yes
20:26:14LordDVG Quit (Remote host closed the connection)
20:27:50sam686Oh actually there is zap/GameSettings.cpp line 609 GameSettings::getLevelList that get the level list
20:28:50Johnaudihow do you find this stuff so fast x.x
20:28:50Johnaudilol
20:32:20Johnaudisam where you from btw
20:32:49sam686I am in United States, South Dakota, Sioux falls
20:35:18sam686I often use search (ctrl+F), find entire solution; other times I can just go-to line number (ctrl+G)
20:36:47Johnaudiquestion
20:37:03Johnaudiwhat's the difference between GetLevelList and GetSkipLevelList
20:37:07Johnaudior whatever it's called
20:38:27sam686getLevelList is the primary thing called from hosting/running server, it does level skip list as well
20:39:31sam686getLevelSkipList appears to be just a single line "return &mLevelSkipList"
20:40:46Johnaudiwhen you use the term 'level skip' you mean list unavailable levels too right?
20:41:32Johnaudi"This task will require creating a new one that will read a list of levels from a text file"
20:41:51Johnauditext file? will the directory of the file be a parameter?
20:42:05sam686there is already a level skip list
20:42:17sam686not sure, you could do one or the other
20:51:43tomek_bstok Quit (Quit: Wychodzi)
20:56:46Invisible2 has joined
20:57:24kumul has joined
20:57:59talga has joined
21:01:06talgaare any of the mentors for gci here?
21:02:43kumul Quit (Ping timeout: 265 seconds)
21:02:49Nothing_Muchtalga: not right now I believe
21:03:00Nothing_Muchsam686: are you a mentor?
21:03:50sam686im not registered as neither one in GCI
21:04:08Nothing_MuchAh okay
21:04:10talga:\
21:04:33sam686although I am bitfighter programmer I might be able to help
21:04:50sam686or at least bug fixing for a past year
21:06:40talgahaha, well forgive my stupid questions (i'm completely to open source and any sort of version control) but where do I get the source?
21:06:55talga*completely new
21:07:28sam686There some instructions here http://bitfighter.org/wiki/index.php/Building_Bitfighter
21:07:56talgathanks
21:11:25thread_ Quit (Ping timeout: 250 seconds)
21:16:37Canseco Quit (Remote host closed the connection)
21:23:32grypoB has joined
21:24:52kumul has joined
21:32:16Canseco has joined
21:32:22Johnaudi Quit (Quit: Page closed)
21:35:11grypoBHi, I have a question for the GCI, where in the code the GameType is received to be rendered ?
21:37:09sam686looks like GameType have multiple render functions..
21:37:26grypoBOr more specificly, does in the GameUserInterface::doneLoadingLevel, the level is done rendered ?
21:38:03grypoBand can I found from there the GameType used ?
21:38:58sam686it seem to start from UIGame.cpp GameUserInterface::render() then it calls gameType rendering stuff
21:41:00grypoBmy problem is that I need to get information from the GameType (the music (which I need to implement for the task)) and then pass it to the UIManager so that I can transmit it to the SoundSystem
21:43:26sam686there the server side GameType and client size GameType, it appears it need to be transmitted through some s2c command, we can make a new one..
21:44:51grypoB... you lost me. But what is the difference between the two GameType (server / client) ?
21:46:16sam686well, server have their own gametype and client have some copy of gametype in a network game, some parts need to be manually transmitted, like the score limit and time limit.
21:46:30grypoBThey both contain the information from the .level file used, other ?
21:46:54sam686only the server loads level, then transfer most information to clients
21:48:03sam686sometimes server have a level client don't (unless /getmap used)
21:48:54grypoBmost information... so if I want to transfer a new information (in my case the music) I need to do it manually, I can't just put a new variable in the class GameType.
21:49:11sam686yes
21:50:16sam686it looks like s2cSetLevelInfo have lots of info sent about the level
21:50:28sam686(in gametype.cpp / .h)
21:50:39grypoBok
21:51:40sam686The server sends it at GameType::onGhostAvailable
21:52:01grypoBwhich is client side ?
21:52:03sam686client received it and runs at s2cSetLevelInfo or any s2c (server to client)
21:52:08Flynnn Quit (Quit: This computer has gone to sleep)
21:54:03sam686you have 2 options for this, add a variable in s2cSetLevelInfo, or create a new s2c_something using TNL_DECLARE_RPC in .h, GAMETYPE_RPC_S2C in gameType.cpp
21:54:50sam686We don't really care about compatibilty as 019 not yet released won't be compatible with 018a..
21:55:02grypoBAnd where can I retrieve the information client side ?
21:55:39sam686the server have to send some information to client, it means add more things to send.
21:57:06sam686that is if the level music information is stored in the level itself..
21:58:18grypoBBut I need to retrieve this information to send it to SoundSystem
21:58:59sam686where do you have the information stored in?
21:59:16sam686I could help better if I see your code though..
21:59:36grypoBit would be in GameType
22:00:02grypoB*the GameType created when the .level was read
22:01:08sam686ok.. If the music read into GameType?
22:01:18sam686or the music parameter?
22:02:38Flynnn has joined
22:02:50grypoBI don't understand.
22:03:37sam686I don't exactly know what to help you with, partly cause I haven't see your changes yet..
22:04:23grypoBi'll code them for the gameType and then come back
22:04:30sam686ok
22:04:37grypoBthank you for your help
22:08:04sam686example, if a level file have "music av_adr.xm", it can store that string into string musicFile
22:08:45sam686but, look at Game::processLevelParam, it reads some arguments and puts into some variables, that a place you add more stuff as well..
22:09:00sam686Game::processLevelParam located in game.cpp line 872
22:11:21grypoByep, I saw it and this is the part i'm about to code.
22:11:29sam686ok
22:13:45Invisible2 Quit (Ping timeout: 245 seconds)
22:29:40Kiryx has joined
22:31:09Watusimoto has joined
22:33:18grypoBsam686 : how should i show you my code ?
22:34:20sam686you can use http://pastie.org/ and paste all your changes there..
22:38:30IAMTAZ has joined
22:38:39IAMTAZGUYS I DONT SEE APPLES SERVER
22:38:54grypoBsam686 : http://pastie.org/8493910
22:40:18sam686IAMTAZ: you might need to try connecting to "Ping timed out" does it work?
22:40:33IAMTAZno..
22:40:48IAMTAZthat server is 72.83.etc, is that his?
22:40:52IAMTAZits the only ping timed out
22:41:15sam686its ping timed out for me too, but it does punch through firewall and lets me connect..
22:41:43Watusimotoevening gentlemen!
22:42:01Watusimotoholy cow there's a lot of people here!
22:42:28IAMTAZNope, connection terminated
22:43:19WatusimotogrypoB: mMusicLinkedList.push_back(s) <<< this is how it works
22:43:48Watusimotoif (mMusiLikendList.size()>0)
22:43:48Watusimoto+ mHasMusicLinked = true;
22:43:48grypoBthanks
22:44:03Watusimotoshould probably be mHasMusicLinked = mMusiLikendList.size()>0;
22:44:21grypoBbut i forgot the getGameType()-> in front of the variable
22:45:18WatusimotoI'm not sure where mMusicLinkedList is defined, so I can't say for sure... but our general conventino is to make all mXXX vars private or protected and set them with getters/setters
22:46:37grypoBok, so i need to code that, but I don't understand mHasMusicLinked = mMusiLikendList.size()>0
22:47:08Watusimotowell, mMusiLikendList.size() will eiterh be == 0 or > 0
22:47:10Watusimotoif it'
22:47:27Watusimotoif it's == 0, then mMusiLikendList.size() > 0 will evaluate to false and mHasMusicLinked will be set to false
22:47:35Watusimotoif mMusiLikendList.size() > 0, the expression evaluates to true
22:47:47Watusimotothe other way you could do it is
22:47:48Watusimotoif (mMusiLikendList.size()>0)
22:47:48Watusimoto+ mHasMusicLinked = true;
22:47:51Watusimotoelse
22:47:58WatusimotomHasMusicLinked = false
22:48:05Watusimotothough that's much more wordy
22:48:12grypoBso it does the same thing but quicker, thanks
22:48:23IAMTAZIs it possible to create a laser/wall that asteroids can pss through? but not players?
22:48:23Watusimotoyes
22:48:32WatusimotoIAMTAZ: no
22:48:45sam686Not to forget to set mHasMusicLinked = false in a constructor GameType::GameType() or else it might be randomly true due to junk random memory being used
22:48:57Watusimoto^^^ yes
22:48:57IAMTAZok.
22:50:13grypoBsam686 : yep, line 56 of the pastie
22:50:36sam686oh well, its hard to read diff..
22:51:38sam686and.. we might not want absolute path (c:
22:52:12sam686no absolute (c:\program files\bitfighter\blah blah blah) as different OS use different paths to music folder
22:52:47sam686just a (av_adr.xm) will do
22:52:58grypoBok, but where can i found the path to this directory ?
22:53:35sam686its in resource/music or exe/music, but not sure yet, looking
22:55:39talga Quit (Ping timeout: 252 seconds)
22:56:32sam686settings->getFolderManager()->musicDir is a path to music folder
22:56:50grypoBthat's perfect thanks
22:58:14sam686or, getGame()->getSettings()->getFolderManager()->musicDir if you are in a GameType.
22:59:32grypoBi'm in a Game actually
22:59:49sam686when you only need getSettings()->getFolderManager()->musicDir part
22:59:59sam686then* not when
23:00:10grypoBok
23:00:49grypoBi'll code more tomorrow, but thanks a lot for your help
23:01:14sam686Make use of something like joindir(...->musicDir, "game.ogg")
23:03:06grypoBhum, i did this function do to the job http://pastie.org/8493958
23:04:57sam686You can use fileExists(string), already exists in stringUtils.cpp
23:06:01grypoBbut i use it to store a music file in a Vector<string>
23:06:38grypoBthat way i can compare it to the song which are being played in the SoundSystem as simply as a=b
23:06:55sam686it looks like DIR *dp seems unused other then open/close..
23:07:38grypoBi took it from the existing getFilesFromFolder(..)
23:08:13grypoBso i don't really understand what it does
23:08:40Iamtaz_ has joined
23:09:47IAMTAZSam, how cna I replace resource item with asteroid in your blizzard levelgen?
23:09:48IAMTAZhttp://pastie.org/8493972
23:09:55grypoBgood night everybody.
23:10:37sam686IAMTAZ: see ResourceItem.new()?
23:10:46sam686try changing it to Asteroid.new()
23:11:06IAMTAZok
23:12:29sam686be warned that, asteroid can get destroyed, unlike ResurceItem.. you may need to check add if object ~= nul ... end
23:14:29grypoB Quit (Ping timeout: 250 seconds)
23:23:47Watusimotonil, not nul
23:25:16sam686I made a lot of misspelling...
23:26:38Watusimotoyes I know you knwo the right one :-)
23:26:48sam686I seem to have a problem: if levelgen errored on onTick, it won't run levelgen's ontick on the next level restart.
23:26:55WatusimotoI wanted to make suer IAMTAZ had it right
23:27:07Watusimotoreally?
23:28:19sam686ok its more like it randomly won't run onTick at all on next level restart
23:28:26sam686if levelgen errored on onTick
23:28:37Skybax_ Quit (Ping timeout: 248 seconds)
23:28:37Skybax Quit (Ping timeout: 248 seconds)
23:37:40GEOFBOT has joined
23:37:51Darrel Quit (Quit: IRC client killed.)
23:37:59GEOFBOThello
23:38:44GEOFBOTI'm from GCI
23:38:48GEOFBOTI'm working on this task
23:38:49GEOFBOThttp://www.google-melange.com/gci/task/view/google/gci2013/6044614028951552
23:39:47GEOFBOTHow should I start?
23:40:02GEOFBOTI'm inexperienced with coding
23:45:35Watusimotohow inexperienced?
23:45:42Watusimotoand hello!
23:45:56GEOFBOTI know some basics of python and what not
23:46:04Watusimotowell, that's a start
23:46:08GEOFBOTbut I'm not good at version control or libraries or anything else lol
23:46:23GEOFBOTwhich is why last year I did mostly graphics-related tasks
23:46:29GEOFBOTbut I've decided to tackle a coding one this year
23:46:37Watusimotowhat time zone are you in?
23:47:02GEOFBOTeastern
23:47:06Watusimotogreat
23:47:19WatusimotoI'll try to get you started, but I'm in europe, and need to go to bed soon
23:47:34Watusimotojust so you know :-0
23:47:40GEOFBOTok :-P
23:47:44Watusimotothat was supposed to be :-)
23:47:46Watusimotook
23:48:06Watusimotoso the first think you'll need to do is check out the project
23:48:14WatusimotoI assume you have not done that yet
23:48:38GEOFBOTi downloaded a zip, but I don't think that is checking out
23:48:43Watusimotono
23:48:45sam686http://bitfighter.org/wiki/index.php/Building_Bitfighter tells you some instructions
23:48:59GEOFBOTkk
23:49:09Watusimotosam686: do you know where the alerter widget is? is it in our main repo?
23:49:24Canseco Quit (Remote host closed the connection)
23:49:33Watusimotoraptor is our resident expert on this bit of the project, but he's not here at the moment
23:49:56GEOFBOTintalling hg
23:51:05sam686If you on windows, turtoiseHG is one good option for revision stuff as we use it
23:51:23Watusimotook, alerter is not in the main code repo
23:52:14sam686one alerter (forum search) is in here http://bitfighter.org/forums/viewtopic.php?f=6&t=200
23:52:24GEOFBOTok, its installed
23:52:39Watusimotogood -- we need to find the code you'll need for this one
23:53:47Watusimotowhat platform are you on? windows?
23:54:48GEOFBOTyes
23:56:18Watusimotoyou'll also need python, of course
23:56:21WatusimotoI found the repo
23:56:32Watusimotohttps://code.google.com/p/bitfighter/source/checkout?repo=tools
23:57:13GEOFBOTah, ok
23:57:52talga has joined
23:58:25Watusimotoyou'll need to clone the repo, which you do in tortoise via the file menu
23:58:35Watusimotouse the url on the page I sent you the link for
23:58:44GEOFBOTI have it cloned
23:58:47GEOFBOTI think
23:59:08GEOFBOTyes, i see the notifier nw
23:59:17Watusimotogood
23:59:43Watusimotoso you got several folders
23:59:55Watusimotomostly experimental stuff
23:59:59Watusimotoyou are interested in the bitfighter-notifier folder

Index Search ←Prev date Next date→

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