00:06:00 | sam686 | version and protocol history: http://208.107.52.15/bitfighter/version.txt |
00:07:00 | raptor | oh wow, bitfighter buld 010 is protocol 15 - that means that they might be running the opentnl demo |
00:08:00 | sam686 | or is it that we just don't have hg history of whatSVN have? |
00:09:00 | raptor | oh no.. it was actually changed in rev 5 |
00:09:00 | raptor | so they are running bitfighter |
00:09:00 | raptor | no, we have svn history |
00:09:00 | sam686 | if you look at BUILD_VERSION, it might have been using SVN number earliear |
00:09:00 | raptor | i made that long and painful conversion |
00:11:00 | sam686 | also, there might be 013e that went off to a seperate branch in SVN |
00:11:00 | raptor | yes, there was a lot of clean-up |
00:12:00 | raptor | one was cutting the branches that went off into nowhere's land |
00:12:00 | raptor | there were tons of branches... watusimoto even said it was getting out of hand |
00:13:00 | raptor | so I converted only the branch that went directly to 013e |
00:17:00 | sam686 | i guess it only go as far as 274, before that, i don't see any of CS_PROTOCOL_VERSION in game.h |
00:22:00 | sam686 | now i found more history protocol before 10 http://zap.svn.sourceforge.net/viewvc/zap/Zap/zap/game.h?view=log&pathrev=255 |
00:22:00 | raptor | looks like I have to write a cross-platform interface to set the window position... |
00:25:00 | raptor | oh wow |
00:25:00 | raptor | from the zap project |
00:26:00 | sam686 | i still see "Bitfighter" in ZAP_GAME_RELEASE |
00:26:00 | raptor | wait wait wait... |
00:29:00 | raptor | Ok, I have the original SVN archive... |
00:29:00 | raptor | weird |
00:30:00 | raptor | i know what happened |
00:30:00 | raptor | he made a branch, worked in the branch a bunch then moved it into trunk |
00:31:00 | | Zoomber has joined |
00:31:00 | | ChanServ sets mode +v Zoomber |
00:32:00 | raptor | no he didn't move it to trunk |
00:32:00 | raptor | he copied it - that was the problem |
00:32:00 | raptor | had he moved it to trunk, then we would have the history |
00:38:00 | Zoomber | hi |
00:38:00 | Zoomber | raptor |
00:38:00 | raptor | hi |
00:48:00 | raptor | sam686: I have another diff for you to test if you are still around |
00:48:00 | sam686 | ok |
00:48:00 | raptor | http://208.107.52.15/upload/fake_fullscreen2.diff |
00:49:00 | raptor | please tell me if that sets the window properly |
00:49:00 | Zoomber | for petes sake raptor |
00:49:00 | raptor | ? |
00:49:00 | Zoomber | sam686.maxhushahn.com/upload/fake_fullscreen2.diff |
00:49:00 | raptor | ? |
00:49:00 | Zoomber | http://member:sam686.maxhushahn.com/upload/fake_fullscreen2.diff |
00:50:00 | Zoomber | click it |
00:50:00 | sam686 | you forgot the http:// part |
00:50:00 | Zoomber | i did? |
00:50:00 | raptor | spurious 'member:' in that link, too |
00:50:00 | sam686 | yes, then later no for a working http ling |
00:51:00 | sam686 | http:/ / member: ... don't work |
00:52:00 | sam686 | you (Zoomber) forgot http:// then added unneeded member: |
00:53:00 | Zoomber | oh |
00:53:00 | Zoomber | thats because when i copied what i typed in the last post |
00:53:00 | Zoomber | it recognized the "sam686" part |
00:53:00 | Zoomber | and put in Member before it |
00:53:00 | Zoomber | being, i have fiat-themed colloquy irc window |
00:55:00 | sam686 | raptor 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:00 | | raptor Quit (Ping timeout: 252 seconds) |
00:58:00 | | raptor has joined |
00:58:00 | | ChanServ sets mode +o raptor |
00:59:00 | raptor | wireless went out... |
00:59:00 | Zoomber | ah |
00:59:00 | raptor | ok sam686, did full screen work? |
00:59:00 | sam686 | yes, now the window mode problem appears. http://208.107.52.15/bitfighter/window_mode_problem.png |
00:59:00 | sam686 | goes to top left of screen, basically |
01:00:00 | raptor | ok |
01:00:00 | Zoomber | i like how it puts a "crown" next to raptor's name |
01:00:00 | Zoomber | in irc |
01:00:00 | | Zoomber Quit (Quit: Zoomber) |
01:00:00 | raptor | but fullscreen covers the whole monitor? |
01:00:00 | sam686 | yes |
01:00:00 | raptor | excellent! |
01:01:00 | raptor | ok at least i'm sort of on the right track... |
01:01:00 | raptor | let's try one thing for windowed... |
01:01:00 | raptor | i'll get you a patch in just a bit |
01:08:00 | raptor | ok, this isn't working... |
01:09:00 | raptor | i might have to write a cross-platform way to set the window position... |
04:35:00 | | Zoomber has joined |
04:35:00 | | ChanServ sets mode +v Zoomber |
04:35:00 | Zoomber | hey raptor, you still around? |
04:43:00 | Zoomber | raptor, please be there |
04:43:00 | Zoomber | or karamazovapy |
04:43:00 | Zoomber | even sam686? |
04:43:00 | Zoomber | is everyone gone? |
04:44:00 | Zoomber | l |
04:44:00 | Zoomber | [ |
04:45:00 | Zoomber | ok, i see how it is |
04:45:00 | Zoomber | waste network bandwidth |
04:45:00 | Zoomber | so my provider will now have to place a bandwidth cap on me |
04:45:00 | Zoomber | thanks guys |
04:47:00 | Zoomber | raptor karamazovapy sam686 BFLogbot Flynnn karamazovapy Pointblank http://gigaom.com/video/att-bandwidth-cap-netflix/ |
04:56:00 | raptor | hi |
04:59:00 | Zoomber | hi raptor |
05:00:00 | raptor | hi |
05:02:00 | Zoomber | i brought my ibm back up from the graveyard and running it again |
05:02:00 | Zoomber | i was sick and tired of dual monitoring on mac |
05:02:00 | Zoomber | apple thinks they're cool having no menubar/dock on the other screen...Theyre not |
05:02:00 | raptor | haha |
05:03:00 | raptor | i actually think that is pretty standard on windows, too |
05:03:00 | Zoomber | on windows i think the taskbar is extended, but im not sure, you should ask sam |
05:04:00 | Zoomber | however, if i just bring up my old ibm, now i have two menubar/docks! |
05:04:00 | raptor | it's not by default |
05:11:00 | | Zoomber_ibm has joined |
05:13:00 | | Pointblank Quit (*.net *.split) |
05:14:00 | | Pointblank has joined |
05:14:00 | Zoomber_ibm | oh no raptor! |
05:14:00 | Zoomber | my poor bot got split! |
05:14:00 | Zoomber | terrible news raptor, I just found out that I am actually already under a bandwidth cap agreement |
05:15:00 | raptor | wonderful |
05:15:00 | Zoomber | right? |
05:15:00 | Zoomber | sam 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:00 | raptor | you must live in a big city where the ISPs take advantage? |
05:17:00 | Zoomber | ever heard of at&t? |
05:17:00 | raptor | they're a standard large corporation |
05:18:00 | Zoomber_ibm | ja |
05:18:00 | Zoomber_ibm | and they're taking back |
05:19:00 | Zoomber | aaah, looks like i might be snug-ly grandfathered in...hopefully |
05:19:00 | Zoomber | gonna find out in a second |
05:19:00 | Zoomber | if thats true i have unlliiiiimited bandwidth for now.. |
05:20:00 | | ChanServ sets mode +v Zoomber_ibm |
05:24:00 | raptor | ok falling asleep... good night |
05:24:00 | Zoomber_ibm | nooooo |
05:27:00 | Zoomber | you need to watch me enable "quartz gl" |
05:27:00 | raptor | ? |
05:27:00 | raptor | is that an old mac compatibilty option? |
05:28:00 | Zoomber | http://en.wikipedia.org/wiki/Quartz_(graphics_layer) |
05:28:00 | Zoomber | i dont know if that was the right link |
05:28:00 | Zoomber | it 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:00 | Zoomber | i just never did it for my ibm |
05:31:00 | raptor | ok really falling asleep now... |
05:31:00 | Zoomber | ok |
05:32:00 | Zoomber | good night pal |
05:32:00 | raptor | night night |
05:32:00 | raptor | *yawn* |
05:32:00 | Zoomber | aaand |
05:32:00 | | raptor Quit (Remote host closed the connection) |
05:41:00 | | Zoomber_ibm Quit (Quit: Zoomber_ibm) |
06:00:00 | | Zoomber_ibm has joined |
06:00:00 | | Zoomber_ibm Quit (Read error: Connection reset by peer) |
06:01:00 | | Zoomber_ibm has joined |
06:06:00 | | Zoomber_ibm_ has joined |
06:06:00 | | Zoomber_ibm Quit (Read error: Connection reset by peer) |
06:06:00 | | Zoomber_ibm_ is now known as Zoomber_ibm |
06:09:00 | | Flynnn Quit (Quit: This computer has gone to sleep) |
06:16:00 | | koda has joined |
06:17:00 | Zoomber | hi koda |
06:20:00 | koda | hey Zoomber |
06:20:00 | Zoomber | koda i dont see you on bitfighter much! |
06:25:00 | | Zoomber Quit (Quit: Zoomber) |
06:25:00 | | Zoomber_ibm Quit (Read error: Operation timed out) |
06:27:00 | | Flynnn has joined |
06:38:00 | | koda Quit (Quit: koda) |
07:13:00 | | kodax has joined |
07:26:00 | | Flynnn Quit (Quit: This computer has gone to sleep) |
07:36:00 | | Flynnn has joined |
07:43:00 | | Flynnn Quit (Ping timeout: 255 seconds) |
12:12:00 | | watusimoto has joined |
12:12:00 | | ChanServ sets mode +o watusimoto |
12:13:00 | watusimoto | hello |
14:05:00 | | watusimoto Quit (Ping timeout: 260 seconds) |
14:05:00 | | raptor has joined |
14:05:00 | | ChanServ sets mode +o raptor |
14:05:00 | raptor | good morning! |
14:19:00 | | Pointblank Quit (*.net *.split) |
14:24:00 | | Pointblank has joined |
14:32:00 | | watusimoto has joined |
14:32:00 | | ChanServ sets mode +o watusimoto |
14:39:00 | raptor | hello |
14:39:00 | raptor | watusimoto: We have a minor problem |
14:40:00 | raptor | I got the pseudo full-screen mode to work in linux, but that is because linux defaults new windows to 0,0 |
14:40:00 | raptor | for other OSes I will need to properly set the window position |
14:41:00 | raptor | to do so, I need to write a platform-specific way to set the position |
14:41:00 | raptor | however, I ran into a snag on linux systems: X.h uses has the member 'KeyCode' |
14:42:00 | raptor | so we need to rename our enum, or add a namespace to it... |
14:42:00 | raptor | if we want to set the window position on linux |
14:53:00 | | watusimoto Quit (Ping timeout: 258 seconds) |
15:05:00 | | sam686 Quit (Ping timeout: 258 seconds) |
15:05:00 | | sam686 has joined |
15:05:00 | | ChanServ sets mode +v sam686 |
15:24:00 | | sam686 Quit (Ping timeout: 258 seconds) |
15:24:00 | | sam686 has joined |
15:24:00 | | ChanServ sets mode +v sam686 |
15:50:00 | | watusimoto has joined |
15:50:00 | | ChanServ sets mode +o watusimoto |
15:50:00 | watusimoto | about your keycode message |
15:51:00 | watusimoto | I must leave in a minute, but I think either solution (rename or namespaces) would work |
15:51:00 | raptor | argh! |
15:51:00 | raptor | no way to set mac position |
15:51:00 | watusimoto | we have discussed using namespaces to help corral our enums before... |
15:51:00 | watusimoto | what do you mean? |
15:52:00 | raptor | SDL has methods to grab window information |
15:52:00 | raptor | but not for mac |
15:52:00 | raptor | only windows/linux |
15:52:00 | raptor | I may have to steal code from SDL 1.3 |
15:53:00 | watusimoto | really? |
15:53:00 | raptor | so it looks l ike GLUT used its own window structure |
15:53:00 | raptor | SDL 1.3 does too |
15:53:00 | raptor | but not 1.2 |
15:53:00 | raptor | this is slightly maddening... |
15:54:00 | raptor | SDL does so much |
15:54:00 | raptor | but not enough |
15:54:00 | watusimoto | we are using 1.3? |
15:54:00 | raptor | no, 1.2 |
15:54:00 | watusimoto | could we upgrade? |
15:54:00 | raptor | 1.3 is still in heavy development |
15:54:00 | watusimoto | ah, I see |
15:54:00 | raptor | API changes are still expected... |
15:54:00 | watusimoto | but.. if we build against a current snapshot... |
15:56:00 | raptor | then we have to include the source in our repo, and build the library into the binary... |
15:56:00 | raptor | errr... at least on linux we'd have to build the library statically into the library |
15:57:00 | raptor | it could be framework/DLL on mac/windows like normal |
15:57:00 | watusimoto | there is also gamemode.c in the freeglut source |
15:57:00 | watusimoto | not sure if that would be helpful |
15:57:00 | watusimoto | skimming it now |
15:58:00 | raptor | sadly my source only has X11 code in it... |
15:58:00 | raptor | does GLUT use X11 on Mac? |
15:58:00 | watusimoto | it looks like it |
15:59:00 | raptor | well in that case, I can use X11 on mac to get window position for SDL 1.2 |
15:59:00 | watusimoto | but does sdl use x11 on mac? |
15:59:00 | raptor | does that mean bitfighter on Mac always needed the X11 libraries installed? |
15:59:00 | watusimoto | I *think* so, but not really sure, as I've never been involved with the mac development |
15:59:00 | raptor | and does Mac install them by default? |
16:00:00 | raptor | ok |
16:00:00 | watusimoto | I don't know |
16:01:00 | raptor | hmmm |
16:01:00 | raptor | because if Mac always require X11, then I may have a chance to figure this out... |
16:01:00 | watusimoto | freeglut has ifdefs for x11 and windows, nothing else |
16:02:00 | raptor | SDL does too |
16:02:00 | raptor | (and freebsd) |
16:02:00 | watusimoto | I have to get out before they lock me in |
16:02:00 | raptor | ok, later |
16:02:00 | watusimoto | maybe on later if I have a signal |
16:02:00 | raptor | ok |
16:02:00 | watusimoto | ciao |
16:07:00 | | watusimoto Quit (Ping timeout: 258 seconds) |
16:09:00 | sam686 | why is setting windows position so difficult? |
16:10:00 | raptor | because SDL never abstracted the functionality like GLUT did |
16:10:00 | raptor | SDL 1.2 |
16:10:00 | raptor | 1.3 does, though |
16:11:00 | sam686 | so, is it possible to set and get window position? |
16:12:00 | raptor | i think so, but it requires some elbow grease |
16:13:00 | sam686 | Not sure if possible to combine GLUT window handling and SDL input handling.. |
16:15:00 | raptor | sure it is - but then we have to include GLUT libraries as well |
16:15:00 | raptor | and lots of reverting... |
16:15:00 | raptor | I need to talk to a Mac guy... |
16:15:00 | sam686 | SDL works... except window positioning? |
16:15:00 | raptor | correct |
16:16:00 | raptor | SDL 1.2, that is |
16:16:00 | raptor | brb |
16:22:00 | raptor | back |
16:30:00 | raptor | I think I'll solve it... |
16:37:00 | | kodax Quit (Ping timeout: 260 seconds) |
16:40:00 | | kodax has joined |
16:45:00 | raptor | hi kodax |
16:45:00 | kodax | hi o/ |
16:46:00 | raptor | kodax: question for you |
16:46:00 | raptor | does SDL use X11 for the window manager on Mac? |
16:47:00 | raptor | sam686: are you willing to test really, really ugly code for window positioning on windows? |
16:47:00 | sam686 | ok |
16:48:00 | raptor | I have no idea if this will work... |
16:48:00 | raptor | almost done... |
16:54:00 | | kodax Quit (Quit: Sto andando via) |
16:54:00 | | watusimoto has joined |
16:54:00 | raptor | ok sam686, i think there are multiple problems with this, but maybe you can tinker a bit: |
16:56:00 | raptor | this won't even compile on linux: http://208.107.52.15/upload/fake_fullscreen_window_positioning.diff |
16:58:00 | sam686 | ok, will test that patch.. |
17:00:00 | sam686 | c:\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:00 | raptor | oops |
17:01:00 | raptor | ok fix: |
17:02:00 | raptor | move line 864: SDL_GetWMInfo(&windowManagerInfo); |
17:02:00 | raptor | into the if statement so it's like this: |
17:02:00 | raptor | if(!SDL_GetWMInfo(&windowManagerInfo)) |
17:03:00 | sam686 | ok, now it compiles, testing.. |
17:03:00 | raptor | I coded it completely blind |
17:03:00 | raptor | I have no idea if I chose the right functions or values... |
17:04:00 | sam686 | bitfighter runs, bitfighter window border appear, then disappears and stays hidden |
17:05:00 | sam686 | stupid window size was like zero or negative causing window to not see |
17:05:00 | raptor | oops |
17:06:00 | raptor | did i get SetWindowPos() wrong? |
17:06:00 | raptor | maybe 2 of those last three zeros should be values... |
17:06:00 | sam686 | i have to right click taskbar "Bitfighter" select size, then press right down to size it right |
17:06:00 | raptor | haha |
17:09:00 | sam686 | this does work ok: SetWindowPos(windowManagerInfo.window, HWND_TOP, left, top, 640, 480, 0); |
17:09:00 | raptor | hmmm... ok |
17:09:00 | sam686 | setting the width and height to that number.. |
17:10:00 | raptor | does fullscreen work? |
17:11:00 | raptor | maybe i need to set the window position before calling SDL_SetVideoMode |
17:11:00 | raptor | ok, well - i need to get back to work now; i just wanted a quick test |
17:11:00 | sam686 | maybe i can try SetWindowPos(windowManagerInfo.window, HWND_TOP, left, top, 0, 0, SWP_NOSIZE); |
17:11:00 | raptor | thanks |
17:11:00 | raptor | sure |
17:12:00 | raptor | that's a really good idea |
17:12:00 | sam686 | except, now i accidently chose "Rebuild" instead of "Build"... will take a while to compile |
17:14:00 | sam686 | ok... it compiles, and works with SWP_NOSIZE |
17:15:00 | raptor | yay! |
17:15:00 | raptor | even fake full screen? |
17:16:00 | sam686 | what 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:00 | raptor | yes - watusimoto made that change to Event.cpp some time ago, I think... |
17:16:00 | raptor | let me find it |
17:16:00 | sam686 | where fullscreen stretch and fullscreen not stretch don't make a difference on 4:3 monitor |
17:17:00 | sam686 | i think that alt+enter twice problem happens in version 015 as well |
17:18:00 | raptor | huh |
17:18:00 | raptor | then that may be a different problem i'm thinking |
17:18:00 | raptor | you have to let go of the ALT key now |
17:18:00 | raptor | before using it again |
17:19:00 | sam686 | 015 was easier, as hold ALT, then press enter twice while holding ALT |
17:19:00 | raptor | yes, let me find the diff |
17:20:00 | raptor | see Event::onKeyDown |
17:21:00 | raptor | he added a comment at the top as to why he changed it |
17:21:00 | raptor | originallly, it was checking against the SDL_Mod |
17:21:00 | | watusimoto Quit (Ping timeout: 248 seconds) |
17:22:00 | sam686 | is there a way to fix both problems? |
17:22:00 | raptor | i don't know - i haven't spent time on it - I never had that problem on linux |
17:24:00 | sam686 | problem 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:00 | raptor | yep, i have that problem, too |
17:25:00 | raptor | so he fixed one problem that was not a problem on linux and introduced another that is a problem on all platforms |
17:25:00 | sam686 | how should we fix that, without causing another problem? |
17:26:00 | raptor | could try using getKeyState() on the first key, too? |
17:26:00 | raptor | but might make it worse... |
17:27:00 | sam686 | getKeyState(KEY_ALT) - if it thinks that is false, when i am still holding down ALT after alt+enter? |
17:30:00 | raptor | it could be a problem with getKeyState |
17:36:00 | sam686 | why is it sending a KEY_ALT key up event while i am holding down ALT after pressing Alt+Enter? |
17:37:00 | raptor | it shouldn't be |
17:38:00 | sam686 | here is the trace of sending key up: |
17:38:00 | sam686 | Zap::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:00 | raptor | weird |
17:39:00 | raptor | watusimoto wrote new getKetState() methods for modifiers |
18:02:00 | raptor | I have to change KeyCode into another name |
18:03:00 | raptor | I'm thinking 'InputCode' |
18:25:00 | | sam686|2 has joined |
18:25:00 | | sam686 Quit (Disconnected by services) |
18:25:00 | | sam686|2 is now known as sam686 |
18:25:00 | | ChanServ sets mode +v sam686 |
19:05:00 | | karamazovapy Quit (Ping timeout: 248 seconds) |
19:43:00 | raptor | do i need to lock the 'late at night thread' now? |
20:08:00 | | Flynnn has joined |
21:00:00 | | koda has joined |
21:04:00 | | sam686 Quit (Ping timeout: 258 seconds) |
21:04:00 | | sam686 has joined |
21:04:00 | | ChanServ sets mode +v sam686 |
22:47:00 | | Flynnn Quit (Ping timeout: 240 seconds) |
22:49:00 | | Flynnn has joined |
22:52:00 | | raptor Quit (Remote host closed the connection) |