*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
xdotx | er.. mithro, have you tried the version you checked out? | 00:05 |
---|---|---|
*** mithro has quit IRC | 00:18 | |
*** nash has quit IRC | 00:19 | |
*** mithro has joined #tp | 00:19 | |
*** nash_ is now known as nash | 00:19 | |
*** nash_ has joined #tp | 00:19 | |
*** nash_ has quit IRC | 00:27 | |
mithro | FSCK! FSCK! FSCK! :/ | 00:50 |
jotham | ? | 00:58 |
nash | I'm guessing: <mithro> i just did a rm -rf tpserver-py rather then tpserver-cpp | 00:59 |
mithro | nash: yes | 00:59 |
mithro | I have a branch of tpserver-py which was registering on the metaserver and sending out zeroconf information | 00:59 |
mithro | and I had a branch which emailed people their passwords | 01:00 |
mithro | both which I've lost :/ | 01:00 |
nash | No backups? | 01:00 |
mithro | not recent enough | 01:00 |
xdotx | no way to retrieve deleted files? | 01:01 |
mithro | less work to rewrite it | 01:05 |
mithro | :/ | 01:06 |
xdotx | :/ indeed | 01:06 |
nash | mithro: I get the feeling you may be pushing to more branches on tp.net... | 01:07 |
xdotx | mithro: well.. good news is i fixed and found my problem (in that order). ruleset loads fine | 01:07 |
mithro | nash: indeedy | 01:07 |
nash | may not be a bad thing in teh end - may help encourage people to start working on more the separate pieces, rather then just their own piece of pie | 01:09 |
* nash notes he is guilty of this too... | 01:09 | |
mithro | i was getting a nice pretty gitk graph too :/ | 01:27 |
nash | mithro: That shoudl be easy to fix | 01:28 |
nash | I'll send you some random patches to random versions. | 01:28 |
mithro | i'm heading home | 01:35 |
nash | talk to you later | 01:35 |
*** llnz has joined #tp | 01:46 | |
llnz | a bug! | 01:46 |
xdotx | heh, sorta | 01:48 |
llnz | rfts loads fine | 01:53 |
xdotx | yes, good! | 01:53 |
nash | llnz: Only one? | 01:53 |
llnz | nash: :-p | 01:54 |
CIA-3 | llnz tpserver-cpp * r145ef78a820b /tpserver/ (9 files): Log messages are now const | 01:55 |
xdotx | huzzah! | 01:55 |
xdotx | :P | 01:55 |
*** mithro has quit IRC | 01:57 | |
llnz | nash: does Order Remove frames still fail when galaxie connects to tpserver-cpp? | 01:57 |
nash | llnz: I really couldn't say at the moment | 01:57 |
llnz | ok | 01:59 |
*** xdotx has quit IRC | 02:12 | |
*** xdotx has joined #tp | 02:13 | |
llnz | xdotx: what time is it there? | 02:15 |
nash | We need to start putting timezones in our nicks... | 02:16 |
llnz | hehe | 02:17 |
* llnz is checking weather his clock is correct for xdotx's time | 02:17 | |
llnz | oh, he appears to be away | 02:17 |
llnz | so it could well be 11:22pm there | 02:18 |
llnz | oh, and it's yesterday still | 02:19 |
llnz | :-) | 02:19 |
llnz | bbs, dinner | 02:19 |
xdotx | yep, 23:30 right now (and 23:22 then) | 02:26 |
xdotx | llnz: heh. i forgot you guys were nearly a full day ahead of us. | 02:34 |
xdotx | and on that note, i'm goin' to bed! early morning tomorrow | 02:35 |
llnz | back | 02:52 |
llnz | thanks xdotx, cya | 02:52 |
*** mithro has joined #tp | 02:56 | |
llnz | hi mithro | 02:56 |
mithro | hey llnz | 02:57 |
mithro | your on a bit early? | 02:57 |
llnz | yeah | 02:57 |
mithro | llnz: you hear about my little accident? | 02:59 |
llnz | nope | 02:59 |
mithro | I was trying to remove tpserver-cpp so I could check out xdotx's rtfs branch | 03:01 |
mithro | and my fingers completed to tpserver-py | 03:01 |
mithro | so I did a "rm -rf tpserver-py" :/ | 03:02 |
llnz | oops | 03:02 |
mithro | yes, and I had two unpublished branches :/ | 03:03 |
* llnz cloned the rfts branch to tpserver-cpp_rfts so he could have both | 03:03 | |
llnz | ouch! | 03:03 |
mithro | one which added metaserver/zeroconf support | 03:03 |
mithro | one which added emailing password to a user | 03:04 |
mithro | :/ | 03:04 |
* llnz wonders if he will finish or commit playerview today | 03:05 | |
* pschulz01 has faith in llnz | 03:11 | |
llnz | hehehe | 03:11 |
llnz | it is a big piece of hairy code | 03:14 |
nash | What is the playerview? | 03:16 |
llnz | PlayerView is a class i'm writting for tpserver-cpp that will be responsible for holding the player current and past view of the universe | 03:17 |
nash | Cool | 03:17 |
llnz | including difference support | 03:17 |
nash | Extra cool | 03:17 |
llnz | it's really not nice | 03:18 |
nash | Feature wise it is ;-) | 03:18 |
llnz | i need to do it before fixing persistence, because otherwise players will not be able to see for a turn and might not work correctly | 03:21 |
nash | okay | 03:22 |
* nash doesn't care too much about persistence... ;-) | 03:22 | |
nash | He just wants more games | 03:22 |
nash | Anyway - tlak to you all later, I'm off home. | 03:23 |
*** nash has quit IRC | 03:23 | |
*** Demitar has quit IRC | 03:32 | |
*** pschulz01 has quit IRC | 03:32 | |
llnz | oh, playerview will also allow the checking of the victory conditions for minisec | 03:35 |
CIA-3 | mithro tpserver-py-metaserver * r3dd1fad41a2a /tp/server/ (bases/Game.py db/__init__.py): Added support for returning the number of players. | 03:46 |
CIA-3 | mithro tpserver-py-metaserver * r9e325ba8243c /tp/server/bases/ (Game.py SQL.py): Add support for returning the number of objects. | 03:46 |
mithro | ~seen xdotx | 03:47 |
tpb | mithro: xdotx was last seen in #tp 1 hour, 12 minutes, and 15 seconds ago: <xdotx> and on that note, i'm goin' to bed! early morning tomorrow | 03:47 |
JLP | ahoy all | 04:15 |
llnz | hi JLP | 04:16 |
llnz | grr.... | 04:24 |
llnz | PlayerView is a big hairy monster and it's eating my brain | 04:29 |
*** nash has joined #tp | 04:29 | |
llnz | PlayerView is a big hairy monster and it's eating my brain | 04:29 |
*** pschulz01 has joined #tp | 04:35 | |
pschulz01 | Evening.. | 04:35 |
llnz | hi pschulz01 | 04:35 |
pschulz01 | llnz: I have a question.. .cc or .cpp for c++ files. | 04:36 |
llnz | .cpp normally | 04:36 |
pschulz01 | llnz: There is some discussion about porting c software to c++ at work.. | 04:36 |
llnz | both are acceptable | 04:37 |
pschulz01 | llnz: That what I'm familiar with. | 04:37 |
llnz | as is .cxx or sometimes even .c++ | 04:37 |
pschulz01 | llnz: I haven't seem .cc in an FOSS application for a very long time. | 04:37 |
pschulz01 | Does autoconf/automake rely on any? | 04:38 |
llnz | nope | 04:38 |
llnz | i think 'make' is though | 04:39 |
llnz | it does accept .cpp .cc and .cxx at the least | 04:39 |
pschulz01 | Yeah.. what about other GNU tools? bison etc. | 04:40 |
llnz | hummm.... i don't remember | 04:43 |
llnz | it's not often they are used in c++ mode | 04:43 |
llnz | scary, PlayerView compiles | 04:46 |
pschulz01 | llnz: Does it need packaging? | 04:52 |
pschulz01 | :-) | 04:52 |
mithro | pschulz01: not going to move on to packaging python stuff? | 04:53 |
mithro | ~seen JLP | 04:54 |
tpb | mithro: JLP was last seen in #tp 38 minutes and 41 seconds ago: <JLP> ahoy all | 04:54 |
mithro | JLP: ping? | 04:54 |
JLP | mithro: pong | 04:54 |
pschulz01 | mithro: I can do that. . but not that familar with python stuff.. :-) | 04:54 |
llnz | pschulz01: it's part of tpserver-cpp, so it will be packages at the next release | 04:59 |
llnz | i hate playerview | 05:42 |
* llnz ponders deleting it and starting again | 05:58 | |
* llnz ponders deleting tpserver-cpp and starting again | 06:01 | |
daxxar | I use .cc! | 06:04 |
jotham | now i need to make some more spaceship grpahics that don't suck | 06:12 |
nash | llnz: Please don't rewrite now... not until there is at least one working server and a non-trivial game around | 06:21 |
llnz | nash: is tpserver-cpp not currently a working server? | 06:30 |
* llnz ponders writing a "Hello world" or game of life ruleset for tpserver-cpp to show just now non-trivial even minisec is | 06:34 | |
mithro | jotham: so we can watch the test battles now? | 06:42 |
mithro | llnz: Minisec is about 1000 lines in tpserver-py, of which 600 are the combat xml code | 06:43 |
nash | llnz: Yes it works... | 06:44 |
nash | That's my point | 06:44 |
nash | However there needs to be a non-trivial game around before rewrites shoudl be on the cards | 06:45 |
pschulz01 | jotham: Do you support svg graphics? | 06:46 |
mithro | nash: hopefully we can get tpserver-py into a state where llnz can just become a python code ;) | 06:47 |
mithro | s/code/coder/ | 06:47 |
* nash wonders how people would feel if llnz was replaced by a python script | 06:48 | |
nash | mithro: Two servers are good. More is a waste, but two is good | 06:48 |
llnz | my fiancee would be most upset | 06:48 |
nash | llnz: At least you hope she would... | 06:49 |
mithro | llnz: does she see enough of you to notice the difference? :P | 06:49 |
mithro | ~seen niphree | 06:49 |
tpb | mithro: niphree was last seen in #tp 3 days, 22 hours, 7 minutes, and 33 seconds ago: <niphree> ok | 06:49 |
llnz | i don't normally like commiting WIP, but I think i am going to have to | 06:54 |
nash | bbs: chaser is on | 06:54 |
nash | llnz: Use a branch | 06:54 |
llnz | at least it compiles | 06:54 |
llnz | mithro: in the difference lists | 06:59 |
llnz | can there be duplicate ids (with different mod times)? | 07:00 |
mithro | llnz: possible? | 07:01 |
mithro | llnz: possibly? | 07:01 |
brx | hrm, how many developers does tp have? | 07:01 |
llnz | ok | 07:01 |
mithro | brx: 19 according to this channel ;) | 07:02 |
llnz | hehehe | 07:02 |
brx | mithro: you are counting 2 irc bots :) | 07:02 |
pschulz01 | brx: I think they count as well. | 07:02 |
pschulz01 | brx: .. if you count me, you can certainly count them. | 07:03 |
llnz | brx: at least 10, probably closer to 14 | 07:05 |
* brx nods | 07:05 | |
brx | and how old is this project? | 07:05 |
mithro | brx: you could look at the ohlo stats | 07:05 |
brx | ohlo.. | 07:05 |
mithro | http://www.ohloh.net/projects/3679 | 07:05 |
tpb | Title: Thousand Parsec Analysis Report (at www.ohloh.net) | 07:05 |
llnz | brx: started in Jan 2002 | 07:05 |
* mithro is heading to bed | 07:17 | |
mithro | gnight! | 07:17 |
*** _JLP_ has joined #tp | 07:21 | |
*** JLP has quit IRC | 07:25 | |
*** _JLP_ is now known as JLP | 07:25 | |
nash | night | 07:31 |
*** mithro has quit IRC | 07:39 | |
jotham | pschulz01: hum? | 07:49 |
pschulz01 | jotham: ho | 07:50 |
jotham | pschulz01: what about svg | 07:52 |
pschulz01 | jotham: Spaceship graphics.. | 07:53 |
jotham | pschulz01: i was going to make some | 07:54 |
jotham | pschulz01: why, what do you have on offer? | 07:54 |
*** tuna-fish has quit IRC | 07:57 | |
CIA-3 | nash galaxie * r5f0c04cee497 /tpe_util.c: tpe_util: Parse header 'H' is now an option to tpe_parse_packet. | 08:01 |
pschulz01 | jotham: nothing yet :-) but if it was in svg then I've offer to help. I've given up on raster graphics. | 08:05 |
jotham | heh | 08:06 |
jotham | i hear that | 08:06 |
jotham | but i work with both types daily | 08:06 |
jotham | each has its place | 08:06 |
*** tuna-fish has joined #tp | 08:10 | |
*** nash has quit IRC | 08:48 | |
CIA-3 | nash galaxie * r86f062174082 /tpe_util.c: Fix header processing - va_lists need to passed by ref too... | 09:04 |
CIA-3 | nash galaxie * rc7ca10debb1d /ai_jones.c: Jones now uses safe message handling. | 09:04 |
CIA-3 | nash galaxie * r9ed40986f6d1 /tpe_obj.c: Use safe message handling in tpe_obj. | 09:04 |
CIA-3 | nash galaxie * r7e431cb1f31c /tpe_util.c: tpe_util: Don't leak a string if it is unused. | 09:10 |
* llnz wanders off | 09:43 | |
llnz | later all | 09:43 |
*** llnz has quit IRC | 09:43 | |
*** Demitar has joined #tp | 09:57 | |
*** Demitar has quit IRC | 09:59 | |
*** DystopicFro has joined #tp | 10:09 | |
*** pschulz01 has quit IRC | 10:13 | |
*** Demitar has joined #tp | 10:19 | |
*** Demitar has quit IRC | 11:38 | |
*** tuna-fish has quit IRC | 11:39 | |
*** tuna-fish has joined #tp | 11:43 | |
*** tuna-fish has quit IRC | 11:44 | |
*** tuna-fish has joined #tp | 11:51 | |
*** tuna-fish has quit IRC | 11:55 | |
*** tuna-fish has joined #tp | 11:57 | |
*** Demitar has joined #tp | 11:57 | |
*** tuna-fish has quit IRC | 11:58 | |
*** tuna-fish has joined #tp | 12:00 | |
*** tuna-fish has quit IRC | 12:02 | |
*** tuna-fish has joined #tp | 12:03 | |
*** tuna-fish has quit IRC | 12:12 | |
*** tuna-fish has joined #tp | 12:19 | |
*** JLP has quit IRC | 12:20 | |
*** JLP has joined #tp | 12:35 | |
*** _JLP_ has joined #tp | 12:38 | |
*** JLP has quit IRC | 12:38 | |
*** JRepin has joined #tp | 12:41 | |
*** _JLP_ has quit IRC | 12:56 | |
*** JRepin has quit IRC | 12:56 | |
*** dmpayton has joined #tp | 15:10 | |
*** Demitar has quit IRC | 15:51 | |
*** drdevice[work] has quit IRC | 15:55 | |
*** drdevice_ has joined #tp | 15:57 | |
*** Demitar has joined #tp | 16:06 | |
*** MihailBalan has joined #tp | 17:17 | |
*** dmpayton has quit IRC | 17:17 | |
*** MihailBalan has quit IRC | 18:17 | |
*** mithro has joined #tp | 18:53 | |
mithro | ~seen DystopicFro | 18:58 |
tpb | mithro: DystopicFro was last seen in #tp 4 weeks, 1 day, 17 hours, 19 minutes, and 16 seconds ago: <DystopicFro> nash: I'll email you the location that you can clone from when I get it up | 18:58 |
mithro | DystopicFro: ping? | 18:58 |
mithro | off to uni | 19:04 |
mithro | bblr | 19:04 |
*** mithro has quit IRC | 19:23 | |
*** mithro has joined #tp | 19:32 | |
mithro | ~seen DystopicFro | 19:43 |
tpb | mithro: DystopicFro was last seen in #tp 4 weeks, 1 day, 18 hours, 4 minutes, and 20 seconds ago: <DystopicFro> nash: I'll email you the location that you can clone from when I get it up | 19:43 |
mithro | ~seen nash | 19:43 |
tpb | mithro: nash was last seen in #tp 12 hours, 11 minutes, and 32 seconds ago: <nash> night | 19:43 |
*** nash has joined #tp | 19:48 | |
mithro | hey nash | 19:48 |
mithro | how is everything this morning? | 19:49 |
nash | heyo | 19:49 |
nash | Okay | 19:49 |
nash | Yourself? | 19:49 |
nash | Anyway... tell me about tpserver-py | 19:49 |
nash | What should it be able to do? | 19:49 |
mithro | nash: lots of things | 19:55 |
mithro | in theory, | 19:55 |
mithro | 1. Allow virtual hosting of TP games | 19:56 |
nash | mithro: At this time ;-) | 19:57 |
nash | Does building work? | 19:57 |
mithro | 2. Support "Reading" - Objects, Orders, Designs, Properties, Resources, Categories, Boards, Messages | 19:57 |
mithro | 3. Support "Writing" Orders | 19:57 |
mithro | nash: in theory Building should work | 19:58 |
mithro | but I'm yet to test/go over that code | 19:58 |
nash | Okay... galaxie should be okay for that. | 19:59 |
nash | Just testing last night didn't seem to work for me | 19:59 |
mithro | nash: okay - is galaxie submitting an order now and not crashing? | 19:59 |
nash | Yep | 20:00 |
nash | At least not crashing for me | 20:00 |
nash | I can see the order when I view the objects | 20:00 |
mithro | is there a way to see what the order actually is? | 20:01 |
nash | if you view the object the summary in the window (left pane) should be the object | 20:02 |
nash | s/object$/orders/ | 20:02 |
mithro | i mean the parameters | 20:03 |
nash | Yes, the parameters are shown | 20:05 |
mithro | where? I think I must be going blind | 20:07 |
nash | Should be indented underneath | 20:10 |
CIA-3 | mithro tpserver-py-metaserver * rc1a7d8868cd8 /tp/server/ (__init__.py bases/Game.py): Now generate the correct zeroconf object. | 20:10 |
nash | I can print them to stdout if you like... | 20:13 |
mithro | nash: that would be good | 20:14 |
mithro | nash: I thought you use to? | 20:15 |
nash | only for debugging | 20:15 |
mithro | nash: debugging is good :) | 20:16 |
nash | Not needing to debug is even better | 20:17 |
brx | http://thousandparsec.net/tp/gettingstarted.php#developer <- dead link to: http://www.thousandparsec.net/~lee/ruleset-book.pdf | 20:18 |
tpb | <http://ln-s.net/Ze4> (at thousandparsec.net) | 20:18 |
mithro | i'm sure Lee uploaded the ruleset book to his public_html | 20:19 |
mithro | http://www.thousandparsec.net/~lee/ | 20:19 |
tpb | Title: Index of /~lee (at www.thousandparsec.net) | 20:19 |
brx | ah, mentioning for your benefit :) | 20:21 |
mithro | brx: feel free to submit a patch ;) | 20:21 |
nash | mithro: Are you up to date with galaxie? | 20:21 |
mithro | or poke llnz | 20:21 |
brx | I was actually looking for something else. (still looking) | 20:21 |
mithro | nash: possibly | 20:21 |
mithro | brx: what are you looking for? | 20:21 |
nash | In tpe_orders.c: Lines 341: Add: | 20:22 |
nash | printf("Received order on Object: %d\n%s\n",order->oid, | 20:22 |
nash | tpe_orders_str_get(tpe,object)); | 20:22 |
nash | And it should give you heaps of info (on a new turn anyway) | 20:22 |
brx | mithro: some form of grander, more general specification of the framework | 20:22 |
* brx can't sleep and has just finished the second chapter of his soc surprise | 20:23 | |
mithro | brx: the closest statement is on the gettingstarted page | 20:23 |
brx | "Thousand Parsec is a framework for turn based space empire building games." ? :) | 20:24 |
mithro | nash: the ./galaxie tp://nash:password@localhost/tp format doesn't seem to work | 20:25 |
brx | well, maybe something a little more specific and technical than that. a rough description of the framework's components, how they mesh together and the reasons for those design decisions. | 20:26 |
brx | (maybe I am blind) | 20:26 |
nash | mithro: okay - I know --game works | 20:26 |
mithro | brx: not really | 20:26 |
mithro | nash: yes --game works | 20:26 |
mithro | ./galaxie --username nash --password password --host localhost --game tp | 20:27 |
brx | mithro: not really blind? | 20:27 |
nash | mithro: I know --game foo tp:/...../ works as well | 20:27 |
nash | I'll look into the not working thing for games | 20:27 |
mithro | brx: yeah, we really should write something like that | 20:27 |
nash | mithro: BTW: I prefer not to commit during work hours... :-) | 20:28 |
mithro | I'll probably do it as the same time we reorg the website | 20:28 |
mithro | nash: fair enough | 20:28 |
brx | ah. it would be cool, might make it easier to get a grasp of the project | 20:28 |
mithro | still getting segfaults | 20:28 |
brx | ((that is to say, I am interested in 1k, but I don't have the time to warrant picking your brains about it)) | 20:29 |
mithro | brx: quick overview, server <- protocol -> client, any client should be able to connect to any server (no matter the ruleset) | 20:30 |
mithro | nash: ahh, wasn't up to date | 20:30 |
nash | mithro: Best to do a make clean | 20:32 |
mithro | Received order on Object: 2 | 20:32 |
mithro | <order>BuildFleet</order><arg></arg> | 20:32 |
nash | A lot of invasive changes | 20:32 |
nash | So doesn't see any arguments... | 20:33 |
mithro | yeah, already done that | 20:33 |
mithro | well, they are definately being sent by the server | 20:33 |
nash | okay | 20:33 |
nash | grr... | 20:33 |
* nash will look | 20:34 | |
nash | First he'll fix the not find game thing | 20:34 |
mithro | nash: I can even see the names in the outgoing packet | 20:34 |
nash | okay | 20:35 |
mithro | Sending: <netlib.objects.OrderExtra.DynamicOrder - BuildFleet @ 0x85f636c> | 20:36 |
mithro | Sending: 'TP03\x00\x00\x00\x0e\x00\x00\x00\x0b\x00\x00\x00^\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05Scout\xff\xff\xff\xff\x00\x00\x00\x01\x00\x00\x00\x07Frigate\xff\xff\xff\xff\x00\x00\x00\x02\x00\x00\x00\nBattleship\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00' | 20:36 |
mithro | I decided to move to a more compact output format :) | 20:36 |
mithro | A little more readable | 20:37 |
nash | heh | 20:37 |
nash | mithro: This is the weirdest thing. | 20:41 |
nash | The whole string matches, but the game isn't being pulled out | 20:41 |
nash | How good are you with regexes? | 20:43 |
nash | ^tp(\+?http)?(s)?://(([[:alnum:]]+)(:([[:alnum:]]+))?@)?([[:alnum:].]+)(:([[:digit:]]+))?/([[:alnum:]]+)?$ | 20:43 |
nash | Else look at the top of galaxie.c for a more human friendly version | 20:44 |
nash | (look for urlpattern) | 20:44 |
mithro | nash: not quite sure | 20:47 |
nash | What makes it really wacky is - the game pattern has to match - else the whole regex fails | 20:47 |
mithro | nash: is it matching empty? | 20:48 |
nash | Then the $ at the end won't match and the regex fails | 20:48 |
mithro | ([[:alnum:].]+) being greedy? | 20:49 |
nash | Should be | 20:49 |
nash | Regexs are defined to be greedy | 20:49 |
nash | non-greedy is a perl extension | 20:49 |
mithro | could it be getting the game too? | 20:49 |
nash | :alnum: won't match '/' | 20:50 |
* nash fixes the infinite loop on failed matches | 20:51 | |
nash | mithro: bbs | 20:56 |
mithro | nash: okay | 20:56 |
nash | this is really weird... | 21:02 |
nash | What is interesting is it is match 10... | 21:02 |
nash | Something not suported in traditional regex engines | 21:02 |
*** pschulz01 has joined #tp | 21:03 | |
pschulz01 | Morning.. | 21:04 |
nash | heyo pschulz01 | 21:04 |
pschulz01 | I have a git question. | 21:04 |
pschulz01 | nash: Howdy | 21:04 |
pschulz01 | I have a conflict with a git-merge.. | 21:04 |
pschulz01 | I have fixed the file.. | 21:04 |
nash | yep | 21:05 |
pschulz01 | Now what? | 21:05 |
nash | So a grep '>>>' shows nothing | 21:05 |
nash | commit it | 21:05 |
pschulz01 | nash: Yes. | 21:05 |
nash | And the commit message should be partially done with 'merge with git+ssh... ' | 21:05 |
nash | cg-commit | 21:05 |
nash | if you do a cg-status it should show you are in teh middle of a merge | 21:06 |
pschulz01 | Yes.. | 21:06 |
nash | Just commit | 21:06 |
pschulz01 | Ahha.. git-update-index | 21:06 |
nash | And you are all done | 21:06 |
pschulz01 | It even tels me :-) | 21:06 |
pschulz01 | No.. that didn't help. | 21:07 |
nash | Are you using raw git, or cogito? | 21:07 |
pschulz01 | cg-status.. (this is work related advice.. but I need to know) | 21:07 |
pschulz01 | Heads: | 21:08 |
pschulz01 | >master b029ef74c92f797edea4332f95a5e154fba94e00 | 21:08 |
pschulz01 | tested bdce307693e2d289d5e0b2322dda2c82655a907e | 21:08 |
pschulz01 | M pre-commit-rocksoft.pl | 21:08 |
* nash cares not | 21:08 | |
pschulz01 | Usually raw git commands.. that's what I learnt first. | 21:08 |
nash | Not sure for raw git, I just use a cg-commit ow | 21:08 |
pschulz01 | Ok.. done. | 21:08 |
pschulz01 | What's the command to give a 'gitk' like ascii output? | 21:09 |
nash | pschulz01: When you find it... let me know... | 21:13 |
mithro | i think I saw one the other day | 21:14 |
pschulz01 | nash: it didn;t make any sence to me until I saw the gitk, and then I forgot it.. it's in the git tutorials.. | 21:14 |
nash | That's the only git command I would like but don't know | 21:14 |
nash | oh.. /me looks in tuts | 21:14 |
pschulz01 | 'me thinks it's a bit ironic working on svn pre-commit scripts in git. | 21:15 |
nash | pschulz01: Well modify them so they instead commit to git... | 21:18 |
pschulz01 | nash: Oh that is so tempting.. | 21:24 |
mithro | brb | 21:26 |
nash | pschulz01: git-show-branch | 21:31 |
nash | mithro: This has really stumped me. I'll need to look tonight when I can experiment more. | 21:33 |
*** mithro has quit IRC | 21:47 | |
*** mithro has joined #tp | 22:10 | |
mithro | nash: okay | 22:10 |
nash | The game issue that is | 22:11 |
nash | I may take a look at the order issue after lunch | 22:11 |
mithro | oh okay | 22:11 |
nash | Do you know the types of that order? | 22:12 |
mithro | BuildFleet? | 22:12 |
nash | Yeah | 22:12 |
mithro | do you need any more information? | 22:14 |
nash | Can I connect to the server you are running? | 22:21 |
nash | mithro: ? | 22:21 |
mithro | nash: not at the moment - no public IP address | 22:21 |
nash | mithro: You got an empty arg string? | 22:22 |
mithro | nash: my laptop doesn't have a public IP address | 22:22 |
nash | Can I get your latest tpserver-py? | 22:23 |
mithro | nash: sure! | 22:24 |
mithro | tpserver-py is up to date | 22:24 |
nash | Do I need lib..proto tpp? | 22:24 |
mithro | just pushing my (minor) changes to libtpproto-py | 22:24 |
CIA-3 | mithro libtpproto-py * r3390f7c1562b /tp/netlib/discover/game.py: Make the locations line up with the longer + | 22:25 |
CIA-3 | mithro libtpproto-py * r073f4375bb1b /tp/netlib/xstruct.py: Make a "short" version of the output string. Kind of like repr... | 22:25 |
nash | Ahh --no-gui is great for thsi sort of testing ;-) | 22:29 |
mithro | oh? | 22:29 |
nash | No chance of anyone seeing what I am doing | 22:29 |
nash | It's just terminal output ;-) | 22:30 |
mithro | :P | 22:30 |
nash | Right... printing the list arg is not working... | 22:31 |
nash | Now to work out why | 22:31 |
nash | Right... according to this, the number of selections == 0 | 22:32 |
nash | So it doesn't print any... | 22:32 |
nash | And yes... the server is sending 0x00 0x00 0x00 0x00 for the number of options selected | 22:34 |
nash | Sending: TP03\x00\x00\x00\x0e\x00\x00\x00\x0b\x00\x00\x00g\x00\x00\x00 \x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05Scout\xff\xff\xff\xff\x00\x00\x00\x01\x00\x00\x00\x07Frigate\xff\xff\xff\xff\x00\x00\x00\x02\x00\x00\x00\x0aBattleship\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x09New Fleet | 22:34 |
nash | So jumping to Battleship the next item is the max (-1 = 4 * 0xff) | 22:34 |
nash | After that we should have the number which are selected.. which is 0 | 22:35 |
nash | So my option parsing is right... | 22:36 |
nash | Now to work out why the order being sent is wrong... | 22:36 |
nash | So it's an empty list of things to be selected, then name (max len of 255, followed by a string of 'New Fleet'. | 22:37 |
nash | mithro: Get all that? | 22:38 |
nash | Is it possible to dump what the server really thinks that list should look like? | 22:39 |
mithro | nash: yes I got all that | 22:39 |
mithro | what do you mean? | 22:39 |
nash | Well the server is saying there is a buildfleet order of 'New Fleet' of 0 ships. | 22:39 |
nash | I certainly never sent orders to build a fleet called 'New Fleet'. However I'm curious if the fleet really has ships | 22:40 |
nash | I'm also curious as to why that fleet never gets built... | 22:40 |
mithro | nash: what happens if you regenerate the database? | 22:41 |
nash | Can you give me the commands to regen the game | 22:41 |
nash | I was just asking that ;-) | 22:41 |
mithro | i send you a script called test.sh | 22:42 |
nash | okay | 22:44 |
mithro | $ Smith: Order for nash Planet | 22:44 |
mithro | $ OID: 2 notypes 2 norders 0 | 22:44 |
mithro | $ 0: NOp | 22:44 |
mithro | $ 2: BuildFleet | 22:44 |
mithro | Segmentation fault | 22:44 |
mithro | Received: TP03\x00\x00\x00\x0e\x00\x00\x00\x22\x00\x00\x00\x24 | 22:45 |
mithro | Received: \x00\x00\x00\x02\xff\xff\xff\xff\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 | 22:45 |
mithro | The packet was described by <dynamic-class 'BuildFleet' at 0x869c0d4> | 22:45 |
mithro | Receiving: <netlib.objects.OrderExtra.DynamicOrder - BuildFleet @ 0x85a02cc> | 22:45 |
mithro | was it sending a order_probe? | 22:45 |
nash | The ai will send a probe | 22:45 |
nash | You can turn off the ai using --no-ai or --ai=none | 22:45 |
mithro | probes don't work :P | 22:45 |
nash | Well that will make it hard to set an order... | 22:46 |
mithro | the probe order actually calls the Order_Insert :/ | 22:47 |
nash | It doesn;t stick then | 22:47 |
nash | What is the ID for build? | 22:48 |
nash | 2? | 22:48 |
nash | heh... I need a slower send speed... | 22:50 |
nash | Anyway... when I send the Probe order it seems to sick | 22:50 |
nash | But the real send doesn't | 22:50 |
nash | mithro: Can you implement probe? | 22:51 |
nash | Then the normal AI path will work | 22:51 |
mithro | nash: just testing now | 22:52 |
CIA-3 | mithro tpserver-py * rabe9ab828b07 /tp/server/__init__.py: Only insert on an Order_Insert operation. | 22:55 |
nash | Lets see how this goes then | 22:55 |
nash | If I addgame of the same name, will it delete the old one? | 22:55 |
nash | w00t - now I get the segv ;-) | 22:56 |
mithro | nash: no it will complain | 22:56 |
nash | tranquillity:[~/work/thousandparsec/tpserver-py]% ./tpserver-py-tool --delgame tp | 22:57 |
nash | Traceback (most recent call last): | 22:57 |
nash | File "./tpserver-py-tool", line 177, in ? | 22:57 |
nash | main() | 22:57 |
nash | File "./tpserver-py-tool", line 174, in main | 22:57 |
nash | getattr(Commands, cmd)(*sys.argv[2:]) | 22:57 |
nash | TypeError: unbound method delgame() must be called with Commands instance as first argument (got str instance instead) | 22:57 |
nash | tranquillity:[~/work/thousandparsec/tpserver-py] | 22:57 |
mithro | delgame doesn't work yet :P | 23:00 |
nash | Right | 23:00 |
nash | So if I want ot remove a game? | 23:00 |
mithro | def delgame(game): | 23:00 |
mithro | """\ | 23:00 |
mithro | --delgame <game> | 23:00 |
mithro | Remove a game from the server. | 23:00 |
mithro | """ | 23:00 |
mithro | # Check the game exists | 23:00 |
mithro | g = Game(longname=game) | 23:00 |
mithro | # Now go around and clean up everything.... but how? | 23:00 |
mithro | pass | 23:00 |
mithro | :P | 23:00 |
nash | yay | 23:02 |
nash | So how do I remove it? | 23:02 |
nash | Ahh... your test.sh rm's the db first ;-) | 23:03 |
mithro | yes | 23:07 |
nash | Anywya - lunch time here... | 23:08 |
nash | Shall continue when I get back | 23:08 |
mithro | okay | 23:08 |
mithro | Received: TP03\x00\x00\x00\x0e\x00\x00\x00\x22\x00\x00\x00\x24 | 23:09 |
mithro | Received: \x00\x00\x00\x02\xff\xff\xff\xff\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 | 23:09 |
mithro | The packet was described by <dynamic-class 'BuildFleet' at 0x87ba7fc> | 23:09 |
mithro | Receiving: <netlib.objects.OrderExtra.DynamicOrder - BuildFleet @ 0x862044c> | 23:09 |
mithro | OnOrder_Probe | 23:09 |
nash | Is it valid? | 23:09 |
mithro | <dynamic-class 'BuildFleet' at 0x86cc6ac> | 23:09 |
mithro | Sending: <netlib.objects.OrderExtra.DynamicOrder - BuildFleet @ 0x862b2ac> | 23:09 |
mithro | Sending: TP03\x00\x00\x00\x0e\x00\x00\x00\x0b\x00\x00\x00g\x00\x00\x00\x02\xff\xff\xff\xff\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05Scout\xff\xff\xff\xff\x00\x00\x00\x01\x00\x00\x00\x07Frigate\xff\xff\xff\xff\x00\x00\x00\x02\x00\x00\x00\x0aBattleship\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x09New Fleet | 23:09 |
mithro | then the AI segfaults | 23:10 |
nash | Yeah - I see | 23:10 |
* nash will look soon | 23:10 | |
mithro | nash: just about to commit first cut at order_probe support | 23:15 |
CIA-3 | mithro tpserver-py * rbaf2e3068f23 /tp/server/ (__init__.py bases/Order.py bases/SQL.py): First pass at handling Order_Probe. | 23:17 |
mithro | nash: still segfaulting | 23:35 |
mithro | 64 bytes from po-in-f104.google.com (72.14.253.104): icmp_seq=5133 ttl=239 time=83933 ms | 23:39 |
mithro | 64 bytes from po-in-f104.google.com (72.14.253.104): icmp_seq=5134 ttl=239 time=83932 ms | 23:39 |
*** DystopicFro has quit IRC | 23:47 | |
mithro | 64 bytes from po-in-f103.google.com (72.14.253.103): icmp_seq=668 ttl=239 time=129330 ms | 23:52 |
*** Epyon_ has quit IRC | 23:57 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!