#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2011-10-11

Timestamps are in GMT/BST.

00:06:00sam686version and protocol history: http://208.107.52.15/bitfighter/version.txt
00:07:00raptoroh wow, bitfighter buld 010 is protocol 15 - that means that they might be running the opentnl demo
00:08:00sam686or is it that we just don't have hg history of whatSVN have?
00:09:00raptoroh no.. it was actually changed in rev 5
00:09:00raptorso they are running bitfighter
00:09:00raptorno, we have svn history
00:09:00sam686if you look at BUILD_VERSION, it might have been using SVN number earliear
00:09:00raptori made that long and painful conversion
00:11:00sam686also, there might be 013e that went off to a seperate branch in SVN
00:11:00raptoryes, there was a lot of clean-up
00:12:00raptorone was cutting the branches that went off into nowhere's land
00:12:00raptorthere were tons of branches... watusimoto even said it was getting out of hand
00:13:00raptorso I converted only the branch that went directly to 013e
00:17:00sam686i guess it only go as far as 274, before that, i don't see any of CS_PROTOCOL_VERSION in game.h
00:22:00sam686now i found more history protocol before 10 http://zap.svn.sourceforge.net/viewvc/zap/Zap/zap/game.h?view=log&pathrev=255
00:22:00raptorlooks like I have to write a cross-platform interface to set the window position...
00:25:00raptoroh wow
00:25:00raptorfrom the zap project
00:26:00sam686i still see "Bitfighter" in ZAP_GAME_RELEASE
00:26:00raptorwait wait wait...
00:29:00raptorOk, I have the original SVN archive...
00:29:00raptorweird
00:30:00raptori know what happened
00:30:00raptorhe made a branch, worked in the branch a bunch then moved it into trunk
00:31:00Zoomber has joined
00:31:00ChanServ sets mode +v Zoomber
00:32:00raptorno he didn't move it to trunk
00:32:00raptorhe copied it - that was the problem
00:32:00raptorhad he moved it to trunk, then we would have the history
00:38:00Zoomberhi
00:38:00Zoomberraptor
00:38:00raptorhi
00:48:00raptorsam686: I have another diff for you to test if you are still around
00:48:00sam686ok
00:48:00raptorhttp://208.107.52.15/upload/fake_fullscreen2.diff
00:49:00raptorplease tell me if that sets the window properly
00:49:00Zoomberfor petes sake raptor
00:49:00raptor?
00:49:00Zoombersam686.maxhushahn.com/upload/fake_fullscreen2.diff
00:49:00raptor?
00:49:00Zoomberhttp://member:sam686.maxhushahn.com/upload/fake_fullscreen2.diff
00:50:00Zoomberclick it
00:50:00sam686you forgot the http:// part
00:50:00Zoomberi did?
00:50:00raptorspurious 'member:' in that link, too
00:50:00sam686yes, then later no for a working http ling
00:51:00sam686http:/ / member: ... don't work
00:52:00sam686you (Zoomber) forgot http:// then added unneeded member:
00:53:00Zoomberoh
00:53:00Zoomberthats because when i copied what i typed in the last post
00:53:00Zoomberit recognized the "sam686" part
00:53:00Zoomberand put in Member before it
00:53:00Zoomberbeing, i have fiat-themed colloquy irc window
00:55:00sam686raptor patch seem to work, but now windowed mode gets moved to top left hiding title bar not being able to click title bar to move it in windowed mode
00:56:00raptor Quit (Ping timeout: 252 seconds)
00:58:00raptor has joined
00:58:00ChanServ sets mode +o raptor
00:59:00raptorwireless went out...
00:59:00Zoomberah
00:59:00raptorok sam686, did full screen work?
00:59:00sam686yes, now the window mode problem appears. http://208.107.52.15/bitfighter/window_mode_problem.png
00:59:00sam686goes to top left of screen, basically
01:00:00raptorok
01:00:00Zoomberi like how it puts a "crown" next to raptor's name
01:00:00Zoomberin irc
01:00:00Zoomber Quit (Quit: Zoomber)
01:00:00raptorbut fullscreen covers the whole monitor?
01:00:00sam686yes
01:00:00raptorexcellent!
01:01:00raptorok at least i'm sort of on the right track...
01:01:00raptorlet's try one thing for windowed...
01:01:00raptori'll get you a patch in just a bit
01:08:00raptorok, this isn't working...
01:09:00raptori might have to write a cross-platform way to set the window position...
04:35:00Zoomber has joined
04:35:00ChanServ sets mode +v Zoomber
04:35:00Zoomberhey raptor, you still around?
04:43:00Zoomberraptor, please be there
04:43:00Zoomberor karamazovapy
04:43:00Zoombereven sam686?
04:43:00Zoomberis everyone gone?
04:44:00Zoomberl
04:44:00Zoomber[
04:45:00Zoomberok, i see how it is
04:45:00Zoomberwaste network bandwidth
04:45:00Zoomberso my provider will now have to place a bandwidth cap on me
04:45:00Zoomberthanks guys
04:47:00Zoomber raptor karamazovapy sam686 BFLogbot Flynnn karamazovapy Pointblank http://gigaom.com/video/att-bandwidth-cap-netflix/
04:56:00raptorhi
04:59:00Zoomberhi raptor
05:00:00raptorhi
05:02:00Zoomberi brought my ibm back up from the graveyard and running it again
05:02:00Zoomberi was sick and tired of dual monitoring on mac
05:02:00Zoomberapple thinks they're cool having no menubar/dock on the other screen...Theyre not
05:02:00raptorhaha
05:03:00raptori actually think that is pretty standard on windows, too
05:03:00Zoomberon windows i think the taskbar is extended, but im not sure, you should ask sam
05:04:00Zoomberhowever, if i just bring up my old ibm, now i have two menubar/docks!
05:04:00raptorit's not by default
05:11:00Zoomber_ibm has joined
05:13:00Pointblank Quit (*.net *.split)
05:14:00Pointblank has joined
05:14:00Zoomber_ibmoh no raptor!
05:14:00Zoombermy poor bot got split!
05:14:00Zoomberterrible news raptor, I just found out that I am actually already under a bandwidth cap agreement
05:15:00raptorwonderful
05:15:00Zoomberright?
05:15:00Zoombersam has about the same price as me (i think), and gets 20 mbps unmetered, while i get a meesey 3008 kbps per second with a 150 GB cap
05:16:00raptoryou must live in a big city where the ISPs take advantage?
05:17:00Zoomberever heard of at&t?
05:17:00raptorthey're a standard large corporation
05:18:00Zoomber_ibmja
05:18:00Zoomber_ibmand they're taking back
05:19:00Zoomberaaah, looks like i might be snug-ly grandfathered in...hopefully
05:19:00Zoombergonna find out in a second
05:19:00Zoomberif thats true i have unlliiiiimited bandwidth for now..
05:20:00ChanServ sets mode +v Zoomber_ibm
05:24:00raptorok falling asleep... good night
05:24:00Zoomber_ibmnooooo
05:27:00Zoomberyou need to watch me enable "quartz gl"
05:27:00raptor?
05:27:00raptoris that an old mac compatibilty option?
05:28:00Zoomberhttp://en.wikipedia.org/wiki/Quartz_(graphics_layer)
05:28:00Zoomberi dont know if that was the right link
05:28:00Zoomberit smooths everything out on a mac, and makes everything all real nice shiny and smooth. Once i enabled it on my acer netbook, it was running as fast as my normal macbook
05:28:00Zoomberi just never did it for my ibm
05:31:00raptorok really falling asleep now...
05:31:00Zoomberok
05:32:00Zoombergood night pal
05:32:00raptornight night
05:32:00raptor*yawn*
05:32:00Zoomberaaand
05:32:00raptor Quit (Remote host closed the connection)
05:41:00Zoomber_ibm Quit (Quit: Zoomber_ibm)
06:00:00Zoomber_ibm has joined
06:00:00Zoomber_ibm Quit (Read error: Connection reset by peer)
06:01:00Zoomber_ibm has joined
06:06:00Zoomber_ibm_ has joined
06:06:00Zoomber_ibm Quit (Read error: Connection reset by peer)
06:06:00Zoomber_ibm_ is now known as Zoomber_ibm
06:09:00Flynnn Quit (Quit: This computer has gone to sleep)
06:16:00koda has joined
06:17:00Zoomberhi koda
06:20:00kodahey Zoomber
06:20:00Zoomberkoda i dont see you on bitfighter much!
06:25:00Zoomber Quit (Quit: Zoomber)
06:25:00Zoomber_ibm Quit (Read error: Operation timed out)
06:27:00Flynnn has joined
06:38:00koda Quit (Quit: koda)
07:13:00kodax has joined
07:26:00Flynnn Quit (Quit: This computer has gone to sleep)
07:36:00Flynnn has joined
07:43:00Flynnn Quit (Ping timeout: 255 seconds)
12:12:00watusimoto has joined
12:12:00ChanServ sets mode +o watusimoto
12:13:00watusimotohello
14:05:00watusimoto Quit (Ping timeout: 260 seconds)
14:05:00raptor has joined
14:05:00ChanServ sets mode +o raptor
14:05:00raptorgood morning!
14:19:00Pointblank Quit (*.net *.split)
14:24:00Pointblank has joined
14:32:00watusimoto has joined
14:32:00ChanServ sets mode +o watusimoto
14:39:00raptorhello
14:39:00raptorwatusimoto: We have a minor problem
14:40:00raptorI got the pseudo full-screen mode to work in linux, but that is because linux defaults new windows to 0,0
14:40:00raptorfor other OSes I will need to properly set the window position
14:41:00raptorto do so, I need to write a platform-specific way to set the position
14:41:00raptorhowever, I ran into a snag on linux systems: X.h uses has the member 'KeyCode'
14:42:00raptorso we need to rename our enum, or add a namespace to it...
14:42:00raptorif we want to set the window position on linux
14:53:00watusimoto Quit (Ping timeout: 258 seconds)
15:05:00sam686 Quit (Ping timeout: 258 seconds)
15:05:00sam686 has joined
15:05:00ChanServ sets mode +v sam686
15:24:00sam686 Quit (Ping timeout: 258 seconds)
15:24:00sam686 has joined
15:24:00ChanServ sets mode +v sam686
15:50:00watusimoto has joined
15:50:00ChanServ sets mode +o watusimoto
15:50:00watusimotoabout your keycode message
15:51:00watusimotoI must leave in a minute, but I think either solution (rename or namespaces) would work
15:51:00raptorargh!
15:51:00raptorno way to set mac position
15:51:00watusimotowe have discussed using namespaces to help corral our enums before...
15:51:00watusimotowhat do you mean?
15:52:00raptorSDL has methods to grab window information
15:52:00raptorbut not for mac
15:52:00raptoronly windows/linux
15:52:00raptorI may have to steal code from SDL 1.3
15:53:00watusimotoreally?
15:53:00raptorso it looks l ike GLUT used its own window structure
15:53:00raptorSDL 1.3 does too
15:53:00raptorbut not 1.2
15:53:00raptorthis is slightly maddening...
15:54:00raptorSDL does so much
15:54:00raptorbut not enough
15:54:00watusimotowe are using 1.3?
15:54:00raptorno, 1.2
15:54:00watusimotocould we upgrade?
15:54:00raptor1.3 is still in heavy development
15:54:00watusimotoah, I see
15:54:00raptorAPI changes are still expected...
15:54:00watusimotobut.. if we build against a current snapshot...
15:56:00raptorthen we have to include the source in our repo, and build the library into the binary...
15:56:00raptorerrr... at least on linux we'd have to build the library statically into the library
15:57:00raptorit could be framework/DLL on mac/windows like normal
15:57:00watusimotothere is also gamemode.c in the freeglut source
15:57:00watusimotonot sure if that would be helpful
15:57:00watusimotoskimming it now
15:58:00raptorsadly my source only has X11 code in it...
15:58:00raptordoes GLUT use X11 on Mac?
15:58:00watusimotoit looks like it
15:59:00raptorwell in that case, I can use X11 on mac to get window position for SDL 1.2
15:59:00watusimotobut does sdl use x11 on mac?
15:59:00raptordoes that mean bitfighter on Mac always needed the X11 libraries installed?
15:59:00watusimotoI *think* so, but not really sure, as I've never been involved with the mac development
15:59:00raptorand does Mac install them by default?
16:00:00raptorok
16:00:00watusimotoI don't know
16:01:00raptorhmmm
16:01:00raptorbecause if Mac always require X11, then I may have a chance to figure this out...
16:01:00watusimotofreeglut has ifdefs for x11 and windows, nothing else
16:02:00raptorSDL does too
16:02:00raptor(and freebsd)
16:02:00watusimotoI have to get out before they lock me in
16:02:00raptorok, later
16:02:00watusimotomaybe on later if I have a signal
16:02:00raptorok
16:02:00watusimotociao
16:07:00watusimoto Quit (Ping timeout: 258 seconds)
16:09:00sam686why is setting windows position so difficult?
16:10:00raptorbecause SDL never abstracted the functionality like GLUT did
16:10:00raptorSDL 1.2
16:10:00raptor1.3 does, though
16:11:00sam686so, is it possible to set and get window position?
16:12:00raptori think so, but it requires some elbow grease
16:13:00sam686Not sure if possible to combine GLUT window handling and SDL input handling..
16:15:00raptorsure it is - but then we have to include GLUT libraries as well
16:15:00raptorand lots of reverting...
16:15:00raptorI need to talk to a Mac guy...
16:15:00sam686SDL works... except window positioning?
16:15:00raptorcorrect
16:16:00raptorSDL 1.2, that is
16:16:00raptorbrb
16:22:00raptorback
16:30:00raptorI think I'll solve it...
16:37:00kodax Quit (Ping timeout: 260 seconds)
16:40:00kodax has joined
16:45:00raptorhi kodax
16:45:00kodaxhi o/
16:46:00raptorkodax: question for you
16:46:00raptordoes SDL use X11 for the window manager on Mac?
16:47:00raptorsam686: are you willing to test really, really ugly code for window positioning on windows?
16:47:00sam686ok
16:48:00raptorI have no idea if this will work...
16:48:00raptoralmost done...
16:54:00kodax Quit (Quit: Sto andando via)
16:54:00watusimoto has joined
16:54:00raptorok sam686, i think there are multiple problems with this, but maybe you can tinker a bit:
16:56:00raptorthis won't even compile on linux: http://208.107.52.15/upload/fake_fullscreen_window_positioning.diff
16:58:00sam686ok, will test that patch..
17:00:00sam686c:\program files\bitfighter\hg016\zap\main.cpp(867) : error C2675: unary '!' : 'SDL_SysWMinfo' does not define this operator or a conversion to a type acceptable to the predefined operator
17:01:00raptoroops
17:01:00raptorok fix:
17:02:00raptormove line 864: SDL_GetWMInfo(&windowManagerInfo);
17:02:00raptorinto the if statement so it's like this:
17:02:00raptorif(!SDL_GetWMInfo(&windowManagerInfo))
17:03:00sam686ok, now it compiles, testing..
17:03:00raptorI coded it completely blind
17:03:00raptorI have no idea if I chose the right functions or values...
17:04:00sam686bitfighter runs, bitfighter window border appear, then disappears and stays hidden
17:05:00sam686stupid window size was like zero or negative causing window to not see
17:05:00raptoroops
17:06:00raptordid i get SetWindowPos() wrong?
17:06:00raptormaybe 2 of those last three zeros should be values...
17:06:00sam686i have to right click taskbar "Bitfighter" select size, then press right down to size it right
17:06:00raptorhaha
17:09:00sam686this does work ok: SetWindowPos(windowManagerInfo.window, HWND_TOP, left, top, 640, 480, 0);
17:09:00raptorhmmm... ok
17:09:00sam686setting the width and height to that number..
17:10:00raptordoes fullscreen work?
17:11:00raptormaybe i need to set the window position before calling SDL_SetVideoMode
17:11:00raptorok, well - i need to get back to work now; i just wanted a quick test
17:11:00sam686maybe i can try SetWindowPos(windowManagerInfo.window, HWND_TOP, left, top, 0, 0, SWP_NOSIZE);
17:11:00raptorthanks
17:11:00raptorsure
17:12:00raptorthat's a really good idea
17:12:00sam686except, now i accidently chose "Rebuild" instead of "Build"... will take a while to compile
17:14:00sam686ok... it compiles, and works with SWP_NOSIZE
17:15:00raptoryay!
17:15:00raptoreven fake full screen?
17:16:00sam686what seem to be annoying with ALT+ENTER is having to press alt+enter 2 times to go from fullscreen to window, on my 4:3 monitor
17:16:00raptoryes - watusimoto made that change to Event.cpp some time ago, I think...
17:16:00raptorlet me find it
17:16:00sam686where fullscreen stretch and fullscreen not stretch don't make a difference on 4:3 monitor
17:17:00sam686i think that alt+enter twice problem happens in version 015 as well
17:18:00raptorhuh
17:18:00raptorthen that may be a different problem i'm thinking
17:18:00raptoryou have to let go of the ALT key now
17:18:00raptorbefore using it again
17:19:00sam686015 was easier, as hold ALT, then press enter twice while holding ALT
17:19:00raptoryes, let me find the diff
17:20:00raptorsee Event::onKeyDown
17:21:00raptorhe added a comment at the top as to why he changed it
17:21:00raptororiginallly, it was checking against the SDL_Mod
17:21:00watusimoto Quit (Ping timeout: 248 seconds)
17:22:00sam686is there a way to fix both problems?
17:22:00raptori don't know - i haven't spent time on it - I never had that problem on linux
17:24:00sam686problem right now for me is, hold down ALT, press enter, now it thinks i am not holding down ALT, making me have to release alt, then press ALt again, to do alt+enter
17:24:00raptoryep, i have that problem, too
17:25:00raptorso he fixed one problem that was not a problem on linux and introduced another that is a problem on all platforms
17:25:00sam686how should we fix that, without causing another problem?
17:26:00raptorcould try using getKeyState() on the first key, too?
17:26:00raptorbut might make it worse...
17:27:00sam686getKeyState(KEY_ALT) - if it thinks that is false, when i am still holding down ALT after alt+enter?
17:30:00raptorit could be a problem with getKeyState
17:36:00sam686why is it sending a KEY_ALT key up event while i am holding down ALT after pressing Alt+Enter?
17:37:00raptorit shouldn't be
17:38:00sam686here is the trace of sending key up:
17:38:00sam686Zap::setKeyState(Zap::KeyCode keyCode=KEY_ALT, bool state=false) Line 105 Zap::Event::keyCodeUp(Zap::KeyCode keyCode=KEY_ALT) Line 138 + 0xb bytes Zap::Event::onKeyUp(SDLKey key=SDLK_RALT, SDLMod mod=KMOD_NUM, unsigned short unicode=0x0000) Line 315 + 0x12 bytes Zap::Event::onEvent(Zap::ClientGame * game=0x01c4dc68, SDL_Event * event=0x0012fc44) Line 163 + 0x1b bytes Zap::idle() Line 576 + 0x
17:39:00raptorweird
17:39:00raptorwatusimoto wrote new getKetState() methods for modifiers
18:02:00raptorI have to change KeyCode into another name
18:03:00raptorI'm thinking 'InputCode'
18:25:00sam686|2 has joined
18:25:00sam686 Quit (Disconnected by services)
18:25:00sam686|2 is now known as sam686
18:25:00ChanServ sets mode +v sam686
19:05:00karamazovapy Quit (Ping timeout: 248 seconds)
19:43:00raptordo i need to lock the 'late at night thread' now?
20:08:00Flynnn has joined
21:00:00koda has joined
21:04:00sam686 Quit (Ping timeout: 258 seconds)
21:04:00sam686 has joined
21:04:00ChanServ sets mode +v sam686
22:47:00Flynnn Quit (Ping timeout: 240 seconds)
22:49:00Flynnn has joined
22:52:00raptor Quit (Remote host closed the connection)

Index Search ←Prev date Next date→

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