*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** mithro has quit IRC | 00:05 | |
tansell | Greywhind, ping? | 00:24 |
---|---|---|
* tansell pokes Greywhind with something sharp and pointy | 00:25 | |
alanp | heh | 00:30 |
tansell | alanp, so where is mtsec at? | 00:30 |
alanp | was in the US for a few days, unable to do anything due to lame tax form I signed | 00:31 |
alanp | I'm going to be working on combat pretty hardcore for the next few days to get it completed | 00:31 |
llnz | cool | 00:31 |
llnz | bbl | 00:31 |
*** llnz has quit IRC | 00:31 | |
alanp | then i'll send some test instructions for the features of mtsec and work on cleaning it up (needs a good cleaning) | 00:31 |
alanp | excuse my blog post for being late, I didn't want to get into any troubles with the IRS who are pretty notorious for creating troubles | 00:32 |
*** mithro has joined #tp | 00:46 | |
Greywhind | tansell: pong | 01:02 |
tansell | Greywhind, our meeting was at 2:00pm right? | 01:04 |
Greywhind | tansell: yeah, we're late for the usual time. my mistake. | 01:04 |
Greywhind | tansell: are you ok doing it now? | 01:04 |
tansell | yeah | 01:05 |
*** reac has quit IRC | 01:06 | |
CIA-26 | landon tpclient-pyogre * r1beebf96859a /src/battlemanager.py: Fixed round progression, which was skipping the first round | 01:07 |
CIA-26 | landon tpclient-pyogre * re6dfaf8d7764 /src/battlemanager.py: Fixed logging so round # is only a prefix on event related logs | 01:11 |
tansell | Greywhind, soo... | 01:17 |
tansell | blog post? | 01:18 |
*** llnz has joined #tp | 01:18 | |
Greywhind | tansell: just finishing it now | 01:18 |
tansell | okay | 01:18 |
Greywhind | tansell: http://greywhind.wordpress.com/2009/08/05/gsoc-week-11-summary/ | 01:25 |
tpb | <http://ln-s.net/3os-> (at greywhind.wordpress.com) | 01:25 |
CIA-26 | landon tpclient-pyogre * r2cd1a1bb5a40 /src/battlemanager.py: Whoops, never noticed everything was going backwards, that's fixed now | 01:27 |
CIA-26 | landon tpclient-pyogre * rf4a8262e46ca /src/battlemanager.py: End round log fixed to show the correct last round | 01:27 |
Greywhind | tansell: you there still? | 01:38 |
*** Erroneous has quit IRC | 01:38 | |
tansell | sorry | 01:38 |
tansell | back now | 01:38 |
Greywhind | tansell: no problem | 01:38 |
Greywhind | tansell: i kept you waiting too :P | 01:38 |
llnz | Greywhind: can't see anything wrong with rfts move orders | 01:39 |
Greywhind | tansell: anyway, i've tested the client with a full game of Risk against two AIs, and I played until I lost | 01:39 |
Greywhind | llnz: hm. wonder why all the others work | 01:39 |
tansell | Greywhind, looks good | 01:40 |
tansell | Greywhind, you lost!? :P | 01:40 |
Greywhind | llnz: in every other ruleset, every other order type has worked. this is the only one that currently doesn't, that i've found | 01:40 |
Greywhind | tansell: yes, i'm not very good at risk | 01:40 |
llnz | Greywhind: the move order in rfts is very different from the other ones (at least minisec and mtsec) | 01:42 |
alanp | is rfts the set where you can move only to adjoining planets? | 01:43 |
alanp | or that only on certainturns? | 01:43 |
Greywhind | llnz: what arguments does it expect? | 01:43 |
*** jnengland77 has quit IRC | 01:43 | |
llnz | it takes a object orderparameter | 01:43 |
llnz | alanp: only to star systems | 01:44 |
alanp | ahhh | 01:44 |
llnz | slow warp, disapear from universe until arrival | 01:44 |
Greywhind | llnz: like this object order param: | 01:45 |
Greywhind | kw['structures'] = [ | 01:45 |
Greywhind | IntegerStructure('objectid', "The object's Id number.", size=32, type='unsigned'), | 01:45 |
Greywhind | ListStructure('validtypes', 'List of the valid object types which can be chosen.', structures=[ | 01:45 |
Greywhind | IntegerStructure('validtype', 'A valid object type for the chosen Object ID.', size=32, type='unsigned'), | 01:45 |
Greywhind | ]), | 01:45 |
Greywhind | ]? | 01:45 |
Greywhind | or just the ID number? | 01:45 |
mithro | keyboard failure at my work | 01:47 |
llnz | same as a normal object order param, I[I] | 01:49 |
llnz | selected id, list of valid types | 01:49 |
Greywhind | llnz: can i pass an empty list safely? | 01:49 |
Greywhind | nwho | 01:50 |
Greywhind | oops | 01:50 |
llnz | yes | 01:50 |
llnz | the list is "read only" | 01:50 |
tansell | back - but I need to head of in like 5 minutes | 01:50 |
Greywhind | llnz: but like... does the list need to actually contain anything useful? | 01:51 |
tansell | Greywhind, should practice more | 01:51 |
tansell | Greywhind, jphr has some screencast tutorials on the net | 01:51 |
llnz | the client can send an empty list | 01:51 |
Greywhind | llnz: ok. | 01:51 |
Greywhind | thansk | 01:51 |
Greywhind | *thanks | 01:51 |
llnz | if the list isn't empty the server will ignore the list | 01:52 |
Greywhind | tansell: well, i'm pretty sure minisec and risk are playable | 01:52 |
Greywhind | tansell: i think mtsec is as well, but haven't been able to test it fully | 01:52 |
Greywhind | llnz: ok, thanks | 01:52 |
tansell | Greywhind, if you could work with alanp to get mtsec into a playable state | 01:52 |
tansell | that would be awesome | 01:52 |
Greywhind | tansell: i can try | 01:53 |
Greywhind | tansell: are there any AIs that work with mtsec? | 01:53 |
tansell | Greywhind, no :( | 01:54 |
alanp | no | 01:54 |
alanp | :-( | 01:54 |
tansell | Greywhind, have you tested on windows/mac? | 01:54 |
Greywhind | alanp: want to play a game or two sometime, then? :P | 01:54 |
Greywhind | tansell: not yet, i'll do that this week | 01:54 |
tansell | okay | 01:54 |
tansell | your bound to find problems | 01:54 |
tansell | btw - does copy/paste of the order stuff work now? | 01:55 |
Greywhind | yeah :-/ | 01:55 |
alanp | i can probably host a game and leave it running, i' | 01:55 |
Greywhind | tansell: i don't think it does | 01:55 |
alanp | i've been using 1 min turns though | 01:55 |
tansell | Greywhind, I thought you where going to fix that? | 01:55 |
alanp | and battle doesnt work yet, so im not sure what we would do :P | 01:55 |
alanp | battle should be good for next week, so we can test during pencil down if that works for you | 01:55 |
Greywhind | alanp: heh. i've been using 1 minute turns too | 01:56 |
Greywhind | alanp: yeah, we can test later | 01:56 |
Greywhind | tansell: i looked at it, but i don't think i was able to fix it | 01:56 |
tansell | Greywhind, make sure that the client can start up a mtsec game (even if it's only playing by yourself) | 01:56 |
Greywhind | tansell: i can try to get it in | 01:56 |
tansell | Greywhind, it should be pretty easy | 01:56 |
Greywhind | tansell: i've already made sure mtsec works at least on the surface | 01:56 |
Greywhind | tansell: i just don't know if it's possible to play a full game | 01:56 |
tansell | Greywhind, you should be able to build ships, torpedoes, load torpedoes onto ships and unload them at a new location | 01:57 |
Greywhind | tansell: i'll try to check | 01:57 |
tansell | Greywhind, the daneel-ai fixes should be sent to Iwanowitch too | 01:57 |
llnz | if you are using the right branch | 01:57 |
Greywhind | llnz: i got move orders working | 01:58 |
Greywhind | llnz: thanks for the info | 01:58 |
tansell | be back in 30 minutes | 02:02 |
*** tansell_laptop has quit IRC | 02:04 | |
*** tansell_laptop has joined #tp | 02:04 | |
CIA-26 | Greywhind tpclient-pywx-tp04 * ra95302ebb571 /windows/main/ (overlays/Path.py panelOrder.py): Fixed return value from object selection order parameter panels, fixed out of date code in Path.py. | 02:31 |
*** nash has quit IRC | 03:21 | |
*** tansell_laptop has quit IRC | 04:40 | |
*** tansell_laptop has joined #tp | 04:45 | |
*** Demitar has joined #tp | 05:00 | |
*** llnz2 has joined #tp | 05:07 | |
*** llnz has quit IRC | 05:08 | |
*** llnz2 is now known as llnz | 05:08 | |
*** tansell_laptop has quit IRC | 05:16 | |
*** tansell_laptop has joined #tp | 05:18 | |
*** Greywhind has quit IRC | 05:34 | |
*** mithro has quit IRC | 06:21 | |
*** Vadtec has quit IRC | 06:48 | |
*** Vadtec_ has quit IRC | 06:48 | |
*** edison has quit IRC | 06:48 | |
*** Vadtec_ has joined #tp | 06:49 | |
*** Vadtec has joined #tp | 06:49 | |
*** edison has joined #tp | 06:49 | |
*** mithro has joined #tp | 06:50 | |
* llnz ponders | 07:05 | |
mithro | what are you pondering? | 07:20 |
llnz | nothing | 07:25 |
* llnz wanders off | 07:35 | |
llnz | later all | 07:35 |
*** llnz has quit IRC | 07:36 | |
*** tuna-fish has joined #tp | 09:14 | |
*** peres has joined #tp | 09:58 | |
*** peres has quit IRC | 10:28 | |
*** bddebian has joined #tp | 11:04 | |
bddebian | Heya | 11:06 |
*** mithro has quit IRC | 11:10 | |
*** alanp_ has joined #tp | 11:14 | |
*** alanp_ has quit IRC | 11:57 | |
tote | hello :) | 13:16 |
*** tuna-fish has quit IRC | 14:00 | |
*** jnengland77 has joined #tp | 14:45 | |
*** cherez1 has joined #tp | 15:03 | |
*** cherez has quit IRC | 15:05 | |
*** Erroneous has joined #tp | 15:08 | |
*** Greywhind has joined #tp | 15:10 | |
*** llnz has joined #tp | 16:19 | |
*** bddebian has quit IRC | 16:32 | |
*** nebaway is now known as nebajoth | 17:01 | |
llnz | morning all | 17:02 |
*** Greywhind has quit IRC | 17:55 | |
*** Greywhind has joined #tp | 17:59 | |
*** JLafont has joined #tp | 18:00 | |
*** nash has joined #tp | 18:07 | |
*** jnengland77 has quit IRC | 19:00 | |
tansell | morning people | 20:18 |
Greywhind | morning tansell | 20:19 |
Greywhind | tansell: so it's looking like the problem with order pasting is that deepcopy on a GroupStructure causes this error: | 20:26 |
Greywhind | File "/usr/lib/python2.6/copy.py", line 329, in _reconstruct | 20:26 |
Greywhind | y.append(item) | 20:26 |
Greywhind | File "libtpproto-py/tp/netlib/objects/Structures.py", line 376, in append | 20:26 |
Greywhind | raise AttributeError("Can not change the size of this structure") | 20:26 |
tansell | Greywhind, looks like it needs __deepcopy__() attribute | 20:30 |
tansell | http://docs.python.org/library/copy.html | 20:30 |
tpb | Title: 9.17. copy — Shallow and deep copy operations Python v2.6.2 documentation (at docs.python.org) | 20:30 |
Greywhind | tansell: i see | 20:31 |
*** mithro has joined #tp | 20:35 | |
Greywhind | tansell: hm. so i made a method: __deepcopy__(self, memo) | 20:50 |
Greywhind | tansell: in the same class where the error happens | 20:50 |
Greywhind | tansell: but that method never appears to be called | 20:50 |
tansell | hrm | 20:54 |
tansell | are you calleding copy.deepcopy or copy.copy? | 20:54 |
Greywhind | order = copy.deepcopy(self.clipboard[0]) | 20:55 |
tansell | Greywhind, read the page and see what is says? | 20:58 |
tansell | maybe __deepcopy__ is a new feature? | 20:58 |
Greywhind | Changed in version 2.5: Added copying functions. | 21:05 |
Greywhind | so they should be in 2.6, which is what i'm using | 21:05 |
*** welterde has quit IRC | 21:09 | |
*** alanp has quit IRC | 21:09 | |
*** alanp has joined #tp | 21:11 | |
*** welterde has joined #tp | 21:11 | |
tansell | Greywhind, sorry - it's just another fiddle and write some simple test cases to find out what's going on | 21:30 |
tansell | it sounds like you put th e__deepcopy__ in the wrong location | 21:30 |
Greywhind | tansell: well, it's trying to deepcopy a dynamic class (<dynamic-class 'Build Fleet' (2) at 0xb1d18cdcL> | 21:34 |
Greywhind | tansell: which I don't think I can add a __deepcopy__ to, can i? | 21:34 |
tansell | sure you can | 21:34 |
tansell | dynamic-class has a base class it inherits from | 21:35 |
Greywhind | tansell: how do i figure out what the base class is? | 21:35 |
tansell | print __bases__ | 21:36 |
tansell | or just look at the code | 21:36 |
Greywhind | tansell: ok. thanks. i'm going to go eat dinner now :P | 21:37 |
*** Erroneous has quit IRC | 21:40 | |
*** tansell_laptop has quit IRC | 22:12 | |
*** jmtan has joined #tp | 23:12 | |
*** jnengland77 has joined #tp | 23:20 | |
*** tansell_laptop has joined #tp | 23:55 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!