#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2014-09-27

Timestamps are in GMT/BST.

00:16:20amgine123 Quit (Ping timeout: 246 seconds)
00:55:51fordcarsNight!
00:55:54fordcars Quit (Quit: Page closed)
01:13:09HylianSavior has joined
02:16:58watusimoto has joined
02:16:58ChanServ sets mode +o
02:40:39raptor has joined
02:40:40ChanServ sets mode +o
02:40:51raptorthis time i'll use the emscripten official SDK...
02:46:37watusimoto Quit (Quit: Leaving.)
02:52:43raptor Quit ()
03:42:36HylianSavior Quit (Ping timeout: 244 seconds)
06:33:31Destroyerimo has joined
07:43:12LordDVG has joined
08:45:03Destroyerimo_clo has joined
08:48:43Destroyerimo Quit (Ping timeout: 246 seconds)
08:52:00Destroyerimo has joined
08:53:38Destroyerimo_clo Quit (Ping timeout: 244 seconds)
10:42:42Destroyerimo_clo has joined
10:44:58Nothing_Much Quit (Remote host closed the connection)
10:46:20Destroyerimo Quit (Ping timeout: 246 seconds)
10:48:53Nothing_Much has joined
10:58:04Nothing_Much Quit (Remote host closed the connection)
10:58:58Nothing_Much has joined
11:01:41Nothing_Much Quit (Remote host closed the connection)
11:03:51Nothing_Much has joined
11:08:21Nothing_Much Quit (Remote host closed the connection)
11:10:00Nothing_Much has joined
11:10:05Nothing_Much Quit (Client Quit)
11:10:24Nothing_Much has joined
11:12:14Nothing_Much Quit (Remote host closed the connection)
11:13:12Nothing_Much has joined
11:45:46LordDVG Quit (Ping timeout: 245 seconds)
12:54:09Nothing_Much Quit (Read error: Connection reset by peer)
13:05:26Nothing_Much has joined
13:09:47fordcars has joined
13:09:48fordcars Quit (Client Quit)
13:10:02fordcars has joined
14:06:16amgine123 has joined
14:06:23amgine123hello
14:10:31Destroyerimo has joined
14:10:31Destroyerimo_clo Quit (Read error: Connection reset by peer)
14:22:53Nothing_Much Quit (Remote host closed the connection)
14:57:17amgine123<.< .^.^.>.>
14:58:46Nothing_Much has joined
15:00:32fordcarsHi
15:05:25Nothing_MuchHey fordcars
15:12:12amgine123hi fordcards
15:15:06LordDVG has joined
15:36:26fordcarsHey Nothing_Much
15:36:31fordcarsHi amgine123
15:38:53amgine123sooo
16:24:40Destroyerimo_clo has joined
16:28:17Destroyerimo Quit (Ping timeout: 246 seconds)
16:41:08amgine123 Quit (Quit: Page closed)
16:59:41Destroyerimo_clo Quit (Read error: Connection reset by peer)
17:10:56amgine123 has joined
17:35:33amgine123:)
18:03:06LordDVG Quit (Remote host closed the connection)
18:42:03Invisibl1 has joined
19:00:23Invisibl1 Quit (Ping timeout: 260 seconds)
19:28:55amgine123 Quit (Ping timeout: 246 seconds)
20:41:50Invisible1 has joined
20:48:20raptor has joined
20:48:20ChanServ sets mode +o
20:48:37raptorOK, I think it's official: emscripten is *not* viable at the moment without significant work
20:49:22raptorit's because they use SDL 1.3 which is no API compatible with SDL 1.2 or SDl2
20:49:26raptor*SDL
20:49:45raptorbut SDL2 is being ported right now so maybe in a few months...
21:14:19Invisible1 Quit (Ping timeout: 260 seconds)
21:24:38fordcarsraptor: really?
21:24:46fordcarsI hope it'll work
21:25:04raptorhi, yeah...
21:25:12raptorbut i got much further this time...
21:25:13fordcarsWell, there is also tnl
21:25:19fordcarsHow foar?
21:25:28fordcars*far
21:25:33raptorTNL was no problem except for the pthreads
21:25:41fordcarsWow sweet
21:25:53raptorthat will have to take some thought, too...
21:25:59raptorbut doable, i think
21:26:16fordcarsBut for networking, you'll use WebSockets?
21:26:29raptoremscripten already handles that
21:26:36fordcarsOh wow that is cool
21:26:57raptori made a huge mess of the codebase to get it to compile, though...
21:27:45fordcarsraptor: semms like sdl2 has already been ported: http://www.reddit.com/r/gamedev/comments/29ubya/emscripten_port_of_sdl2/
21:27:53raptorsort of...
21:27:59raptorthat's what I compiled and tested with
21:28:06fordcarsOh
21:28:10raptorbut it hasn't been integrated into emscripten yet
21:28:18fordcarsWow you did go far
21:28:21raptorso the SDL2 modifications are done
21:28:37raptorbut emscripten has to merge in stuff, too
21:28:55raptoryeah... i think I see a way forward now! :)
21:29:04raptorbut it'll have to wait a time again
21:29:12fordcarsYeah bummer :(
21:30:04fordcarsOh wait, sdl2 handles networking?
21:30:19raptorthere is an SDL2_net library, i think, but we don't use it
21:30:34fordcarsOh ok
21:30:40raptorwe use it for video and input
21:30:58fordcarsInteresting stuff though
21:31:23fordcarsWell, if it's only for input nd output, couldn't you hack some sort of tiny .js Sdl?
21:32:09raptorwant my latest output?
21:32:14fordcarsOh sure
21:32:23fordcarsBut does a server work or this it use sdl?
21:32:42raptori'm not sure about server stuff yet
21:32:47raptorSDL is not used on the server
21:32:54fordcarsWould be interesting :P
21:35:44raptorok.. i will test a server compile... since you've caught my interest :)
21:35:57fordcarsHaha ok
21:36:02fordcarsEmscripten is amazing wow
21:36:18fordcarsOpenGl 1.x support
21:36:34fordcarsOpenGL ES 2.0 emulation
21:36:49raptorok, here is the output of my client attempt. just extract and open it in a modern browser: http://sam6.25u.com/upload/bf_emscripten.7z
21:37:24fordcarsOk thanks!
21:39:12raptorha! the server worked except it could not find any levels in a folder
21:39:25raptori mean it actually started up
21:39:44raptorhmmm... i wonder what to do with levels
21:39:44fordcarsWhoa!
21:39:55fordcarsThere is a File System i think
21:40:00raptorbecause a web app cannot access the system's filesystem
21:40:10fordcarsTry FS module
21:40:12fordcarsWait
21:40:15fordcarshttp://kripken.github.io/emscripten-site/docs/api_reference/Filesystem-API.html#filesystem-api
21:40:33fordcarsMy guess is ou can have files in the html
21:40:40fordcars*you
21:41:44raptorah yes
21:42:06raptorI'd have to use those special API function just for emscripten
21:42:14fordcarsIn the c++?
21:42:17raptoryep
21:42:22fordcarsOh neat
21:42:52raptorand i'd have to preload data into the FS
21:43:30fordcarsThat looks good
21:48:46raptorif you've downloaded that 7z file above, you can load it and watch the browser console
21:48:58raptorit'll spit out errors, like cannot initialize video driver
21:49:09fordcarsYeah I tried it, it looks really cool
21:49:23fordcarsI tryied with the -dedicated argument too
21:49:44fordcarsin the html you can put arguments
21:49:53raptoroh i didn't know that..
21:50:14raptorso i got a lot farther this time... but time to call it quits
21:51:56fordcarsWhat do you mean?
21:52:11fordcarsThe server ran?
22:03:30raptori mean in my attempt at getting a client to run with emscripten
22:05:56fordcarsOh okok
22:43:00raptori'm looking at your clone right now
22:43:14raptormy first thought is that there seems to be an easier way to get the winning team...
22:43:20raptorsomewhere...
22:43:30fordcarsOh wow
22:43:33fordcarsThanks :P
22:43:45fordcarsUh, maybe
22:43:52fordcarsIt was just a quick and dirty thing
22:44:20fordcarsMy version is heavy, there should be a mWinningTeam
22:44:32raptoris it something you'd like to see merged in with trunk?
22:44:51fordcarsWhoa, it's too small for that isn't it?
22:45:06raptorwhat do you mean, too small?
22:45:09fordcarsIt looks like something you could write in 5 minutes
22:45:36raptorif you've fixed or improved a bug, then I don't mind pulling in your code... provided your code is decent enough :)
22:45:36fordcarsWell, not worth merging
22:45:50fordcarsHaha, it's not very decent :P
22:46:23fordcarsI was just code-learning ;)
22:46:25raptorso tell me - where you actually working on fixing an issue, or just tinkering a bit, or something else? (i.e. what were your motivations for doing it)
22:46:30raptorah.. beat me to it!
22:46:35fordcarsHahaha
22:46:47fordcarsI was trying to get to know classes a bit more
22:49:12raptorwell as soon as I compile it... i'm going to review it :)
22:49:24fordcarsHaha go ahead
22:53:38raptorwell.. so far so good.. it compiles :)
22:54:56fordcars:D
22:56:08raptorok, i see a white border around the team color
22:56:12raptorwas that the change?
22:58:43fordcarsYeah haha
22:58:47fordcarsSimple as that
22:59:33raptorhow invested are you in to getting this to work? because I have some bugs and a better course of action to suggest :)
23:00:12fordcarsIt doesn't?
23:00:14fordcarsOh wait
23:00:21fordcarsDid I forget to push again?
23:00:27raptori only have on commit
23:00:29raptor*one
23:00:40fordcarsYeah that might be it
23:00:44raptorha, ok
23:00:47fordcarsI had messed up a loop
23:00:50raptori'll await your push...
23:01:11fordcarsOh never mind
23:01:17fordcarsI had pushed after :/
23:02:11fordcarsHaha, whaaat
23:02:24fordcarsIt really doesn't work haha, I'll check it out
23:02:49raptoryeah, i have a 2 team CTF game and the red team is *always* highlighted
23:02:58fordcarsYep, did the same test :P
23:03:04raptorif I may suggest a course of attack...
23:03:13fordcarsSure, mWinningTeam?
23:03:23fordcarsThat was what I had in minf
23:03:26fordcars*mind
23:03:33fordcarsBut I am sure you had a better idea :P
23:03:47raptoryes, that, and also to check that only if the game is over
23:03:54raptorthere is a flag that is set once the level is won
23:03:55fordcarsOh sure
23:04:03raptoroh wait
23:04:03fordcarsOh really?
23:04:21raptorwas the issue to show the currently winning team at any time? or just when the match is over?
23:04:30fordcarsJust when the game is over
23:04:45fordcars!bugs
23:04:45BFLogBotTo enter a bug: http://tinyurl.com/bfnewbug -- To view all bugs: http://tinyurl.com/bfbugs
23:05:53fordcarshttps://code.google.com/p/bitfighter/issues/detail?id=168&sort=priority&start=100
23:07:13raptorok found it
23:07:25raptorwhen rendering, use getGame()->isGameOver() to tell if the match is over
23:07:37raptorif that is true, then do the highlighting
23:08:19fordcarsAnd is the winning team defined somewhere, or do I have to find it myself?
23:08:56raptoryeah, it is... let me look it up
23:10:29raptoroh whoa, watusimoto rewrote this part...
23:10:35raptoruhh... looking elsewhere
23:10:41fordcarsHah
23:10:58fordcarsThanks for looking btw, it normally takes me 5 months
23:11:09fordcarsTo find anything
23:11:24raptorlike this: S32 winner = mGame->getTeamBasedGameWinner().second;
23:11:39fordcars.second?
23:11:50raptormGame could be replaced with getGame() and vice versa depending on what the current class uses
23:11:53fordcarsOh, /first?
23:12:12raptorthat's part of the code - mGame->getTeamBasedGameWinner() returns a std::pair
23:12:17fordcarsOh okokok
23:12:24fordcarsOhhhh
23:12:25raptor.first will return the team object i think, .second returns the team index
23:12:33fordcarsMultiple return values :)
23:12:41fordcarsOk, I'll try it
23:12:44raptoryeah
23:13:37raptoractually the .first returns a winning enum with win/tied/etc.
23:13:43raptorso .second is what you want
23:14:04fordcarsOh cool
23:27:12fordcarsHey raptor, just out of curiosity, why do this static const S32 canvasHeight = DisplayManager::getScreenInfo()->getGameCanvasHeight(); static const S32 canvasWidth = DisplayManager::getScreenInfo()->getGameCanvasWidth();
23:27:31fordcarsIt gets DisplayManager::getScreenInfo() twice, isn't it faster to only get it once?
23:28:28raptorsort of
23:28:41raptorprobably, yes
23:29:03raptorso ScreenInfo *screenInfo = DisplayManager::getScreenInfo()
23:29:12raptoryou'll probably find lots of lazy code :)
23:29:22fordcarsHaha ok thanks :)
23:45:31fordcarsIt works!
23:48:04fordcarshg push says there aren't any changes?
23:48:15raptordid you commit first?
23:48:19fordcarsUh nope
23:48:21raptor:)
23:48:28fordcarsHaha
23:49:42fordcarsDone!
23:54:22raptorit works!
23:54:24raptorok
23:54:26raptornow
23:55:07fordcarsMake it look prettier?
23:55:40raptorin order to accept it you have to pass the monkeys with sticks who say your code must follow certain standards..
23:55:55raptorso, here is what I see:
23:56:13raptor1. we use 3 spaces instead of tabs in our code, so you need to remove the tabs
23:56:14fordcarsSure
23:56:17fordcarsOh yeah
23:56:24fordcarsThat is Visual Studio shit
23:56:27fordcarsI enevr put those
23:56:31fordcarsOh wait
23:56:33raptoroh yeah, i hate that
23:56:39fordcarstabs, yeah that is my fault
23:57:01raptorthere's some way to configure it but I don't know how... I think sam686 does
23:57:49raptor2. remove your added code from your earlier commit that you're not using anymore, i think at least the method AbstractTeam *Game::findWinningTeam()
23:57:59fordcarsOh sure
23:58:52raptorand any code pointing to it
23:59:03raptori like to review the last commit on google code so i know what to revert
23:59:39raptorprobably revert the teamInfo stuff, too

Index Search ←Prev date Next date→

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