Wednesday, 2007-08-22

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** nash_ is now known as nash01:35
*** nash has quit IRC03:15
*** CIA-23 has quit IRC03:48
*** CIA-23 has joined #tp03:48
*** CIA-23 has quit IRC03:57
*** CIA-17 has joined #tp04:00
*** llnz has joined #tp04:50
JLPllnz: ahoy04:50
*** niphree has joined #tp04:51
niphreehello04:51
JLPniphree: ahoy04:51
niphreeJLP: hey04:51
CIA-17niphree /tmp/3lu0N40qsV/hfSffzYyUU-rewrite * r8e40d9165904 /stat.php:04:52
CIA-17code cleaning04:52
CIA-17via git-CVS emulator04:52
llnzhi JLP, niphree04:52
*** jotham has joined #tp05:38
jothamhi05:38
llnzhi jotham05:38
jothamwhat's up05:39
llnzi'm going to be in wellington again, Thursday and Friday next week05:39
jothamcool05:40
jothamremind me closer to the date, maybe we can get some food05:40
jothami hardly know you =)05:40
llnzcool, will do05:40
llnztrue05:40
jothamhey llnz05:49
jothamany chance more than one side will have a homeworld in a battle05:49
jothamor that one side will have multiple homeworlds05:50
llnzhummm.... i guess there could be multiple planets in a battle, depending on the scale of the game05:50
jothamam writing an algorithm for arranging the graphics in a pretty way during a battle05:51
jothami am trying to define the parameters for my algo05:51
jothami guess i can write it one way and in the future we can fix it up to handle larger scale battles05:51
llnzyeah05:51
llnzi thought the xml gave coordinates?05:52
jothamnot the battleviewer xml i get05:52
jothamalso that'd ruin part of the purpose of this part of the project05:52
jothamwhich is to display the battles in an elegant manner05:52
jothami was going to do the ships in clusters based on sides, but generally in a ring around any homeworlds05:52
jothamanyway will get it working and you guys can critique it05:53
llnzposition elements05:55
llnzof move elements05:55
jothamthere is no move elements in the xml stuff i get06:10
llnzit's in the dtd06:11
jothamtrue06:12
jothamwell i don't know how you guys want to deal with that06:12
jothambecause i personally think that will make in-battle look stupid, unless there is some strategic aspect to it that adds value to the game, and then i can reconsider what i'm doing06:13
llnzit sounds like you are trying something cool, go for it06:13
llnzit's unlikely we will use the position/move stuff for a while (years)06:14
jothamwonder why i have no movements in the test battle data i have to work with06:14
jothamhopefully in years i'll have a realtime 3d viewer :p06:14
llnzneither minisec or mtsec have movement in combat06:14
*** JLP has quit IRC06:16
*** JLP has joined #tp06:21
*** JLP has quit IRC07:15
*** JLP has joined #tp07:15
* llnz wanders off08:08
llnzlater all08:08
*** llnz has quit IRC08:08
*** Demitar has quit IRC08:23
*** DystopicFro has joined #tp09:01
*** DystopicFro has quit IRC09:02
*** DystopicFro has joined #tp09:13
*** drdevice has joined #tp09:19
*** mithro has joined #tp09:38
mithro~seen niphree09:38
tpbmithro: niphree was last seen in #tp 4 hours, 47 minutes, and 1 second ago: <niphree> JLP: hey09:38
mithroniphree: ping?09:38
niphreemithro: pong09:47
mithroniphree: well, I'm home again09:47
mithroso we can chat now if you want09:48
niphreeok -09:49
niphreeI would like to test backconnect09:51
mithrookay09:52
mithrohow do you want to test it?09:52
niphreehmm...09:53
mithroI can setup a server to connect to your computer instead of the normal metaserver09:53
niphreecould you give me exact data that sever will send to metaserver ?09:53
niphreebut I what anwser server will get09:54
niphree (I can write it in some log file.. )09:54
*** guitsaru has joined #tp09:58
niphreebrb09:59
niphreeback10:02
mithroniphree: okay10:02
mithroniphree: I could give you an example URL?10:02
mithrobut that doesn't let you actually do a back connect10:02
niphreehmm.. not example URL, but the one that this server should send now.10:03
mithroI can get my local tpserver-cpp to connect to your metaserver10:04
niphreeo.. I just realize that I shouldn't check compare some options10:04
niphreefor example 'time for next turn'10:04
mithroyes10:12
mithroonly the "required" options should be10:12
mithroif you give me the "URL" of your server10:15
mithroand I'll get my server to connect to it and try and register10:16
niphreehttp://www.tarl.org/~niphree/parsec/10:18
tpbTitle: Thousand Parsec : Metaserver Server Listing (at www.tarl.org)10:18
mithrohrm, that could be a problem10:18
niphreewhy ?10:18
mithrohold on a sec, I'll fix it10:18
niphreek10:19
mithroniphree: okay just about to connect10:20
mithroniphree: sorry about that10:28
mithrophone call10:28
mithroconnecting now10:28
mithro~seen llnz10:29
tpbmithro: llnz was last seen in #tp 2 hours, 21 minutes, and 28 seconds ago: <llnz> later all10:29
mithroniphree: didn't jump on Lee at all?10:29
niphree?10:30
mithroLee (llnz) is the guy who develops the C++ server10:31
mithrohe would have been a good person to test this with10:31
niphreehmm.. right :/10:32
mithro2007-08-23 00:03:54 < Debug > Sending update info to metaserver10:33
mithrotpserver-cpp> This is the metaserver update request10:33
mithroGET /~niphree/parsec/?action=update&sertype=tpserver-cpp&server=0.4.1&tp=0.3,0.2&key=mykey&rule=MiniSec&rulever=0.3&objs=113&plys=1&prd=120&[email protected]&cmt=Just%20a%20simple%20server,%20no%20persistence...&ln=Mithro's%20Testing%20Server&sn=mithrosgame2&next=1187793234&turn=0&type0=tp&port0=6923&dns0=mithro.dyndns.org&ip0=203.122.246.117 HTTP/1.010:33
mithroUser-agent: tpserver-cpp/0.4.110:33
mithroHost: www.tarl.org10:33
mithro2007-08-23 00:03:56 < Debug > Data back from metaserver10:33
mithro2007-08-23 00:03:56 < Debug > Data back from metaserver10:33
mithro2007-08-23 00:03:56 < Debug > Metaserver disconnected10:33
mithrotpserver-cpp> HTTP/1.1 200 OK10:33
mithroDate: Wed, 22 Aug 2007 14:58:44 GMT10:33
mithroServer: Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7g10:33
mithroX-Powered-By: PHP/5.1.410:33
mithroConnection: close10:33
mithroContent-Type: text/html10:34
mithroRequired key name doesn't exist!10:34
niphreeerror. cool10:34
mithrothat is output from my server10:35
mithrolooks like somewhere we forgot to update the metaserver to support all the tp04 features?10:38
niphreelooks like..10:39
niphreeso: 'name' = 'sn'10:40
mithroyeah, looks about right10:41
mithrosn == short name10:41
mithroif you look at http://www.thousandparsec.net/tp/dev/documents/protocol4.php10:41
tpb<http://ln-s.net/JqO> (at www.thousandparsec.net)10:41
mithroit explains what all those names mean10:42
mithro(in the Server Location (Meta) Protocol section)10:42
niphreeshort name is optional ?10:48
mithroniphree: hrm...10:48
mithrothe short name should probably be required10:49
CIA-17niphree /tmp/FZ8gWtjx3p/mzvyPCYRhi-rewrite * reaf3eae7b392 /database.sql:10:50
CIA-17added shortname and longname to games table10:50
CIA-17via git-CVS emulator10:50
mithroniphree: should I get it to try again?10:51
niphreeno, wait 10min10:52
CIA-17niphree /tmp/fpxA1GCxrN/G1h9TLp2eW-rewrite * rd45b2f7a2e38 /index.php:10:53
CIA-17added longname and shortname10:53
CIA-17via git-CVS emulator10:53
mithroniphree: if you mention my name, my Xchat flashes10:55
mithrowhich will catch my attention quickly10:55
niphreemithro: ok, I tell you when I'll finish :]10:55
mithrocool10:56
CIA-17niphree /tmp/3iF79ZsdPR/vdeU2tkjlS-rewrite * r51d7bbb5cf35 /class/Backend.php:10:59
CIA-17added shortname, longname10:59
CIA-17via git-CVS emulator10:59
mithroniphree: god to see the commits :P10:59
mithros/god/good/10:59
CIA-17niphree /tmp/QXRnNetluX/J0FMuQibMK-rewrite * rac512e67bffd /class/Rss.php:11:01
CIA-17added shortname11:01
CIA-17via git-CVS emulator11:01
mithroniphree: any luck?11:30
*** _JLP_ has joined #tp11:32
*** JLP has quit IRC11:33
mithro_JLP_: ping?11:34
mithroniphree: ping?11:52
mithrothe server is getting back11:52
mithro)11:52
mithrosn<br />f_key<br />f_server<br />f_sertype<br />rule<br />rulever<br />wrong values11:52
niphreemithro: server is back, but with errors :/11:54
mithrooh?11:56
mithroParse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/niphree/public_html/parsec/connect.php on line 4311:57
CIA-17mithro web * rf6ab076bea4a /dev/documents/protocol4.php: Various updates about the metaserver protocol.12:08
niphreeargh12:24
niphreemithro: look at this12:25
mithroniphree: ?12:25
mithroniphree: sure12:25
niphreeif ($_REQUEST['sn'] != $f_name) echo "sn<br />";12:25
niphreeif ($_REQUEST['server'] != $f_server) echo "f_server<br />";12:25
niphreeif ($_REQUEST['sertype'] != $f_sertype) echo "f_sertype<br />";12:25
niphreeif ($_REQUEST['rule'] != $f_rule) echo "rule<br />";12:25
niphreeif ($_REQUEST['rulever'] != $f_rulever) echo "rulever<br />";12:25
niphree12:25
niphree   if ($_REQUEST['sn'] != $f_name ||12:25
niphree$_REQUEST['server'] != $f_server || $_REQUEST['sertype'] != f_sertype ||12:25
niphree$_REQUEST['rule'] != $f_rule || $_REQUEST['rulever'] != $f_rulever )12:25
niphree{12:25
niphreedie("wrong values!");12:25
niphree}12:25
niphreefirst 5 'if' - ok. but last if (all false) - prabobly stupid mistake. but it returns true12:26
niphreewhy ?12:27
mithroahh12:27
mithroI see it12:27
mithro$_REQUEST['server'] != $f_server || $_REQUEST['sertype'] != f_sertype ||12:27
mithro$_REQUEST['server'] != $f_server || $_REQUEST['sertype'] != $f_sertype ||12:27
niphreeqrde12:27
mithrolousy $12:28
niphree:/12:28
mithrolousy PHP for not telling you the error :/12:28
mithrothat fix your problem?12:28
niphreebackconnect is working now12:36
niphreebut I have to fix another thing - IP adress is in this format: 203.122.246.117 HTTP/1.012:37
mithroyay!12:37
mithrohrm?12:38
niphreeok - it's working :]12:43
mithroniphree: committed?12:44
CIA-17niphree /tmp/hCbZzcsttb/TiPtztkDld-rewrite * r312802494eef /class/ (BackConnect.php Backend.php):12:46
CIA-17some error fixed12:46
CIA-17via git-CVS emulator12:46
CIA-17niphree /tmp/4FoQjvSo3K/xgatqIpKIp-rewrite * rc52ce894128a / (connect.php index.php stat.php):12:47
CIA-17backconnect, some error fixed.12:47
CIA-17via git-CVS emulator12:47
niphreemithro: commited12:47
mithrocool12:47
niphreeI'm only comparing required parameters - but optional should work also.12:48
niphreeall optional and location are in /* */ now12:49
mithrookay12:49
mithroniphree: so you are cleaning up code at the moment/12:50
mithros'/'?'12:51
niphreeyes. I'm adding some comments for classes12:53
mithroniphree: http://www.tarl.org/~niphree/parsec/ <- that page is broken12:53
tpbTitle: Thousand Parsec : Metaserver Server Listing (at www.tarl.org)12:54
niphreeoO12:54
mithroniphree: I also noticed that you haven't update the stats page to use the proper section start/end12:55
mithro(around the table/graph/flash)12:57
mithroniphree: also noticing that your tabs/spaces are still having problems12:59
mithroniphree: this may help -> http://www.prettyprinter.de/13:05
tpbTitle: prettyprinter.de (at www.prettyprinter.de)13:05
CIA-17niphree /tmp/EO1iyDCDcu/q1xwmhKqu3-rewrite * r306bff950c52 /index.php:13:06
CIA-17database error fixed13:06
CIA-17via git-CVS emulator13:06
niphreeok - fixed error13:07
mithroniphree: lousy users ;)13:07
niphree:D13:07
mithroniphree: name isn't showing up?13:07
mithroniphree: btw, http://validator.w3.org/check?uri=http%3A%2F%2Fwww.tarl.org%2F~niphree%2Fparsec%2F13:09
tpb<http://ln-s.net/qzG> (at validator.w3.org)13:09
niphreehmm - just one error ?13:10
mithrohttp://pear.php.net/package/PHP_Beautifier13:12
tpbTitle: PEAR :: Package :: PHP_Beautifier (at pear.php.net)13:12
mithrothat might help too13:12
mithrohttp://www.bierkandt.org/beautify/13:14
tpbTitle: Beautify PHP source code (at www.bierkandt.org)13:14
niphreeCongratulations13:15
niphreeThe document located at <http://www.tarl.org/~niphree/parsec/> was checked and found to be valid XHTML 1.0 Strict. T13:15
tpbTitle: Thousand Parsec : Metaserver Server Listing (at www.tarl.org)13:15
niphreeok - it's valid13:15
niphreeI think you want to tell me that my code isn't beautiful :P13:17
mithroniphree: the code itself is pretty good, just the formatting is a bit all over the place13:18
mithroniphree: you should probably display ln if it exist, then sn?13:19
niphreemithro: ok13:21
mithroOn this page, you don't have the normal footer? http://www.tarl.org/~niphree/parsec/stat.php13:21
tpbTitle: Thousand Parsec : (at www.tarl.org)13:21
mithroouch -> http://validator.w3.org/check?uri=http%3A%2F%2Fwww.tarl.org%2F%7Eniphree%2Fparsec%2Fstat.php&charset=%28detect+automatically%29&doctype=Inline&group=013:23
mithro:/13:23
niphreehmm.. "cannot generate system identifier for general entity "agr"."13:25
mithroThe most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".13:27
mithroEntity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.13:27
mithrohttp://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.tarl.org%2F%7Eniphree%2Fparsec%2Frss.php :/13:29
tpb<http://ln-s.net/qzm> (at feedvalidator.org)13:29
mithrohttp://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.tarl.org%2F%7Eniphree%2Fparsec%2Frss.php13:33
tpb<http://ln-s.net/qzu> (at validator.w3.org)13:33
mithroniphree: so? you think you can work on fixing up the stuff so it validates and finish the formatting?13:35
niphreeI think I can work on it now, but I don't think I'll finish by tommorow metting13:37
mithrodo you think you can finish before the end of the week?13:37
niphreeyes13:38
mithrothat would be really cool13:38
mithroso we'll just make sure you are making progress at the meeting tommorrow13:38
mithroplease keep committing often, you have been doing really well over the last week!13:38
niphreeis php function date(DATE_RFC822, $date) - wrong ? I'm using it to generate date in rfc822 format (it's from php.net doc)13:39
mithroniphree: weird, that looks right13:40
niphreeah... it should be date("r", $date)13:42
niphreeI know I take this from documentation :/13:43
mithro:/13:44
niphreehere: http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fwww.tarl.org%2F%7Eniphree%2Fparsec%2Frss.php13:44
tpb<http://ln-s.net/qzm> (at feedvalidator.org)13:44
mithronot quite sure how you should do the GUID which is recommends13:44
niphreefirst error - I will delete all html13:44
niphreewell. I was thinking - seperate site for games ?13:45
mithroPHP. Use the header() function before generating any content, e.g.:13:45
mithroheader('Content-type: text/html; charset=utf-8');13:45
mithroyou can use that to fix -> Feeds should not be served with the "text/html" media type [help]13:46
mithrolooks like the main's website RSS feed isn't valid :/ http://feedvalidator.org/check.cgi?url=www.thousandparsec.net%2Ftp%2Frss.php13:47
tpb<http://ln-s.net/r02> (at feedvalidator.org)13:47
mithroniphree: well, I'm going to head to bed13:48
niphreeok.13:49
mithrobtw, the metaserver should probably be returning an Okay TP frame13:49
niphreeafter 'update' ?13:49
mithroniphree: yeah13:50
niphreemithro: ok13:50
mithroniphree: feel free to use the code formatters above to help speed up fixing things like indenting13:52
mithroafter you are "finished" and check your code in Notepad looks the same as in your editor13:53
niphreeok - I have to make a TODO list now ;)13:53
mithroniphree: okay cool13:55
mithroniphree: I'll leave my server running overnight13:56
mithroniphree: feel free to crash it :P13:58
niphreemithro: yeee ! :D13:59
mithroniphree: any other last questions?14:01
niphreemithro: no - I'll start workning on it :]14:02
mithroniphree: cool14:03
mithrodon't forget to commit often :P14:03
* mithro sounds like a broken record :)14:03
niphreeok, ok :P14:03
mithroniphree: gnight for real14:12
niphreegood night !14:13
*** Demitar has joined #tp16:59
*** CIA-17 has quit IRC17:20
*** CIA-23 has joined #tp17:36
*** CIA-23 has joined #tp18:50
*** nash has joined #tp18:51
CIA-23niphree /tmp/NYMfaPlNLY/Az2iT9g1Uh-rewrite * r5a354f5b9797 / (connect.php index.php stat.php):19:49
CIA-23code cleaning,19:49
CIA-23validate html and rss19:49
CIA-23via git-CVS emulator19:49
CIA-23niphree /tmp/hTX7QKT9fg/kf4cMiRIrM-rewrite * r90a36c9acb28 /class/ (8 files):19:49
CIA-23code cleaning.19:49
CIA-23validate rss19:49
CIA-23via git-CVS emulator19:49
*** niphree has quit IRC19:56
CIA-23niphree /tmp/wmmajH64e5/tAnx00o9xm-rewrite * rd6ef2490c401 /index.php:20:06
CIA-23added long name in servers listenings20:06
CIA-23via git-CVS emulator20:06
*** greywhind has quit IRC20:39
*** CIA-23 has quit IRC21:08
*** CIA-23 has joined #tp21:20
mithrohowdy people22:06
mithronash: ping?22:07
nashpong22:12
nashmithro: ?22:12
mithronash: still need your final survey :P22:13
nashShall do today22:13
nashProbably after lunch22:14
mithronash: that would be cool22:16
nashis it long?22:17
mithronash: niphree got back connect support working last night22:17
nashCool - I saw the commits22:17
mithronash: it felt longer then I would have thought22:17
nashStarting to work on galaxie to talkt o metaserver.22:17
nashAlso supporting multiple servers and the like in galaxie ;-)22:17
mithronash: ?22:21
mithrowhat does this mean -> Also supporting multiple servers and the like in galaxie ;-) ?22:22
nashSo it can talk to multiple servers22:22
mithrohow/when is that useful?22:22
nashFirst use is to get game info from metaserver & and other info22:24
nashAnd generally probe multiple servers simultaneiously22:26
nashLater I want to support multiple games at once ;-)22:26
nashJust for the hell of it ;-)22:26
mithroI can't see how multiple games at once needs anything part from starting multiple galaxies :P22:42
nashMore fun this way ;-)22:45
nashAnd I need it to probe meta server and other servers22:45
mithroyou should be able to get all the information you need directly from the metaserver without having to probe the other servers directly22:47
nashNot for local servers or avahi or similar22:48
mithroyou do need to prob local servers however22:48
nashExactly22:51
mithro(although you can get most of the info from the mdns record22:52
nashI also support passing addresses on the command line - so you can bring up a set - and it will list games for you at all teh servers.22:53
nashAnyway - time for lunch23:24
nashmithro: BTW It ties in to my eventual goal to make galaxie handle being a server too ;-)23:24
mithronash: bah23:25
nashmithro: Why do you think the message handling is fairly generic?23:26
nashAnyway - lunch time - I'm starving23:26
mithronash: wasn't it you who said we should concentrate on getting more people on less things :P23:26
nashYep ;-)23:27
nashNever claimed to be consistent ;-)  Besides - it's an eventual goal.  Short term is to just get it probing mulitpel servers with get-game info23:27
*** greywhind has joined #tp23:55

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!