Timestamps are in GMT/BST.
| 00:23:33 | | bobdaduck has joined |
| 00:46:35 | | koda has joined |
| 01:34:27 | | watusimoto has joined |
| 01:34:27 | | ChanServ sets mode +o watusimoto |
| 01:44:33 | | bobdaduck Quit (Remote host closed the connection) |
| 03:39:10 | | Platskies has joined |
| 07:58:02 | | Platskies Quit (Remote host closed the connection) |
| 08:11:03 | | Watusimoto_ has joined |
| 08:51:35 | | Watusimoto_ Quit (Ping timeout: 246 seconds) |
| 08:53:22 | | bobdaduck has joined |
| 09:35:40 | | koda Quit (Ping timeout: 248 seconds) |
| 10:12:28 | | raptor has joined |
| 10:12:28 | | ChanServ sets mode +o raptor |
| 10:12:43 | raptor | good day! |
| 10:20:35 | bobdaduck | g'dmraning |
| 10:28:22 | sam686 | looks like theres a problem with robots on latest 019, robots just don't die at all or rarely dies.. |
| 10:28:46 | raptor | hi sam686 |
| 10:28:53 | sam686 | mostly because: 1. can't see robot's shield, 2. robots might have unlimited energy unlimited shield.. |
| 10:28:57 | raptor | bots worked for me a couple days ago... |
| 10:30:15 | sam686 | also robots dies far less often with /maxfps 10 hosting.. |
| 11:04:22 | raptor | robots die for me just fine, but their shield doesn't show |
| 11:07:43 | | watusimoto Quit (Quit: Leaving.) |
| 11:11:03 | sam686 | maybe your robot's shield don't even work at all, or you can try /maxfps 10 and see the problem.. |
| 11:49:15 | | Watusimoto has joined |
| 11:54:14 | | thread_ has joined |
| 11:54:22 | thread_ | Hello |
| 11:54:31 | bobdaduck | Sup |
| 11:55:00 | raptor | hi |
| 12:23:00 | bobdaduck | OH |
| 12:23:02 | bobdaduck | okay so |
| 12:23:16 | bobdaduck | how do I use tau to get a random angle between two angles? |
| 12:23:33 | bobdaduck | Well maybe actually just how do I use tau in general |
| 12:24:26 | | bobdaduck gently pings raptor |
| 12:25:12 | raptor | tau is the circle constant |
| 12:25:18 | bobdaduck | right |
| 12:25:23 | bobdaduck | 2 * pi |
| 12:25:27 | raptor | any angle is between 0 and tau |
| 12:25:31 | bobdaduck | unit circle etc |
| 12:25:46 | raptor | 0 and tau radians, that is |
| 12:25:52 | bobdaduck | right |
| 12:26:27 | bobdaduck | so how do I use it? |
| 12:26:28 | raptor | so that's is - any angle on a circle is between 0 radians and tau radians |
| 12:26:36 | raptor | *it |
| 12:26:45 | raptor | use radians just like degrees |
| 12:26:55 | raptor | it's just a different numbering system |
| 12:27:27 | bobdaduck | so my original question, getting a random angle between two angles using tau |
| 12:27:36 | raptor | ok |
| 12:27:49 | raptor | just get a random number between those two angles and use it |
| 12:27:51 | raptor | as an angle |
| 12:28:14 | bobdaduck | uhh |
| 12:28:51 | bobdaduck | math.random(90) - 45 |
| 12:29:06 | raptor | ah, your input is in degrees? |
| 12:29:10 | raptor | forget degrees |
| 12:29:20 | raptor | make you input in radians |
| 12:29:24 | bobdaduck | HOW. |
| 12:29:52 | raptor | convert degrees to radians: degrees * tau / 360 |
| 12:30:08 | raptor | radians to degrees: radians * 360 / tau |
| 12:30:33 | raptor | all the math functions in Lua use radians anyways, so you need to never use degrees |
| 12:30:53 | bobdaduck | Yeah I know. I don't understand how to use radians well though. |
| 12:30:55 | raptor | so it's easy: a quarter circle in radians is: tau /4 |
| 12:31:07 | raptor | a half circle is tau / 2 |
| 12:31:22 | raptor | eighth-circle is tau / 8 |
| 12:31:30 | bobdaduck | so math.random(90 * tau / 360) - 45 * tau / 360 |
| 12:31:38 | raptor | don't use degrees |
| 12:31:56 | raptor | switch your brain |
| 12:32:16 | raptor | instead of thinking "90 degree" think "tau / 4" |
| 12:32:27 | raptor | think circle pieces instead of degrees |
| 12:32:43 | raptor | think "quarter circle, that's easy: that's quarter-tau" |
| 12:32:54 | bobdaduck | math.random(tau/4) - tau/8 |
| 12:32:58 | bobdaduck | xD |
| 12:33:01 | raptor | there we go! |
| 12:33:04 | raptor | no |
| 12:33:06 | raptor | now |
| 12:33:21 | raptor | i don't math.random does floats, only integers |
| 12:33:24 | raptor | *i don't think |
| 12:33:36 | bobdaduck | yep |
| 12:33:47 | raptor | so that's a problem... |
| 12:33:56 | bobdaduck | You did something to get around that |
| 12:34:00 | raptor | did i? |
| 12:34:01 | bobdaduck | like math.random() * tau |
| 12:34:06 | bobdaduck | or something |
| 12:34:06 | raptor | hmmm |
| 12:34:15 | bobdaduck | can't look it up right now forgot my thumb drive |
| 12:35:27 | raptor | hmmmm |
| 12:38:42 | raptor | i'm writing a floating point random generator that matches the integer one... |
| 12:40:11 | bobdaduck | hm? |
| 12:40:23 | raptor | to add to your utilities... |
| 12:40:45 | bobdaduck | yay |
| 12:45:42 | raptor | almost done... |
| 12:50:20 | | BFLogBot Commit: 95639ffd0b4f | Author: watusimoto | Message: Eliminate another UI dependency from ClientGame.cpp |
| 12:52:00 | raptor | DIE UI DIE |
| 12:52:51 | Watusimoto | well, we need some UI interaction |
| 12:53:05 | Watusimoto | though when this is all done, maybe we coudl write an ncurses client! |
| 12:55:28 | raptor | or this one: http://caca.zoy.org/ |
| 12:58:14 | raptor | question |
| 12:58:28 | raptor | why does math.random() give the same number over and over again in a Lua script? |
| 13:00:29 | Watusimoto | it shouldn't... |
| 13:00:40 | raptor | it does when i run the script from the command line |
| 13:00:54 | Watusimoto | I have to go, but I'd try to verify that the random is using the C++ version rather than the native lua code |
| 13:01:08 | Watusimoto | because there is a problem with random number seeds that exceed a certain threshold |
| 13:01:13 | Watusimoto | in native lua |
| 13:01:16 | raptor | ah |
| 13:01:23 | Watusimoto | which is why I wrote the c++ passthrough |
| 13:01:28 | Watusimoto | so make sure that's going |
| 13:01:28 | raptor | ah ok, thanks |
| 13:01:32 | Watusimoto | anyway... back later |
| 13:06:38 | | Watusimoto Quit (Ping timeout: 264 seconds) |
| 13:08:52 | raptor | ha.. it works with bitfighter because of the c++ math.random() override |
| 13:10:55 | raptor | ok bobdaduck, ready for your helper function? |
| 13:11:11 | raptor | here: http://pastie.org/pastes/7917342/text |
| 13:11:12 | | bobdaduck_ has joined |
| 13:11:40 | raptor | bobdaduck_: here: http://pastie.org/pastes/7917342/text |
| 13:12:18 | | bobdaduck Quit (Ping timeout: 252 seconds) |
| 13:12:22 | bobdaduck_ | nifty |
| 13:13:05 | bobdaduck_ | thanks! |
| 13:13:33 | raptor | now you can random radians to your heart's content |
| 13:15:08 | bobdaduck_ | lol |
| 13:15:57 | kaen | raptor: that box looks good :) |
| 13:16:07 | kaen | good day all |
| 13:16:09 | raptor | oh good |
| 13:16:11 | raptor | hi kaen |
| 13:20:02 | kaen | "What is this dude controlling??" |
| 13:20:09 | kaen | asserts make good flavor text |
| 13:22:12 | raptor | haha |
| 13:23:46 | | bobdaduck_ Quit (Remote host closed the connection) |
| 13:24:02 | kaen | today I learned the editor has a redo stack |
| 13:24:07 | raptor | oh yes |
| 13:24:10 | kaen | I thought it could only undo... |
| 13:24:28 | raptor | watusimoto spent many days getting that to work.. |
| 13:25:21 | kaen | oh man I could imagine |
| 13:25:32 | kaen | finding every spot that you need to push a redo/undo state |
| 13:25:46 | kaen | better him than me! |
| 13:31:05 | raptor | i remember sam686 and I kept telling him when it failed in certain spots - I thought he was going to go postal |
| 13:32:40 | raptor | if we can abstract the UI enought, I'd say it'd be fun to implement this: http://caca.zoy.org/wiki/libcaca |
| 13:38:27 | kaen | lol |
| 13:38:49 | kaen | ideally we would abstract the UI enough to use a null UI mock in tests |
| 13:39:00 | kaen | so that shoudl be a feasible task... |
| 13:39:31 | kaen | which reminds me to try instantiating a client game |
| 13:44:40 | | LordDVG has joined |
| 13:47:38 | | Watusimoto has joined |
| 13:57:42 | kaen | wow. I had hoped that passthrought constructors would at least let me instantiate one... |
| 13:57:49 | kaen | but it segfaults in UIManager |
| 13:58:13 | | thread_ has left |
| 13:58:58 | kaen | oh, actually it's in the destructor |
| 13:58:59 | kaen | cool! |
| 13:59:17 | kaen | wonder if I can get it to connect to a server now... |
| 14:00:49 | Watusimoto | hi kaen: what are you trying to instantiate? |
| 14:01:17 | kaen | ClientGame |
| 14:01:31 | Watusimoto | ah, good |
| 14:01:33 | kaen | I just made a passthrough constructor |
| 14:01:39 | raptor | first fancy pants pass at scoreboard: http://sam6.25u.com/upload/4screenshot_21.png |
| 14:01:45 | kaen | now I'm seeing if it will connect to a servergame like that |
| 14:01:46 | raptor | suggestions? |
| 14:02:53 | Watusimoto | yes |
| 14:02:55 | kaen | higher alpha on background and drop the colors from the teams except on the flags |
| 14:02:57 | Watusimoto | first, try the new font |
| 14:03:01 | kaen | my two cents |
| 14:03:14 | raptor | higher alpha = ... more see through? |
| 14:03:18 | Watusimoto | my first thought was also to drp the colors, but I think the colors do make things more readable |
| 14:03:34 | raptor | whcih font? |
| 14:03:42 | Watusimoto | tenby |
| 14:04:03 | Watusimoto | create a scoreboard font context that maps to tenby |
| 14:04:09 | Watusimoto | you can copy helpitemcontext |
| 14:04:18 | Watusimoto | which, I think, does exactly the same thing |
| 14:04:25 | raptor | okey doke |
| 14:04:35 | kaen | less see through |
| 14:04:40 | kaen | more opaque |
| 14:05:03 | Watusimoto | hell, we could make the socreboard fill the screen |
| 14:05:11 | Watusimoto | though that might not be better |
| 14:05:25 | kaen | eh, I like kind of being able to see-ish while it's up |
| 14:05:56 | kaen | I'd take the alpha as high as you can while being able to easily distinguish a ship |
| 14:07:23 | Watusimoto | searching for scoreboard images... the hits I'm getting make ours look great |
| 14:07:51 | raptor | haha |
| 14:09:41 | Watusimoto | what if the winning team were larger and the losers smaller? would that help? |
| 14:10:10 | raptor | yes, but that is another bug... |
| 14:11:54 | Watusimoto | or... what if instead of individual scores we draw player names in some sort of bar graph showing relative scores? |
| 14:12:34 | Watusimoto | because the player scores on a team game seem rather useless |
| 14:20:16 | Watusimoto | I rescind my whole-screen idea -- I actually like to keep playing for that last 5 seconds, to see if I can redeem myself! |
| 14:21:40 | kaen | so, was there code to handle multiple clientgames at one point? |
| 14:21:46 | kaen | (or is there still?) |
| 14:23:18 | Watusimoto | we could show shot accuracy on the scoreboard |
| 14:23:28 | Watusimoto | there will be |
| 14:23:56 | Watusimoto | sam686 started trying to create a multi-client version, with two players playing head-to-head |
| 14:24:33 | Watusimoto | the concept is good -- my kids used to play with two clients sharing a single screen, and it's a lot of fun |
| 14:25:07 | Watusimoto | on a large screen there's no reason why you couldn't plug in 4 controllers and play a battle all on one machine |
| 14:25:22 | kaen | the core seems straight-forward enough |
| 14:25:30 | Watusimoto | yes |
| 14:25:50 | Watusimoto | the batch file I used to create the windows and two player config is the twoplayer.bat file that's floating around |
| 14:31:06 | sam686 | I ran into assert "What is this dude controlling??" in ClientGame.cpp |
| 14:32:39 | | LordDVG Quit (Remote host closed the connection) |
| 14:33:44 | sam686 | found a problem, time limit goes backwards when you go /idle (with all other players idling or not there) |
| 14:34:49 | sam686 | more likely server pauses with all players idling but client's time limit doesn't pause and soon goes backwords when players no longer idle |
| 14:38:07 | | Watusimoto_ has joined |
| 14:40:46 | Watusimoto_ | you di? |
| 14:41:36 | Watusimoto_ | sam686: for that assert to happen, object->getObjectTypeNumber() has to be something other than a ship. how can that be? |
| 14:42:27 | Watusimoto_ | also, when you are only player, and you idle, I think game advances to next game and pauses |
| 14:42:31 | | Watusimoto Quit (Read error: Connection reset by peer) |
| 14:42:43 | Watusimoto_ | if you are testing with only one level, it might appear that time goes backwards |
| 14:43:25 | sam686 | Most likely the assert is typed wrong, (object->getObjectTypeNumber() != PlayerShipTypeNumber) will pass without asserting when they are not equal.. |
| 14:44:02 | raptor | ok, who joined my server and added 100 bots?? |
| 14:44:09 | sam686 | me |
| 14:44:10 | raptor | while i was in a meeting.. |
| 14:44:33 | sam686 | well robots do pause when all players idling, right? |
| 14:44:42 | Watusimoto_ | yes, they should |
| 14:44:46 | Watusimoto_ | :-) |
| 14:45:01 | Watusimoto_ | argh, sam, you are right! |
| 14:47:36 | raptor | next screenshot: http://sam6.25u.com/upload/3screenshot_22.png |
| 14:49:04 | raptor | as you can see... Tenby has issues |
| 14:49:05 | sam686 | your scoreboard with different font is missing badges.. |
| 14:49:34 | raptor | huh... you're right! |
| 14:50:33 | sam686 | or maybe I don't see raptor badges.. |
| 14:50:55 | raptor | http://sam6.25u.com/upload/3screenshot_23.png |
| 14:50:57 | raptor | yeah, just me |
| 14:54:48 | kaen | raptor, how about aligning each player's name with the team name, and the individual score with the team score |
| 14:54:51 | kaen | ? |
| 14:55:06 | sam686 | also the 25 flsg isn't following the scaling with 100 bots and scoreboard.. the flag is huge. |
| 14:56:35 | sam686 | looks like your badges refuses to show up when you host, but does show up when you join server.. |
| 14:57:10 | kaen | and maybe you could print the names and @ prefix with one string, then to align them you can use x = teamNameX - prefixWidth |
| 14:57:18 | sam686 | might be caused by you join your local host faster then the hosting server connect to master.. |
| 14:58:06 | kaen | that way the names are aligned by the first letter, and admins/levelchangers stand out more |
| 14:58:48 | raptor | this score board code... is.. crazy |
| 14:59:05 | raptor | looks liek someone added further complexity since I saw it last.. |
| 15:05:34 | Watusimoto_ | the code might actually be alive and growing |
| 15:06:55 | raptor | i can't work on this now... it's too complex for my current mental reserves |
| 15:07:07 | raptor | so... how does the fancy box look? :) |
| 15:09:08 | kaen | so there are 55 derefences of mUiManager and mUi in clientGame. 32 of those are forwarding functions by my count |
| 15:09:11 | Watusimoto_ | I'm not down with it |
| 15:09:38 | raptor | i don't understand that phrase in this context... |
| 15:09:47 | raptor | against it? |
| 15:10:16 | | BFLogBot Commit: fa99ebd9a060 | Author: watusimoto | Message: One more UI class out of ClientGame |
| 15:10:32 | Watusimoto_ | not against it exactly, but it's not working for me |
| 15:10:53 | Watusimoto_ | it seems to clash with the blocks-of-color scoreboard theme |
| 15:11:03 | raptor | yes, it sure does |
| 15:11:15 | raptor | i think that's why kaen suggested removing the background colors |
| 15:11:23 | kaen | indeed |
| 15:11:38 | raptor | which means we're talking about redoing the entire scoreboard.. which I think may be a good idea |
| 15:11:48 | raptor | ..starting with the fancy box :) |
| 15:12:36 | Watusimoto_ | what if the scoarboard were the full width of the screen |
| 15:13:04 | Watusimoto_ | then the fancy box motif would not be needed |
| 15:13:27 | Watusimoto_ | or perhaps if each team were in its own fancy box, with no outer box |
| 15:13:41 | kaen | I like that last one |
| 15:14:04 | kaen | even more fancy boxes \o/ |
| 15:14:30 | Watusimoto_ | I think with the new font, we can reduce the size somewhat |
| 15:14:54 | Watusimoto_ | making more room for stuff |
| 15:15:03 | Watusimoto_ | I also think all the numbers are confusing |
| 15:15:26 | Watusimoto_ | especially when sam686 is playing :-) |
| 15:15:56 | raptor | Watusimoto_'s first idea: http://sam6.25u.com/upload/3screenshot_24.png |
| 15:16:22 | raptor | we can do fancy boxes with team colors as outline or alpha fill.. |
| 15:16:27 | kaen | hey, that looks pretty good |
| 15:16:32 | Watusimoto_ | I like that better |
| 15:16:33 | sam686 | oh shoot I didn't even notice an existing ServerGame::onConnectedToMaster() is already there, and I wrote a new function of the same name. The problem was simply the missing virtual in game.h "void onConnectedToMaster();" |
| 15:17:01 | Watusimoto_ | the nice thing about that design is the screen could open up from the center fo the screen in a nice subtle animation |
| 15:17:19 | raptor | ? |
| 15:17:38 | Watusimoto_ | imagine a line |
| 15:17:43 | raptor | oh you mean a horizontal line appears down the middle then expands towards top and bottom? |
| 15:17:51 | Watusimoto_ | horizontal |
| 15:17:55 | Watusimoto_ | yes |
| 15:18:33 | Watusimoto_ | we'll worry about that later, but just a nice feature of this design |
| 15:18:55 | raptor | ok, i'll play a bit more later tonight - need brainpower for other things now |
| 15:19:18 | Watusimoto_ | ok |
| 15:19:34 | Watusimoto_ | another idea is to clip the LR corner of each team box, to make them fancier |
| 15:20:11 | Watusimoto_ | could do that without interfering with existing elements |
| 15:21:57 | Watusimoto_ | another idea is to separate the team scores from the rosters |
| 15:22:00 | Watusimoto_ | as shown here |
| 15:22:01 | Watusimoto_ | http://i.imgur.com/Xy2vBct.jpg |
| 15:22:20 | Watusimoto_ | not necessarily endorsing this screen, but the separation is an idea |
| 15:24:26 | kaen | I'd say those interior boxes are redundant |
| 15:24:42 | kaen | without them the bars would anchor the list nicely |
| 15:26:04 | kaen | also, it makes me wanted colored usernames so bad :< |
| 15:30:48 | Watusimoto_ | so kaen: what's your thoughts regarding the ui references in cleintgame? or were you just noting without comment |
| 15:31:05 | Watusimoto_ | btw. mui will need to go |
| 15:31:09 | kaen | good! |
| 15:31:22 | kaen | because mUi = mUIManager->getGameUserInterface(); is giving me trouble |
| 15:31:26 | kaen | in the ClientGame constructor |
| 15:31:40 | Watusimoto_ | I created it with a first thought of getting rid of uimanager, and creating some sort of hiearchy of uis, each with a parent and children |
| 15:32:00 | Watusimoto_ | that was a shortcut towards seeing if the concept made sense |
| 15:32:24 | kaen | okay |
| 15:32:38 | kaen | are you still planning on getting rid of uimanager? |
| 15:32:47 | Watusimoto_ | but disentangling and organizing the uis seems less important than creating a dividing line between clientgame and ui code |
| 15:33:08 | Watusimoto_ | my thinking has swung back to keeping uimanager |
| 15:33:15 | kaen | okay, I'm on board with that |
| 15:33:17 | Watusimoto_ | though I am open to other opinions |
| 15:33:23 | kaen | especially for right now |
| 15:33:47 | Watusimoto_ | it seems that clientgame really needs to talk to a large number of uis, not just uigame |
| 15:33:47 | kaen | also, if clientgame *just* uses uimanager |
| 15:33:53 | kaen | then we only need to mock that |
| 15:33:58 | Watusimoto_ | yes, that's the idea |
| 15:34:12 | Watusimoto_ | mock uimanager and the whole ui gets mocked |
| 15:34:21 | kaen | beautiful |
| 15:34:24 | kaen | we have a dream |
| 15:34:33 | kaen | now we need a plan so it becomes a goal |
| 15:34:38 | Watusimoto_ | getting rid of mUi will be a chore |
| 15:34:43 | kaen | indeed |
| 15:34:53 | Watusimoto_ | the plan is code a whole ton of passthroughs |
| 15:35:23 | kaen | can we try inverting the dependency? |
| 15:35:33 | kaen | instead of clientgame calling ui, ui calls clientgame stuff? |
| 15:36:03 | Watusimoto_ | I don't follow |
| 15:36:24 | Watusimoto_ | if ui needs to interact with the game, it should just talk to clientgame |
| 15:36:40 | kaen | yes |
| 15:36:52 | Watusimoto_ | I think that's less critical, but that's the goal, I think |
| 15:36:53 | | BFLogBot Commit: 3c5c8e24d90a | Author: sam8641 | Message: Fix for missing badge when hosting. |
| 15:37:45 | kaen | I'm trying to articulate exactly how we'd invert the dependency there. |
| 15:37:46 | Watusimoto_ | the mental image i have is a perforated sheet, with uimanager and all ui code on one side, and clientgame and all game logic on the other, and we can just tear the sheet in half for testing |
| 15:38:01 | Watusimoto_ | I'm not even sure what that means, to be honest |
| 15:38:56 | kaen | actually just forget it |
| 15:39:14 | kaen | now that I look, UI has to respond to changes in the internal state of ClientGame |
| 15:39:31 | kaen | therefore ClientGame needs to send it messages (call its methods) |
| 15:40:45 | Watusimoto_ | ah, you were thinking that clientgame could just do its thing and ui classes would request updates |
| 15:41:02 | kaen | yeah |
| 15:41:07 | kaen | still possible |
| 15:41:14 | Watusimoto_ | that would be tricky |
| 15:41:15 | kaen | like, UI has clientgame do a loop |
| 15:41:28 | kaen | and then is like, clientgame, do you need to me to play a sound or something? |
| 15:41:40 | Watusimoto_ | but there's also servergame going on somewhere |
| 15:42:07 | kaen | wait, really? |
| 15:42:10 | Watusimoto_ | right now, the main loop is in main.cpp |
| 15:42:14 | Watusimoto_ | yes |
| 15:42:15 | kaen | right |
| 15:42:22 | Watusimoto_ | it idles clientgame and servergame |
| 15:42:32 | kaen | oohhh |
| 15:42:48 | kaen | so that'd just change to idling servergame and UIGame |
| 15:42:52 | Watusimoto_ | I'm not sure who idles the ui, but it is probably clientgame |
| 15:42:58 | kaen | it is clientgame |
| 15:43:01 | Watusimoto_ | ok |
| 15:43:19 | kaen | I think logically clientgame is a part of the ui |
| 15:43:21 | Watusimoto_ | I'll need to think that one over |
| 15:43:33 | kaen | I think the fact that we want to test clientgame without ui supports that |
| 15:43:33 | Watusimoto_ | for the moment it seems too complex |
| 15:44:06 | Watusimoto_ | on the theory that it's easier to break off a downstream component that isolate an upstream one |
| 15:44:15 | Watusimoto_ | so to speak |
| 15:44:53 | Watusimoto_ | but the cliengame needs to always be idling regardless of what the ui is doing |
| 15:45:16 | Watusimoto_ | it's not just a slave process, it really is the core of the game |
| 15:46:11 | Watusimoto_ | I'm going to bed pretty soon, so won't be doing aby more ui killing tonight, and I'll give this models some thought tomorrow |
| 15:46:37 | kaen | okay |
| 15:46:51 | kaen | I'll do the same and poke around with something else for now |
| 15:46:56 | Watusimoto_ | ok |
| 15:47:04 | Watusimoto_ | everything I have is checked in |
| 15:47:32 | Watusimoto_ | and I'll do a checkout before I do any furhter work |
| 15:47:33 | | CrazyLinuxNerd has joined |
| 15:48:46 | Watusimoto_ | I will say I see a certain symemtry between clientgame and servergame, and i see these as the twin foundations of the whole software |
| 15:50:10 | Watusimoto_ | ok, for now... good night! |
| 15:50:20 | Watusimoto_ | well.. just good night |
| 15:50:23 | Watusimoto_ | good night! |
| 15:55:20 | | Watusimoto_ Quit (Ping timeout: 256 seconds) |
| 15:56:38 | sam686 | UIGame.cpp line 870: getGame()->setBusyChatting(true);, that all what F5 does, only thing it does is put << >> around your name below your ship, for other players to see, |
| 15:57:13 | kaen | lol |
| 15:57:19 | sam686 | it will help if a chat menu show up but at the moment it does nothing but << >>.. |
| 16:26:26 | | BFLogBot Commit: 536409463692 | Author: sam8641 | Message: Fix F5 chat. NameEntryUI is somehow part of mPrevUIs. isCurrentUI should not check for Previous UI, right? |
| 16:41:03 | kaen | I could have screwed that up when I was trying to fix some editor crashes |
| 17:11:43 | | raptor Quit () |
| 17:32:07 | | raptor has joined |
| 17:32:07 | | ChanServ sets mode +o raptor |
| 18:10:00 | | bobdaduck has joined |
| 18:10:56 | bobdaduck | sup bros |
| 18:11:02 | kaen | not much homie |
| 18:12:02 | bobdaduck | YOU GUYS READY TO DO SOME HARDCORE DND PROGRAMMING? |
| 18:12:13 | kaen | um |
| 18:12:28 | kaen | I'm doing plugin stuff |
| 18:12:32 | bobdaduck | WHOOOOO |
| 18:12:41 | bobdaduck | gnarly |
| 18:12:45 | bobdaduck | up in here |
| 18:12:46 | kaen | raptor, sam686, bobdaduck: how do you feel about a plugin dock? |
| 18:13:10 | bobdaduck | TUBULAR IDEA KAEN |
| 18:13:11 | kaen | basically, you drag a plugin to the folder, it shows up on the dock |
| 18:13:45 | kaen | and then you can explicitly map keybindings still if you want to |
| 18:14:55 | raptor | https://code.google.com/p/bitfighter/issues/detail?id=151 |
| 18:15:47 | bobdaduck | radical |
| 18:15:48 | kaen | okay, so how about no UI to "define" plugins (we can just traverse the directory) |
| 18:15:50 | kaen | and then... |
| 18:15:57 | kaen | I guess I could hackup a binding UI |
| 18:16:02 | kaen | that shouldn't be too hard |
| 18:16:17 | raptor | well i like the idea of a plugin dock |
| 18:16:21 | kaen | okay |
| 18:16:27 | raptor | i was just showing that bug for information |
| 18:17:00 | raptor | also - fancy box teams with the fill: http://sam6.25u.com/upload/12screenshot_2.png |
| 18:17:39 | raptor | i'm thinking remove one of the flags |
| 18:18:07 | kaen | I'm thinking remove all the flags |
| 18:19:19 | kaen | how about fancy-boxing the team name and team score, then just printing the players on the containing box |
| 18:19:27 | kaen | and nixing the white line |
| 18:31:52 | raptor | interesting idea... let me try.. |
| 18:32:35 | raptor | here is my current route: http://sam6.25u.com/upload/7screenshot_3.png |
| 18:32:40 | bobdaduck | thanks raptor |
| 18:32:43 | bobdaduck | tau worked |
| 18:32:50 | bobdaduck | ooooh |
| 18:32:58 | bobdaduck | I like that |
| 18:33:37 | | sam686 Quit (*.net *.split) |
| 18:33:47 | | kaen Quit (*.net *.split) |
| 18:33:53 | raptor | kaen: what do you think of that screenshot before I try your idea? (needs polishing..) |
| 18:34:10 | raptor | uhh... may the gods of netsplit protect them (us?) |
| 18:34:37 | raptor | we have log bot, so we can say were on the *true* server |
| 18:42:28 | raptor | here's kaen's idea: http://sam6.25u.com/upload/12screenshot_5.png |
| 18:43:22 | bobdaduck | That looks good too |
| 18:45:18 | raptor | of course, it'd be nice if the fonts worked... |
| 18:47:01 | bobdaduck | BAHAHAHA |
| 18:47:04 | bobdaduck | oh man |
| 18:47:33 | bobdaduck | If I can figure out how to make archers shoot more than one arrow at a time |
| 18:49:25 | bobdaduck | raptor you don't even want to know |
| 18:49:26 | bobdaduck | Join! |
| 18:51:42 | bobdaduck | FINE DON'T JOIN. |
| 18:51:45 | bobdaduck | HMPH. |
| 18:52:10 | | sam686 has joined |
| 18:52:30 | | kaen has joined |
| 18:52:35 | bobdaduck | Welcome back |
| 18:52:43 | bobdaduck | kaen come see DnD? |
| 19:11:13 | | Fordcars has joined |
| 19:22:21 | raptor | kaen: see these: http://sam6.25u.com/upload/7screenshot_3.png and http://sam6.25u.com/upload/12screenshot_5.png |
| 19:22:29 | raptor | (if you haven't) |
| 19:24:08 | raptor | ok must go.. |
| 19:24:11 | | raptor Quit () |
| 19:43:00 | kaen | bitfighter needs a gui toolkit |
| 20:10:19 | kaen | lol bobdaduck |
| 20:10:27 | bobdaduck | bitfighter crashed upon kicking bots |
| 20:37:21 | kaen | bitfighter really needs a gui toolkit |
| 20:37:36 | kaen | I like, feel bad for adding this dock |
| 20:37:52 | kaen | because literally 90% of the logic I'm adding is to make another dock |
| 20:38:05 | kaen | and like 10% is finding the plugins and listing them |
| 20:52:38 | bobdaduck | lol |
| 20:52:52 | bobdaduck | Why's that bad? |
| 21:26:04 | kaen | because it's kind of like that any time we add an interface |
| 21:26:16 | kaen | and I'm just coding logic that can be generalized well |
| 21:48:08 | | bobdaduck Quit (Remote host closed the connection) |
| 21:48:16 | | raptor has joined |
| 21:48:16 | | ChanServ sets mode +o raptor |
| 21:48:51 | raptor | howdy folks |
| 21:51:33 | raptor | kaen: I know the feeling - it's like we're in the infant stages of building a GUI toolkit from scratch |
| 22:04:41 | | Platskies has joined |
| 22:11:46 | raptor | better. tell me what you think kaen: http://sam6.25u.com/upload/6screenshot_7.png |
| 22:24:35 | kaen | hey, I like it! |
| 22:25:14 | kaen | raptor, I think it would ultimately reduce code to have a formal UI toolkit |
| 22:25:34 | kaen | but like, I don't think an existing library would work... |
| 22:25:56 | kaen | since we use all those rawGL calls |
| 22:28:24 | raptor | well... |
| 22:28:41 | raptor | define 'formal'... |
| 22:28:42 | raptor | because |
| 22:29:00 | raptor | coding a generic methos like renderFancyBox seems somewhat formal |
| 22:29:21 | raptor | *method |
| 22:30:19 | raptor | I got the fancy box idea from the UI toolkit called 'GiGi', used in freeorion |
| 22:31:00 | raptor | see here: http://gigi.sourceforge.net/screenshots.php |
| 22:34:50 | kaen | I'd say that renderfancybox is like 1/4th of the duty of gui library |
| 22:35:40 | kaen | there's event handling/routing, keeping track of the widget heirarchy, firing callbacks, and then finally rendering |
| 22:36:03 | raptor | oh yikes |
| 22:36:07 | raptor | that's very formal |
| 22:36:18 | kaen | I know it sounds like it |
| 22:36:27 | kaen | but we already have rendering functions :) |
| 22:36:38 | kaen | and most of our would-be callbacks are already writting |
| 22:36:40 | kaen | written |
| 22:37:01 | kaen | so really there's just the hierarchy and event propagation |
| 22:37:21 | kaen | which happen to be the two "systems" that got me on this train of thought. |
| 22:37:57 | raptor | event propagation... |
| 22:37:59 | raptor | hmmm |
| 22:38:11 | raptor | more than just click mouse -> do something? :) |
| 22:38:19 | kaen | nope |
| 22:38:21 | kaen | just that |
| 22:38:25 | kaen | well also, keyboard |
| 22:38:56 | kaen | but the system we have is funky imo |
| 22:39:22 | raptor | oh yeah - very home-grown-learning-as-we-go |
| 22:39:27 | kaen | yes |
| 22:39:37 | kaen | so I think just organizing that well help a lot |
| 22:39:53 | kaen | I think we could get the UI logic down to a single function in each controlling class |
| 22:40:08 | kaen | basically add your widgets and set your callbacks |
| 22:40:30 | kaen | at least in the general case |
| 22:40:31 | raptor | i'll be honest - i hate UI stuff... |
| 22:40:45 | kaen | I love it :) |
| 22:41:09 | kaen | but I'm more driven by my love of clean, conceptually simple systems |
| 22:41:57 | kaen | I think the UI is bitfighter's most complicated part |
| 22:43:15 | raptor | definitely, especially with it's fingers in everything |
| 22:43:38 | kaen | that's why I'm all about callbacks |
| 22:43:46 | kaen | because only the editor has its fingers in itself |
| 22:44:01 | kaen | s/editor/controller object/ |
| 22:44:15 | kaen | editor is just the extreme example |
| 22:46:01 | kaen | but it would be nice if the callbacks were member functions |
| 22:46:15 | kaen | which would mean templatized containers for them |
| 22:46:23 | raptor | ugh |
| 22:46:28 | kaen | yeah.. |
| 22:46:43 | kaen | still conceptually simpler though, I'd bet |
| 22:47:02 | raptor | another pic with the text reduced a bit: http://sam6.25u.com/upload/6screenshot_9.png |
| 22:47:03 | kaen | once you get over the ridiculously crazy pointer-to-member-function syntax |
| 22:47:26 | kaen | even better! |
| 22:47:42 | raptor | I have one concern: that is dark team colors |
| 22:47:44 | kaen | how about a 1-line margin between each row and column? |
| 22:48:08 | raptor | you mean a 1px dividing line? |
| 22:48:20 | kaen | no, like a 1em |
| 22:48:30 | kaen | one line of text's height |
| 22:48:43 | raptor | ohh, added space.. |
| 22:48:49 | raptor | ok |
| 22:48:59 | raptor | I want to commit something before I go to bet.. |
| 22:49:01 | raptor | *bed |
| 22:49:12 | kaen | ok |
| 22:49:22 | kaen | that looks really good btw |
| 22:49:32 | kaen | leaps and bounds over what was there this morning :) |
| 22:49:37 | raptor | any pointers on handling dark team text? |
| 22:50:08 | kaen | make the inner boxes background the team color as well |
| 22:50:12 | kaen | set that text to white |
| 22:50:28 | raptor | should they have a border? |
| 22:50:32 | kaen | but then you have to worry about really light team colors :) |
| 22:50:41 | kaen | uhh |
| 22:50:49 | kaen | actually, might be better if not |
| 22:51:07 | kaen | just solid team color, fancybox'd |
| 22:51:19 | kaen | with white over it? |
| 22:51:22 | kaen | who know. |
| 22:51:24 | kaen | knows. |
| 22:51:59 | raptor | ok let me get you a pic |
| 22:52:01 | kaen | could pick black/white based on the intensity of the color |
| 22:52:33 | raptor | here: http://sam6.25u.com/upload/6screenshot_10.png |
| 22:52:45 | raptor | I kind of like that.. |
| 22:52:53 | raptor | let me work on the space.. |
| 22:52:54 | kaen | I like it too :) |
| 22:53:12 | kaen | if you can do a .5em interior padding on the containing box |
| 22:53:26 | kaen | that would accent the 1em margin between the inner ones |
| 22:53:41 | raptor | ok, to you.. what does 'em' actually mean? |
| 22:53:53 | raptor | just vertical font size? |
| 22:53:58 | kaen | yes |
| 22:54:03 | kaen | height of the font |
| 22:54:10 | kaen | actually of one line |
| 22:54:14 | kaen | not the font |
| 22:54:16 | raptor | font for the names is dynamic... |
| 22:54:25 | kaen | right, one line |
| 22:54:33 | kaen | whatever the y-distance between player names is |
| 22:54:37 | raptor | ah ok |
| 22:55:45 | kaen | I guess that's pretty huge so .5 and .25 might be better |
| 22:56:22 | kaen | heh maybe you should just commit so I can quite armchairing you |
| 22:56:27 | kaen | quit* |
| 22:56:38 | raptor | no no, don't quit |
| 22:56:53 | kaen | alright :) |
| 22:56:55 | raptor | see, I actually *really* don't like UI stuff, but I'm stubborn enough to want to do something right |
| 22:58:03 | sam686 | wow, I think theres a problem with bitfighter.ini after running bitfighter -dedicated (and maybe using /loadini too), all the comments duplicated like 5 times |
| 23:00:23 | raptor | man... i can't even figure out the em size from this convoluded mess |
| 23:07:47 | raptor | ok kaen: http://sam6.25u.com/upload/6screenshot_11.png |
| 23:08:33 | raptor | enough gaps? |
| 23:08:43 | raptor | and here is the FFA scoreboard: http://sam6.25u.com/upload/7screenshot_12.png |
| 23:09:38 | kaen | I think it's great |
| 23:10:19 | raptor | here it is with a bit more space between the teams: http://sam6.25u.com/upload/6screenshot_13.png |
| 23:11:19 | raptor | so I think I'm going to commit - should i use the bigger space, or lesser space? |
| 23:11:29 | raptor | (the first or third image of the last three) |
| 23:15:01 | kaen | heh, almost need sterograms to tell the difference... |
| 23:15:21 | kaen | my gut says first |
| 23:15:24 | kaen | more rhythmic |
| 23:16:41 | raptor | ok |
| 23:16:44 | raptor | we have a winner! |
| 23:16:56 | raptor | i will commit and wash my hands until watusimoto decides he needs to rewrite it |
| 23:17:02 | raptor | :) |
| 23:17:13 | kaen | hehe |
| 23:18:43 | kaen | I have ten bifighter clones in my ~/code directory |
| 23:18:51 | raptor | ha! |
| 23:18:55 | raptor | (I only have 5) |
| 23:19:01 | kaen | one of them is called bitfighter-phpbb-uploader |
| 23:19:06 | kaen | and I have no idea what it is |
| 23:19:11 | raptor | nuke it! |
| 23:19:17 | kaen | it sounds evil |
| 23:19:27 | raptor | like an idea spawned from a late night thought |
| 23:20:04 | kaen | oh haha |
| 23:20:10 | kaen | it's not actually a bitfighter clone |
| 23:20:27 | kaen | I was going to make a phpbb mod before I decided to make pleiades |
| 23:20:41 | kaen | nuke'd |
| 23:20:54 | kaen | excessive apostrophe's |
| 23:21:23 | | BFLogBot Commit: c3c2d701372b | Author: buckyballreaction | Message: Scoreboard is fancy! |
| 23:21:36 | raptor | did you notice I fancy-boxed the editor dock? |
| 23:21:49 | kaen | I did indeed |
| 23:22:04 | kaen | as I was wiring in my switch-case statements |
| 23:22:05 | raptor | what do you think? I left colors the same, but was going for UI consistency.. |
| 23:22:12 | kaen | I like it |
| 23:22:19 | kaen | I'm making my plugin dock blue40 |
| 23:22:25 | raptor | great! |
| 23:22:26 | kaen | F8 for items, F9 for plugin |
| 23:22:48 | raptor | oooh yes, good decision on using the F keys |
| 23:22:52 | kaen | maybe a toggle would be better? |
| 23:23:17 | raptor | so F8 would bring up the dock? |
| 23:23:20 | kaen | and also I want to put a little label that says "items" or "plugins" and if you click it then it changes panels |
| 23:23:29 | kaen | actually the docks share the current dock |
| 23:23:42 | kaen | I added dock modes |
| 23:23:46 | raptor | ohhhh |
| 23:23:50 | raptor | ok, now I follow |
| 23:24:12 | kaen | I figure it's a reasonable compromise between doing nothing and writing a gui toolkit :) |
| 23:24:14 | raptor | you're a brave man digging that deep into the editor code... |
| 23:24:19 | raptor | heh |
| 23:24:20 | raptor | yep |
| 23:24:26 | kaen | that way we can even write more docks |
| 23:24:47 | kaen | so actually I'll just make a dock class |
| 23:24:52 | kaen | no modes or enums |
| 23:25:38 | kaen | or something |
| 23:25:41 | kaen | good night! |
| 23:25:46 | raptor | night! |
| 23:26:17 | raptor | sam686: good fixes today.. |
| 23:31:12 | | BFLogBot Commit: 970dd66bad9e | Author: sam8641 | Message: Badges now show ok when you join server with 1 or more players already in it. |
| 23:31:16 | Fordcars | wow people are still in IRC huh, I have been sleep-working for the past 4 hours |
| 23:31:50 | raptor | good fix sam686! |
| 23:34:18 | sam686 | http://sam6.25u.com/upload/screenshot_111.png thats 30 bots on one team.. |
| 23:34:46 | raptor | whoa... |
| 23:34:56 | raptor | you add 270 bots?? |
| 23:35:34 | sam686 | thats only 30 bots on one team, i said.. |
| 23:36:17 | sam686 | all other teams is empty, except me on first team, 30 bots on third team |
| 23:36:37 | raptor | odd... maybe I broke something.. |
| 23:37:14 | kaen | haha nope |
| 23:37:20 | kaen | it's a bug in the concept :x |
| 23:37:28 | kaen | the bots are there, just scaled tiny |
| 23:37:38 | kaen | they're even in the right spot |
| 23:37:42 | kaen | ... I'm sleep-typing |
| 23:37:57 | sam686 | http://sam6.25u.com/upload/screenshot_113.png |
| 23:38:15 | sam686 | thats 10 bots on third team, other teams are mostly empty |
| 23:39:01 | sam686 | I almost wonder if it is better to do 2 columns inside a team instead, or shrink the giant team name.. |
| 23:39:12 | kaen | yeah! |
| 23:39:14 | kaen | two columns |
| 23:39:42 | kaen | making the headers smaller might really help, too |
| 23:39:43 | sam686 | or maybe 3 by 3 team layout on score board for 9 teams.. |
| 23:40:07 | raptor | 'Petal' <-- since when is that an element?? |
| 23:42:23 | kaen | hmm, looks like all player names scale to the minimum font size needed by any team |
| 23:42:40 | raptor | yes |
| 23:43:17 | sam686 | also noticed that my badge on my screenshot shows a giant flag? |
| 23:43:45 | sam686 | other badges properly goes tiny in scoreboard, just not the flag.. |
| 23:44:37 | raptor | interesting.. |
| 23:44:49 | raptor | ok, i need to head to bed - i'll write down that bug.. |
| 23:44:49 | kaen | http://bitfighter.org/pleiades/levels/view/26 |
| 23:44:59 | kaen | does that say Intermission by kaen to you? |
| 23:45:04 | raptor | yes |
| 23:45:09 | kaen | okay |
| 23:45:16 | kaen | i'll write down that bug.. |
| 23:45:21 | raptor | that was my test map earlier |
| 23:45:34 | raptor | i was using it to make the 'Uploading' message appear when adding the fancy box |
| 23:45:45 | raptor | i kept getting a 403 error though |
| 23:45:52 | raptor | so I don't know why its showing there.. |
| 23:45:52 | kaen | yuck |
| 23:46:06 | kaen | it obviously thinks that *I* uploaded it |
| 23:46:17 | kaen | and you're just the author |
| 23:46:23 | kaen | oh wait |
| 23:46:43 | kaen | yep, that's right |
| 23:46:56 | kaen | 403 is forbidden, which is issued for access violations |
| 23:47:01 | kaen | anyway good night for real |
| 23:52:42 | raptor | night! (me too) |
| 23:53:47 | | raptor Quit () |