#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2012-12-17

Timestamps are in GMT/BST.

00:01:26CrazyLinuxNerd Quit (Quit: Leaving)
00:01:49CrazyLinuxNerd has joined
00:45:33YoshiSmb has joined
01:06:50Fordcars has joined
01:07:55Fordcarswhat is hapenning! got connection problems, then I logged out of SAM server and got sent multiple ids error
01:16:02koda Quit (Quit: koda)
01:27:54bobdaduck has joined
01:31:53CrazyLinuxNerd Quit (Quit: Leaving)
01:57:55CrazyLinuxNerd has joined
02:37:28sam686 Quit (Ping timeout: 245 seconds)
02:38:57sam686 has joined
02:38:57ChanServ sets mode +v sam686
03:51:38YoshiSmb Quit (Ping timeout: 264 seconds)
03:52:10YoshiSmb has joined
03:52:28YoshiSmbwhat happend you exited?
04:09:17Fordcarshe left
04:11:13YoshiSmbahhh.
04:32:30bobdaduckGive asteroids a starting vector.
04:53:30YoshiSmb Quit (Ping timeout: 248 seconds)
04:56:39YoshiSmb has joined
05:04:02Fordcars Quit (Ping timeout: 245 seconds)
05:21:46YoshiSmb Quit ()
06:24:58sam686 Quit (Ping timeout: 245 seconds)
06:26:07sam686 has joined
06:26:07ChanServ sets mode +v sam686
06:26:22bobdaduck Quit (Quit: Page closed)
08:05:16kodaws has joined
10:10:58LordDVG has joined
10:51:25CrazyLinuxNerd Quit (Excess Flood)
10:51:51CrazyLinuxNerd has joined
11:07:45LordDVG Quit (Remote host closed the connection)
11:10:49SlightRemorse has joined
15:10:31YoshiSmb has joined
15:42:02watusimoto has joined
15:42:02ChanServ sets mode +o watusimoto
15:42:32watusimotohi
15:42:38watusimotohi SlightRemorse
15:51:02kodawshi watusimoto
15:51:09kodawshow's gci going? :)
15:55:17watusimotoreasonably well, I'd say
15:55:38watusimotoit's been manageable, and I've enjoyed working with the students
15:56:08watusimotoI've been holding back on new projects until raptor gets back, but we're still moving forward
15:59:45YoshiSmb Quit (Ping timeout: 260 seconds)
16:00:03YoshiSmb has joined
16:00:09SlightRemorsehey, watusimoto
16:00:25SlightRemorseso, about my project. Don't know if you got my reply on the site, it doesn't show up for me atleast.
16:00:41watusimotoI didn't look, to be honest. usually I get an email
16:00:59SlightRemorseAh, no problem
16:01:04watusimotoI mentioned 3 points: 1) flashing window 2) closing app with X and 3) icon
16:01:12watusimotoall should be pretty easy
16:01:14SlightRemorseanyway, for the first thing - I don't really get that annoying flash you see, perhaps because my computer loads the thing too fast.
16:01:20watusimoto:-)
16:01:32SlightRemorseSecond thing. So you want the X to act like the minimize button?
16:01:37SlightRemorseBasicly hiding the window?
16:01:39watusimotoThere must be a way to tell a program to start minimized
16:01:48watusimotorather than to wait until it is already running
16:02:10SlightRemorseI'll check on that.
16:02:45watusimotoI did have a question
16:03:06watusimotooccasionally I see a window appear that tells me that the app can't reach bitfighter.org, and to check the URL
16:03:15watusimotowhat makes that happen?
16:03:23SlightRemorseBasicly I've put 2 things concerning the URL
16:03:32SlightRemorsefirst error is if the URL is not a correct url at all
16:03:44SlightRemorseas in say you typed in "OLOLOLTHISNOURL"
16:03:53SlightRemorseit'll spit that the URL is incorrectly typed
16:03:57watusimotoso something that can't be parsed locally
16:04:04SlightRemorsethe 2nd kind of error happens if the site you've linked it to
16:04:09SlightRemorsecontains no information to be parsed
16:04:13SlightRemorsebasicly if you send it to google.com
16:04:39SlightRemorseBoth times if it encounters such a problem it returns the user to the default URL
16:04:53SlightRemorseI can tweak that feature to your liking as well if you want
16:05:38watusimotoI think if it connects and then subsequently fails, it should not display a message; it probably means the internet connection is troubled and the proper thing to do is to try again
16:06:08watusimotoso I would say, to keep things simple, show the message only if the first attempt fails; thereafter just try again later
16:06:32SlightRemorseI see. Yeah that can be done.
16:06:48watusimotobecause once you've connected, you know the url is good
16:06:56SlightRemorseAlso I think the reason why you see the flashing is because the minimization happens from a command called from the 2nd thread.
16:07:07watusimotocould be
16:07:15SlightRemorseI'll try and move it right at the initialization of the form.
16:07:30watusimotoI think that's the right place; initiailzation or even construction; not sure
16:07:44watusimotodid I tell you I like the app?
16:07:46watusimoto:-)
16:07:52SlightRemorseyeah you did :-P
16:08:03SlightRemorsealso the X should just minimize it to tray, right?
16:08:33watusimotoyes
16:08:44SlightRemorseThat could be a bit tricky as I'll need to rewire the termination in some way
16:08:51SlightRemorseI could try and make the tray icon
16:08:54SlightRemorseto be right click-able
16:09:01SlightRemorseand then you can get an "exit" there as well
16:09:12SlightRemorseas well as put a button on the main window
16:09:28watusimotoThat would be ideal; if that's too hard you could have a quit button on the main form. But if the right-click works, do that; it would be enough.
16:09:50SlightRemorsewell I think actually rewireing the X button would be the hard part :P
16:10:46watusimotois this relevant?
16:10:47watusimotohttp://stackoverflow.com/questions/3049035/x-to-minimize-winform-contextmenu-to-close-winform
16:12:08SlightRemorsePretty much, it actually gives me an idea
16:12:57SlightRemorseI'll see if I can change the event from window closing to simply that X button being pressed. Or if that fails I'll simply have a flag which will be used to determine if it's a true shutdown or just minimization
16:17:32SlightRemorsei'll get to working on it in half an hour or so.
16:19:49YoshiSmb Quit (Ping timeout: 260 seconds)
16:23:13YoshiSmb has joined
16:35:25YoshiSX has joined
16:35:46YoshiSmb Quit (Ping timeout: 256 seconds)
16:38:09YoshiSX Quit (Client Quit)
16:38:28YoshiSmb has joined
16:50:49YoshiSmb Quit (Ping timeout: 244 seconds)
16:51:40YoshiSmb has joined
17:11:08YoshiSX has joined
17:12:38YoshiSmb Quit (Ping timeout: 264 seconds)
17:12:55YoshiSX has left
17:37:42watusimotoSlightRemorse: will be back on later
17:53:06watusimoto Quit (Read error: Operation timed out)
18:09:02Watusimoto has joined
18:32:00kodaws Quit (Ping timeout: 272 seconds)
18:32:19SlightRemorseWatusimoto, want me to add anything else besides Exit in the menu from the tray?
18:39:22Watusimoto Quit (Ping timeout: 256 seconds)
19:15:55SlightRemorse Quit ()
19:21:02SlightRemorse has joined
19:40:28LordDVG has joined
19:42:36YoshiSmb has joined
20:11:14YoshiSmb Quit (Ping timeout: 250 seconds)
20:20:03Watusimoto has joined
20:26:08koda has joined
20:28:38Watusimotohi
20:48:21SlightRemorseHey
20:48:28SlightRemorseDo you need anything else on the menu that the tray will start
20:48:30SlightRemorseexcept for Exit?
21:11:25CrazyLinuxNerd Quit (Quit: Leaving)
21:11:50CrazyLinuxNerd has joined
21:12:16Watusimotothe only other thing I can think of would be a link to launch bitfighter itself
21:12:32Watusimotobut we don't really need that
21:13:34WatusimotoOh, there's a caption when you hover over the icon in the tray -- how hard is that to change?
21:17:15SlightRemorsewhat caption?
21:17:30SlightRemorsethe one that says "Notifications"?
21:18:00Watusimotoyes
21:18:05SlightRemorsewhat do you want it changed to?
21:19:21WatusimotoIf it can be dynamic, it would be cool to see a list of current players. If that;s too hard, it should maybe say "Bitfighter Player Notifier" -- most of those applets have the app name in their title
21:19:54SlightRemorseWell
21:19:57LordDVG Quit (Remote host closed the connection)
21:20:03SlightRemorseif there are too many people that thing will become huge
21:20:06SlightRemorselike really huge
21:20:21SlightRemorseI think it would be better to say the number of players
21:20:26SlightRemorseor just the name of the program
21:20:48SlightRemorseSince imagine how huge the thing will get if say you have 5 friends playing at the same time with names of 10+ characters? :P
21:21:32Watusimoto# of players would be good
21:21:32SlightRemorseso yeah, should it include the number of players or just be the static name of the program?
21:21:37SlightRemorsefair enough
21:21:44SlightRemorsegive me a syntax of how you want it to look
21:21:51WatusimotoMaybe "Bitfighter: 3 players online"
21:22:04WatusimotoBitfighter: no players online
21:22:19WatusimotoBitfighter: 1 player online
21:22:35Watusimotoyeah, I think you're right about the length of the names list
21:22:56WatusimotoBitfighter: 0 players online
21:23:02SlightRemorsealright, gotcha
21:23:06SlightRemorsethat should be easy to make
21:23:08Watusimotoneed more examples?
21:23:09Watusimoto:-)
21:23:25WatusimotoHere's a new one: Bitfighter: 5 players online
21:23:29Watusimotoyou can use that one!
21:23:46WatusimotoI can rattle these things off all night long!
21:25:24SlightRemorsexD
21:27:21SlightRemorsealright
21:27:26SlightRemorseeven made it say 1 player instead of players
21:27:29SlightRemorse: )
21:27:33Watusimotoawesome!
21:28:36SlightRemorseand let me change the title when the thing is paused
21:28:41SlightRemorseso it doesn't give away false information
21:29:34SlightRemorsepaused with lower or capital letter?
21:29:36SlightRemorsewhich one do you prefer?
21:29:52SlightRemorsesyntax will be Bitfighter: [P/p]aused
21:33:34SlightRemorseAre you here, the google task won't let me upload any files because it has past the deadline
21:33:49SlightRemorseWhere do you want me to drop the thing?
21:34:35WatusimotoPaused
21:34:42Watusimotowith big P
21:34:54SlightRemorsegotcha, but where to upload it?
21:35:00Watusimotohold on a sec
21:35:56WatusimotoI extended you -- try uploading now
21:38:05SlightRemorseuploaded and marked
21:38:11SlightRemorsealso I've included the source in the zip
21:40:21SlightRemorse2nd zip, first one I missed to include the solution file
21:40:32SlightRemorsewhich would've meant that you'd need to open all the files manually
21:42:06bobdaduck has joined
21:47:51WatusimotoI have the new version running now... let;s see how it looks after a few minutes
21:47:57WatusimotoThe flashing window seems gone
21:48:03Watusimotostarts up to the tray nicely
21:48:13Watusimotoright click to exit works well
21:48:21Watusimotoicon is much improved
21:48:46Watusimotohover is over icon is nice
21:50:16Watusimotothought I found a bug, but I can't reprocude it
21:51:02SlightRemorsewhat bug?
21:51:10Watusimotodo you need to double click on icon to open the window?
21:51:17SlightRemorseyes
21:52:10SlightRemorsethat's how all my tray programs open.
21:52:14Watusimotothere seems to be no standard behavior about whether you single or double click
21:52:17SlightRemorseSo I figured I should keep uniformity
21:52:23Watusimotojust trying my other icons
21:52:31bobdaduckWhat's a GCI student?
21:52:41Watusimotogoogle-code in
21:52:45bobdaduckAlso hi.
21:52:50Watusimotoevernote notifier uses one click
21:52:58Watusimotojava updater uses one click
21:53:08Watusimotobluetooth devices use two
21:53:28Watusimotowith bluetooth, one click opens the context menu -- that;s just goofy
21:53:37SlightRemorseThere's no clear rule
21:53:48SlightRemorseso unless it's way too out of the usual I can't say it's wrong
21:54:10Watusimotothunderbird one click shows popup toast, double click opens mail
21:54:12Watusimotohi bobdaduck
21:54:17Watusimotoyou're right. no standard
21:54:28Watusimotono clear rule
21:54:32Watusimotook, here;s the (non) bug
21:54:47WatusimotoI thought I could get it to start up with the icon in the task bar
21:54:59Watusimotobut I think what was happening was that I was launching more than one instance
21:55:07Watusimotoyou probably should not be able to do that
21:55:22Watusimotohttp://www.vcskicks.com/single-instance.php
21:55:28Watusimotolooks very easy to make only run once
21:58:24Watusimotobobdaduck: we have several students working on various bitfighter things. SlightRemorse is making a system tray app that shows when players connect to a bitfighter server
21:58:30Watusimotoit's very cool
21:58:54bobdaduckReally? Like a server status app? That's awesome.
21:58:59Watusimotoyup
21:59:08Watusimotohe's done a very good job
21:59:14Watusimotoit's simple, but slick
22:05:17bobdaduckWhen do I get to see?
22:07:15Watusimotolater tonight
22:07:20SlightRemorseSlight problem, Watusimoto
22:07:23SlightRemorseif they're minimized
22:07:28SlightRemorsethe process tracker doesn't catch them
22:07:34Watusimotoreally?
22:07:37SlightRemorseyeah
22:09:13SlightRemorsebut if it's not minimized
22:09:24SlightRemorseit works as it should
22:10:17Watusimotothat's totally lame
22:10:43Watusimotovb# (or whatever it;s called) has a run this app once command
22:10:57SlightRemorseI might fix it
22:11:20Watusimotoyou are not usng vb!
22:11:32Watusimotosorry, misunderstood
22:12:07Watusimotois this a "winforms" app?
22:12:42SlightRemorseye
22:12:48SlightRemorseI'm already working on a solution
22:15:34Watusimotook, great. I found this link, but the code presented is for an entire app (that only displays a text box). I don't know enough to tell what parts are needed. But stackOverflow suggests this will work even with minimized windows
22:15:36Watusimotohttp://www.hanselman.com/blog/TheWeeklySourceCode31SingleInstanceWinFormsAndMicrosoftVisualBasicdll.aspx
22:18:10Watusimotoyou could use a mutex lock:
22:18:11Watusimoto[STAThread]
22:18:11Watusimotostatic void Main()
22:18:11Watusimoto{
22:18:11Watusimoto bool onlyInstance = false;
22:18:11Watusimoto Mutex mutex = new Mutex(true, "UniqueApplicationName", out onlyInstance);
22:18:12Watusimoto if (!onlyInstance) {
22:18:14Watusimoto return;
22:18:16Watusimoto }
22:18:19Watusimoto Application.Run(new MainForm);
22:18:21Watusimoto GC.KeepAlive(mutex);
22:18:23Watusimoto}
22:18:25Watusimotothese have always frightened me, but this code looks very simple
22:18:52bobdaduckSo is the stuff I want to do in my level even possible right now or should I think of something else?
22:19:26bobdaduckAlso we should be able to configure turret weapons using ctrl-2 or shift-2 or something.
22:23:09Watusimotodid I summarize it properly in the forums pm?
22:27:26bobdaduckPretty well. I sent a response clarifying.
22:27:48Watusimotook, I hate pms so I only rarely read them
22:28:04Watusimotobut yes, the stuff I summarized will work
22:28:55Watusimotoreading your pm now
22:31:07SlightRemorseok that diagnostic thing is really weird
22:31:18SlightRemorseI'm getting a message that I'm running a single process -WHEN- I close the last process
22:32:21SlightRemorsebut I think I know why it does so
22:32:36Watusimotoweird
22:32:55SlightRemorseI think the fact it runs with 2 threads confuses it
22:33:08Watusimotowhat are you using for UniqueApplicationName?
22:33:32Watusimotowait -- are you trying the mutex approach?
22:34:06SlightRemorsenah the other one
22:34:09SlightRemorsenearly figured it out
22:34:29SlightRemorsethough there's one annoying thing - when Visual studio is on there's a default process on so I gotta turn it off and then test
22:37:57SlightRemorseok
22:37:58SlightRemorsefinally fixed
22:39:06Watusimotoyay!
22:39:34SlightRemorseSubmitted
22:40:08SlightRemorseDidn't check the Mutex way, I just modified the first thing you showed me to actually work.
22:40:26SlightRemorseOriginal thing was made really badly to compare window names. So I changed it to compare IDs and process names
22:41:06Watusimotogood thinking
22:42:56SlightRemorsealso just a note - if you decide to modify the source code and test it under visual studio
22:43:04SlightRemorseyou got to turn off visual studio and then run the application
22:43:21SlightRemorsebecause for some reason while working on the project VS creates a dummy process with the same name as the application
22:43:33SlightRemorseso the limit will simply kill the true one and possibly throw a weird error at the debugger.
22:50:57SlightRemorseAnyway, all good?
22:53:00Watusimotohold on, am in the middle f something
22:53:12Watusimotofor my wife :-)
23:05:44SlightRemorsewell I'm off to bed. I gotta get up early tomorrow. Hopefully everything works as it should. If not - I'll fix it tomorrow afternoon.
23:05:55SlightRemorse Quit ()
23:32:22bobdaduck Quit (Ping timeout: 245 seconds)
23:48:13Watusimotosam686: are you around?

Index Search ←Prev date Next date→

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