#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2012-12-10

Timestamps are in GMT/BST.

00:28:00watusimoto_Something to think about
00:28:01watusimoto_http://www.klopfenstein.net/lorenz.aspx/simple-nsis-installer-with-user-execution-level
00:36:03raptor Quit (Ping timeout: 264 seconds)
00:59:30sam686 has left
01:05:15raptor has joined
01:05:15ChanServ sets mode +o raptor
01:06:56BFLogBot Commit: 37a295490c56 | Author: watusimoto | Message: Somewhat automate build process
01:06:58BFLogBot Commit: f5fa44922151 | Author: watusimoto | Message: No longer require admin permissions for portable install
01:06:59BFLogBot Commit: 43e0bcc277c9 | Author: watusimoto | Message: Default to high version to avoid upgrade checks on fresh install
01:07:01BFLogBot Commit: 95587658b018 | Author: watusimoto | Message: Remove printf to try to suppress console window on standalone version
01:07:02BFLogBot Commit: 6e2ceb8ac3a3 | Author: watusimoto | Message: Warnings
01:07:04BFLogBot Commit: 52294c1672d5 | Author: watusimoto | Message: Assign some properties to installer
01:07:05BFLogBot Commit: 93dccb0dfbee | Author: watusimoto | Message: Formatting
01:07:07BFLogBot Commit: 781d7af2b9b2 | Author: watusimoto | Message: Make installer have bitfighter icon
01:07:08BFLogBot Commit: cac3096d6451 | Author: watusimoto | Message: Self doubt
01:07:10BFLogBot Commit: 0bd9df4cef77 | Author: watusimoto | Message: For now, no
01:07:37raptorcommits!
01:08:21raptorugh - do we need to support windows 8 some time?
01:11:12watusimoto_probably
01:12:06watusimoto_but the current installer will probably work
01:13:16sam686 has joined
01:13:16ChanServ sets mode +v sam686
01:14:54BFLogBot Commit: 0267859a2cca | Author: watusimoto | Message: Maybe this is better
01:14:54watusimoto_ok... one more and good night!
01:21:02watusimoto_ Quit (Ping timeout: 264 seconds)
01:32:35raptordinner!
02:49:25Fordcars has joined
02:49:31Fordcarshi
02:49:36raptorhi
02:49:40FordcarsIa m back!
02:49:44sam686hi]
02:50:04Fordcarsç
02:50:43sam686
02:50:52Fordcars
02:51:10sam686� �
02:51:55Fordcars~{]\';?>:*&%&^$%$éÉÈ:êëèÈU
02:52:59sam686��������������������������������������������������������������������������������������������������������������������������������
02:52:59raptorwhoa
02:53:05raptori can even see all of those...
02:53:56Fordcars¨Ç¨Ç^çèÉüôÇèàèè:ÈÉ"?*&#(*@&(*!?#(*!&(#&*@)(!*æߢħħij↓ĸŀ→ŀ→ŀ→ŀ→ŀ?????
02:55:29sam686it seem like every special symbol I try only comes out as squares on logbot.
02:57:12sam686as in like this: http://sam6.25u.com/upload/symbols_problem2.png is what I see on both my irc and logs.
02:58:09raptoris what i see: http://sam6.25u.com/upload/2snapshot13.png
02:59:46sam686Thats funny how different IRC client uses different characters, especially raptor's client..
03:00:05FordcarsI see all of them on bitfighter.org irc.
03:00:49sam686The BFLogBot's http://bitfighter.org/irclogs/index.php?date=2012-12-10 has squared out all my symbols..
03:01:29sam686let me try more symbols:    !"#$%&'()
03:01:48FordcarsëÉÈèé
03:03:11Fordcarsü
03:04:38sam686My irc sure likes to split one character in BFLogBot into 2 different ones instead.. I guess thats how it gets more then 256 different characters..
03:19:46sam686 has left
03:20:10sam686 has joined
03:20:10ChanServ sets mode +v sam686
03:20:40sam686���
03:20:52raptorunicode support yet?
03:21:28sam686my irc settings can have different language settings, let me try UTF (is it?)
03:21:36raptorUTF-8
03:21:40raptoryes
03:21:55sam686ok, restarting my client in UTF-8
03:21:58sam686 has left
03:22:28sam686 has joined
03:22:28ChanServ sets mode +v sam686
03:22:35sam686æçè
03:22:57sam686oh good, now my symbols displays correctly in http://bitfighter.org/irclogs/index.php?date=2012-12-10
03:24:08raptorhooray!
03:26:30Fordcarsooooooooohhh nice
03:27:09koda Quit (Quit: koda)
03:36:50sam686ՏАМБՅБ thats my name using different characters..
03:45:58raptorin case anyone didn't see it - i opened up a level design contest...
03:46:52raptori'm leaving for a couple weeks in 1 to 3 days
03:46:59raptorand won't have internet access
04:14:17Fordcarsyep
04:14:30Fordcarsreally? leaving? ok
04:15:01Fordcarscouple.... o...of....we....weeks....?
04:17:21raptoryes
04:17:26raptorso i'll miss lots!
04:17:36raptorbut don't worry! i'll be back before the contest ends...
04:18:13Fordcarsfiou.....
04:18:42sam686ok
04:20:21raptor?
04:25:21Fordcarslike ouff..... relief?
04:25:37Fordcarswiping sweat off forehead
04:25:39raptorohhh
04:25:50raptorok, i usually spell it 'phoew!'
04:26:04raptorsome people say phew!
04:26:10raptoror whew!
04:32:54Fordcarsyeah well I rarely write that "word"
05:15:07raptornight!
05:15:17raptor Quit ()
05:36:36Fordcarsnight!
05:36:46CrazyLinuxNerdcya ford
05:40:43Fordcars Quit (Ping timeout: 245 seconds)
06:48:59CrazyLinuxNerd Quit (Quit: Leaving)
07:09:22Darrel has joined
07:19:23Darrel Quit (Read error: Connection reset by peer)
08:19:24kodaws has joined
08:22:44CrazyLinuxNerd has joined
09:09:43Martinski has joined
09:09:48Martinskihello :)
09:19:52watusimoto has joined
09:19:52ChanServ sets mode +o watusimoto
09:20:02watusimotohi
09:26:12Martinskiwatusimoto
09:26:18MartinskiI'm thinking of getting this task
09:26:22Martinskihttp://www.google-melange.com/gci/task/view/google/gci2012/8029210
09:26:24MartinskiI claimed it
09:26:25Martinskibut
09:26:29Martinskido I have to parse
09:26:33Martinskithe players data from the json
09:26:43Martinskiwhen it's turned on
09:26:50Martinskiand then notify which players are onlyne ?
09:26:52Martinskionline*
09:26:56watusimotoof course -- that's the whole point!
09:26:58watusimotobut
09:27:17watusimotothe json parsing is the easy part, I think
09:27:23Martinskiofcourse
09:27:38Martinskiwhich is the hard part :D
09:27:59watusimotothe harder part (to me) is getting an app running that can obtain the feed, and do something interesting with the results (i.e. pop up a window)
09:28:20watusimotoif you read the history of this forum from last night after you went to bed, raptor found two apps that did something very similar
09:28:32Martinskihow can I see the history
09:28:38watusimotoa gmail notifier and ... something else
09:28:45watusimotoone written in java, the other in python
09:29:01watusimotohttp://bitfighter.org/irclogs/
09:29:16watusimotoso you might take a look at one of those
09:29:55watusimotoI looked briefly at the java one, and it claimed to be cross platform; if it were, you could knock over two tasks at once
09:30:10watusimotoand python also seems inherently cross-platform
09:30:23watusimotobut I haven't looked at it at all
09:30:55watusimotonow, to be clear, I am not certain either of these would be a useful starting point, but it certainly seems worthwhile to investigate
09:31:12MartinskiI'm searching the links right now
09:31:16Martinski;d
09:31:40Martinskiok
09:31:44MartinskiI found something
09:34:28Martinskithe python one
09:34:29Martinskilooks good
09:34:34Martinskibut I'll need those libraries
09:34:37watusimotowhat's the link?
09:34:38Martinski1st
09:34:42Martinskihttp://code.google.com/p/readertray/source/browse/trunk/readergui.py
09:34:54watusimotopython libs are easy to get!
09:35:02Martinskiyes I know
09:35:24Martinskibut most of them are not compatible with python 3.3
09:35:35watusimotothis is true
09:35:50watusimotomaybe this is a job for python 2
09:35:59watusimotothough I like py3 better!
09:36:03Martinskiso I'll have to downgrade my py on my laptop
09:36:04Martinskito 2.7
09:36:15watusimotoyou can install side by side, I think
09:36:24MartinskiI'll try
09:36:56Martinskiis it a problem if I start work a bit later, because tomorrow I have an exam for Java programming and I have to go throuh some stuff
09:36:58watusimotodoes wxPython work with 3?
09:37:07watusimotowhatever works for you
09:37:30watusimotoyou're studying java programming? how old are you?
09:37:36Martinski17
09:37:39Martinski11th grade
09:37:47watusimotothey teach that in you high school?
09:38:04Martinskiwe study C/C++, OOP, Java, html, Python
09:38:07Martinskiyes
09:38:11watusimotoreally?!?
09:38:14watusimotowow
09:38:19Martinskimy school is connected with the Technological University of sofia
09:38:21MartinskiSofia*
09:38:36watusimotogreat!
09:38:41Martinskiso we are studying things, that are teached in the uni 1,2 and 3rd year :D
09:39:10watusimotoI had to learn (almost) all of it myself
09:39:34Martinskiwell actually they just give us the basics and we have to learn by ourself
09:39:42watusimotogci
09:39:54Martinskialso my teacher told me about GCI
09:40:16watusimotoI haven't found anything definitive, but it looks like wxPython might only be 2.x
09:43:56MartinskiI'm starting my laptop
09:44:05Martinskion it I have win7 and I'll install py 2.7
09:47:45Martinskiand this project bitfighter
09:47:47Martinskiare you the creator ?
09:47:52watusimotoyes
09:48:01Martinskihow old are you ?
09:48:06watusimoto43
09:48:26Martinskiwow you must have great skills :D
09:49:23watusimotobrb
09:50:30kodabbws has joined
09:53:24kodaws Quit (Ping timeout: 256 seconds)
09:56:14watusimotoI have lots of skills, but mostly not as a programmer
10:00:41Martinskireally ?
10:00:42Martinski:D
10:00:52MartinskiI meant the programming though
10:01:05watusimotoI've only been paid to program for a couple of years
10:01:26watusimotoand I don't think of myself as a programmer
10:05:32MartinskiI checked out the source
10:05:40MartinskiI'm dl-ing wxPython now
10:05:43Martinskito try if it works
10:08:17kodaws has joined
10:08:33watusimotoI thought you were going to study :-)
10:09:13Martinskiyes, I have to
10:09:31Martinskibut I'm like on a crossroad :D
10:09:42watusimotoI understand
10:09:42Martinskiok, going to study now, hope you'll be here later
10:09:52watusimotolater
10:10:44kodabbws Quit (Ping timeout: 240 seconds)
10:22:53kodabbws has joined
10:26:04kodaws Quit (Ping timeout: 240 seconds)
10:35:25kodaws has joined
10:37:45kodabbws Quit (Ping timeout: 240 seconds)
11:28:48kodabbws has joined
11:31:08kodaws Quit (Ping timeout: 240 seconds)
12:02:40CrazyLinuxNerd Quit (Quit: Leaving)
12:18:23kodaws has joined
12:20:49kodabbws Quit (Ping timeout: 240 seconds)
12:58:20kodabbws has joined
13:01:04kodaws Quit (Ping timeout: 240 seconds)
13:44:08sam686 Quit (Ping timeout: 245 seconds)
14:00:19kodaws has joined
14:03:04kodabbws Quit (Ping timeout: 240 seconds)
14:14:43Darrel has joined
14:32:31Martinskihello guys
14:33:41Martinskiwatusimoto are you here ?
14:47:06CrazyLinuxNerd has joined
15:03:03watusimotoyes
15:13:35Martinskihere again
15:14:45Martinskithe program in python
15:14:51Martinskigives list index out of range ...
15:16:00MartinskiI can write my own python script
15:16:08Martinskito open the json page and take the online players
15:16:35Martinskibut the GUI is a problem
15:18:17Martinskihmm, the whole point is to have a program
15:18:26Martinskiwhich opens the json page
15:18:31Martinskiparses the players
15:18:43Martinskiand when there is a change, popups a notification ?
15:25:27watusimotoyes
15:25:41MartinskiI think I should use C# JSON parser
15:25:53Martinskiand when there is a change in the player list, to show the popup
15:27:09watusimotoso people can be running it and decide to join in when a someone else starts playing
15:27:32watusimotoyou can do it in c#, but json parsers are available for every language
15:27:57Martinskiyes, but the notification bar will be harder in other languages
15:28:08Martinskialso I think Darrel has already made the popup
15:31:22watusimototrue
15:31:30watusimotobut did the python popupper work?
15:31:41Martinskino
15:31:47watusimotoreally?
15:31:48Martinskiit gives some list index out of range
15:31:57MartinskiI'll try with C#
15:32:07watusimotobut that was probably a json error, not a gui one, no?
15:32:24Martinskithe gui.py gives a problem
15:32:31watusimotoDarrel had a hard time with the json parsing in C#
15:33:06watusimotobut no language is specified in the task, so I will accept C#, even if it's not my favorite :-)
15:40:17raptor has joined
15:40:17ChanServ sets mode +o raptor
15:41:20watusimotohi
15:41:33raptorhi
15:41:45watusimotoMartinski is attempting the C# notifier route again
15:42:13raptorok
15:42:19raptorwasn't that Darrel?
15:42:46watusimotoDarrel tried and then passed. Martinski is picking up where he left off
15:42:59raptorah ok
15:47:19raptorsomeone already sent me a map!
15:47:28watusimotogreat!!
16:01:25raptorI opened discussion on the Seeker
16:01:28raptorin the forums
16:06:26Martinskiwe have progress, I succeeded downloading the json :D:D
16:06:36raptorhooray!
16:08:25watusimotogreat!
16:08:45watusimotoraptor: I saw your discussion and applaud your proactivity
16:09:03watusimotoone thing I hadn't considered was the use of seeker to counter evading players shooting backwards
16:09:23raptoryeah, if there is enough open space seeker can be evil
16:09:43watusimotomaybe if the target is shooting at it, it could go faster!
16:10:11raptoralso, you'll be happy to hear that players are using sensor more
16:10:49raptori played a game shortly after releasing, and the sensor module was popular with the easy spybug placement
16:10:56raptorgames
16:10:56watusimotoreally?
16:10:58watusimotowow
16:11:03watusimotodo we track module usage
16:11:03watusimoto?
16:11:11raptoryes...
16:11:12raptorlet me see
16:11:18watusimotoafter a few weeks we should compare
16:11:27watusimotonow is too soon
16:11:33watusimotonovelty seekers and thrill lovers
16:12:01raptorit was phantomime - on two of the maps we played, if he didn't have the flag he'd just run every where blanketing the map with spybugs
16:12:38Martinskihmm
16:12:45Martinskican't install JSON.NET
16:13:33raptorMartinski: i found a one-class JSON parser that might be of help: http://techblog.procurios.nl/k/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
16:14:24watusimotoor this:
16:14:24watusimotohttp://james.newtonking.com/projects/json/help/index.html?topic=html/T_Newtonsoft_Json_JsonConvert.htm
16:14:42watusimotonot an endorsement... just a link
16:15:07watusimotoraptor: when do you leave?
16:15:20raptori'm 'studying' for my final now...
16:15:26raptorleave tomorrow early morning
16:15:51DarrelMartinski - JSON.NET is in my zip already
16:15:58Darrelit's referenced also, etc
16:16:04Darreleverything is ready for work
16:16:05Darrel:)
16:21:04Martinskino, I started a new project
16:21:14Martinskibut I can't understand how to work with JSON.NET
16:21:26Darreljust google it, it has documentation
16:21:32Darrelbut yeah, I didn't manage it, too :D
16:22:46Martinskiwatusimoto, is it a problem if I parse the json by myself
16:22:52Martinskinot using any parsers etc
16:23:05Martinskiit's very simple json, so it shouldn't be a problem I think
16:23:13Darrelyou can parse it yourself
16:23:24Darrelwatusimoto gave you a link how to make a parser of your own
16:23:30Darrelso I'm sure he won't mind
16:23:33Darrelif you do it yourself
16:23:39watusimotodo you really want to do it yourself??
16:23:47watusimotoyou can, but if it were me, I wouldn't
16:23:52watusimotobut it's not me
16:23:56watusimotoso yes
16:24:08Martinskiit seems very hard for me to use this json.net stuff :D
16:24:20Martinskithey're very confusing
16:24:24watusimotohard to use it, or hard to get your system set up?
16:24:25Martinskiand I can't set it up also
16:25:00watusimotook so here's my opinion
16:25:20watusimotoI will accept a solution without a parser -- you can choose how to do the task
16:25:26raptornotifyX
16:25:28raptor:)
16:25:44watusimotobut as an occasionally professional programmer, I would say use the library!!!
16:26:23watusimotoif I were doing it myself, I would say forget the library and use NotifyX or the python solution!
16:26:37raptorso the python solution...
16:26:38watusimotobecause I think you guys are doing way too much work
16:26:50watusimotobut that's my opinion
16:26:52raptorrequires either Tk or wxWidgets
16:27:10Martinskiwhen I tried running the python solution
16:27:14Martinskiit gave me some errors
16:27:19Martinskilike list index out of range
16:27:24Martinskiand without saying where exactly
16:27:48watusimotoraptor: what's wrong with wxWidgets?
16:29:58raptorwell
16:30:27watusimotoMartinski: this is the tradeoff. I may be wrong, but I would work with the python version, unless raptor comes with something good ;-)
16:30:32raptordependency problems if you're considering cross-platform. they exist on all platforms, but you'd have to install them separately or on the side
16:30:54watusimotoI was thinking for the win version, at least, we could make an exe
16:31:05Martinskiok, maybe I'll be back to the python stuff :D
16:31:06watusimotoI wouldn't distribute the python code
16:31:27raptorif python can be installed with the gui wrappers on windows, then that is probably easier
16:31:50watusimotonow, I haven;t seen what the python version looks like... I may regret backing it!!
16:33:10watusimotoMartinski: have you looked at all at notifyX?
16:33:17watusimotothat's the java version
16:33:26watusimotowhich may be reason enough to avoid it :-)
16:33:52Martinskino
16:33:55Martinskiwhere can I find it
16:33:56martin_bede has joined
16:34:03Martinskigoogle doesn't say nothing about notifyX
16:34:11martin_bedehello
16:34:17Martinskihello :)
16:34:18watusimotohi
16:34:21Martinskiedit:found it
16:35:08MartinskiI found a ToasterBox program in python
16:35:12Martinskiwhich makes notifications
16:35:20Martinskimaybe I can use it and also parse the json with python
16:35:23watusimotohttp://code.google.com/p/notifyx/
16:37:33Martinskino, I think I'll use ToasterBox
16:40:39CrazyLinuxNerd Quit (Quit: Leaving)
16:40:57watusimotothere are a couple of toasterboxes... which are you looking at?
16:41:07Martinskihttp://xoomer.virgilio.it/infinity77/AGW_Docs/toasterbox.ToasterBoxWindow.html
16:41:37Martinskino wait
16:41:39Martinskiactually
16:41:40Martinskihttp://wxpython.org/Phoenix/docs/html/lib.agw.toasterbox.ToasterBox.html
16:41:42Martinskithis one
16:43:36watusimotolooks nice
16:43:42Martinskiyes
16:43:52Martinskiit has methods for everything we need for the window
16:44:05Martinskialso I like python scripting and it will be fun parsing the json :D
16:44:08watusimotoand the json fetching and processing should be easy in python
16:57:33Martinskiproblem - there are NO tutorials and stuff about using the ToasterBox ;d
17:02:20watusimotothere;s a short snippet here: http://stackoverflow.com/questions/7407075/problem-with-toasterbox-can-you-join-a-timer-or-force-a-thread-to-wait-on-a-t
17:02:38watusimotothough that thread in general isn't relevant
17:02:56Martinskialfo writing self gives me problems
17:02:58watusimotoand another here
17:02:59watusimotohttp://xoomer.virgilio.it/infinity77/AGW_Docs/toasterbox_module.html
17:04:23watusimotowhat's the problem with self?
17:08:15Martinskihm
17:08:20Martinskithe 2nd demo works
17:08:28MartinskiI'll try to inspect it very carefully
17:08:41watusimotoMission Accomplished!
17:09:09watusimoto(that's a joke you probably won't get)
17:09:22Martinskiyes :D
17:09:32Martinskiexplain it please :D
17:10:11DarrelIt's kind of undersandable :D
17:10:16Darrelunderstandable*
17:10:57watusimotoAfter the US started it's invasion of Iraq (the more recent one), George Bush went on TV in front of a banner saying "Mission Accomplished" to basically declare victory. Shortly thereafter, things started going very badly in Iraq, and it became obvious that the mission was anything but accomplished.
17:11:29watusimotoso I use it in an ironic way to signal a very early positive sign
17:11:39Martinskiyes, understood :D
17:16:31Darrel:D
17:20:58Martinskiwtf
17:21:15Martinskiwhen I try to add the popup position it gives me
17:21:22Martinskiunexpected indend error :O
17:28:25Martinskiwhat resolution should I use ?
17:33:01kodaws Quit (Ping timeout: 244 seconds)
17:39:26Martinskiwatusimoto
17:39:33MartinskiI'm going for dinner
17:46:20Darrel Quit (Read error: Connection reset by peer)
18:02:19watusimotoI'm out of here too... I don't understand the resolution question, so you can ask me again later
18:06:41watusimoto Quit (Ping timeout: 260 seconds)
18:13:07Martinskiraptor ?
18:13:09Martinskiare you here
18:13:44raptorhello Martinski
18:13:56MartinskiBecause I'm leaving after a while
18:14:06Martinskiand tomorrow I have school until 15:00
18:14:20MartinskiI think my task time will end
18:14:42Martinskibecause I have 16 hrs now
18:14:43raptorwant an extensions?
18:14:53Martinskimaybe but a bit later
18:14:57Martinskiit's not a problem right ?
18:15:17raptoryeah, no problem :)
18:16:02Martinskiok, I'm going to work more and when I need, I'll write you about the extension
18:16:55raptorsure
18:17:01Martinskithank you :)
18:21:34raptoryou're welcome
18:29:24martin_bederaptor: hey, could you verify my bitfighter account manually? the activation e-mail didn't arrive. i tried resending it
18:29:31raptorok
18:29:35raptorwhat is the account name?
18:29:42martin_bedemartin_bede
18:30:42raptorok, i think you're activated now
18:30:46raptortry logging in :)
18:31:52martin_bedeit works, thanks
18:32:10raptoryou're welcome
18:38:28martin_bedehow should i submit my work? hg export?
18:39:01raptoryou can make a diff or an export, sure
18:39:14martin_bedeokay
19:00:29raptorall right! i'm off to my exam. wish me luck!
19:00:44martin_bedebye, good luck :)
19:00:52Martinskigood luck
19:00:56Martinskiand extend my time before you go :D
19:01:01raptorthanks!
19:01:02raptorok
19:02:16raptordone
19:02:35Martinskithanks
19:03:53raptor Quit ()
19:14:11Martinskigood night guys, see you tomorrow :)
19:14:14Martinski Quit ()
19:35:43Watusimoto has joined
19:36:18Watusimotohello
19:36:25Watusimotohow's it going, martin_bede?
19:36:41martin_bedehi, i think it's ready
19:36:52Watusimotoit works?
19:37:00martin_bedeyes
19:37:07Watusimotogood!
19:37:17Watusimotocan you show me your code?
19:37:57Watusimotoand where is everyone?
19:38:35martin_bederaptor is taking an exam
19:38:48martin_bedeothers just left because its late, i guess
19:39:25martin_bedethese are my changes: http://www.google-melange.com/gci/work/download/google/gci2012/8018212?id=5001
19:44:33Watusimotolooks good, though there is a flaw
19:44:56martin_bedewhat's it?
19:45:14Watusimotobut first, a couple of quick comments -- you don't need the L check (to get here L can't be null)... well that's the comment
19:45:17Watusimotothe flaw
19:45:27Watusimotowhat if you run the constructor with
19:45:40WatusimotoTestItem.new("Apple")?
19:45:55WatusimotoI don't actually know what will happen, but i suspect a crash
19:46:13Watusimotoand the reason is this line:
19:46:14WatusimotocheckArgList(L, functionArgs, "ResourceItem", "constructor");
19:46:21Watusimotoprobably isn't doing anything
19:46:48Watusimotobecause it has nothing to check
19:48:16Watusimotoit gets its list of things to check from here:
19:48:19Watusimotoconst LuaFunctionProfile TestItem::functionArgs[] = { { NULL, { }, 0 } };
19:48:32Watusimotoand as you can see, that is just an empty list
19:50:30Watusimotoso
19:50:34Watusimotohow to fill the list
19:51:03Watusimotoyou can use a macro like the one in LoadoutZone:
19:51:04Watusimoto#define LUA_METHODS(CLASS, METHOD) \
19:51:04Watusimoto METHOD(CLASS, constructor, ARRAYDEF({{ END }, { TEAM_INDX, GEOM, END }}), 2 ) \
19:51:05WatusimotoGENERATE_LUA_FUNARGS_TABLE(LoadoutZone, LUA_METHODS);
19:52:04Watusimotothe GENERATE_LUA_FUNARGS_TABLE macro takes the methods listed in the METHOD line and creates a properly formated functionArgs array
19:52:53Watusimotothere are basically two sets of params we will accept for a LoadoutZone: none at all, and a point/xy
19:53:10Watusimotowhich we will represent like this:
19:53:17WatusimotoMETHOD(CLASS, constructor, ARRAYDEF({{ END }, { GEOM, END }}), 2 ) \
19:53:25Watusimotothere are two items in that list
19:53:37WatusimotoEND just marks the end of a parameter list
19:53:44Watusimotoso { END } is basically an empty list
19:54:05Watusimotowhich is the "none at all" option
19:54:26Watusimotoand { GEOM, END }, whcih basically means a valid geometry
19:54:45Watusimotowhich for a point object (like testItem), will be translated into a point or an x/y pair
19:55:11WatusimotoI hope that makes at least a little sense
19:55:32martin_bedeyes, i think i understand most of it
19:55:58Watusimotoand we need to add some documentation
19:56:09Watusimotohere is how we document the loadoutzone constructor:
19:56:10Watusimoto* @luafunc LoadoutZone::LoadoutZone()
19:56:10Watusimoto* @luafunc LoadoutZone::LoadoutZone(team, geom)
19:56:10Watusimoto* @brief %LoadoutZone constructor.
19:56:11Watusimoto* @descr Default team is Neutral.
19:56:13Watusimoto*/
19:57:51Watusimotowe have a perl program that rips through the code and turns that into something more useful
19:59:38martin_bedewhat's the deal with this line? it isn't used for anything, right?
19:59:39martin_bedeconst LuaFunctionProfile TestItem::functionArgs[] = { { NULL, { }, 0 } };
20:01:13martin_bedeit's below the documentation
20:02:27martin_bedei mean how can this be turned from an empty list to something valuable
20:03:29martin_bedeits not in loadoutZone
20:05:52LordDVG has joined
20:06:51martin_bedei know we use a macro, but how does that work?
20:07:01martin_bedehi, LordDVG
20:10:41Watusimotohow does it work.... well... it's rather a mystery, even to me, and I wrote it :-)
20:12:20Watusimotolook at the macro definition, it will show you what the macro produces
20:12:27Watusimotoit uses a technique called x-macros
20:12:51martin_bedeok, ill check it later
20:12:52Watusimotothat allow you to nearly eliminate certain types of duplicate code
20:13:11Watusimotobut they kind of mess with your mind
20:13:49Watusimotothe important thing for the moment is that you know what they produce, even if you don't fully get how they do it
20:14:04Watusimotoand the comments by their def should show you that
20:18:01martin_bedei think i fixed it: http://www.google-melange.com/gci/work/download/google/gci2012/8018212?id=7001
20:19:19martin_bedewhen i tried passing the constructor a string the game didn't freeze and i got a nice descriptive error message
20:24:52Watusimotobefore your fix?
20:24:55Watusimotoor after?
20:26:05martin_bedeafter
20:26:14martin_bedei didn't test it before
20:27:00Watusimotook, good, then we'll just say it would have crashed and leave it at that :-)
20:27:06Watusimotoyour diff looks good
20:27:57Watusimotoone more comment: unless there is a reason to do so, I usually prefer not to do this->bleg, when bleg will do
20:28:36Watusimotoso the nice thing about checkArgList is that you know that getPointOrXY(L, 1) is guaranteed to return something usable
20:28:55Watusimotobut this is the solution I was looking for, so good job
20:29:07martin_bedethanks
20:29:33Watusimotoso now that you see how it all works, was this an easy task?
20:29:39martin_bedeyes it was :)
20:29:45WatusimotoI thought so!
20:30:18Watusimotoanyhow, I'll accept the code as it stands
20:30:46martin_bedethanks, i won't use this-> unnecessarily next time
20:31:02WatusimotoI think you could parameterize all our objects in a matter of a couple of hours if you knew what the signatures were supposed to be
20:31:09Watusimotomaybe less :-)
20:32:44martin_bedei'm not that optimistic, but you were certainly right when you said these kind of tasks are easy
20:33:01WatusimotoI'm going to create another parameterization task at some point in the near future (I don't control when my tasks get published, so not sure when). There will be more objects with more complex signatures, and perhaps multiple possible signatures, but the idea will be exactly the same. Watch for that, if you want it.
20:33:27martin_bedeok, i'll watch for it
20:34:00Watusimotothis wa the first task I created, so I wasn't sure how hard to make it. originally each object was going to be a separate task
20:34:03martin_bedebtw i misinterpreted that new constructors have to be documented, so i added a few lines to the wiki about them
20:34:08Watusimotothat would have been ridiculous
20:34:12Watusimotook, that's fine
20:34:23Watusimotothat's good
20:34:49martin_bedewell, maybe if you limited these task to one/person
20:35:12martin_bedebut then i couldn't do it again so, you shouldn't do that :D
20:36:08WatusimotoI'd rather not explain it all again!
20:36:28Watusimotoit would have been far easier for me to just do the task myself, but now you can do the others :-)
20:37:08martin_bedei see :)
20:37:09Watusimotonow I need to figure out how to apply your diff
20:39:07martin_bedeit's just hg import cset_v2.diff, isn't it?
20:50:56Watusimotois it?
20:52:16martin_bedei haven't done this before, but according to a tutorial, yes, hopefully
20:52:26martin_bedegood night
20:52:35martin_bede Quit (Quit: Bye)
20:52:35Watusimotoi'll try it. good night, and thanks!
20:53:42BFLogBot Commit: 249ab51c6adf | Author: watusimoto | Message: Move version numbers to constants
20:53:44BFLogBot Commit: e130c656cef9 | Author: martin_bede | Message: Parameterized Lua contructor of TestItem and ResourceItem.
21:47:32LordDVG Quit (Remote host closed the connection)
23:25:28raptor has joined
23:25:28ChanServ sets mode +o raptor
23:38:45BFLogBot Commit: 3ea043b9b8ac | Author: watusimoto | Message: Remove some this->s
23:38:47BFLogBot Commit: 04d4b533dd7e | Author: watusimoto | Message: Formatting
23:38:48BFLogBot Commit: fb706de8b947 | Author: watusimoto | Message: Make path names appear a little more consistent
23:38:50BFLogBot Commit: 2acdf0a4038a | Author: watusimoto | Message: .00000001% more efficient
23:38:51BFLogBot Commit: f713b868b5cf | Author: watusimoto | Message: Whitespace
23:38:53BFLogBot Commit: 8200ff70cc4b | Author: watusimoto | Message: Fix constructor parameterization. I gave bad advice.
23:38:54BFLogBot Commit: a00481b6e020 | Author: watusimoto | Message: When current level can't be saved, can't test. Instead of hanging in the menu, return to editor so user can see the error message and take proactive steps to fix it.
23:39:06raptorhi
23:39:09Watusimotohi
23:39:24Watusimototest?
23:39:29Watusimotoas in did you have it?
23:40:04raptoryeah - i didn't do as good as expected: 90%
23:40:17raptornot expected - hoped
23:40:32raptorit'll probably bring my final grade down to A-
23:41:33Watusimotothat sounds pretty good to me
23:41:42Watusimotosorry you are disappointed though
23:42:20raptori'm just hard on myself..
23:43:15raptor"Since mixed delimeters look like crap..."
23:43:17raptoryes
23:43:20raptori agree
23:43:51WatusimotoI can't imagine where that grade is going to matter one whit
23:44:16Watusimotoit's not like you;re just out of college and grades actually count for something (because there;s nothing else)
23:44:34Watusimotoin your situation it's basically pass/fail
23:44:51Watusimotounless I misunderstand your situation
23:45:20raptorthat's true - i'm not going to school for grades - but i'm still hard on myself...
23:45:40raptoryou're understand right
23:45:45raptor*you
23:46:27raptorit's not the A- that bugs me, it's the fact i got something wrong...
23:46:32Watusimotoha
23:46:44Watusimotowell, I still respect you
23:46:49Watusimotoeven if you don't
23:46:53raptor:) thanks
23:46:58raptorok, well
23:47:01raptorwhere are with GCI?
23:47:05raptorlooks like everyone left..
23:47:11Watusimotoin bed
23:47:15Watusimotothey're all from here
23:47:21raptoroh man! that exam took 4 hours!
23:47:25Watusimotoone task expired and renetered the pool
23:47:31raptorok, it's later than i thought
23:48:01Watusimotoone task completed, and accepted, though after testing I relaized it didn't work, due largely to my advice to the student
23:48:09Watusimotothough trivially fixed
23:48:29Watusimotono news on toaster
23:48:31raptorha!
23:48:57raptorhmm ok
23:49:22raptori'm thinking about playing with triggers for the level design contest
23:49:22WatusimotoI'm going to package up all remaining parameterization tasks into one or two projects, and try to get the same guy to do them, now that he understands how things work
23:49:22Watusimotogood idea
23:49:29Watusimotoand we can add any that you want
23:49:41WatusimotoI was also thinking of adding a gci section to the credits
23:49:47raptorfix android crash
23:49:55raptorno, just joking
23:50:09Watusimotowhich would be superseeded if we do another gci or gsc
23:50:16Watusimotosometing easy
23:50:33raptorso each gci / gsoc would clear it out?
23:50:38WatusimotoI think so
23:50:43raptorthat sounds good
23:50:59Watusimotoif any of the students stick around, they can go in the regular credits
23:51:09Watusimotoand we need to award some developer badges :-)
23:51:35Watusimotoand I figured out the easy way to apply a diff to the codebase
23:51:46Watusimotomaking it a cinch to integrate code from the students
23:52:28raptoroh good
23:52:39raptorit's easy on linux - i wasn't sure how to do so on windows
23:52:50Watusimotothere's a gui function that will read the diff straight off the clipboard
23:53:06Watusimotowhich makes it really easy
23:53:11raptorthat's even easier than linux!
23:53:12Watusimotoeven gets the name right
23:53:45WatusimotoI'm turning in soon
23:53:49raptorok
23:54:12raptorgood night. i'll probably check in in 3 days or so, then out for 1.5 weeks 2days after that
23:54:17WatusimotoI'll probably not hear from you for a while... so have fun!
23:54:25Watusimotowhere aer you going, anyway, if I might ask?
23:54:29raptortexas
23:54:35raptorhouston
23:54:41Watusimotothe real deal then
23:54:48raptorthe wife's family wants to see the grandkids :)
23:54:50Watusimotonot this poser Austin garbage
23:54:54raptorhaha
23:55:13WatusimotoI've never actually been to texas
23:55:21Watusimotosome day...
23:55:41Watusimotoprobably a good time of year
23:55:45raptori was actually suprised at how courteous Houstonians were
23:55:56raptorthe first time i went
23:55:59Watusimotoyou have to be nice when anyone could have a gun
23:56:08raptorhaha, that's what i was told
23:56:21Watusimoto:-)

Index Search ←Prev date Next date→

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