*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** mithro has quit IRC | 00:07 | |
*** mithro has joined #tp | 00:11 | |
mithro | there is something funny going on with my laptop :/ | 00:12 |
---|---|---|
nash | The Chaser repeats? | 00:14 |
nash | mithro: BTW: Can you add CIA for galaxie dev tree commits? | 00:14 |
mithro | no, it's crashed twice in the last 48 hours | 00:14 |
nash | Sounds like my desktop | 00:16 |
mithro | this computer has however been nothing but reliable up till the last 48 hours :/ | 00:16 |
nash | tranquillity% last | 00:16 |
nash | nash pts/0 218-214-60-232.p Tue Aug 28 00:09 still logged in | 00:16 |
nash | nash pts/0 218-214-60-232.p Tue Aug 28 00:08 - 00:09 (00:00) | 00:16 |
nash | reboot system boot 2.6.18-4-686 Mon Aug 27 16:51 - 00:17 (07:25) | 00:16 |
nash | nash pts/7 :0.0 Sun Aug 26 16:59 - crash (23:52) | 00:16 |
nash | nash pts/2 :0.0 Sun Aug 26 16:58 - crash (23:53) | 00:16 |
nash | nash pts/1 :0.0 Sun Aug 26 15:26 - crash (1+01:25) | 00:16 |
nash | nash pts/1 :0.0 Sat Aug 25 10:48 - 10:51 (00:03) | 00:16 |
nash | nash pts/1 218-214-60-232.p Fri Aug 24 16:04 - 16:26 (00:21) | 00:16 |
nash | nash pts/0 218-214-60-232.p Fri Aug 24 15:31 - crash (3+01:19) | 00:17 |
nash | Can't say the same | 00:17 |
*** xdotx_ has quit IRC | 00:20 | |
mithro | I've been thinking about a new laptop | 00:20 |
mithro | btw, you tried out the dev branch of tpclient-pywx-dev recently? | 00:21 |
mithro | I could use your thoughts | 00:21 |
mithro | but i have been uming an aring over just getting the latest model from my current line | 00:23 |
mithro | or going something different | 00:23 |
nash | What type is it? | 00:26 |
mithro | A panasonic R3 | 00:26 |
mithro | which was perfect for when I was a student and had to move around a lot | 00:26 |
nash | Don't know it... | 00:26 |
nash | I have a sony vaio which has been flawless | 00:26 |
nash | However I got it china where it was < half the .au price | 00:27 |
nash | And it's < 1 kg | 00:27 |
mithro | this is the one I have been using -> http://conics.net/catalog/product_info.php?cPath=22&products_id=65 | 00:27 |
tpb | <http://ln-s.net/rkX> (at conics.net) | 00:27 |
mithro | nash: which vaio? | 00:27 |
mithro | I have only heard bad stories about Vaios :/ | 00:27 |
nash | 17GS | 00:29 |
mithro | the only think stopping me buying the r6 is the screen resolution | 00:29 |
* nash finds picture of it | 00:29 | |
mithro | can you buy then in Australia? | 00:29 |
mithro | no results on the Sony Aus or Sony USA sites | 00:31 |
nash | http://www.sony.com.au/vaio/catalog/product.jsp?categoryId=22104 | 00:31 |
tpb | <http://ln-s.net/rkb> (at www.sony.com.au) | 00:31 |
nash | That's the current version | 00:31 |
nash | It's got a little bit of extra weight however | 00:31 |
mithro | http://www.sony.com.au/vaio/catalog/product.jsp?categoryId=22104 | 00:34 |
tpb | <http://ln-s.net/rkb> (at www.sony.com.au) | 00:34 |
nash | That's what I just pasted... | 00:34 |
mithro | hrm... that didn't really work | 00:34 |
mithro | which of the laptops on that page, the link just takes me to the top one | 00:35 |
nash | THe ultraportable - VGNTZ16GNB | 00:35 |
nash | There are a few in that cat | 00:36 |
nash | Mine is 2+ years old so it's no longer offered | 00:37 |
nash | http://product.pconline.com.cn/notebook/sony/94905_review.html | 00:41 |
tpb | <http://ln-s.net/rki> (at product.pconline.com.cn) | 00:41 |
nash | http://product.pchome.net/pc_notebook_sony_t17cs/9926.html | 00:41 |
tpb | <http://ln-s.net/rkk> (at product.pchome.net) | 00:42 |
nash | The weights are a little higher then I recall... | 00:42 |
nash | mithro: So can I push to galaxie#dev yet? | 00:46 |
mithro | hrm.. it should just work? | 00:46 |
nash | Didn't the other day | 00:47 |
mithro | cia has been a bit flaky the other day | 00:47 |
mithro | and the first commit to a new branch doens't work properly with the email | 00:47 |
nash | Okay - trying now | 00:47 |
CIA-23 | nash galaxie-dev * r71ed246a3279 /browser.h: Add browser.h | 00:47 |
CIA-23 | nash galaxie-dev * r4ddc23135560 / (6 files): More updating for the new msg API. | 00:47 |
CIA-23 | nash galaxie-dev * r263eb1c5d182 /edje/images/.gitignore: Update gitignore | 00:47 |
CIA-23 | nash galaxie-dev * r7f93c9c0f353 / (browser.c server.c): More work on server/browser combo. | 00:47 |
nash | Interesting | 00:49 |
mithro | what was interesting? | 00:49 |
nash | That it worked the second time | 00:49 |
mithro | yeah, the first push doesn't work so well because it starts of as 000000... | 00:50 |
mithro | nash: so have you checked out the latest tpclient-pywx-dev? | 00:50 |
nash | not yet | 00:51 |
* nash fetches | 00:52 | |
nash | heh - my last checkout on my laptop was via darcs. | 00:53 |
mithro | :/ | 00:54 |
mithro | be back in 10 | 00:58 |
*** xdotx has joined #tp | 00:58 | |
nash | mithro: Is this supposed to mean something? | 01:14 |
nash | ┌─(nash@serenity:pts/0)─────────────────(~/work/thousandparsec/tpclient-pywx)─┐ | 01:14 |
nash | └─(15:15:%)── ./setup.py ──(Mon,Aug27)─┘ | 01:14 |
nash | Version is 0.2.99 | 01:14 |
nash | This file is only provided to do the following, | 01:14 |
nash | py2exe executable bundles for windows | 01:14 |
nash | py2app dmg packages for Mac OS X | 01:14 |
nash | install on a unix system | 01:14 |
mithro | why are you running setup.py? | 01:14 |
nash | ./ gives me three files... | 01:15 |
nash | Sorry 4 | 01:15 |
mithro | http://www.thousandparsec.net/wiki/Ubuntu_Setup | 01:15 |
tpb | Title: Ubuntu Setup - Thousand Parsec Wiki (at www.thousandparsec.net) | 01:15 |
nash | I don't want a deb, requirements doesn't seem right | 01:15 |
nash | In any case the output from setup doesn't make sense | 01:15 |
nash | It not a verb. | 01:16 |
mithro | if I put "produce" in from of the py2exe and py2app are you happy? | 01:17 |
mithro | the "Ubuntu Setup" has nothing to do with debs | 01:18 |
nash | So setup looks like an install program to me | 01:18 |
mithro | setup.py is an install program | 01:18 |
nash | And it puts out a message saying this is what setup does... one of them seems to be the one I want... | 01:18 |
nash | BUt doesn't seem to do anything | 01:19 |
mithro | but you don't want to install unless you have a released version | 01:19 |
nash | Package python-wxgtk2.8 is not available, but is referred to by another package. | 01:19 |
nash | Why not? | 01:19 |
nash | Epyon: Couldn't find package python-gconf | 01:19 |
mithro | nash: because you then have to do a "python setup.py --install" after every single update | 01:20 |
mithro | which would be sucky | 01:20 |
nash | E: Couldn't find package python-gconf | 01:21 |
* nash does the same with multiple other programs he gets from source | 01:22 | |
mithro | nash: but it can run "inplace" | 01:23 |
mithro | IE you can just run it out of the directory without installing | 01:23 |
nash | What is pythonw? | 01:25 |
nash | mithro: There isn't a 2.8 version of wx 2.8 for unstable debian... | 01:26 |
* nash is updating to check it hasn't appeared in the last week or so | 01:26 | |
mithro | http://wiki.wxpython.org/InstallingOnUbuntuOrDebian | 01:26 |
tpb | <http://ln-s.net/r_b> (at wiki.wxpython.org) | 01:26 |
mithro | It's in Ubuntu | 01:27 |
mithro | so I have no idea why it hasn't made it into unstable yet | 01:27 |
mithro | it has been out for yonks | 01:27 |
CIA-23 | mithro tpclient-pywx-development * rede3db08c183 /setup.py: Better messages for nash. | 01:30 |
nash | mithro: Well they claim the first debian supported version was 8 august | 01:30 |
nash | I'm not surprised it hasn't got in yet... | 01:31 |
mithro | ? | 01:31 |
nash | Of course the debian maintainer looks like he has given up... | 01:33 |
nash | Should I have a 'pythonw' ? What is the difference between python and pythonw? | 01:33 |
mithro | oh | 01:34 |
mithro | dang namit | 01:34 |
mithro | pythonw is a windows/macos X only thing | 01:34 |
* nash is glad he followed the unix ops then... | 01:35 | |
nash | Traceback (most recent call last): | 01:35 |
nash | File "requirements.py", line 178, in ? | 01:35 |
nash | print "Thousand Parsec Client Library Version", tp.client.__version__, "(installed at %s)" % tp.client.__installpath__, | 01:35 |
nash | AttributeError: 'module' object has no attribute '__installpath__' | 01:35 |
mithro | your version of libtpclient-py is too old | 01:35 |
nash | The one I got 35 seconds ago? | 01:36 |
* nash checks he got hte dev versions | 01:37 | |
mithro | go into scratchpad | 01:37 |
mithro | and run | 01:37 |
mithro | python "python-cleanup.py" | 01:37 |
mithro | do you get any output? | 01:38 |
nash | So.. shoudl I use your instructions, or that programs instructions? | 01:38 |
nash | Umm... Are you serious? | 01:38 |
CIA-23 | mithro tpclient-pywx-development * rf7cb9d546874 /requirements.py: Also catch versions which are so old not to include __installpath__. | 01:38 |
nash | # To use this run, | 01:39 |
nash | # > ./python-cleanup.py | sudo sh | 01:39 |
mithro | if that is all you got | 01:39 |
mithro | then you don't have any installed versions | 01:39 |
mithro | can you paste the complete traceback of requirements.py? | 01:40 |
nash | Well there is a whole pile of other crap - but piping shit to a root shell.. is just asking for crazyness | 01:40 |
nash | That was the entire traceback | 01:40 |
nash | mithro: Please disable to window less popup box | 01:42 |
nash | It's very very annoying | 01:42 |
mithro | what window less popup box? | 01:42 |
nash | The splash screen crud | 01:44 |
nash | It has a non-window decoration set - And you don't handle xinerama correctly | 01:44 |
nash | Which means I get a rather irritating video playing half on one screen, unaligned with the other half on another screen | 01:45 |
nash | And I can't move it | 01:45 |
nash | Or minimize, or dismiss it (easily) | 01:45 |
nash | ^\ worked the charm at the terminal however | 01:45 |
mithro | escape should dismiss it | 01:46 |
mithro | but you can't dismiss it until the program has loaded | 01:46 |
mithro | you can disable the movie with "touch NOSPLASHMOVIE" | 01:48 |
nash | Okay - but there is still the issue that it has no-decorations, and you don't handle xinerama | 01:48 |
nash | And the splash screen has no decorations as well | 01:49 |
nash | And if I'm not mistaken you are overriding hte WM hints for the login dialog placement | 01:49 |
mithro | hrm... | 01:50 |
mithro | I don't have a xinerama setup to test | 01:50 |
mithro | I just told it to center on the screen | 01:50 |
nash | Can you ditch it? It's annoying | 01:50 |
nash | I hate programs that do that | 01:50 |
nash | Anyway immediate problem: Username: nash@tp | 01:51 |
nash | Game is a separate issue, and should be separate in the GUI as well. | 01:51 |
nash | The user doesn't care, and shouldn't care about protocol issues | 01:51 |
nash | Next,,, downloading universe dialog... Why do I care? | 01:52 |
nash | Why do I want to 'save' this? | 01:52 |
nash | Save what? | 01:52 |
nash | Why am I clicking OK? | 01:52 |
nash | Shouldn;t that be automatic? | 01:52 |
nash | The fonts are screwed in the message window - it seems to be about 30point bold. | 01:53 |
nash | Otherwise I'll need to keep looking adter I leave work | 01:53 |
mithro | okay if the message window fonts are screwed then your DPI for your screen is wrong | 01:54 |
mithro | if you click the G on the window the game becomes a seperate issue | 01:55 |
nash | mithro: My monitors DPI is off by 0.2% | 02:02 |
nash | Every other program I use can happily get it right | 02:02 |
mithro | hrm... | 02:03 |
mithro | well, I am telling it to be 12pt | 02:03 |
mithro | can you send a screenshot | 02:03 |
nash | sure | 02:04 |
nash | How do you want me to get it to you? | 02:06 |
mithro | [15:38] * DCC RECV connect attempt to nash failed (err=Connection refused) | 02:06 |
mithro | email or http should work better | 02:06 |
mithro | if I don't have a center on screen then the window ends up in funny places | 02:08 |
mithro | is there a way to "hint" that it should be centered? | 02:08 |
nash | sent | 02:08 |
nash | Generally you hint first, the WM fudges with it, then you cna override ti before the window is mapped | 02:09 |
nash | Generally it's best not to do anything at all. | 02:10 |
mithro | well, then the window is ending up in the top-right hand corner | 02:10 |
nash | mithro: Why do you want the splash anyway? | 02:10 |
nash | Most splashes are either there for contractual arrangements or to hide the fact their program is too slow to start | 02:11 |
mithro | well, it is to hide the fact that the program is too slow to start :P | 02:12 |
mithro | the movie splash is there because it impresses people :P | 02:12 |
* nash was irritated | 02:13 | |
nash | got your email yet? | 02:13 |
mithro | yeah | 02:14 |
nash | Still think it is my DPI wrong? | 02:14 |
mithro | I'm yet to figure out how to get the stupid left hand panel to be the correct size | 02:14 |
nash | See the fonts down teh bottom right? | 02:15 |
mithro | can you send me a copy of the complete output of requirements.py ? | 02:15 |
nash | That is all | 02:16 |
CIA-23 | mithro tpclient-pywx-development * re2145325085c /requirements.py: Make the output a bit nicer on the terminal. | 02:17 |
mithro | how did you fix the __installpath__ problem? | 02:17 |
nash | I updated a efw packages | 02:18 |
mithro | whats efw? | 02:18 |
mithro | how does one detect the terminal width? | 02:19 |
nash | more then a ocuple less then amny | 02:19 |
nash | Well in my .zshrc I use: ${COLUMNS} | 02:20 |
nash | Otherwise there si an escape sequence to query it | 02:20 |
nash | Else it's in termios | 02:23 |
CIA-23 | mithro tpclient-pywx-development * r72b45d19ba1d /requirements.py: Respect the COLUMNS environment. | 02:30 |
mithro | any idea what I have to give to termios to get the termnial size? | 02:32 |
mithro | oh, found it | 02:34 |
nash | Cool | 02:35 |
nash | Which is it? | 02:35 |
* nash only has old ioctl based code here... | 02:35 | |
CIA-23 | mithro tpclient-pywx-development * r127e0928aa68 /requirements.py: Also try termios now. | 02:40 |
mithro | COLS = struct.unpack('hh', fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, '1234'))[1] | 02:40 |
mithro | from what I could see that is the "best" way without loading ncurses and friends | 02:40 |
mithro | seems to work | 02:40 |
mithro | if all else fails I drop back to 80 | 02:41 |
nash | heh - TIOCGWINSZ is not portable BTW | 02:41 |
mithro | ahh well | 02:42 |
mithro | it should just fall back to 80 columns then | 02:42 |
mithro | did the main window go to full screen across both screens? | 02:42 |
nash | Nope - just one | 02:43 |
nash | which is what I expect | 02:43 |
mithro | hrm... | 02:46 |
mithro | it seems to be centering correctly on one screen in windows :/ | 02:46 |
nash | Are you resizing or just maximizing? | 02:53 |
mithro | i'm just calling the "CenterOnScreen" method | 03:39 |
nash | OKAY | 03:40 |
nash | Okay - it may force it... | 03:40 |
nash | Anyway - I'm bailing | 03:40 |
nash | talk to you later | 03:40 |
*** nash has quit IRC | 03:42 | |
*** niphree has joined #tp | 04:03 | |
mithro | hello niphree | 04:03 |
niphree | hello | 04:04 |
mithro | niphree: do you have anything to commit today? | 04:04 |
mithro | otherwise I might commit a few small changes I have made | 04:05 |
niphree | I have nothing | 04:05 |
mithro | that is okay | 04:06 |
CIA-23 | mithro metaserver-lite-rewrite * r4607e664e4c3 /index.php: Slight cleanup of index.php | 04:07 |
mithro | niphree: can you work on a README file? | 04:13 |
mithro | where does "Image" come from? | 04:13 |
niphree | from PEAR | 04:14 |
niphree | it's something that Graph library wants but didn't have inside | 04:14 |
niphree | mithro: what should be in README file ? | 04:15 |
mithro | what the requirements are | 04:15 |
mithro | IE things like | 04:15 |
mithro | "required php5" | 04:15 |
mithro | requires PEAR | 04:15 |
mithro | requires Image? | 04:15 |
niphree | ok | 04:16 |
CIA-23 | mithro metaserver-lite-rewrite * ra630a64db263 / (stat.php statswf.php): Some format clean ups and added some FIXME's. | 04:24 |
CIA-23 | mithro metaserver-lite-rewrite * r47b6236881b7 /rss.php: Removed excess whitespace and added a FIXME. | 04:25 |
*** llnz has joined #tp | 04:33 | |
mithro | niphree: ping? | 04:51 |
mithro | llnz: hey | 04:51 |
CIA-23 | mithro metaserver-lite-rewrite * rb76352ec817e / (connect.php db.php): Added a few more FIXME's | 04:51 |
CIA-23 | mithro metaserver-lite-rewrite * rd454ba197c67 /actions/ (FIXME default.php get.php update.php): Removed some excess white space, added a bunch more FIXMEs. | 04:51 |
CIA-23 | mithro metaserver-lite-rewrite * r3dfd561da788 /class/ (9 files): Added numerous FIXME's and removed excess white space. | 04:51 |
CIA-23 | mithro metaserver-lite-rewrite * reaa04e8164c1 /language/Language.php: More FIXME's. | 04:51 |
mithro | I have a patch for you which you'll probably not like :) | 04:51 |
llnz | hi mithro | 04:51 |
llnz | oh? | 04:51 |
mithro | http://cpp.sourceforge.net/?show=39782 | 04:52 |
niphree | mithro: pong | 04:52 |
mithro | niphree: tim@ultraslim:~/oss/tp/metaserver-lite-rewrite$ grep -r 'FIXME' * | wc -l | 04:52 |
mithro | 48 | 04:52 |
mithro | niphree: still got a little bit to do | 04:52 |
mithro | niphree: http://pastebin.com/m392ca9a1 | 04:53 |
tpb | Title: pastebin - collaborative debugging tool (at pastebin.com) | 04:53 |
mithro | niphree: mostly small simple stuff | 04:54 |
CIA-23 | niphree /tmp/PpPKWrp3Y0/nhrITcZc8a-rewrite * rf5b14b622e10 /README: | 04:55 |
CIA-23 | added README file | 04:55 |
CIA-23 | via git-CVS emulator | 04:55 |
niphree | README with just requirements | 04:55 |
mithro | niphree: could you work on fixing up those FIXME problems, then we can go about deploying the metaserver on the live site :) | 04:56 |
llnz | mithro: i intend to remove Frame:unpackString (and use unpackStdString instead) at some point | 04:58 |
mithro | llnz: that would be good | 04:59 |
mithro | tpserver-cpp would have problems if I sent strings with nulls in it | 04:59 |
llnz | you should never send nulls | 04:59 |
mithro | llnz: doesn't really matter, a malicious user could send nulls | 04:59 |
llnz | html indecates that they should be escaped | 04:59 |
niphree | mithro: ok. I'll start now :] | 05:00 |
mithro | niphree: cool | 05:00 |
llnz | nulls don't crash the server or anything | 05:00 |
llnz | just the end of the string gets ingored (and then freed) | 05:00 |
mithro | still bad | 05:01 |
mithro | the error message returned should be better now | 05:01 |
llnz | the old method (unpackString) is even nice enough to remove them before sending it to the clients | 05:01 |
llnz | why? | 05:01 |
llnz | it was fine the bit you have touched | 05:02 |
llnz | and in places you have added checks where they are not needed | 05:02 |
mithro | llnz: why? | 05:03 |
llnz | because the check before checked it | 05:04 |
mithro | did it? | 05:04 |
llnz | yeah | 05:04 |
mithro | where? | 05:04 |
llnz | ListParameter::unpackFrame | 05:05 |
mithro | you did no checks in unPackString | 05:05 |
llnz | yes i did | 05:05 |
llnz | and frame:unpackString can't return NULL, btw | 05:06 |
llnz | hence: | 05:06 |
llnz | > rtnstr = new char[1]; | 05:06 |
llnz | > rtnstr[0] = '\0'; | 05:06 |
llnz | return rtnstr; | 05:06 |
mithro | why can't it return null? | 05:06 |
llnz | returning null gives segfaults | 05:06 |
mithro | llnz: why? you should be checking the result of unPackString | 05:07 |
llnz | just trust me that most of the Frame code is going to be re-written at some point, and then it will be all fine | 05:07 |
llnz | why? it never returns null, and always gives a valid string | 05:08 |
mithro | llnz: what did you code do when I send a string length of -1? | 05:08 |
llnz | it returned an empty string | 05:09 |
mithro | no it didn't | 05:09 |
llnz | yes it did | 05:09 |
mithro | }else if(len == 0){ | 05:09 |
mithro | len == -1 | 05:09 |
llnz | if (len > 0 && length >= unpackptr + len) | 05:09 |
mithro | len is < 0 | 05:09 |
mithro | hence it fails the first if | 05:09 |
mithro | it fails the second if | 05:09 |
mithro | you print the log message | 05:10 |
llnz | ah, true | 05:10 |
mithro | and fail | 05:10 |
mithro | with returning null | 05:10 |
mithro | before that patch, you don't know where unpacking failed either | 05:11 |
mithro | niphree: also, you appear to be trying to write files to the disk | 05:13 |
mithro | that really needs to be fixed | 05:13 |
mithro | and sometimes i'm getting strange responses back from the server | 05:14 |
mithro | so I would like to know where it is failing | 05:14 |
niphree | what responses ? | 05:15 |
niphree | and when ? | 05:15 |
niphree | I'm going to make myself caffee | 05:17 |
mithro | niphree: ? | 05:22 |
CIA-23 | llnz tpserver-cpp * r2447d82a3cb5 /tpserver/frame.cpp: | 05:25 |
CIA-23 | Fixed unpackStdString to use all of the data, not just to the first null | 05:25 |
CIA-23 | which is silly anyway. | 05:25 |
niphree | mithro: back | 05:26 |
mithro | llnz: what about the rest of that patch? | 05:27 |
mithro | niphree: I didn't understand your last two questions | 05:27 |
niphree | [11:16] <mithro> and sometimes i'm getting strange responses back from the server | 05:31 |
niphree | [11:16] <mithro> so I would like to know where it is failing | 05:31 |
mithro | niphree: oh, that was directed at llnz and tpserver-cpp | 05:31 |
mithro | not the metaserver :) | 05:31 |
niphree | ok :] | 05:31 |
niphree | I was.. like : "AAA.. something wrong :/ " | 05:31 |
mithro | niphree: did you have a look at some of my changes? | 05:32 |
niphree | yes | 05:33 |
niphree | I'm thinking to change 'connect.php' to class | 05:34 |
niphree | and you said that I'm writing something to file - I don't know what to do when I create image to graph. | 05:34 |
niphree | but in flash chart - I think I know what to do | 05:35 |
mithro | niphree: make your php file return the image? | 05:35 |
CIA-23 | llnz tpserver-cpp * r499134f68d58 /tpserver/ (listparameter.cpp stringparameter.cpp): | 05:36 |
CIA-23 | Made ListParameter and StringParameter use unpackStdString instead of unpackString | 05:36 |
CIA-23 | which means I can remove unpackString in a minute. | 05:36 |
CIA-23 | llnz tpserver-cpp * r5ebc39e602cb /tpserver/ (playeragent.cpp playertcpconn.cpp): Removed last usage of unpackString in PlayerAgent and PlayerTcpConnection. | 05:40 |
mithro | llnz: ping? | 05:43 |
CIA-23 | llnz tpserver-cpp * rec4863b1f5d1 /tpserver/ (frame.cpp frame.h): | 05:44 |
CIA-23 | Removed unpackString from Frame. | 05:44 |
CIA-23 | One less piece of old crappy code in tpserver-cpp | 05:44 |
llnz | mithro: pong | 05:44 |
mithro | llnz: re the unpackString, yay! | 05:44 |
mithro | llnz: but what about the rest of that patch? | 05:44 |
mithro | specifically the change from isEnoughtRemaining with magic numbers and better error returns? | 05:45 |
llnz | if they were two separate patches, then the isEnoughRemaining patch *might* have be merged, but i don't like the using the Results class | 05:47 |
mithro | why? | 05:47 |
mithro | how else would you do it? | 05:47 |
mithro | exceptions? | 05:47 |
llnz | exceptions | 05:47 |
llnz | they can be thrown fairly far in tpserver-cpp | 05:47 |
mithro | exceptions would be good | 05:47 |
llnz | just remember that tpserver-cpp isn't there to debug clients, it's only a secondary effect | 05:48 |
mithro | llnz: true, but most of the time it just crashes on a bad client | 05:49 |
mithro | the side effect of returning better information is better code | 05:50 |
mithro | and code which reads much better | 05:51 |
mithro | this code is much clearer and self documenting | 05:52 |
mithro | + if(!f->isEnoughRemaining(4)) | 05:52 |
mithro | + return NotEnough("TimeParameter (Maximum)"); | 05:52 |
mithro | + f->unpackInt(); | 05:52 |
mithro | then | 05:52 |
mithro | - if(!f->isEnoughRemaining(8)) | 05:52 |
mithro | - return false; | 05:52 |
llnz | if(!f->isEnoughRemaining(4)) | 05:53 |
llnz | throw EndOfFrame(); | 05:53 |
mithro | s/return NotEnough(/throw NotEnough(/ is pretty easy | 05:53 |
mithro | llnz: I can convert to an exception method | 05:57 |
llnz | if i used exceptions properly, i wouldn't need to call isEnoughRemaining | 05:58 |
mithro | true | 05:59 |
mithro | bblr dinner | 06:00 |
* llnz wonders if mithro is inventing this issues so that tpserver-cpp will never reach 0.5.0, let alone production status (ie 1.0.0) | 06:12 | |
llnz | s/this/these/ | 06:12 |
mithro | llnz: not might fault you use a language which segfaults :P | 06:55 |
llnz | tpclient-pywx-dev was segfaulting the other day.... | 06:55 |
mithro | yeah I know | 06:56 |
mithro | it's an avahi problem :/ | 06:56 |
mithro | btw, you should probably be a little more careful with the signness of the ints you unpack? | 06:57 |
llnz | mithro: no | 06:58 |
mithro | no? | 06:58 |
mithro | that string problem wouldn't have occured if you made sure you where unpacking a "unsigned" int, as it wouldn't be possible for it to be negative | 06:58 |
mithro | same goes for various list unpacking | 06:59 |
llnz | well... somewhat true, i supose | 06:59 |
mithro | an unpackUInt could be useful (and watching the compiler warnings for bad casts) | 07:00 |
llnz | you don't get warnings for sign-ness casts | 07:00 |
mithro | yes you do with the correct -W option | 07:01 |
mithro | I'm sometimes getting this error | 07:02 |
mithro | Unable to insert the order...Could not add order, Unable to unpack Frame. | 07:02 |
mithro | which is what I was trying to track down with the above patch | 07:02 |
mithro | only I can't reliably reproduce the error | 07:03 |
mithro | and there is a strange cache bug going on which I've yet to find the cause for | 07:03 |
mithro | llnz: does tpserver-cpp touch the mod-time of an object everytime to change an order? | 07:03 |
llnz | no, not currently | 07:03 |
mithro | I think that is what is causing my problem | 07:04 |
llnz | probably | 07:04 |
mithro | how hard is it to add? | 07:04 |
CIA-23 | llnz tpserver-cpp * rf1b591d3615d /tpserver/ (frame.cpp frame.h): | 07:06 |
CIA-23 | Remove packString(char*) as well. | 07:06 |
CIA-23 | Not used. | 07:06 |
llnz | not too hard, just a second | 07:06 |
mithro | llnz: here is a deal, When you can get 5 games of Minisec to the finish (IE One final winner) with 5 AI players and no segfaults - I will buy you a commemorative gear including a personalised Mug | 07:11 |
CIA-23 | llnz tpserver-cpp * r69fb700d1178 /tpserver/orderqueue.cpp: | 07:13 |
CIA-23 | Touch Object modtime if objectid is set when the orderqueue modtime is touched. | 07:13 |
CIA-23 | Should fix mithro's cache issue problem. | 07:13 |
llnz | mithro: the first thing would be for you to tell me how to start 5 ai players | 07:13 |
mithro | llnz: sure | 07:13 |
mithro | for i in 1 2 3 4 5; do ./tpsai-py tp://ai$i:password@localhost > ai$i.log 2>&1 &; done | 07:14 |
llnz | ahh, it takes a url | 07:16 |
mithro | yes | 07:17 |
mithro | greywhind: ping | 07:17 |
mithro | llnz: so does galaxie | 07:17 |
mithro | maybe 2-3 tpsai-py and 2-3 galaxie's | 07:17 |
llnz | "if the libraries aren't in debian unstable, it doesn't get built" | 07:19 |
mithro | llnz: ? | 07:19 |
mithro | what is that from? | 07:20 |
llnz | my little motto so i don't install thousands of packages i only use once | 07:20 |
mithro | I wonder why wx2.8 hasn't made it into debian unstable :/ | 07:23 |
mithro | llnz: how do exceptions work in C++ (in terms of the allocation of memory?) | 07:26 |
llnz | objects on the stack are destroyed, the exception thing (can be object or PDT) is passed to the exception handler | 07:28 |
mithro | PDT? | 07:28 |
llnz | primative data type (ie char, int, pointer, etc) | 07:29 |
mithro | it's passed by value? | 07:29 |
llnz | yes | 07:29 |
mithro | okay | 07:30 |
mithro | llnz: i'm also getting a strange occurance where remove_orders are taking up to a second to execute | 07:30 |
mithro | only I can't figure out if it's libtpproto-py or tpserver-cpp | 07:32 |
llnz | code is quite simple in tpserver-cpp, can't see anything that would make it take a second | 07:33 |
mithro | it's almost as if enough data isn't ready and hence it sleeps for a bit | 07:40 |
mithro | xdotx: ping? | 07:41 |
mithro | llnz: do you know much about autoconf on Mac OS X? | 07:42 |
llnz | nope | 07:42 |
mithro | has guit???? was having trouble with libtprl on his box | 07:42 |
mithro | llnz: so when will persistence be fixed? | 07:45 |
llnz | after playerview is working | 07:45 |
mithro | is there any way tpserver-cpp could preserve console history over runs? | 07:46 |
llnz | hummm.... there is a way i think, i'll have to look it up | 07:46 |
llnz | probably just a env var flag | 07:47 |
mithro | Traceback (most recent call last): | 07:48 |
mithro | File "./tp/client/threads.py", line 395, in OnCacheDirty | 07:48 |
mithro | raise IOError("Unable to insert the order..." + o[1]) | 07:48 |
mithro | IOError: Unable to insert the order...Could not add order, Unable to unpack Frame. | 07:48 |
mithro | OnNetworkFailure Unable to insert the order...Could not add order, Unable to unpack Frame. | 07:48 |
mithro | somewhere in the patch I submitted fixed the bug in tpserver-cpp | 07:48 |
llnz | sure its a bug in tpserver-cpp? | 07:48 |
mithro | dunno | 07:50 |
mithro | but the patch definately fixes it | 07:50 |
llnz | what type of order? | 07:51 |
mithro | BuildFleet | 07:52 |
CIA-23 | llnz tpserver-cpp * r734466ed3f10 /tpserver/orderqueue.cpp: Remove entry from ordercache when removing order | 07:54 |
llnz | unrelated patch | 07:56 |
mithro | I think it has to do with the options list | 07:57 |
mithro | I'm pretty sure it's in the following code | 07:59 |
mithro | bool ListParameter::unpackFrame(Frame *f, unsigned int playerid){ | 07:59 |
mithro | if(!f->isEnoughRemaining(8)) | 07:59 |
mithro | return false; | 07:59 |
mithro | int selsize = f->unpackInt(); // selectable list (should be zero) | 07:59 |
mithro | if(!f->isEnoughRemaining(4 + selsize * 12)) | 07:59 |
mithro | return false; | 07:59 |
mithro | for(int i = 0; i < selsize; i++){ | 07:59 |
mithro | f->unpackInt(); | 07:59 |
mithro | std::string name = f->unpackStdString(); | 07:59 |
mithro | if(!f->isEnoughRemaining(8 + (selsize - i + 1) * 12)) | 07:59 |
mithro | return false; | 07:59 |
mithro | f->unpackInt(); | 07:59 |
mithro | } | 07:59 |
mithro | that code is very obtuse | 08:00 |
mithro | what is this --> ? if(!f->isEnoughRemaining(8 + (selsize - i + 1) * 12)) | 08:00 |
llnz | checks if there is enough data for the remaining part of the selectable list, plus 4 bytes for the size of the chosen list | 08:01 |
llnz | note that the selectable list should have zero elements (read only list) | 08:02 |
mithro | why is that in a loop? | 08:02 |
llnz | because the string is not a constant size | 08:02 |
mithro | why not just check for 4 bytes for the unpackInt? | 08:02 |
llnz | fail early? | 08:02 |
mithro | why not have this | 08:03 |
mithro | bool ListParameter::unpackFrame(Frame *f, unsigned int playerid){ | 08:03 |
mithro | if(!f->isEnoughRemaining(4)) | 08:03 |
mithro | return false; | 08:03 |
mithro | int selsize = f->unpackInt(); // selectable list (should be zero) | 08:03 |
mithro | for(int i = 0; i < selsize; i++){ | 08:03 |
mithro | if(!f->isEnoughRemaining(4)) | 08:03 |
mithro | return false; | 08:03 |
mithro | f->unpackInt(); | 08:04 |
mithro | // FIXME.... Put the check for string size here | 08:04 |
mithro | std::string name = f->unpackStdString(); | 08:04 |
mithro | if(!f->isEnoughRemaining(4)) | 08:04 |
mithro | return false; | 08:04 |
mithro | f->unpackInt(); | 08:04 |
mithro | } | 08:04 |
mithro | that is much easier to see what is going on | 08:04 |
llnz | hummm.... | 08:05 |
mithro | (8 + (selsize - i + 1) * 12) <- that is very obtuse | 08:08 |
llnz | ahhhh | 08:14 |
llnz | i think | 08:14 |
mithro | ? | 08:15 |
llnz | should be (8 + (selsize - i - 1) * 12), i think | 08:15 |
llnz | just checking now | 08:16 |
mithro | see what I mean :P | 08:16 |
llnz | but it only happens when the client is being bad, so still a bug on your end | 08:17 |
mithro | your code being "to smart" introduced an error in your code | 08:18 |
CIA-23 | llnz tpserver-cpp * ra828f921ab88 /tpserver/listparameter.cpp: | 08:19 |
CIA-23 | Fixed bug that only bad clients trigger. | 08:19 |
CIA-23 | Hopefully the code will get simpler in future with the use of exceptions. | 08:19 |
llnz | btw: 5 ai (plus me until i go to bed) playing on tp://llnz.dyndns.org/tp | 08:20 |
mithro | the protocol doesn't say a client is required to send the parameters as empty | 08:22 |
llnz | http://www.thousandparsec.net/tp/dev/documents/protocol3.php | 08:23 |
tpb | <http://ln-s.net/Ix2> (at www.thousandparsec.net) | 08:23 |
llnz | A list in which numerous items can be selected The possible selections, A list of: | 08:23 |
llnz | a UInt32, read only, id of what can be selected | 08:23 |
llnz | a String, read only, String Name of can be selected | 08:23 |
llnz | a UInt32, read only, Maximum number of can to be selected | 08:23 |
llnz | NOTE: read only fields should be transmitted by the client as 0, empty lists or empty string to conserve bandwidth | 08:25 |
mithro | llnz: "should" as appose to "required" | 08:25 |
mithro | The server will ignore any information in read only field (even if they are non-empty). | 08:26 |
llnz | from the rfc standards: (must|shall) >> (should|recommend) >> (can|may) | 08:27 |
mithro | The server MUST ignore any information in read only field (even if they are non-empty). | 08:28 |
llnz | yes, it was | 08:28 |
llnz | and ignoring everything else too | 08:28 |
llnz | :-) | 08:28 |
mithro | llnz: which is incorrect behaviour on the server | 08:29 |
llnz | could you put a small random delay in tpsai-py between when it receives note of end of turn and starts downloading the data (ie about 5 seconds or so) | 08:30 |
mithro | llnz: why? | 08:31 |
llnz | just spread out the load a little | 08:32 |
llnz | as long as the turn length is much longer | 08:32 |
mithro | I have been using 10 second turns | 08:32 |
llnz | i find it hard to keep up with 10 second turns :-p | 08:34 |
mithro | yeah | 08:36 |
*** TBBle_ is now known as TBBle | 08:36 | |
llnz | in fact, 2 minutes seem to be about my minimum | 08:37 |
jotham | did you guys see the explosion animation | 08:38 |
jotham | it's a .mov unfortunatly, but i got some targa's and the source files from the guy | 08:38 |
jotham | vlc plays it fine | 08:38 |
jotham | i need to get me some more planet graphics now | 08:38 |
llnz | jotham: i didn't see it | 08:38 |
jotham | ok one moment | 08:38 |
jotham | http://www.dirgemedia.com/misc/boom5.mov | 08:39 |
jotham | he's done a few | 08:39 |
llnz | cool | 08:39 |
mithro | jotham: cool | 08:41 |
mithro | how goes the formation stuff? | 08:42 |
mithro | I would really love to get some cool battle stuff going on :) | 08:44 |
mithro | llnz: just testing the sleep now | 08:45 |
jotham | i have a cold again, so i've been asleep most of the time for the last 4 days | 08:46 |
jotham | but it's fine | 08:46 |
llnz | mithro: actually, it's not really necessary yet, but will be one day | 08:46 |
jotham | that's a pretty funny thread http://groups.google.com/group/comp.compression/browse_thread/thread/63db3f711c83d4c0/a0f09c085ce4aa7f | 08:48 |
tpb | <http://ln-s.net/rqu> (at groups.google.com) | 08:48 |
jotham | just skim read the math stuff | 08:48 |
jotham | unless you understand it =) | 08:48 |
jotham | and read the industrial_ and phil guy nut off | 08:49 |
mithro | purely random data is not compressible and provable so | 08:57 |
llnz | > There is no compressor that can compress every | 09:00 |
llnz | > single 36-byte file by at least one bit. | 09:00 |
Epyon | entropy :P | 09:00 |
llnz | 36 bytes isn't much either, but its 256^36 possible files == 4.97323e+86 | 09:01 |
* llnz did an honours course in text compression | 09:01 | |
llnz | if you see a compression text book by Tim Bell, he was my lecturer | 09:02 |
Epyon | There is no compressor that can compress every singly x-byte file by at least one bit for every x :P | 09:02 |
jotham | the thread is pretty amusing | 09:02 |
Epyon | The proof for that is pretty easy :{ | 09:02 |
mithro | if you find a compressor which can compress every x-byte file to x-1 byte file, you can compress everything to 1 bit | 09:03 |
Epyon | yep :P | 09:03 |
mithro | yay for induction! :P | 09:04 |
llnz | hutter prize: very good compression == AI (discuss possibility of fact) | 09:05 |
mithro | jotham: so can we see any of the formation stuff? | 09:06 |
jotham | nope | 09:06 |
jotham | i haven't got anything i like | 09:07 |
mithro | :/ | 09:07 |
jotham | i really fucking don't know what to do about planets | 09:07 |
jotham | i was looking at how civ4, and those starwars games do them | 09:07 |
llnz | jotham: in battlefleet gothic, one edge of the table is declared the planet | 09:08 |
mithro | what is the problem with planets? | 09:08 |
jotham | it doesn't matter, it's my artistic nature being the problem | 09:08 |
jotham | not the planets | 09:09 |
jotham | and talking about it wont help | 09:09 |
* mithro just wants to see cool demos :P | 09:09 | |
jotham | yeah i need to render out those explosions in a useful format too at some stage | 09:10 |
jotham | but it'll take about 5 hours per animation | 09:10 |
jotham | the guy who made them has a much faster pc =) | 09:10 |
jotham | i think in a simple case where you have 2-4 fleets or so and 1 planet, the planet should be in the center | 09:14 |
jotham | but, beyond one planet, i'm not sure, there are various ways of treatin git | 09:14 |
mithro | well, get a good one planet situation first :P | 09:16 |
jotham | i spent much of the last couple of days i've been sick playing with elipses and various metaball style boundary generators | 09:16 |
jotham | if you visualise that the ships are like particles attached to the edge of a shape in the center, and that shape is the planets plus their 'boundaries' | 09:17 |
mithro | okay | 09:19 |
llnz | mithro: about how many turns does 5 ai take to kill one another? | 09:44 |
mithro | llnz: dunno, never seen it finish | 09:44 |
llnz | hehe, ok | 09:45 |
llnz | 45 turns so far | 09:45 |
llnz | will check on it in the morning | 09:45 |
* llnz wanders off | 09:45 | |
llnz | later all | 09:45 |
mithro | it always dies on combat | 09:45 |
*** llnz has quit IRC | 09:45 | |
*** guitsaru has joined #tp | 10:06 | |
mithro | hey guitsaru | 10:07 |
guitsaru | hey | 10:07 |
*** xdotx_ has joined #tp | 10:23 | |
*** xdotx has quit IRC | 10:24 | |
mithro | guitsaru: any luck with either of the server? | 10:25 |
guitsaru | No | 10:25 |
guitsaru | they python server complained about sqlalchemy even though I have it installed | 10:25 |
mithro | guitsaru: can you paste the output? | 10:27 |
guitsaru | Oh, it's not doing it now | 10:28 |
guitsaru | I need to install a database though | 10:29 |
mithro | guitsaru: it should be able to use sqlite | 10:31 |
guitsaru | python tpserver-py | 10:33 |
guitsaru | Traceback (most recent call last): | 10:33 |
guitsaru | File "tpserver-py", line 12, in <module> | 10:33 |
guitsaru | import config | 10:33 |
guitsaru | File "/Volumes/ANDO/Documents/Programming/TP/stable/tpserver-py/config.py", line 23, in <module> | 10:33 |
guitsaru | servername = socket.gethostbyaddr(socket.gethostname())[0] | 10:33 |
guitsaru | socket.herror: (1, 'Unknown host') | 10:33 |
mithro | that is a configuration problem with your local machine :P | 10:34 |
mithro | your hostname should resolve to an address | 10:34 |
guitsaru | Probably some crap with the campus network | 10:35 |
guitsaru | I'm on wireless right now, I'll try again when I get back to my dorm. | 10:35 |
mithro | guitsaru: you can edit config.py and just put something in there | 10:36 |
guitsaru | ok | 10:36 |
guitsaru | mithro: I don't suppose I can do the same for serverip | 10:38 |
mithro | sure! | 10:38 |
mithro | anything in config.py is user setable | 10:38 |
guitsaru | ok | 10:38 |
mithro | it automatically generated one which should work for most people | 10:38 |
guitsaru | ImportError: No module named sqlalchemy | 10:40 |
guitsaru | I installed it yesterday | 10:40 |
jotham | i need an algorithm that produces these kinds of curves (the blue lines, that i drew with the mouse rather crudely) http://the.fieldsofnoise.org/Archive/temp/rounded_primatives.png | 10:42 |
tpb | <http://ln-s.net/rsY> (at the.fieldsofnoise.org) | 10:42 |
mithro | jotham: draw the lines as a polygon, expand the polygon X pixels, round the corners? | 10:43 |
jotham | i ideally want the angle at any point on the line | 10:44 |
jotham | the tangent or whatever | 10:44 |
mithro | guitsaru: is there anything above that? | 10:44 |
jotham | infact i need it | 10:44 |
mithro | what does "python requirements" do? | 10:45 |
guitsaru | http://pastebin.com/m19debd03 | 10:45 |
guitsaru | http://pastebin.com/m70b7b00 | 10:46 |
tpb | Title: pastebin - collaborative debugging tool (at pastebin.com) | 10:46 |
mithro | guitsaru: just doing a few changes | 10:55 |
guitsaru | ok | 10:55 |
tpb | aloril_ has joined on worldforge | 10:57 |
tpb | aloril has quit worldforge (Ping timeout: 624 seconds) | 10:59 |
jotham | i found out the algorithm btw http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/B-spline/bspline-curve-closed.html | 11:04 |
tpb | <http://ln-s.net/rsz> (at www.cs.mtu.edu) | 11:04 |
jotham | looks good | 11:04 |
mithro | jotham: cool | 11:07 |
*** guitsaru has quit IRC | 11:33 | |
CIA-23 | mithro tpserver-py * rf8babebbe3b7 / (7 files in 3 dirs): | 11:57 |
CIA-23 | Massive update to make the requirements stuff much smoother. | 11:57 |
CIA-23 | Required a little reorg of the server's __init__.py (and a few other smaller | 11:57 |
CIA-23 | changes). | 11:57 |
mithro | hopefully that will help guitsaru | 11:57 |
mithro | xdotx_: ping? | 12:11 |
*** daxxar has quit IRC | 12:19 | |
*** daxxar has joined #tp | 12:19 | |
tpb | disconnected from worldforge: Ping sent at 2007-08-27T12:42:08 not replied to. | 12:44 |
tpb | disconnected from worldforge: Ping sent at 2007-08-27T12:51:24 not replied to. | 12:53 |
mithro | o so quiet | 13:19 |
*** Demitar has quit IRC | 13:19 | |
*** CIA-23 has quit IRC | 13:19 | |
*** CIA-23 has joined #tp | 13:20 | |
*** Demitar has joined #tp | 13:20 | |
*** mithro has quit IRC | 14:26 | |
*** mithro has joined #tp | 15:06 | |
*** guitsaru has joined #tp | 16:35 | |
mithro | hey guitsaru | 16:35 |
guitsaru | hey | 16:35 |
mithro | do an update to tpserver-py and try requirements.py again please | 16:35 |
guitsaru | http://pastebin.com/m7cefda6 | 16:38 |
tpb | Title: pastebin - collaborative debugging tool (at pastebin.com) | 16:38 |
guitsaru | mithro: I don't know whether this matters or not, but on mac the package is called sqlalchemy-py25 | 16:40 |
guitsaru | I don't see why it would | 16:40 |
mithro | guitsaru: how did you install sqlaclehemy? | 16:46 |
mithro | my guess is that you have multiple python installs now | 16:46 |
guitsaru | through fink, 'fink install sqlalchemy-py25' | 16:47 |
mithro | and the one you install sqlaclehemy to isn't the one you are running | 16:47 |
mithro | guitsaru: how did you install python? | 16:47 |
guitsaru | through the link from the wiki | 16:47 |
mithro | fink won't understand that | 16:49 |
mithro | (I believe) | 16:51 |
guitsaru | mithro: I just installed the binary (downloaded the package and installed with python setup.py install)' | 16:53 |
guitsaru | and it still doesn't work | 16:53 |
mithro | hrm.... | 16:54 |
mithro | what is it saying? | 16:54 |
mithro | No module still? | 16:54 |
guitsaru | oh, I probably should have looked at that | 16:55 |
guitsaru | * Looking for SQLAlchemy, | 16:55 |
guitsaru | SQLAlchemy installed version 'module' object has no attribute '__version__' | 16:55 |
mithro | hrm... | 16:56 |
mithro | what version of SQLAlchemy did you install? | 16:57 |
guitsaru | nevermind, I fixed it | 16:58 |
guitsaru | I did have an old version | 16:58 |
mithro | working now? | 17:07 |
guitsaru | well, it passed requirements | 17:07 |
guitsaru | Still working on actually connecting | 17:07 |
*** xdotx_ is now known as xdotx | 17:08 | |
guitsaru | http://pastebin.com/m32b3def1 | 17:08 |
tpb | Title: pastebin - collaborative debugging tool (at pastebin.com) | 17:08 |
mithro | your netlib is out of date | 17:43 |
guitsaru | mithro: is that TP software or external? | 17:46 |
mithro | libtpproto-py | 17:46 |
mithro | tp.netlib | 17:46 |
guitsaru | ok | 17:46 |
mithro | any luck | 17:50 |
* mithro really should head to bed | 17:50 | |
guitsaru | It is running | 17:50 |
guitsaru | heh, have you not slept yet? | 17:50 |
guitsaru | I can't connect because my name does not exist on the server | 17:51 |
mithro | you need to add it with tpserver-py-tool | 17:52 |
mithro | ./tpserver-py-tool --addgame tp minisecplus admin@localhost "A test game" | 17:52 |
mithro | ./tpserver-py-tool --adduser tp nash password | 17:52 |
mithro | ./tpserver-py-tool --populate tp 0 1 1 2 2 | 17:52 |
mithro | ./tpserver-py-tool --turn tp | 17:52 |
mithro | etc | 17:52 |
guitsaru | Ok, thanks | 17:54 |
guitsaru | It's working | 17:54 |
mithro | i'm sure there are plenty of bugs | 17:55 |
mithro | I should really sit down and get the AI's to play to then end of a game | 17:55 |
guitsaru | mithro: do I need to type that every time, or is it saved? | 17:55 |
mithro | unlike tpserver-cpp | 17:56 |
mithro | tpserver-py uses a database backed :P | 17:56 |
guitsaru | Ok, awesome | 17:56 |
guitsaru | mithro: how do I set it up so that tpsai-py can log into the server? | 18:01 |
mithro | ./tpserver-py-tool --adduser tp tpsai-py cannonfodder | 18:01 |
mithro | ./tpsai-py tp://tpsai-py:cannonfodder@localhost/tp | 18:02 |
mithro | anyway i'm heading to bed | 18:07 |
mithro | gnight | 18:07 |
guitsaru | night | 18:07 |
*** nash has joined #tp | 18:34 | |
niphree | good night | 18:59 |
*** niphree has quit IRC | 18:59 | |
*** xdotx has quit IRC | 19:41 | |
*** daxxar has quit IRC | 19:44 | |
*** tuna-fish has quit IRC | 19:44 | |
*** greywhind has quit IRC | 19:44 | |
*** daxxar has joined #tp | 19:45 | |
*** tuna-fish has joined #tp | 19:45 | |
*** greywhind has joined #tp | 19:45 | |
*** daxxar has quit IRC | 19:46 | |
*** daxxar has joined #tp | 19:46 | |
* nash wonders if mithro is around | 21:28 | |
*** xdotx has joined #tp | 21:31 | |
nash | heyo xdotx | 21:35 |
xdotx | hey nash | 21:36 |
nash | how is life? | 21:36 |
xdotx | not bad. i'm on vacation... i think | 21:36 |
nash | heh | 21:38 |
nash | So that means lots of TP work | 21:38 |
xdotx | nash: :P i kinda wish. been busy with loads of other stuff here | 21:39 |
nash | xdotx: So what are you going to work on for TP next? | 21:40 |
xdotx | nash: i've got some things i plan on cleaning up on for RFTS, and i've had some ideas for some changes in tpserver-cpp | 21:41 |
nash | Sweet | 21:41 |
xdotx | ... i should probably write down those ideas when they come to me. | 21:42 |
* xdotx has a bad habit of designing elaborate things in his head and then forgetting most of it | 21:43 | |
nash | Indeed | 21:43 |
nash | Document early | 21:43 |
nash | Whats really cool is when someone else does the work for you ;-) | 21:43 |
xdotx | back in a few | 22:00 |
*** xdotx has quit IRC | 22:00 | |
*** JLP has quit IRC | 22:09 | |
*** JLP has joined #tp | 23:11 |
Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!