*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** nash_ has joined #tp | 00:01 | |
*** nash has quit IRC | 00:01 | |
*** nash_ is now known as nash | 00:01 | |
*** bddebian has quit IRC | 00:13 | |
* llnz wanders home | 00:59 | |
*** llnz has quit IRC | 00:59 | |
*** JLafont has quit IRC | 01:06 | |
*** JLafont has joined #tp | 01:07 | |
*** JLafont has quit IRC | 01:17 | |
*** JLafont has joined #tp | 01:18 | |
*** JLafont has quit IRC | 01:23 | |
*** nash has quit IRC | 01:27 | |
*** nash has joined #tp | 01:41 | |
*** Lukstr has joined #tp | 01:46 | |
*** llnz has joined #tp | 02:09 | |
*** JLP has joined #tp | 02:34 | |
JLP | ahoy all | 02:35 |
---|---|---|
llnz | hi JLP | 02:36 |
llnz | ! | 02:36 |
* JLP goes reading the logs to see what he missed while being ill | 02:38 | |
llnz | just look at the last part of the topic :-) | 02:38 |
JLP | oh yeah llnz, congrats on the release of the new version of the server | 02:38 |
llnz | thanks | 02:39 |
llnz | i've put notes out on SF, freshmeat | 02:39 |
llnz | tried digg, but not working :-( | 02:39 |
llnz | bbs, dinner | 02:40 |
*** nash has quit IRC | 02:44 | |
llnz | back, no dinner yet | 02:50 |
tpb | aloril has joined on worldforge | 03:09 |
JLP | mmmmm, icecream | 03:47 |
*** mithro has quit IRC | 03:51 | |
*** Erroneous has joined #tp | 03:54 | |
*** DTRemenak has joined #tp | 03:55 | |
*** DTRemenak|RDP has quit IRC | 04:11 | |
*** Erroneous has quit IRC | 04:12 | |
CIA-29 | llnz tpserver-cpp * r3274bd298611 /tpserver/ (playerconnection.cpp playerconnection.h playertcpconn.cpp): | 04:17 |
CIA-29 | Refactored the common out-of-game frames in PlayerConnection. | 04:17 |
CIA-29 | GetFeatures, TimeRemaining, SetFilters and GetGameInfo now only have one | 04:17 |
CIA-29 | implementation. Also made PlayerTcpConnection use GetFeatures, though I | 04:17 |
CIA-29 | would like to remove it completely from there. | 04:17 |
* JLP now attacks the huge pile of emails | 04:27 | |
llnz | fun | 04:27 |
CIA-29 | llnz tpserver-cpp * reabd1e8c066c /tpserver/playertcpconn.cpp: | 04:33 |
CIA-29 | Disallow TP02 and early protocols. | 04:33 |
CIA-29 | Had previously allowed TP02, but disallowed TP01. Noone should be using TP02 | 04:33 |
CIA-29 | and hopefully everyone is moving to TP04. | 04:33 |
* llnz adds more to JLP pile of emails | 05:18 | |
JLP | yay :) | 05:18 |
CIA-29 | llnz tpserver-cpp * r684579eeb6d1 /tpserver/playerconnection.cpp: | 05:27 |
CIA-29 | Moved FeatureFrame creation from Network to PlayerConnection. | 05:27 |
CIA-29 | Haven't removed it from Network yet, but will shortly. Better fit | 05:27 |
CIA-29 | in PlayerConnection rather than Network. | 05:27 |
JLP | oh i see tpclient-pywx was finally added to tucows, now that was "fast" | 05:32 |
JLP | http://www.tucows.com/preview/508277 | 05:33 |
tpb | Title: Downloads - Thousand Parsec wxPython Client 0.2.0 GPL Software (at www.tucows.com) | 05:33 |
llnz | hehe, cool | 05:37 |
CIA-29 | llnz tpserver-cpp * rba87dde08503 /tpserver/ (net.cpp net.h): | 05:38 |
CIA-29 | Remove FeatureFrame processing from Network. | 05:38 |
CIA-29 | Now in PlayerConnection. Less complex. | 05:38 |
CIA-29 | jlp web * re941c1ab10ea /news/ (2007-10-20-1302.news 2008-04-23-1400.news): Fixed the link to Ryan Neufeld's blog | 05:44 |
JLP | wow, cool, mithro going to work for google | 06:07 |
llnz | yeah | 06:38 |
*** accAgon has joined #tp | 06:57 | |
llnz | hi accAgon | 06:58 |
*** accAgon is now known as Marcel | 06:58 | |
Marcel | hi llnz | 06:58 |
JLP | hm http://code.google.com/p/exastris/ | 07:06 |
tpb | Title: exastris - Google Code (at code.google.com) | 07:06 |
JLP | this could fit just nice into TP framework | 07:06 |
JLP | looks like it is still very young so maybe there is still chance for it to become based on TP | 07:09 |
JLP | i'll comment on his blog and ask him for thought about this | 07:10 |
llnz | cool | 07:11 |
llnz | it is turn based? | 07:11 |
JLP | don't know yet, still checking it out | 07:13 |
llnz | they are using maemo as well, so maybe we could get an Nokia n700/800 client as well :-) | 07:13 |
Marcel | Don´t forget openmoko. | 07:13 |
llnz | true | 07:14 |
Marcel | llnz: Do you know more about the code generator for the protocol libraries? | 08:12 |
llnz | yes | 08:12 |
llnz | ahhh | 08:13 |
Marcel | Can it generate csharp code :) ? | 08:13 |
llnz | you are interesting in coding in C# | 08:13 |
Marcel | yeah | 08:13 |
llnz | Marcel: it shouldn't be too hard to do | 08:13 |
Marcel | :) | 08:13 |
Marcel | I´m currently searching for a xml->c# generator and I found one commercial which depend on a library from the company and one from MS but this one generates the code without comments and with things I don´t understand :/ | 08:15 |
llnz | well... someone started on a code generator | 08:15 |
Marcel | And all in one 42kb big file | 08:15 |
Marcel | How is the status of the code gen? | 08:16 |
llnz | start reading this thread: http://www.thousandparsec.net/tp/pipermail.php/tp-devel/2008-March/000852.html | 08:18 |
tpb | <http://ln-s.net/1qNc> (at www.thousandparsec.net) | 08:18 |
*** ezod has quit IRC | 08:18 | |
*** ezod has joined #tp | 08:18 | |
llnz | that first message has a generator which somewhat creates c++, python and java classes for the protocol | 08:19 |
llnz | that is one approach | 08:19 |
llnz | the other is to create the objects at runtime directly from the xml | 08:19 |
llnz | which is harder IMHO | 08:20 |
llnz | you could write a generator in c#, it shouldn't be too hard | 08:26 |
Marcel | I could, but I never wrote a python program | 08:33 |
llnz | you could write a generator in c# | 08:33 |
llnz | parse the xml, pull out the relevent bits, create code, dump into files | 08:34 |
llnz | you might like to create a couple of the frame classes by hand first to see what they should look like | 08:38 |
Marcel | Would the generated code depend on xml. I aks because currently I have generated code in C# but it has lots of attributes | 08:39 |
Marcel | depending most on System.Xml.Serialization | 08:40 |
llnz | no, it wouldn't | 08:41 |
*** mithro has joined #tp | 08:54 | |
mithro | heyo people | 08:55 |
ezod | hi mithro | 08:55 |
mithro | how goes everything? | 08:55 |
ezod | ok here | 08:56 |
ezod | gsoc has officially assumed its position in the back seat until tuesday ;) | 08:57 |
llnz | hi mithro | 08:57 |
ezod | hoping to finish all my requirements for school this weekend | 08:58 |
mithro | ezod: excuses excuses | 08:58 |
ezod | mithro: did you follow my talk with llnz at all? | 08:59 |
ezod | JLP: ping, ^^ | 08:59 |
CIA-29 | llnz tpserver-cpp * rc5a224b8f362 /tpserver/ (7 files): | 09:00 |
CIA-29 | Moved all protocol defines, enums, etc to new protocol.h | 09:00 |
CIA-29 | Added a number of typedefs as well. Included by frame.h, so no real advantage. | 09:00 |
CIA-29 | Changed FrameVersion to ProtocolVersion, so FrameVersion can be used for | 09:00 |
CIA-29 | the versioning of each frametype. | 09:00 |
mithro | did you know that you can get an RSS feed of wiki changes? | 09:01 |
llnz | yes, it's very handy | 09:01 |
Marcel | llnz: I found a .xsd to C# class generator (ADCG) which works good. The .xsd file is generated from the protocol.xml via visual studio 2008. Only problem now is I have no comments in the code :/ | 09:02 |
JLP | ezod: pong? | 09:03 |
llnz | Marcel: you don't need C# classes for the various node types, etc that you will have generated from the .xsd (which i guess is related to our dtd) | 09:04 |
llnz | the xml describes our protocol, not the dtd | 09:05 |
llnz | ie, one more layer of indirection | 09:05 |
ezod | JLP: just wondering if you had followed my thread on the ML recently | 09:06 |
JLP | ezod: nope, i was ill for about a week, so i just rarely looked on the internet | 09:08 |
JLP | ezod: i just know about the thread but did not read it yet | 09:09 |
mithro | I think we should add it to tpb so that it can announce when the wiki pages change | 09:11 |
mithro | also lets us make sure nobody spams | 09:11 |
llnz | mithro: why's that? because it will spam here too? | 09:12 |
mithro | well - we announce git commits | 09:12 |
mithro | how are wiki page edits any less important? | 09:12 |
llnz | true | 09:12 |
llnz | harder to spam git commits than wiki | 09:13 |
JLP | mithro: about launchpad projects, if the licenses for python stuff is gplv2 it is OK right? | 09:16 |
mithro | it's gplv2+ | 09:16 |
CIA-29 | fr33.em4il tpserver-cpp * re4615b3af425 /tpserver/ (4 files): Added a couple typedefs for some object params. | 09:16 |
*** bddebian has joined #tp | 09:16 | |
mithro | llnz: but it lets people on IRC see the spam and fix it straight away? | 09:16 |
mithro | hey bddebian | 09:16 |
llnz | xdotx: ? | 09:17 |
xdotx | reminded me | 09:17 |
llnz | mithro: true | 09:17 |
JLP | mithro: there's no option to choose 2+, i can only choose 2 and 3 | 09:17 |
bddebian | Morning | 09:17 |
mithro | gplv2 (or any later version) | 09:17 |
xdotx | llnz: a couple more readable type names (instead of std::map < pair<int32,uint> uint >) | 09:18 |
llnz | ah, ok | 09:18 |
xdotx | llnz: i was iffy about defining them in the class, but it seems the most appropriate scope | 09:19 |
Marcel | llnz: Now I´m confused. I have the protocol.xml file which defines the protocol which will send over the net. I converted the xml file to .xsd because the ADCG can only handle xsd and sdf. And after convert I get some .cs files which contains c# source code. | 09:19 |
mithro | Marcel: can you code? | 09:20 |
xdotx | i mainly looked for adding typedefs to otherwise complex / long winded types that were used in class interfaces | 09:20 |
llnz | Marcel: it will not be that easy | 09:20 |
llnz | xdotx: ok, cool | 09:20 |
Marcel | mithro: yes, but not that good and only in C# | 09:20 |
JLP | mithro: hm i can't change the details for tpclient-pywx anyways | 09:21 |
mithro | Marcel: nothing exists which will "auto convert" the xml to C# - that type of thing is not possible | 09:21 |
llnz | xdotx: that looks fine, class scope seems ok | 09:21 |
mithro | Marcel: you could write code which does it specifically for the thousand parsec protocol xml | 09:22 |
llnz | s/could/need/ | 09:24 |
Marcel | mithro: Can I send you the generated source that you can take a look at it if it is really wrong what I do? | 09:25 |
* xdotx is goin' back to bed | 09:26 | |
mithro | Marcel: I'm not sure what you mean | 09:26 |
mithro | we will help you debug your code | 09:26 |
mithro | but only if it's open source | 09:27 |
mithro | and we won't write it for you | 09:27 |
* llnz deletes his 263MB database to start a new game | 09:28 | |
Marcel | I planned to license it under an os license. | 09:28 |
Marcel | yep, I want to write it by myself. | 09:29 |
Marcel | And what I mean is if you can look at the generated code and say if I´m on the right way or wrong way. | 09:29 |
mithro | Marcel: sure - upload it to a code repository somewhere | 09:30 |
Marcel | I have 28 files (generated by ADCG) and one single file (by xsd.exe). Can´t I send you it via irc or upload it to a file host? | 09:32 |
llnz | easier way | 09:36 |
llnz | tell us some of the class names it created | 09:36 |
mithro | Marcel: I don't think ADCG will not be generating anything useful | 09:38 |
Marcel | character, descparameter, descstruct, packet, protocol | 09:39 |
llnz | ah, yes | 09:39 |
llnz | you have created a generator/parser for the protocol.xml format | 09:39 |
llnz | not the protocol | 09:39 |
llnz | your generator will create classes like Okay, Fail, Object, ObjectDescription, Order, etc | 09:41 |
*** chammiya has joined #tp | 09:42 | |
Marcel | llnz: So, this is the wrong way? | 09:43 |
llnz | yes | 09:43 |
Marcel | ;( Okay, what do I need to do? | 09:43 |
llnz | you need to write a code generator | 09:45 |
llnz | it will: | 09:45 |
llnz | - load the protocol.xml file | 09:45 |
llnz | - create a DOM tree from it | 09:45 |
llnz | - go through the tree, creating classes from the information it finds | 09:45 |
llnz | in each class, you will create the right members, getters and setters, and methods to create frames and read frames | 09:48 |
CIA-29 | llnz documents * rd2a7b468a692 /protocol/protocol.xml: Added GetPlayerIDs and PlayerIDs frames for getting the list of Player ids. | 09:54 |
mithro | was my last day at work today | 09:54 |
llnz | mithro: cool | 09:55 |
CIA-29 | llnz tpserver-cpp * r7fc7fd1e0954 /tpserver/protocol.h: Added PlayerIds_Get and PlayerIds_List to FrameType enum. | 09:56 |
llnz | Marcel: a good first goal would be to get the packet names and id numbers and print them out, or create an enum or similar with the values | 09:59 |
mithro | well I'm going to head to bed | 10:00 |
mithro | have a good night | 10:00 |
mithro | hopefully I can write up a state of the union tommorrow | 10:00 |
llnz | cool | 10:00 |
Marcel | good night mithro | 10:01 |
Marcel | llnz: From a server? | 10:01 |
llnz | no, from the protocol.xml file | 10:01 |
Marcel | From this one: <parameterset name="OrderParams"> The "Order Params" ? | 10:05 |
llnz | nope, from <packet id="0" name="Okay"> | 10:06 |
llnz | there are two parametersets at the start of the file, ignore them for now | 10:06 |
llnz | also ignore packets with name "Header", "request" and "response" | 10:09 |
llnz | have you found packet 0, "Okay"? | 10:09 |
Marcel | Will take a look later at it, now I´m eating somethign :D | 10:10 |
Marcel | yeah, but only the reponse | 10:10 |
llnz | don't worry about the base attribute yet | 10:11 |
llnz | on the wire, the body of the Okay frame has a string (see in the structure element) | 10:11 |
llnz | the string is encoded as a NBO uint32_t length, followed by the UTF8 string | 10:12 |
llnz | the class for Okay could look like: | 10:12 |
llnz | class Okay{ | 10:12 |
llnz | string result; | 10:12 |
llnz | public string getresult(){return result;} | 10:13 |
llnz | public void setresult(string nresult){result = nresult;} | 10:13 |
llnz | public void packBuffer(Buffer buf){ | 10:14 |
llnz | buf.packString(result); | 10:14 |
llnz | } | 10:14 |
llnz | public void unpackBuffer(Buffer buf){ | 10:14 |
llnz | result = buf.unpackString(); | 10:14 |
llnz | } | 10:14 |
llnz | }; | 10:14 |
llnz | plus everything else, including comments and inline documentation | 10:15 |
* llnz hasn't done C# and only seen a tiny amount of C#, so forgive the syntax | 10:15 | |
llnz | and since i'm 2.5 timezones ahead of mithro, i'm off | 10:16 |
llnz | Marcel: that should give you enough to get started | 10:17 |
* llnz wanders off | 10:17 | |
llnz | later all | 10:17 |
*** llnz has quit IRC | 10:17 | |
*** mithro has quit IRC | 10:20 | |
*** Erroneous has joined #tp | 12:41 | |
*** JLafont has joined #tp | 13:08 | |
*** JLafont has quit IRC | 14:48 | |
*** JLafont has joined #tp | 14:49 | |
*** AquaFox has quit IRC | 14:58 | |
bddebian | mit | 15:56 |
bddebian | grr | 15:56 |
*** ezod has quit IRC | 16:41 | |
*** andrei is now known as andrei_away | 17:04 | |
*** Marcel has quit IRC | 18:02 | |
*** ezod has joined #tp | 18:17 | |
*** Lukstr has quit IRC | 18:21 | |
*** bddebian has quit IRC | 18:30 | |
*** llnz has joined #tp | 18:42 | |
JLP | ahoy llnz | 18:43 |
llnz | hi JLP | 18:43 |
*** JLP has quit IRC | 19:20 | |
*** JLP has joined #tp | 19:23 | |
CIA-29 | llnz tpserver-cpp * r4c8025f384c3 /tpserver/ (playeragent.cpp playeragent.h): | 19:48 |
CIA-29 | Implemented PlayerIds_Get incoming frames. | 19:48 |
CIA-29 | Only TP04. | 19:48 |
*** greywhind has quit IRC | 19:52 | |
*** Erroneous has quit IRC | 21:15 | |
*** JLafont has quit IRC | 21:32 | |
*** JLafont has joined #tp | 21:32 | |
*** Ohm has quit IRC | 22:17 | |
*** mithro has joined #tp | 22:18 | |
*** Ohm has joined #tp | 22:24 | |
mithro | morning people | 22:26 |
mithro | ~seen vi1985 | 22:26 |
tpb | mithro: vi1985 was last seen in #tp 3 days, 3 hours, 52 minutes, and 8 seconds ago: <vi1985> thanks | 22:26 |
*** peres has joined #tp | 23:03 | |
*** bddebian has joined #tp | 23:06 | |
bddebian | Howdy | 23:07 |
bddebian | mithro: Should be i386 wxwidgets2.8 packages up for unstable now | 23:07 |
mithro | bddebian: that is awesome! | 23:09 |
mithro | so now people only need to add one repository for debian? | 23:09 |
bddebian | Should be able to | 23:13 |
bddebian | Except for those pesky amd64 users ;-P | 23:14 |
*** DTRemenak has quit IRC | 23:16 | |
*** DTRemenak|RDP has joined #tp | 23:17 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!