Sunday, 2009-06-07

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
CIA-46cherez libtpproto2-py * rd7333ed90631 / (testxstruct.py tp/netlib/xstruct.py): Switched tests to the unittest module.00:06
Greywhindmithro: any ideas what could be causing the error i pasted earlier, if you're still around?00:49
Greywhindmithro: it seems that the packet it's receiving in response to the insert_order isn't a Yes or No packet, but rather an order packet.01:09
Greywhindso okfail is seeing a packet type it doesn't expect01:09
mithroGreywhind: correct03:12
Greywhindmithro: not sure what to do about that, but it's a bit late, so i'll work on it tomorrow03:12
mithroGreywhind: so either the library is wrong, or the server03:12
mithrocheck the protocol document03:13
Greywhindok03:13
Greywhindthe server still sends the OK packet to tp0303:14
mithroso the question is, did this change in tp0403:14
mithro?03:14
mithrocheck the documents03:14
mithropoke llnz03:14
GreywhindNow returns the order frame, not Okay frame.03:14
Greywhindnow i need to figure out what to do with the returned frame03:15
Greywhindi don't know that part of the code very well - do you know what i should do with it?03:15
Greywhindor how to check that it's correct?03:15
mithroGreywhind: well - I would probably return the order object back up the stack03:16
mithroGreywhind: it could be an Order object or a Fail frame03:17
Greywhindmithro: how do i get it in the first place?03:17
mithroif you look at the net code03:17
mithrocheck something like insert_order03:18
mithroopps03:18
mithroI mean getorder03:18
mithrowhich already expects a different response03:18
mithrogetgame/getplayer might also work03:18
Greywhindreturn self._get_header(objects.Order, self.no)?03:18
mithrothe sounds kinda right03:20
Greywhindmithro: seems to work, except that the lists aren't populated with defaults until i hit "revert"03:20
mithroGreywhind: probably because code higher up is now getting an order frame rather then true/false03:23
Greywhindi guess i'll look at it tomorrow03:24
Landonhm, whats the syntax I'm looking for here "for foo in bar _where_ type(foo) == 'baz'"03:26
Landondoesn't seem to be where (sql in my head for some reason)03:27
Landonoh, s/where/if03:28
mithroif isinstance(a, classC):03:29
Landonah that sounds classier than using type(), thanks03:30
Landonupdating the battle.py code so it has a list of events instead of seperate lists of damage, death, logs, fire03:30
Landonthe idea was everything would then be in nice chronological order and if I did need a specific list I could use the above expression, but I still can't seem to get it to work03:31
*** greenlion has joined #tp03:31
mithroLandon: hrm?03:36
Landonnevermind, misunderstood how generator expressions worked03:36
Landonwell right now the battlexml parser assigns each type of battle event to its own list , so no order is kept between events of different types03:37
Landontrying to test code to see if I had gotten it worked out now to save all in one events list  where I'd be able to pull out the distinct types if need be (and retain chronological order)03:39
LandonI need to get some sleep now though03:39
*** Greywhind has quit IRC03:46
mithroLandon: each "round" has a given order04:01
mithroLandon: and all those events happen at once04:01
*** benm has joined #tp04:03
*** bmordue has joined #tp07:09
*** bmordue has left #tp07:21
*** JLafont has quit IRC11:26
*** peres has left #tp11:46
Landonmithro: well I would assume some events like fire happen before damage12:09
Landon(is it possible for say 2 ships to fire and cause a cumulative damage amount?)12:09
mithroLandon: yes12:09
mithroLandon: it's possible for all the ships to fire12:10
mithroon a single ship12:10
mithroor multiple other ships12:11
Landonwell, what I meant was, ship A and ship B fire on ship C at the same time12:11
Landoninstead of getting 2 damage entries for 4 and 5, is it possible that it could get only one for 912:12
Landonmaybe not, but just in case it would be handy to see the events in the order "fire, fire, damage" instead of two lists of "fire, fire" and "damage"12:13
* Landon breakfast12:15
mithroLandon: yes12:28
mithroin each round12:29
mithrofiring occurs first12:29
mithrothen damage12:29
Landonoh, all of it?12:30
*** Greywhind has joined #tp12:32
mithroLandon: yeah12:50
*** llnz has joined #tp17:10
llnzmorning all17:10
ezodhi llnz17:10
*** greenlion has quit IRC17:10
llnzhi ezod17:11
cherezHi everyone!17:11
cherezAssertionError: 5 != 617:41
cherezWhat a sad error.17:41
*** JLafont has joined #tp18:25
*** doucheBag has joined #tp18:32
*** crystalward has joined #tp18:33
*** doucheBag is now known as drukenFrog18:33
*** crystalward has left #tp18:34
*** Greywhind has quit IRC18:56
*** greywhind has joined #tp19:15
ezodhrm, i don't seem to have write access to libtpclient-py repo19:25
ezodanyone around who can fix that?19:26
*** greywhind has quit IRC19:29
*** Greywhind has joined #tp19:34
*** marnanel has quit IRC19:36
ezod<tansell> ezod, you should use the stuff to look for "game started" or some type of output from the server19:52
ezod<tansell> (that should probably be configured in the xml?)19:52
ezod2009-06-07 19:50:31 < Info  > Started network with 1 listeners19:53
ezodi could put <sometag>Started network</sometag> in the xml19:54
ezodand match on that string using the Launcher onready19:55
ezodit's yet another thing to maintain in the xml file though19:55
ezodthe alternative is to output a standard onready string in the server, but that breaks bc with tpserver-cpp releases again :(19:56
CIA-46mavrinac web * ra0c615addaaa /downloads/tpconfig.dtd:20:53
CIA-46Add 'started' element to tpconfig DTD for single player subprocess20:53
CIA-46verification.20:53
*** peres has joined #tp21:27
*** sladegen has left #tp21:50
*** jnengland77 has joined #tp21:59
*** bddebian has quit IRC22:58
*** jmtan has joined #tp23:13
Landonpush!23:25
CIA-46landon tpclient-pyogre * r0f84f260064b /src/ (battleviewer.py test_battle.py): Going to start to become much less of a test battleviewer soon enough23:25
CIA-46landon tpclient-pyogre * r3d9a46214e97 /src/battlexml/battle.py: Introduced simple testing and moved events to Round's events attribute to preserve chronological order23:25
CIA-46landon tpclient-pyogre * r26a900a9eca2 /src/battlexml/battle.py: Added legacy attributes back to Round, but they're now generated from the events attribute23:25
Landonhey jmtan, sorry I haven't been doing much the last week23:27
Landonfinally done with all the large stuff thougyh and internet is on its way tomorrow (dedicated internet anyways), so I should be good to go for the rest of the summer23:28
jmtanLandon, that's good to hear.. hoping to see more progress soon :)23:30
Landonyeah, working on processing events now23:31
Landonredid a bit of the battlexml code23:31
Landonturns out I really dont need timers at all and I must have been amazingly tired to think that I did23:32
alanpshit23:41
Landonjmtan: hm right now I'm trying to figure out the best way to add onto the battleviewer code, choosing the correct class is a bit tricky :P23:49
Landonaha! nevermind, I was thinking about this wrong23:50

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!