#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2013-12-12

Timestamps are in GMT/BST.

00:02:46kaenraptor, how do I restart the pleiades server?
00:02:51kaenI believe I've fixed the php script
00:03:12kaensomething like put a neutral ship onto a levelgen'd zone?
00:03:19kaen}:)
00:04:28raptorheh
00:04:37raptorjoin and i'll tell you
00:08:44kaenthat was a strange experience
00:09:17kaenI modified someones else's PHP script directly on a production server, and it executed correctly the first time, and worked the first time I tested it
00:12:53raptor_ has joined
00:12:54raptor Quit (Disconnected by services)
00:12:56raptor_ is now known as raptor
00:12:57raptor Quit (Changing host)
00:12:58raptor has joined
00:12:58ChanServ sets mode +o
00:14:51kaen Quit (Ping timeout: 246 seconds)
00:22:11kaen has joined
00:22:11kaen Quit (Changing host)
00:22:11kaen has joined
00:22:18kumul has joined
00:22:45raptorkaen: the weird thing about that script - it compiled and ran the first time after I wrote it
00:22:57raptorit's like it's cursed or something...
00:26:42kaenit's obviously broken
00:26:50kaenas evidenced by the fact that it works.
00:27:01vs73nxI'm getting errors about how keys like KEY_CTRL_SHIFT_L or KEY_CTRL_Z are not defined... do i need to define there keys in a header or is there a smart way to handle this?
00:28:25kaenhow are you using them in code, vs73nx ?
00:28:41fordcars_pi has joined
00:28:56kaenif you're checking whether they're pressed, do something like: checkKey(KEY_CTRL) && checkKey(KEY_Z)
00:29:09kaen(I'm not familiar with the specific function names)
00:29:10fordcars_piHi
00:29:15kaenhello fordcars_pi
00:29:30kaenwat says he fixed your 019 bugs
00:30:16vs73nxhi fordcars_pi
00:30:19vs73nxkaen; in the binding table here ' http://pastie.org/8546063 '
00:30:27fordcars_piReally? Awesome!
00:31:18Nothing_MuchHello again
00:31:28vs73nxhi
00:31:56kaenhmm.
00:32:05kaenwell, you have sort of an architectural problem here
00:32:25fordcars_piHi
00:32:25Nothing_MuchThe RPi isn't Armhf, it's only armel
00:33:11Nothing_MuchHi fordcars_pi
00:33:41kaenrather than defining all of those keybindings, I'd prefer it to specify groups of keys, and check that they're all pressed before firing the binding
00:33:56kaendefining all of those KEY_s, I mean
00:34:16kaensemantically, those relate to keys on the keyboard, not groups or bindings or anything like that.
00:34:31kaenhave you looked at using input strings instead?
00:34:31fordcars_piNothing_Much, the Raspbery Pi is armhf
00:34:46fordcars_pi:)
00:34:49vs73nxkaen: but i don't know how to handle modifier keys with the new settings system *bindings
00:34:52Nothing_MuchYou sure about that fordcars_pi?
00:34:56fordcars_piYep
00:34:57kaenthere's a mechanism for checking against a string like "Shift+Ctrl+Z"
00:35:04fordcars_pihttps://blogs.oracle.com/jtc/entry/is_it_armhf_or_armel
00:35:34fordcars_piI think it was armel before though
00:35:38Nothing_Muchfordcars_pi: try dpkg --print-architecture
00:36:16fordcars_piarmhf Haha
00:36:22fordcars_piI win :)
00:36:29Nothing_MuchLol :(
00:41:33fordcars_piOk building from latest source, whish me luck!
00:42:06Nothing_Muchg'luck!
00:42:11fordcars_piThanks!
01:00:57kumul Quit (Quit: Leaving)
01:03:23kumul has joined
01:08:34fordcars_piDone!
01:08:44fordcars_piGoing to command line, brb
01:08:46fordcars_pi Quit (Quit: Lost terminal)
01:08:55vs73nxfound the function to handle modifiers! it is checkModifier(InputCode mod1)
01:11:54kaenoh good
01:12:25kaen!bugs
01:12:25BFLogBotTo enter a bug: http://tinyurl.com/bfnewbug -- To view all bugs: http://tinyurl.com/bfbugs
01:27:47fordcars_pi has joined
01:27:54fordcars_piI stil get the black screen :(
01:28:19raptoryes, that is still a problem
01:28:33raptori think watusimoto meant any bugs you mentioned on the forums
01:30:07vs73nxshould thhere be one binding for all the spin object actions (r) and have locked modifiers or bindable modifiers?
01:30:33kaenbindable modifiers, preferably
01:31:11raptorbindable
01:31:27fordcars_piahh ok
01:32:10vs73nxthat would be a lot harderok then got any pointers on how i could do bindable modifiers?
01:32:17vs73nx*harder
01:34:11raptorfrom the INI a string would look like this: RotateAction=Ctrl+Shift+R
01:34:20raptorthen you parse that string into a key combo
01:34:42vs73nxtou know ehere the parsing occours?
01:34:46vs73nx*where
01:35:57raptorstring inputString = InputCodeManager::getCurrentInputString(inputCode);
01:35:58raptorlook at this method in UIEditor.cpp: bool EditorUserInterface::onKeyDown(InputCode inputCode)
01:35:58raptoryou'll see how it is used
01:36:25vs73nxok then thanks
01:39:28raptorsearch for that method
01:39:57raptorthat method is basically the editor handler for a key press
01:39:58raptor Quit (Remote host closed the connection)
01:40:38vs73nxoh... i think i've gone in the completely wrong direction with my code... is this right? ' http://pastebin.com/9B76snX7 '
01:40:54raptor has joined
01:40:54ChanServ sets mode +o
01:41:03raptor has left #bitfighter
01:48:45Kiryx Quit (Ping timeout: 245 seconds)
02:51:11raptor has joined
02:51:11ChanServ sets mode +o
02:53:40Nothing_MuchHi again
02:54:02raptorhi hi
02:57:41vs73nxhi
02:58:13kaenhi
03:02:04vs73nxwhat file is the checkInputCode method?
03:03:11raptorummm.... looking
03:03:38fordcars_piHi
03:03:53vs73nxhi
03:04:37raptorUI.cpp:333
03:04:44raptoror thereabouts
03:06:34vs73nxthanks
03:11:34vs73nxso can you give me some tips on how i can handle modifiers with checkInputCode?
03:15:50vs73nxor not :P
03:16:55raptorsorry, i'm fighting my 3rd-born...
03:17:02raptortake a look at GameUserInterface::onKeyDown
03:17:20vs73nxok then
03:17:21raptorUIGame.cpp:1202
03:17:49raptorthat shows how to use our previous bindings in th main options (like moving a ship)
03:17:55Nothing_Much Quit ()
03:17:58vs73nxthanks
03:18:27Nothing_Much has joined
03:20:12Darrel has joined
03:20:29Darrel[OFF] Quit (Read error: Connection reset by peer)
03:21:46vs73nxit seems that there is no examples in the previous code on how to display modifiers in the ini file for binding...
03:29:13fordcars_piI would suggest to check out InputCodeManager::BINDING_GLOBCHAT and others
03:31:45raptorlet me see...
03:32:13fordcars_piohh modifiers
03:33:24Nothing_Much_ has joined
03:33:39Nothing_Much Quit (Read error: Connection reset by peer)
03:35:07Nothing_Much_ is now known as Nothing_Much
03:38:28raptorvs73nx: still looking...
03:38:45kaenguess what: all the zones inherit from Zone
03:38:49kaenexcept for SlipZone!
03:38:55raptorwoot!
03:39:21kaenI'm about to change that with this commit
03:39:30kaenfixing the zone point count issue
03:40:02raptorvs73nx: found it
03:40:13raptorkaen: does that mean increasing the limit?
03:40:32raptorvs73nx: look at InputCode.cpp:191
03:40:48raptorthat returns a string from an inputcode + modifiers
03:40:53raptoryou can use that to save to INI
03:41:03kaenyes.
03:41:14kaenthe only limit is in processArguments
03:41:27kaenI just switched from a char** to Vector<char*>
03:41:42raptorwait what!?
03:41:58raptorwait wait....
03:42:09raptordoesn't really large barriers work?
03:42:11raptoralready, I mean
03:42:37raptoralso, there was an actual 62 (63?) limit when I tested levelgen changing zone sizes...
03:43:24kaenhmm, I didn't check that case. So far I've got all the zone types in the editor with 256 points
03:43:30kaenI'll check levelgens too
03:43:53raptorthe isse was a large zone on a server - it kept sending TNL packet size asserts
03:44:44kaenAssert: Packet too big to send in /home/kaen/code/bitfighter-hg/tnl/ghostConnection.cpp line 381
03:44:47kaenlike that? :)
03:44:51raptoryes
03:44:54raptorexactly
03:45:07kaenjust got it when I tried testing the level
03:45:31kaenI need to change the classes to transmit geometry through an RPC with sam's BigData flag
03:45:45kaenjust too darn big for a packUpdate
03:47:26kaenah, good
03:47:37kaennone of them call their inherited packUpdate methods
03:47:39kaenwhy would they
03:47:45kaenit's not like they need to share any logic
03:48:13vs73nxraptor: thanks for the help
03:48:14kaenexcept for, you know, almost all of the logic.
03:48:26raptorheh
03:48:41vs73nxi was too busy making an ios app
03:49:04vs73nx likes to multi task
03:49:36fordcars_piYOu know ObjectiveC?
03:49:41vs73nxyes
03:49:46raptorI think sam686 has been idling for a full day now in-game...
03:49:48fordcars_piCool
03:49:56fordcars_piHaha
03:50:11fordcars_piFell asleep on his keyboard
03:50:17raptoroh! I need to take down the stupid server
03:50:24vs73nxhaha
03:51:18Nothing_Muchfordcars_pi: any luck?
03:51:39vs73nxfordcars_pi: im actually making an ios app so i can buy another nexus 5 (my last one was stolen)
03:51:58fordcars_piNah, turns out Wat only repaired other bugs posted on forums
03:52:01fordcars_pivs73nx: Cool!
03:52:02vs73nxi got it at launch too *grumble
03:52:23vs73nxmight get it done in the school holidays
03:52:27Nothing_Muchvs73nx: oh that sucks dude :(
03:52:29fordcars_piWhat are you making? A game?
03:52:54vs73nxnup just an alarm app... anything to get me $450
03:53:03fordcars_piHehe :P
03:53:12kaennah, games are for the birds
03:53:12raptorah ha! I knew it! I knew that's how iOS devs think...
03:53:21kaenlarge time investment, high risk
03:53:26vs73nxit would be free and open source but people would donate
03:53:33kaeneven an alarm app is dangerously legitimately useful
03:53:39kaenyou need to be gunning for fart apps
03:53:47raptorhahaha
03:53:48fordcars_piHaha
03:53:50vs73nxi was actually working on an android game before it was stolen
03:53:55vs73nx*my phone
03:54:13vs73nxkaen: nice idea on the fart app :)
03:54:35fordcars_piThere is actually a lua library to make iOs apps that can actually get accepted by Apple
03:54:45fordcars_pibobdaduck^^
03:54:57Nothing_Muchooo a Nexus 5? :O
03:55:05vs73nxi have no experience at lua... only c style languages
03:55:15Nothing_MuchAren't those the phones that are so open you can put anything on them?
03:55:20kaenI miss bob :<
03:55:22vs73nxNothing_Much it was a white 32gb one
03:55:22fordcars_piI don't have any of those :) I have an iPod touch 4 only
03:55:26fordcars_piMe too :(
03:55:26kaenfordcars_pi, tell him to come back!
03:55:32fordcars_pi:P
03:55:42fordcars_piWhere is he :O
03:55:54Nothing_MuchHe popped in here a couple of days ago
03:55:57kaenI thought you knew :<
03:56:01fordcars_pi:<
03:56:03kaenyeah, he's apparently lurking the logs.
03:56:10Nothing_Muchwut fer?
03:56:12kaenI think he's still mad at me
03:56:18Nothing_Muchwhy?
03:56:20raptorno way... vi can open zip files and edit the internals in-place??
03:56:26kaenwhoa
03:56:28fordcars_piBOBDADUCKBOBDADUCKBOBDADUCKBOBDADUCKBOBDADUCK please come to IRC!
03:56:30kaenhad no idea about that
03:56:30vs73nxcool
03:56:34fordcars_piHe'll see that
03:56:35Nothing_Muchholy crap, vi is hard
03:56:55kaenNothing_Much, I use vim to write bitfighter :)
03:57:01vs73nxvi tip... :q to exit
03:57:09raptoryou mean... vim-infused-sublime?
03:57:12kaenwell, I guess sublime text now
03:57:14kaenheh yeah
03:57:17kaensublime in vi mode
03:57:23vs73nxim an IDE type of person
03:57:28fordcars_piI use Vim to clean my toilet
03:57:33fordcars_piI ain't :P
03:57:44Nothing_Muchkaen: wait, there's a vi and vim?
03:57:48vs73nxyes
03:57:52fordcars_piI am a no-hilight type of person :)
03:57:56raptorvim is vi on crack
03:57:58fordcars_pi*highlight
03:58:07Nothing_Muchlol
03:58:19vs73nxi think vi is in pretty much on any linux system... i think
03:58:25Nothing_Muchkaen: bob still mad about that circle thingy?
03:58:28raptornobody (*few) actually uses vi
03:58:38fordcars_piAhh must be why he is not here often
03:58:43raptoreveryone is really running vim with a soft-link as vi
03:58:48kaenvi (usually a symlink to vim) comes installed in all the distros I've used
03:58:55kaentoo fast for me, raptor :)
03:58:58raptorheh
03:59:00fordcars_piWhat is vi?
03:59:07Nothing_Muchcommand line text editor
03:59:07kaenVIsual editor
03:59:17fordcars_piWow
03:59:19Nothing_Muchwait, that's what it stands for? LOL
03:59:21kaenvim is Vi IMproved
03:59:22vs73nxi tried arch and i configured it to not have vi
03:59:30fordcars_piYep
03:59:34kaenit is visual, relative to its predecessors
03:59:36kaene.g. ed
03:59:42fordcars_piRaspbian has v7.3
03:59:51fordcars_pi*comes with
03:59:51vs73nxactually vi on my system links to vim
03:59:56fordcars_piMe too
03:59:56kaenhttps://en.wikipedia.org/wiki/Ed_(text_editor)#Example
04:00:10Nothing_Muchhmm...
04:00:25Nothing_MuchLooks like Ubuntu Touch will be compatible with apt/dpkg :O
04:00:42fordcars_piHow is vi better than nano?
04:01:00Nothing_Muchfordcars_pi: it's uh..
04:01:03kaenit's not really until you spend an hour or so reading the manual
04:01:05Nothing_Muchadvanced
04:01:08Nothing_Muchyeah that
04:01:10vs73nxfound some good news on ubuntu touch... http://www.omgubuntu.co.uk/2013/12/ubuntu-touch-signs-first-hardware-partner-will-debut-high-end-phone-2014
04:01:17fordcars_piCan open Binaries?
04:01:23Nothing_Muchvs73nx: Hell yeah, I saw that
04:01:26kaenlike, you can select the paragraph surrounding the cursor with v-a-p
04:01:27Nothing_MuchI'm so excited for it
04:01:27Nothing_Much:D
04:01:37vs73nxmight get that instead of N5
04:01:38kaenand run sed commands straight from the editor
04:01:46Nothing_Muchfordcars_pi: Yeah, as far as I know you can use either dpkg or new "click" packages
04:01:46kaenstuff like that. it's just advanced.
04:02:10fordcars_piCrap I just messed uped in vi
04:02:20kaenu is undo
04:02:21fordcars_piNow scrolling makes As and Bs
04:02:23vs73nxdo :q
04:02:23Nothing_MuchI think it'd be nice for BF to be compiled on click, but that'd require having an Ubuntu Touch image or phone, which I WILL be getting as soon as it appears.
04:02:27kaenwhoa
04:02:54fordcars_piWow Vi is really just transforming your mouse into a keyboard hehe
04:03:05vs73nxyeah a phone that can have all my programming stuff is well worth my money :P
04:03:12fordcars_piAndroid?
04:03:12kaen:help vimtutor
04:03:17vs73nxubuntu touch
04:03:23fordcars_piAnd I am recording
04:03:29Nothing_MuchI can't wait for Ubuntu Touch-
04:03:33Nothing_Muchfordcars_pi: what are you doing?
04:03:35fordcars_piFirst time I ever messed uped a text editor
04:03:39fordcars_piI have no idea
04:03:41vs73nx:D
04:03:45kaenhit q to stop recording
04:03:50Nothing_MuchLOL
04:03:55Nothing_MuchYou can record VI?
04:03:55fordcars_piI can't!
04:03:56kaen(it's recording a macro)
04:04:00fordcars_piooh
04:04:05fordcars_piIt just types q
04:04:09fordcars_piI am screwed
04:04:17kaen:q!
04:04:26kaenand try again :)
04:04:26fordcars_piWow
04:04:30kaenthen try
04:04:32kaen:help vimtutor
04:04:38vs73nxi just screwed up ed... cant CTRL-c out of it!
04:04:38kaenit'll get you rolling
04:04:48kaentry ctrl+D, vs73nx
04:04:48Nothing_Muchctrl+Z rthen
04:04:49Nothing_Much*then
04:04:57kaenI think it wants an EOF
04:04:58vs73nxmuch better
04:05:11fordcars_piOk what the
04:05:20fordcars_piI cna't Ctrl-c out
04:05:20vs73nxwell im never touching THAT command again
04:06:10raptoroh kaen, is debian requiring you to package font-stash, too?
04:06:11Nothing_Muchctrl+Z dude
04:06:12Nothing_Muchthen exit
04:06:15fordcars_piKaen, why the :?
04:06:17fordcars_pi:q
04:06:29fordcars_piI am somehow stuck in record again
04:07:01fordcars_piOh wait made it
04:08:20fordcars_piOh sweeet
04:08:27vs73nxwhat?
04:08:43fordcars_piMouse WHeel Click makes other characters
04:08:47fordcars_pi*Wheel
04:09:22kaenthe : enters command mode
04:09:32fordcars_piUh, nope
04:09:59kaenthere's "normal mode" (which it starts in) "insert mode" which is when you're actually editing, and "command mode" for typing in commands
04:10:09kaenyou're probably in insert mode. hit ESC and try again
04:10:21fordcars_piI am still in record mode :3
04:10:30fordcars_piOh got it
04:10:42fordcars_piOh back into record
04:10:45fordcars_piWhat the hell
04:10:50kaenq by itself will end record mode, ESC will take you to normal mode
04:11:06kaenq to end recording only works in normal mode
04:11:13kaenyeah... it's advanced
04:11:20fordcars_piAhhhhhhh I see!
04:11:51fordcars_piUh, does override means to keep the stuff in the buffer or from file?
04:12:10fordcars_piE37: No write since last change (add ! to override)
04:12:22kaendoing :q! will leave the file as it is on-disk
04:12:35fordcars_piTHANKYOU :D
04:12:42kaenheh you bet
04:12:50Nothing_Muchyou havin' fun fordcars_pi?
04:12:52kaenyou're also missing out on some glory
04:13:07fordcars_piHaha yeah :P
04:13:22raptorfordcars_pi: you have bitfighter built (but not working), right?
04:13:27fordcars_piYeah
04:13:35raptorcan you run: ldd bitfighter for me and pastie the output
04:13:38raptoron the executable
04:13:52fordcars_pi-ldd?
04:14:01raptorno, like this: ldd bitfighter
04:14:04fordcars_pioh okok
04:14:09raptorit will spit out all the linked libraries it is linked to
04:14:16raptorplease
04:14:21fordcars_piYep
04:14:29vs73nxldd ./bitfighter in the exe directory
04:14:34kaentry it some time with :syntax on
04:14:35fordcars_piNope
04:14:37vs73nxof the gles build
04:14:39fordcars_pildd bitfighter
04:14:45vs73nxok then
04:14:51vs73nxwhats the paste
04:15:01raptorhttp://pastie.org/
04:15:12vs73nxno the paste you did
04:15:23vs73nxif you did...
04:15:28fordcars_piForgot I need javascript to use pastie
04:15:43vs73nxoh try pastebin then
04:15:53raptorhttp://ix.io
04:15:55Nothing_Muchare you in command line or desktop mode?
04:16:10fordcars_piIt's ok I am using another browser
04:16:13fordcars_piUh desktop
04:16:22Nothing_MuchAh
04:16:26vs73nxnice find raptor
04:16:41raptorkaen actually shoed me that...
04:16:45raptor*showed
04:16:54fordcars_pihttp://pastie.org/8546370#2
04:17:13raptorhuh... ok, it links EGL
04:17:16kaenseriously ix.io is great
04:17:17raptorthanks fordcars_pi
04:17:29kaenexcept that it doesn't have web upload interface last I checked
04:17:33fordcars_piWow sweet
04:17:45kaenbut piping from the shell to a pastebin is so awesome
04:17:58fordcars_piraptor, EGl won't work in Bitfighter for me
04:18:09raptorwhat was the error again?
04:18:22fordcars_piUh
04:18:28raptori'll find it in the logs..
04:18:48raptorEGL_BAD_SCREEN
04:18:55raptorfunny thing - do a google search for that
04:19:06fordcars_pihttp://pastie.org/8546371
04:19:09fordcars_piHere is the full thing
04:19:35fordcars_piHahahaha
04:19:55raptordid the google search?
04:20:02fordcars_piYeah
04:20:07raptorgot zero results?
04:20:11fordcars_piYep
04:20:17raptori mean, when was the last time you got zero results for *anything*
04:20:17fordcars_piBitfighter is unique
04:20:22kaennot much better, but: https://duckduckgo.com/?q=EGL_BAD_SCREEN
04:20:26fordcars_piWhen I searched aiusdghasiulghasiudgasiuydgasiudg
04:20:28kaenhas at least a few hits on the top
04:20:53vs73nx:D
04:21:02raptormaybe it's a global bad word that Google has filtered
04:21:13vs73nxprobably
04:21:28fordcars_piI tried it without the fancy syntax
04:21:35fordcars_piStill nothing revelant found
04:22:33vs73nxfound the libEGL code at ' http://angle-fullscreen.googlecode.com/svn/trunk/src/libEGL/libEGL.cpp ' in the ctor is where it throws EGL_BAD_SCREEN
04:23:50vs73nxlibEGL links to glesv2 but bitfighter links with gles v1
04:23:54vs73nxi think...
04:23:58raptorcan anyone put into simple words the reason for EGL?
04:24:11vs73nx?
04:25:25vs73nxwell in the code it says that it throws EGL_NOT_INITIALIZED if egl::Display *display is not initalized.
04:25:28vs73nxthats all i know
04:25:46Nothing_Muchwell, he's wondering what is EGL and what does it do
04:26:37fordcars_piUh
04:26:45Nothing_Muchhttp://stackoverflow.com/questions/3127360/what-is-egl-and-how-can-i-use-it
04:27:07vs73nxwikipedia link http://en.wikipedia.org/wiki/EGL_%28OpenGL%29
04:27:09Nothing_Muchraptor will that help?
04:27:22vs73nxhope i'm helping
04:27:47kaenhuh... so it's like an API between the display manager and the GL API?
04:27:49raptori've read both - cloudy thoughts in my head are starting to clear up
04:28:05fordcars_piEGL is an interface between Khronos rendering APIs (such as OpenGL ES or OpenVG) and the underlying native platform windowing system
04:28:16vs73nxits kinda a replacement of glx
04:28:19raptorseems like it's a one API to rule them all for the various khronos open standards...
04:28:33fordcars_piI still get a black screen in command line, nothing that has to do with windows
04:28:53fordcars_pi*As in Windows in Desktop
04:28:56kaenwell, the article mentions WGL for windows and CGL for mac, and GLX for linux
04:29:13kaenso it sounds like the equivalent of that, originally intended for embedded systems
04:29:22kaenjust the OS-specific GL adapter
04:29:24fordcars_piAh is EGL supposed to make the usage of Windows etc easier across platforms?
04:29:36raptorhmmm... maybe that's the issue - SDL is not generating an appropriate surface through EGL on GLES devices...
04:29:51vs73nxthat would be my guess
04:29:59raptornow to find how to make it 'appropriate'
04:30:14kaen"All problems in computer science can be solved by another level of indirection"
04:30:24raptorjava!
04:30:33kaenhehe
04:30:44Nothing_Muchjava isn't that bad of a language, is it?
04:30:56kaenI think you're onto something, raptor
04:31:04raptorfordcars_pi: when you compiled SDL2, was EGL enabled?
04:31:09fordcars_pihttp://www.khronos.org/message_boards/showthread.php/5580-EGL-and-SDL-Context-Creation
04:31:10raptorlike
04:31:12fordcars_piYes it was
04:31:13fordcars_piI think
04:31:17fordcars_piI have no idea
04:31:20Nothing_Muchlol
04:31:23fordcars_piHaha
04:31:24vs73nxid try again
04:31:31Nothing_MuchCompile SDL2 with EGL then
04:31:34Nothing_Muchif possible
04:31:34kaenNothing_Much, everyone loves to hate on java, including myself
04:31:35fordcars_piHow do yo
04:31:36vs73nx*compile again
04:31:42Nothing_Muchkaen: why tho?
04:31:45kaenbut deep down I know it's actually a very good language.
04:31:50fordcars_piIsn't Java secretely faster than C?
04:31:54kaenuhh because every culture needs a pariah?
04:31:55raptorfordcars_pi: somewhere there's a config.h
04:31:58fordcars_pi*secretly
04:32:05Nothing_Muchwell, looking at Minecraft....
04:32:08fordcars_piYOu have got to be kidding me, rcompile :O
04:32:08vs73nxin some aspects yes
04:32:11raptorin there it says something like #define blah_EGL_blah 1
04:32:19Nothing_MuchI'd say Java's a pretty good language from a.. consumer's standpoint
04:32:34fordcars_piArgh Minecraft was so, urgh using Java. SO should of been native
04:32:42kaenjava's a pretty good language from a developer standpoint, too.
04:32:44raptorJava has too much material to not pick on it... but it's not a bad language - it's what feeds my family after all :)
04:32:51kaenprobably better to developers than to consumers, in fact
04:32:53fordcars_piReally?
04:33:03vs73nxjava uses a jit compiler in the jvm (java hotspot) to speed it up exponentially, making it (in some instances) faster than c
04:33:20Nothing_Muchand now it's all greek to me :D
04:33:32vs73nxi started off with programming by learning java
04:33:36kaenyep, because it'll analyze which codepaths are "hot" and recompile them at runtime to make performance optimizations
04:34:13kaenI think my first GUI program was in java
04:34:19raptorhey fordcars_pi, can you give me ssh access to your rasp pi :)
04:34:33raptoryou know, allow direct computer access to a stranger on th einternet?
04:34:51vs73nxfound a webpage explaining the java jit eariler... might try to find it
04:34:55fordcars_piIt is already on with port forward
04:34:59fordcars_piBuuuuut
04:35:15fordcars_piI think I should give my Ip and port in here
04:35:27fordcars_pi:P
04:35:44fordcars_piamgine gave his team viewer Passwords and stuff here actually
04:35:56raptorhope he changes them..
04:36:14fordcars_piCheck logs, we can now all connect to his computer and correct his typos ^.^
04:36:22fordcars_piI am too evil
04:36:24vs73nxnup cant find the website :(
04:36:37fordcars_piraptor, there is notdefine EGl in here...
04:36:42Nothing_Muchfordcars_pi: I think that's only possible with teamviewer open though..
04:36:51fordcars_piIt is always open
04:36:58raptorEGL
04:37:02fordcars_piI think it starts up on startup on default
04:37:27raptoroh... huh... looks like SDL2 has added fixes to EGL recently...
04:37:44raptorwhen did you compile SDL2, fordcars_pi?
04:37:47fordcars_piNot another recompile!
04:37:54fordcars_pi*a long time ago*
04:38:05raptordo an hg pull -u on the SDL repor
04:38:07raptor*repo
04:38:11fordcars_piI didn't have mercurial at that time
04:38:31vs73nxcould be worse... i had to recompile qt multiple times while doing kde tasks for gci
04:38:31raptorlet me get you the hg url
04:38:44fordcars_piSomehow everything I do always leads me back to compiling SDL again haha
04:38:49fordcars_piThanks :)
04:38:52raptorfordcars_pi: hg clone http://hg.libsdl.org/SDL
04:39:12raptorand whack your old source for it
04:39:19fordcars_piwhack?
04:39:28raptoruhh, get rid of it
04:39:33fordcars_pi:)
04:41:05kaenhttp://hg.libsdl.org/SDL/file/801d84e26f91/src/video/raspberry/SDL_rpivideo.h#l48
04:41:11kaenSDL_VIDEO_OPENGL_EGL
04:41:23fordcars_piwow
04:41:26kaenlooks promising
04:41:34raptoryes that's it
04:42:01raptormaybe my platform has it off...
04:42:27vs73nxraptor; do you know how to override the saving of binding names to the ini file so i can add keybindings with modifiers
04:42:30vs73nx?
04:42:31kaenwe don't need no stinking docs
04:42:44vs73nx:D
04:42:48raptorwhere are you looking vs73nx?
04:43:17vs73nxaround inputcode.cpp
04:44:07raptori mean, are you hoping to do a particular thing with a method somewhere?
04:44:24vs73nxyes
04:44:52raptorwhich method?
04:45:57raptorah
04:45:59raptorok
04:46:12raptorvs73nx: just save a string
04:46:19fordcars_piraptor, why not sdl2?
04:46:25raptorfordcars_pi: it is SDL2
04:46:29fordcars_piAh ok
04:46:34raptorit has both branches in it: 1.2 and 2.0
04:49:06vs73nxok you know where to save the string?
04:49:59raptoryes... in config.cpp.... somewhere
04:50:01kaenI think that happens in config.cpp, vs73nx
04:50:09raptori win again!
04:50:37kaenI've had to turn on seconds display in my IRC client just to comfort myself knowing that I was close
04:50:37fordcars_piHah
04:50:49raptorhahaha
04:51:31vs73nxahh thanks found it... is it at writeKeyBindings?
04:52:22raptoryes, that's part of it
04:52:29raptoroh man... our settings are a mess
04:53:12raptorI think you're gonna need some guidance from watusimoto - it looks like we've got 2 (3?, 4?) ways to write settings and I think we're in the middle of a transition..
04:54:30vs73nxk then when is watusimoto on again
04:54:45raptorin like 3 hours?
04:54:57vs73nxok
04:55:06raptormaybe 4...
04:55:17fordcars_piraptor, I will sound stupid, but
04:55:43vs73nxmight continue work on my jit-compiler or my ios app and maybe have a closer look at this settings problem then.
04:55:50fordcars_piCOuld there be one array that is filled up with settings when starting Bitfighter?
04:56:07raptorthere's like 4
04:56:17fordcars_piOh
04:56:18raptorthere should be one...
04:56:39kaenthe settings are a mess
04:56:44raptorbut we're in the middle of simplifying the code... but it has to get more complex first...
04:56:45vs73nxi agree
04:56:48fordcars_piThere could be pointers for each section of Options for easy access I guess
04:56:50kaenheading in a good direction, but still a mess
04:58:31fordcars_piI wish I could help
04:58:48fordcars_piBut I don't get Namspaces yet
04:58:56fordcars_piAnd :: operator
04:58:57vs73nxme too
04:59:00fordcars_pi:P
04:59:12fordcars_piI think it makes functions easier to classify
05:00:15kaennamespaces are just labeled drawers to put things in
05:00:29kaenA::B means "the thing named B inside of A"
05:00:39fordcars_piOh!
05:00:54fordcars_pivar::namespaceYo
05:01:41kaennamespace::var
05:01:51kaenor namespace::function
05:01:56kaenor class, or whatever
05:02:02fordcars_piAhh
05:02:16fordcars_piBUt then you deal with externs argh
05:03:30vs73nx Quit (Ping timeout: 252 seconds)
05:04:05raptordie externs die!
05:04:21fordcars_piHaha
05:05:28kaenwe have mercifully few externs
05:05:35kaenapproaching the correct number: zero
05:06:01kaenkeep in mind fordcars_pi, that wat, raptor, and I all learned C++ with bitfighter
05:06:03kaen(iirc)
05:06:13fordcars_piReally? Nah
05:08:04fordcars_piYou are all like profesionnal developpers that could compile and link c++ in their heads for 5 different architectures
05:08:40raptorok, so... the mouse works in SDL... but nothing else
05:08:57raptorfordcars_pi: yes, but thanks to making mistakes in bitfighter!
05:09:24fordcars_piHahahaha
05:10:08vs37nx has joined
05:10:50fordcars_piI checked out assembly for Raspberry Pi, looks really fun actually
05:11:04fordcars_piI rather use registers than namespaces
05:11:20fordcars_pi;)
05:13:42raptorfordcars_pi: did you start a recompile of SDL2?
05:13:48fordcars_piOh, not yet
05:13:58raptoractually first
05:14:05raptorcan you make a bitfighter source code change for me?
05:14:13fordcars_piOk
05:14:16raptorin VideoSystem.cpp
05:14:34raptorat the start of the VideoSystem::init() method, put in this line: SDL_SetHint("SDL_HINT_RENDER_DRIVER", "opengles");
05:14:54raptorthen do 'make' for bitfighter again (should just compile the one class)
05:14:57raptorand test it running..
05:16:26kaenman, that'd be nice
05:18:19vs73nx has joined
05:19:22vs73nxmy wireless suddenly died
05:19:31vs73nxi have to use the lan...
05:19:45fordcars_pi:P
05:20:03vs37nx Quit (Remote host closed the connection)
05:20:08vs73nxi need a new computer
05:20:15fordcars_piMe too
05:20:25fordcars_piNot my Pi but my Desktop
05:20:28kaenthe wireless chip on my old laptop used to sporadically go out
05:20:32vs73nxmy laptop is two years old
05:20:39kaenI'd have to open it up, remove the antenna leads, and reconnect them
05:20:43vs73nxkaen: the same is happening to me
05:20:46fordcars_piWOw 2 years old
05:20:47kaenthen it would work fine for another month or so
05:20:49fordcars_pi*Wow
05:20:57fordcars_piMine is aroundd 10
05:21:00fordcars_pi*around
05:21:12vs73nx:P
05:21:20fordcars_pipowerPC ftw!
05:21:31vs73nxis it an old mac?
05:21:35fordcars_piYep
05:21:47vs73nxwhich one
05:21:54fordcars_piPowerBOok G4
05:22:15vs73nxWow cool
05:22:21fordcars_pi2 years ago my main computer was a PowerBook G3
05:22:25fordcars_pi:)
05:22:31vs73nxcool as
05:22:32fordcars_piAnd then a PowerMac G4
05:22:39fordcars_piANd than a Mc SE/30
05:22:47fordcars_piAhh man my SHift is weird
05:22:52fordcars_piHaha
05:23:01vs73nxyou must have a mac museum at your house
05:23:02Nothing_MuchHello again
05:23:04fordcars_pi*Mac SE/30
05:23:08fordcars_piYep :)
05:23:10fordcars_piHi
05:23:17Nothing_MuchOh man
05:23:22fordcars_piI also have a dusty Windows though
05:23:25Nothing_Muchfordcars_pi: Consider a new Intel Mac dude
05:23:37fordcars_piHaha we have one, but it is always in use
05:23:39vs73nxmac pro anyone?
05:23:48kaensure, if you're buying :)
05:23:54vs73nx6 core xeon ftw
05:24:07vs73nxnot overkill at all...
05:24:09Nothing_Muchlol
05:24:12kaenthat's literally more cores than I've ever owned, total
05:24:15Nothing_MuchI want an Iris Pro iMac
05:24:27fordcars_piraptor, your magic line didn't work :/
05:24:31raptor dives into the Mesa demos
05:24:37raptoraww stink
05:24:43fordcars_piI never owner more than one core haha
05:24:45vs73nxmy current laptop has 4 cores with hyperthreading, giving me 8 cores
05:24:47raptorthnks for trying
05:24:58vs73nxmy macbook has iris pro
05:24:59fordcars_piraptor, should I try without desktop?
05:25:10raptorwhat happened last time you did that?
05:25:16fordcars_piI don't get EGL error there, only black screen
05:25:18vs73nxit runs bitfighter well...
05:25:20raptoroh! yeah!
05:25:21raptordo that
05:25:29fordcars_piokydokey
05:25:29vs73nxnot with egl
05:25:37fordcars_piLater
05:25:39fordcars_pi:P
05:25:40fordcars_pi Quit (Quit: Lost terminal)
05:25:44vs73nxbai
05:25:52kaen"lost terminal"
05:25:54Nothing_Muchvs73nx: nice dude
05:25:55vs73nxfordcars
05:26:02vs73nxim stayin
05:26:03kaenI think he's using irssi or something
05:26:11Nothing_Muchyeah that's what he said before
05:26:29vs73nxstayin for 4 to 5 hours :P
05:27:40Nothing_Muchoi
05:27:45vs73nxwhat
05:28:13Nothing_MuchStill waiting for this PC's drivers to appear :(
05:28:23vs37nx has joined
05:28:38Nothing_Muchwelcome back?
05:29:42vs73nxi was away?
05:29:52Nothing_Muchwho's vs37nx?
05:29:59vs73nxoh it is my mac
05:30:04Nothing_Muchah
05:30:16Nothing_MuchDrivers don't exist for this CPU/GPU yet
05:30:25vs73nxwhat computer?
05:30:30Nothing_MuchOdroid-XU
05:30:40vs73nx:O nice
05:30:55Nothing_Mucharmhf baby :D
05:31:31vs73nxwhen i get a monitor i might consider getting an arm dev board (rPi and such)
05:32:23Nothing_Muchconsider an Odroid
05:32:30Nothing_MuchIt's powerful
05:32:31vs37nx is now known as vs37nx_mac
05:32:42Nothing_Muchthough I'm not a dev, it does make for a good desktop :D
05:34:17vs73nxi would use a pi or odroid for irc and web browsing on one monitor and my current computer for devlopment on another monitor
05:34:33vs73nxwhen i get money to buy 2 27 inchers...
05:34:38Nothing_Muchohh
05:34:47Nothing_Much27in @ 1920x1080?
05:34:56vs73nxhell yea
05:35:00Nothing_Muchgood
05:35:07Nothing_Muchbecause from what I've heard
05:35:29vs73nxthey arent expensive now, only 300 bucks for entry level ones
05:35:32Nothing_Muchsome, if not most Arm GPUs can't go beyond 1080p
05:35:49vs73nxmy N5 damm could
05:36:56Nothing_Muchnice
05:36:58Nothing_MuchReally?'
05:37:04vs73nxactually id get an arduino Yun http://arduino.cc/en/Main/ArduinoBoardYun?from=Main.ArduinoYUN
05:38:03Nothing_MuchMIPS?
05:39:35Nothing_Muchvs73nx: what phones or tablets use MIPS?
05:41:16sam686wrt54g v8 uses mips and could run linux, but only have very limited memory (8 mb) and slow speed cpu, only has some ethernet ports.
05:42:05vs73nx Quit (Ping timeout: 272 seconds)
05:42:09raptori'm heading in early - good night!
05:42:31vs37nx_mac Quit ()
05:42:33Nothing_Muchlater raptor!
05:42:48raptor Quit ()
05:43:02vs73nx has joined
05:43:18vs73nxcan anyone see this?
05:44:42vs37nx has joined
05:45:04vs37nxcan anyone see this?
05:45:20Nothing_Muchyes
05:45:22Nothing_Muchvs37nx: yeah
05:45:27vs37nxhmmm my mac is working
05:46:15vs37nxill post somthing from my ubuntu box and if you can see it in one minuite please tell me you can see it
05:46:22Nothing_Muchvs37nx: sure
05:46:26vs73nxis this working>?>?>?
05:46:42vs37nx is now known as vs37nx_mac
05:47:13Nothing_Muchyeah
05:47:13vs37nx_maccan you see anything from vs37nx?
05:47:21Nothing_Muchvs37nx_mac: yeah I can see ya
05:47:24vs73nxok so you can see this?
05:47:59vs37nx_maci think it works thanks for helping
05:48:15Nothing_Muchit does lol
05:48:42vs37nx_macill irc from my mac for now on...
05:49:08vs37nx_macuntill im certain that my ubuntu machine is working
05:50:42Nothing_Muchvs37nx_mac: well.. I saw it dude
05:51:46vs37nx_macwas it before i renamed vs37nx to vs37nx_mac?
05:54:21Nothing_Muchvs37nx_mac: yeah
05:54:35Nothing_Much[00:43:18] <vs73nx> can anyone see this?
05:55:33vs37nx_macok its working :D
05:57:00vs37nx_macanyways using my mac is good because it lets me play bf while doing irc
05:57:52Nothing_Muchnice
05:57:57Nothing_Muchwait
05:57:59Nothing_Muchvs37nx_mac: what are your specs on Ubuntu?
06:04:12vs37nx_mac Quit (Remote host closed the connection)
06:19:30Platskies has joined
06:23:30kumul Quit (Quit: Leaving)
06:30:57fordcars_pi has joined
06:31:00fordcars_piHi
06:31:06Nothing_Muchwb fordcars
06:31:24fordcars_piBitfighter still doesn't work without Desktop
06:31:33Nothing_Muchwithout desktop?
06:31:38fordcars_piYeah
06:31:38Nothing_Muchyou mean it works with it though?
06:31:44fordcars_piNununununun
06:31:52fordcars_pi:)
06:32:06fordcars_piI'll compile latest SDL2 and that should solve the problem
06:32:08Nothing_MuchIt does in GLES though on the desktop?
06:32:18fordcars_piNo it never worked
06:32:24Nothing_MuchOh
06:32:32fordcars_piIt only worked with OpenGl
06:32:34Nothing_MuchWell I'm unsure if an xorg game can be played without x
06:32:38Nothing_Much*xorg
06:32:43fordcars_piUh
06:33:03fordcars_piI don't know but in command line I still have the Bitfighter mouse
06:33:32fordcars_piAnyway, going to desktop, later!
06:33:38fordcars_pi Quit (Client Quit)
06:34:04HylianSavior Quit (Read error: Connection reset by peer)
06:52:06Nothing_Muchg'night everybody
06:52:13vs73nxgood night
06:59:50vs73nxping of 1000 :/
07:19:52Nothing_Much Quit (Remote host closed the connection)
07:45:14fordcars_pi has joined
07:45:20fordcars_piHI
07:45:45fordcars_pikaen, I sucessfully compiled an updated SDL, do I need to recompile Bitfighter too?
07:49:51fordcars_pi Quit (Quit: Lost terminal)
08:49:00watusimoto has joined
08:49:00ChanServ sets mode +o
08:55:56vs73nxhi watusimoto
08:56:06watusimotohi
08:56:40vs73nxdo you know how to use modifier keys in the BINDING_TABLE?
08:57:06watusimotohmmm
08:57:12watusimotothat's a tricky question
08:57:33watusimotothere is a way to define a specific key + modifier
08:57:51watusimotowhich I think we do need for the editor
08:57:59watusimotobut we don't want to use that mechansim in the game
08:58:32watusimotobecause you want to be able to move your ship whether or not ctrl is pressed
08:58:48watusimotoactually, as I am writing that, I am not so sure that's true
08:58:51vs73nxsame with panning the view
08:59:29watusimotobecause we do bind some ctrl keys -- ctrl+enter resizes the window, ctrl+q takes a screen shot, ctrl+m toggles the message display
08:59:54watusimotolet me take a look
09:00:27watusimotowell, just my luck... visual studio is broken on this machine
09:00:33watusimotoand I can't start it
09:00:54watusimotolet's see...
09:01:00vs73nxwell notepad time :)
09:05:48watusimotoso the binding_table feeds into the bindingSet constructor
09:06:57watusimotosorry, I feel very handicapped at the moment
09:07:08vs73nxthats ok
09:07:45watusimotook, so our binding variables are defined as keycodes
09:07:57watusimotowhich do not in themselves support modifiers
09:08:02watusimotoas you have probably figured out
09:08:19vs73nxi did
09:08:32watusimotoin the ini, we probably want something like rotate=ctrl+R
09:09:00vs73nxthat is what i was told...
09:09:24watusimotoand since ctrl+R can't be an InputCode (sorry, not a keycode as I wrote above)
09:09:27watusimotowe have a problem
09:09:39watusimotoso.
09:09:56watusimotowhat do we want ctrl+R to be, if not an inputCode?
09:10:08watusimotoc'mon notepad, you can do it!
09:12:09watusimotowell, one way is to create a whole bunch of InputCodes that represent ctrl keys
09:12:22watusimotowe've done this for about 5 keys, and it sure is ugly
09:12:42watusimotoyou can see how that works by searching for KEY_CTRL_M
09:12:47watusimotobut I don't recommend it
09:12:52watusimotoas it is totally lame
09:12:59watusimotoso what else?
09:13:51vs73nxi know a function somewhere that returns modifirer keys or something
09:15:22vs73nxalso im not sure that the input parsing functions support things such as ctrl+R as an input string
09:15:31vs73nxin the ini
09:16:13watusimotook, I was thinking we could use "input strings" -- see InputCodeManager::getCurrentInputString()
09:16:37watusimotobut the comment notes some problems -- you can only have one active at a time
09:16:51watusimotobut maybe that's ok in the editor
09:17:22watusimotobut inputStrings can be modified... like "Ctrl+R"
09:17:54watusimotoactually, we arleady use them in the editor
09:17:59vs73nxin the editor you need more than one modifier such as CTRL+SHIFT+x
09:18:08watusimotoinputstrings handle that
09:18:14watusimotoEditorUserInterface::onKeyDown() has this:
09:18:16vs73nxgreat
09:18:21watusimotostring inputString = InputCodeManager::getCurrentInputString(inputCode);
09:18:39watusimotoso perhaps it would be ok to use these
09:18:42vs73nxso how do i map this into the ini file
09:18:54watusimotoI'm still thinking this through
09:19:13watusimotoI'm not trying to lead you somewhere, I'm trying to find the way for both of us :-)
09:19:57watusimotoso in the onKeyDown method in the editor, we use input strings a lot
09:19:59watusimotoelse if(inputString == "Ctrl+V") // Paste selection
09:20:00watusimotopasteSelection();
09:20:04watusimotofor example
09:20:16watusimotoso what I'm thinking is that I gave you some bad advice earlier
09:20:52vs73nxmaybe... i got all non modifier keybindings working
09:20:54watusimotowhat we might need is a separate, but simplified, BINDING_TABLE like thing for editor keys
09:20:57watusimotoor
09:21:50watusimotowe could add a column to BINDING_TABLE that says these keys will refer to INputStrings
09:22:02watusimotoand handle them differently where they need to be different
09:22:21vs73nxthat looks like a less messy idea
09:22:34watusimotoall solutions will be messy, I'm afraid
09:22:59watusimotowell, how many places would need special handling?
09:23:03vs73nxi think that adding a new column is a better idea
09:23:15vs73nxmuch less messy than a new binding table
09:23:28watusimotosearching for binding_table, and looking at places where cols e or f are used
09:24:32watusimotoa couple of places in config.cpp
09:24:55vs73nxyeah at aroundline 715
09:25:12vs73nxthose are the funcs that save to the ini
09:25:13watusimotoone place in InputCode
09:25:34vs73nxwhat line?
09:25:51watusimotonear 70
09:26:01vs73nxoh i see it
09:26:07watusimotoit's not useful code, just sets default values that will be overwritten
09:26:16watusimotobasically there to keep tests from crashing
09:26:32vs73nxok
09:26:44watusimotobut it would need to be handled in any event
09:26:56watusimotobut that's it
09:27:55watusimotoah, but there are other places too
09:28:07watusimotofor example, in bool BindingSet::hasKeypad()
09:28:28Kiryx has joined
09:28:28watusimotoit does not explicitly refer to cols e or f, but would need to be handled
09:28:53watusimotoso maybe you are right; maybe a sepaerate BINDING_TABLE for editor keys
09:29:08watusimotothat mgiht be cleaner
09:29:11vs73nxdoes that mean a new binding enum
09:29:32watusimotoa new enum where?
09:29:53vs73nxinputcode.h
09:30:12watusimotoyou mean a new BINDING_TABLE
09:30:18watusimotoyes
09:30:21watusimotobut it would be simpler
09:30:50watusimotono need for a savedInIni column, or def. js binding
09:31:44vs73nxyes def. js because it needs to support joysticks in the editor (just in case)
09:31:56vs73nxbetter safe than sorry
09:32:10watusimotoyou misunderstand the js binding column
09:32:23watusimotoin the game, you can have two compleetely different binding sets
09:32:39vs73nxoh ok
09:32:40watusimotoso space might fire in keyboard mode, but do chat in js mode
09:32:57watusimotoin the editor, we might want the js to do stuff, but we don't want to have completely different bindings
09:33:07vs73nxk then
09:33:17watusimotoso we really only need one default binding column
09:34:07watusimotowe use BINDING_TABLE in 12 places
09:34:14destroyerimo has joined
09:34:28watusimotosome may need to also use EDITOR_BINDING_TABLE, many will not
09:35:41vs73nxyeah only thing in editor.cpp
09:35:42watusimotofor example, we use it in BindingSet::hasKeypad(), but we don't care about that for editor keys
09:37:50vs73nx*only use EDITOR_BINDING_TABLE in editor.cpp
09:38:13watusimotowell, and in config.cpp
09:38:39Darrel Quit (Read error: Connection reset by peer)
09:38:41watusimotothere are only 12 places where it is used, so you'll just need to look at each and see if it is needed for the editor keys
09:38:47Darrel has joined
09:41:01watusimotoin some places, like with BindingNameEnum, it would probably make sense to have a separate EditorBindingNameEnum or something
09:42:07watusimotoalthough it might make more sense to add both sets of values to a single enum, because there are a lot of methods that take that enum as an argument
09:42:16vs73nxIM sure that in the EDITOR_BINDING_TABLE that i dont need a new BINDING() macro, right?
09:42:51watusimotothe BINDING macro is defined locally where it us used
09:43:04vs73nxthat was my reasoning
09:43:28watusimotoit is only used to get access to the BIDNING_TABLE very locally; you can reuse that name in the editor binding table
09:43:57vs73nxi see
09:44:53vs73nxi think that having a saved in ini column would be useful, because it reduced hardcoding
09:45:03vs73nx*reduces
09:46:25watusimotoif some keys are not in the ini, then you'll need that column, I suppose
09:46:42watusimotoyou can start with it, and if you find you don't need it, it's easy to remove
09:46:52vs73nxk
09:48:00watusimotoI have a feeling that what you'll end up with is a mess of repeated code; after we see what is really needed to make this work, we can look for ways to consolidate the repeated code (perhaps as a different project)
09:48:39watusimotothere are a lot of parallels between BINDING_TABLE and EDITOR_BINDING_TABLE
09:49:30watusimotoif you create new macro expansions (which you will), please add a comment like this:
09:49:31watusimoto// Generates a block of code that looks like this:
09:49:31watusimoto// if(true)
09:49:31watusimoto// inputCodeManager->setBinding(InputCodeManager::BINDING_SELWEAP1, InputModeKeyboard,
09:49:31watusimoto// getInputCode(ini, "KeyboardKeyBindings", InputCodeManager::getBindingName(InputCodeManager::BINDING_SELWEAP1),
09:49:31watusimoto// KEY_1));
09:49:37watusimotothat shows what they are supposed to generate
09:49:45vs73nxok then
09:49:57watusimotothat will make debugging, for you and for others, much easier
09:50:06watusimotoxmacros are not always super obvious
09:50:28vs73nxcomments are good... they make xmacros less confusing for gci students like me
09:50:34watusimotofor everyone
09:50:43vs73nxagreed
09:51:43watusimotodo you think you have enough info to move forward?
09:51:55vs73nxyes i do
09:51:58watusimotogood
09:53:55vs73nxin enum BindingNameEnum is there a way to specify which binding table is used?
09:54:23watusimotowhat do you mean? you want to combine values from both binding tables?
09:55:28vs73nxbindingname enum is an argument for a few functions... so if there is a way to specify which binding table is to be used it would make life much easier.
09:55:51watusimotostillnot sure I understand... but this would work
09:55:52watusimotoenum BindingNameEnum {
09:55:53watusimoto#define BINDING(enumName, b, c, d, e, f) enumName,
09:55:53watusimotoBINDING_TABLE
09:55:53watusimoto#undef BINDING
09:55:53watusimoto#define BINDING(enumName, b, c, d, e) enumName,
09:55:53watusimotoEDITOR_BINDING_TABLE
09:55:53watusimoto#undef BINDING
09:55:54watusimotoBINDING_DEFINEABLE_KEY_COUNT
09:55:54watusimoto};
09:56:19vs73nxthat looks like what i was looking for ;)
09:56:23watusimotogood!
09:57:04vs73nxas a quick question about the code there, what is BINDING_DEFINEABLE_KEY_COUNT?
09:57:29vs73nxits unrelated but it would help me better understand the codebase.
09:58:55vs73nxif you dont want to awnser thats ok....
09:58:56watusimotoit's a enum entry that comes at the end that shows how many values are in the table. It is just like the last value here:
09:58:57watusimotoenum SenderStatus {
09:58:58watusimotoSTATUS_OK,
09:58:58watusimotoCOULD_NOT_OPEN_FILE,
09:58:58watusimotoCOULD_NOT_FIND_FILE,
09:58:58watusimotoFILE_TOO_LONG,
09:58:58watusimotoCOMMAND_NOT_ALLOWED,
09:58:58watusimotoSENDER_STATUS_COUNT
09:58:59watusimoto};
09:59:19watusimotoby default, STATUS_OK is 0
09:59:29vs73nxok thanks
09:59:30watusimotoand SENDER_STATUS_COUNT is 5
09:59:42vs73nxthanks again
09:59:44watusimotoand there are 5 meaningful values in SenderStatus
10:00:24vs73nxall of then except for STATUS_OK?
10:00:38watusimotoall of them except SENDER_STATUS_COUNT
10:00:53watusimotoit's not really a senderstatus
10:00:59vs73nxok
10:01:09watusimotoit exists only to create an automatic count of the values that precede it
10:01:32watusimotoI am sure somwhere else we need to know how many statuses there can be
10:02:01watusimotoand if we create a new status, the count will automatically be incremented, and no code will break
10:02:22watusimoto(we would insert the new status before the sender_status_count, of course)
10:07:37vs73nxcool so do i need to make a macro expansion of EDITOR_BINDING_TABLE so that the f colum(or e colum) use input strings?
10:13:45Darrel Quit (Read error: Connection reset by peer)
10:14:08Darrel has joined
10:41:24vs73nxwatusimoto: found the magic code at line 706 to 780. i copied the macro expansion in setDefaultKeyBindings and modified it to use EDITOR_BINDING_TABLE. do you know where in the macro i can add inputStrings into?
10:43:15vs73nxthink i found it InputCodeManager::getCurrentInputString(inputCode)
10:46:38Platskies Quit (Read error: Connection reset by peer)
10:50:06vs73nxwatusimoto: also do you know where defaultKeyboardBinding is defined?
11:11:52HylianSavior has joined
11:32:31vs73nxok i will be back tomorrow, goodnight everyone!
11:32:46vs73nx Quit (Quit: Leaving)
13:27:35Kiryx Quit (Ping timeout: 272 seconds)
13:29:09destroyerimo Quit (Read error: Connection reset by peer)
13:31:12koda has joined
14:06:56kaen Quit (Remote host closed the connection)
15:18:42destroyerimo has joined
15:43:57Darrel is now known as Darrel[AFK}
15:44:20Kiryx has joined
16:16:23Kiryx Quit (Ping timeout: 260 seconds)
16:35:00raptor has joined
16:35:00ChanServ sets mode +o
16:48:10raptorgood morning!
16:57:47watusimotohowdy
17:10:26raptorhi
17:22:22Kiryx has joined
17:34:48koda Quit (Ping timeout: 252 seconds)
17:46:38watusimoto Quit (Ping timeout: 240 seconds)
18:07:39destroyerimo Quit (Ping timeout: 246 seconds)
18:22:27destroyerimo has joined
18:29:02destroyerimo Quit (Ping timeout: 264 seconds)
18:32:03destroyerimo has joined
18:58:24vs73nx has joined
19:07:28vs73nxhello
19:11:39vs73nxraptor: my xmacros are giving me a horrible time... is this code right...http://pastie.org/8548046
19:14:01raptorhi
19:14:12raptoryour #defines are wrong
19:14:37raptor#define takes two arguments, you are providing one 'BINDING(enumVal, b, savedInIni, d, e, f)'
19:14:57raptoroh no wait
19:15:20raptoryou are providing a large second arg.... let me see
19:17:08raptorvs73nx: works for me
19:18:04raptorno wait
19:18:09raptorsecond table there
19:18:11raptoris what you mean
19:18:39raptoryou're missing InputCodeManager::inputCodeToString(
19:18:51vs73nxim using inputstrings
19:18:55raptorlast line should be InputCodeManager::inputCodeToString(inputCodeManager->getBinding(InputCodeManager::enumVal, mode)));
19:19:22vs73nxme and watusimoto found out that inputStrings are a better idea
19:19:30raptorok, that's fine
19:19:36raptorthen you have to pass it in as one
19:20:07raptoryou're just using getBinding() which returns an InputCode
19:20:25raptorwhat I would do is create one test call with that if statement outside of the xmacro
19:20:29raptorand make sure it works
19:20:46raptoryou have bad arguments and uneven parenthesis
19:25:26vs73nxis there an alternative to getInputCode?
19:25:57raptorwell, you need to pipe a string to ini->SetValue
19:26:45Canseco has joined
19:38:06vs73nxso how would i implement that in a macro like this http://pastie.org/8548125
19:39:03raptorI say first don't use a macro - just try to fill out the ini->SetValue properly with a known value
19:39:07destroyerimo_ has joined
19:39:12raptorwhen you get that, then hook it up into a macro
19:39:25vs73nxit gets an inputCode from the EditorBindingTable but is there a function such as GetInputString stat could be use
19:39:38vs73nxanyways first i need to get the value of the string
19:39:57raptoryes, isn't that what the binding table above it does?
19:39:59destroyerimo Quit (Ping timeout: 272 seconds)
19:40:38Nothing_Much has joined
19:40:40destroyerimo_ Quit (Client Quit)
19:41:09vs73nxno that one only get an input code from the binding table
19:41:28raptoryes, but it turns it into a string right?
19:41:55raptorsee the inputCodeManager->inputCodeToString
19:42:46vs73nxyes but inside it it is calling getInput code, which isnt wanted because i need to get a string
19:43:07raptorok, do you have your string?
19:43:33vs73nxmy string is in the E column of EditorBindingTable
19:44:22raptorok, then put that in as the appropriate argument for ini->SetValue(section.
19:44:28raptorsorry... ini->SetValue()
19:44:52vs73nxohhh ok i get it, had no sleep so im still a bit groggy :P
19:44:57raptoryour problems are not macro-related - rather copy-pasta related ...
19:45:00raptorheh
19:45:36vs73nx Quit (Quit: Leaving)
19:45:53vs73nx has joined
19:50:25vs73nxalso setBinding takes an inputCode not an inputString
19:50:58raptoryes, but you don't care about setBinding do you?
19:51:17raptorall you want is an string for the ini->SetValue() method
19:51:48vs73nxwell ill need that later in the func setDefaultKeyBindings
19:51:51vs73nxbut thats later
20:06:09vs73nxok builds now :)
20:06:16vs73nxnope it doesnt :(
20:07:39vs73nxits giving me errors about how everyhting in the bindingsetMemberName column is not declared in this scope
20:07:50Watusimoto has joined
20:12:27Watusimotohi
20:13:02Kiryx Quit (Ping timeout: 240 seconds)
20:13:04vs73nxhello
20:18:32vs73nxis it ok for me to ask for an extension for this task... for maybe a day or less?
20:20:49vs73nxWatusimoto: i request an extension on this task
20:20:57vs73nx Quit (Quit: Leaving)
20:25:21Watusimotosure
20:35:29Darrel[AFK} is now known as Darrel
20:42:01vs73nx has joined
20:48:02Canseco Quit (Remote host closed the connection)
20:56:34Nothing_MuchHowdy everyone
20:56:51sam686hi
20:58:18vs73nxhello
21:05:57vs73nxcode builds but segfaults... i have null in some inputs for the binding table so that is what the error is
21:06:00vs73nxbye
21:06:02vs73nx Quit (Quit: Leaving)
21:35:07koda has joined
21:35:18Kiryx has joined
21:39:55Kiryx Quit (Ping timeout: 246 seconds)
21:53:40raptorI'm listening to classical music with a 'Summer' theme
22:23:45WatusimotoI'm listening to a band I just discovered yesterday, "metric"
22:26:41raptornever heard of them..
22:28:00Watusimotoneither had I
22:28:17Watusimotocatchiest song seems to be Speed the Collapse
22:34:06fordcars_pi has joined
22:34:26fordcars_piHi
22:36:20raptorall right back to vivaldi...
22:36:31fordcars_piHaha
22:36:57fordcars_piraptor, I just started compilign Bitfighter with latest SDL
22:37:05raptorok
22:37:20fordcars_piI didn't have time last night
22:42:31WatusimotoI KNEW it!!!
22:42:42WatusimotoI knew you were rocking out to vivaldi
22:43:17raptorfordcars_pi: that's ok
22:44:09fordcars_piYay for Vivaldi!
22:46:03Watusimotohere's a great summer song -- https://www.youtube.com/watch?v=NHuGG_FsC20
22:48:00fordcars_piSummer... we are quite far away from summer :P
22:48:15raptorI can't... i can't...
22:48:25raptorthe counterbalance to vivaldi is breaking my brain
22:48:45fordcars_piLater I'll be back soon
23:30:25Nothing_MuchHey guys
23:33:40Watusimotowhat's up?
23:33:52Nothing_MuchJust to let you know, the Desura news would have to have.. more information and etc about how big the update is. It hasn't appeared on the Games page with just that little amount of information. If you want, I can write down what you guys have done to the game and show it off some more, yanno?
23:33:57Nothing_MuchWatusimoto: me :D
23:34:16Watusimotoc'mon man, I left you an opening a mile wide!
23:34:17Watusimoto:-)
23:34:43Nothing_Muchlol I said me
23:34:43Watusimotoif you want to craft a more informative messaeg, that would be great
23:35:00raptorI got a report of a *really* weird crash with Lua...
23:35:31raptorhard crash of the game when removing Lua-created zones from beneath a ship..
23:35:40Nothing_MuchI mean give all the updates rather than.. well.. just this: http://www.desura.com/games/bitfighter/news/release-019-released
23:36:20Nothing_MuchI know ya guys have been hackin' about the game and all, but speak up a bit too! Or let someone else do the talkin'.
23:36:33Nothing_MuchUh.. no offense
23:36:36raptorsegmentation fault with trace: http://pastie.org/pastes/8548696/text
23:36:47Nothing_MuchHavin' a fast day today
23:36:55WatusimotoNothing_Much: my problem is I hate reading other change logs... so I sometimes err on the side of being brief
23:37:26Watusimotowhoa
23:37:43raptorit's like the EventManager is attempting to push the zone again, even though it isn't there - but the zone exists at the start of the method, then seems to be deleted when the ->push(L) call occurs
23:37:43WatusimotoNothing_Much: no offense taken
23:38:39Watusimotohelp us improve!
23:40:57Nothing_MuchAlright good, didn't wanna sound too pushy, but yeah, lemme whip up something in a text editor and I'll paste that to either Watusimoto or raptor and you guys can delete the first article then paste the new one on Desura.
23:41:24Watusimotosounds good. and really, you're not being pushy
23:41:48raptorI'll be honest - I'm perfectly willing to let anyone write the public-facing stuff...
23:42:20Watusimotowe have a severe lack of ego on this project, which is kind of a problem when it comes to promo
23:42:27Nothing_Muchaww
23:42:43Nothing_MuchThat can be a downfall
23:44:15Watusimotoman, these seeker shooting bots are deadly in a wide open level
23:46:11WatusimotoNothing_Much: do you know my email address?
23:47:03Nothing_MuchWatusimoto: probably not
23:47:11Watusimotobecause I am going to bed, and while raptor can give you some feedback on what you write, I am probably the only one who can update the message
23:47:24raptorthe message is great!
23:47:25Watusimotosend me a link at watusimoto@bitfighter.org
23:47:29raptor:)
23:47:35Nothing_MuchWatusimoto: You have to delete the news article and then make a new one
23:47:40Watusimotook
23:47:43Nothing_MuchThat way it'll be renoticed by the desura folk
23:47:49Nothing_MuchAlright got the email
23:54:42Darrel is now known as Darrel[OFF]
23:59:19Kiryx has joined

Index Search ←Prev date Next date→

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