Thursday, 2007-03-08

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** bokey12 has joined #tp00:28
*** bokey12 has quit IRC00:29
*** bokey has joined #tp00:30
bokeyam I in ?00:31
bokeyyet ?00:31
bokeyjotham, can you read my msg ?00:34
bokeymithro, got your mail thanks. :)00:34
mithrobokey: your in00:35
bokeymithro, cool.00:35
bokeymithro, i didn't know cgi existed for tp. this is awesome.00:35
mithrobokey: it didn't until a couple of hours ago00:36
bokeymithro, ah.. really ?00:36
bokeymithro, so when a user registers with username and password. how do they know that they have been registered ?00:53
mithrobokey: you get an okay or failure message00:53
bokeymithro, so anyone can play the game. no restrictions.00:54
bokeymithro, umm..00:54
mithronot necessarily00:54
mithroa server may not accept registrations00:54
mithroin case you will get a failed perminately message (or the registration feature might not even exist)00:55
bokeyso how will the user play the game ?00:55
mithroi'm not sure I understand?00:56
*** jotham has quit IRC00:56
bokeymithro, how does a user authenticate with the server ?00:56
bokeymithro, there has to be some form of authentication. no ?00:57
mithroa user sends a Login frame with his username and password00:58
bokeymithro, you said the server sends back OK or FAIL mesage.00:58
bokeymithro, yup.00:58
mithrobokey: it's really simple, C2S "Account Frame", S2C "Okay", C2S "Login Frame", S2C "Okay"00:59
bokeymithro, right.00:59
mithroif the server doesn't support registration the server will return a failure frame01:00
bokeymithro, but then a user has to create an account frame everytime ?01:00
mithrobokey: of course not01:00
bokeymithro, so it's only the first time user connects.01:00
mithroyes01:00
bokeymithro, :)01:00
mithrothe second time he connects, C2S "Login Frame", S2C "Okay"01:00
mithrowe arn't insane monkies or anything :)01:01
bokeymithro, sorry ? monkeys ?01:01
mithrobokey: everything should be fairly logical01:02
mithro99% of things are C2S <Could you please do something>, S2C <That action succeeded | here is the information you wanted | That action failed>01:03
bokeymithro, ok01:03
bokeymithro, how much data traffic is anticipated to/from the network using this protocol ?01:06
bokeymithro, given that each user logs into the system every 6 hours or so.01:07
bokeymithro, that's not much traffic i guess.01:07
mithronot much01:12
mithrocalculate on a universe size of approximately 1000 things01:12
bokeyok01:13
bokeymithro, is there some good uml modelling tool in your toolbox ?01:20
bokeymithro, i am using this dia which is OK but little bit buggy.01:21
mithroi don't use UML01:21
bokeymithro, hehe.. cool.01:21
*** JLP has joined #tp01:48
*** tuna-fish has quit IRC02:05
bokeymithro, everything i've read so far in the docs and the src code leads me to the assumption that i'd not be puttting in any of the tp packet flow control, congestion mechanism and stuffs like that. is it so ?02:40
bokeymithro, because the tp packet itself would somehow be encapsulated in a tcp packet.02:42
bokeymithro, am i heading the right way ?02:43
bokeyJLP, hi. are you one of the devel of tp ?02:43
nashbokey: Yes the TP protocol is encapsulated in some other protocol - generally TCP but possibly HTTP,  or some other protocol02:49
bokeynash, hi.02:49
nashheyo02:49
bokeynash, thanks for answering. :)02:49
bokeynash, you are lee right ?02:49
bokeyLee sorry02:49
*** mithro has quit IRC02:50
nashNope02:50
* nash is nash02:50
bokeynash, sorry. :)02:50
bokeynash, one of the tp devel ?02:50
* nash != llnz02:50
nashNot really02:50
bokeynash, nice meeting you. :)02:50
nashI'm writing a client/AI for the comp, so I may or migrate to dev eventually02:50
bokeynash, i am responsible for developing tp protocol in Java.02:51
nashAhh... That guy02:51
nashYou are going to have fun.02:51
bokeynash, to be honest it's still a bit hairy but mithro goes "oh.. it's straight forward"..02:51
nashHad any grief with unsigned values yet?02:51
bokeynash, haven't reached that far.02:51
bokeynash, :(02:51
bokeynash, i am still designing requirements. hope to get it right.02:51
nashokay02:52
bokeynash, it's a school project. final year.02:52
nashcool02:52
bokeynash, what about u ?02:52
bokeys/u/you02:52
nashSoftware developer: www.fst.net02:52
bokeynash, nice. i needed a job.02:53
bokeynash, :)02:53
nashWhere are you located?02:53
bokeynash, Adelaide, Australia02:53
nashWe need an industrial training person... but we work 99% in pure C02:54
nashA bit of a commute to Sydney then...02:54
bokeygeez. C. that's horrible.02:54
nashWhy exactly is that?02:54
bokeynash, i retract my sentence.02:54
bokeynash, :)02:54
bokeynash, anyway someday i'll hopefully be able program in C.02:55
bokeynash, just one more question. so i'd create a tp packet first then how exactly would i encapsulate that in say tcp packet ?02:56
nashHave a look at our website, look at what FancyPants can do, and tell me how you could even come close to that with Java02:56
nashbokey: Have you ever done any network stuff before?02:56
bokeynash, just school stuff.02:57
bokeynash, creating a connection, connecting and sending/receiving data.02:57
nashFrom an apps point of view it's just a Stream - so create the packet, dump it to the stream02:58
nashdon02:58
bokeynash, i don't get it.02:58
bokeynash, sorry.02:59
nashIf it is easier, dump header, dump body.. fragmentation is the other clients problem02:59
nashDo you know the OSI 7 layer model for networks?02:59
bokeynash, that's what Lee's done in libtpproto-cpp.02:59
bokeynash, yes.02:59
bokeynash, he's got seperate part for header and body.02:59
bokeynash, my reference point is libtpproto-cpp.03:00
bokeynash, i'd basically be using his diagrams and build requirements of my work from there.03:00
nashAnyway you do something like Packet *p = buildpacket(userdata...); socket->Send(p);03:01
bokeynash, and buildPacket(...) would do what the version 0.3 specification says on packet structure. right ?03:02
nashYeah.03:02
bokeynash, right.03:02
bokeynash, thanks. are you based in Sydney ?03:02
nashshi03:02
nashI mean yes03:02
bokeynash, how's the weather there now ?03:02
nashfine and sunny03:03
bokeynash, it's a bit sunny now here.03:03
bokeynash, umm..03:03
bokey:)03:03
nashyeah?03:03
bokeynothing.. just talking to myself.03:04
nashokay03:04
nashSorry - I'm at work, so I can;t respond all the time03:05
bokeynash, that's ok. thanks heaps for your help.03:05
nashThat's cool03:05
bokeynash, i'll ask whoever is here. most of them would know tp protocol inside out. :)03:05
nashBTW: Don't necessarily base too much on the other libs implementation, read the spec and implement that, not what the other lib does.  Independant implementations are much better for the long term03:06
bokeynash, i'll keep that at the back of my head03:07
nashmithro will probably hate me for that03:07
nash;-)03:07
bokeyhehe03:07
nashIt's good to iron out the protocol however03:09
nashAnd don't forget TP04 ;-)03:19
*** bokey has quit IRC03:34
*** tpb has joined #tp06:00
*** ChanServ sets mode: +o tpb06:00
*** jotham has joined #tp06:20
*** nash has quit IRC06:43
*** mithro has joined #tp08:05
*** tuna-fish has joined #tp08:21
*** mithro has quit IRC08:23
*** mithro has joined #tp08:23
*** mithro has quit IRC08:53
*** tuna-fish has quit IRC10:00
*** tuna-fish has joined #tp10:01
*** tpb has joined #tp10:27
*** ChanServ sets mode: +o tpb10:27
*** nash has joined #tp10:31
* nash waves10:32
nashquiet night11:13
jothamhey11:13
jothamyeah11:13
nashHow is life?11:14
jothamok went to the doc today11:14
jothamhe said i was an asstard for not taking my athsma meds11:14
nashHis verdict?11:15
jothamand that i was fine =)11:15
nashhmm...11:15
jothamjust basically that because i wasn't getting much oxygen my body was having a cry11:15
nashRight - so not really fine - just you already had the medication... and cost yourself $70 for nothing11:15
jothamdidn't have any actually11:16
jothamproblem is i used to exercise a lot, then stopped and so no cardo = athsma comes on a lot stronger11:16
nashAhh11:16
jothamand i didn't realise because i wasn't having 'attacks' just was gradually breathing less and less11:16
jothamso like a creeping death11:16
jothamhate being dependant on medication11:17
nashGood thing you went then11:17
nashWe all are to some degree11:17
nashAnd it;s a lot better to have a safe medication, then no other alternative11:18
jothamyeah true11:18
nashSo up to anything else then?11:28
nashAny new TP stuff?11:28
jothamyeah i've been working on it, almost have all the event stuff sorted11:32
jothambasically had to break everything and reorganise it11:32
nashCool11:32
nashLovely11:32
nashDid you do your own art btw?11:32
jothamuhm for this project i haven't needed to make any art, but i am a modest artist and have been considering doing my own graphics set for the battleviewer (Rather than using the graphics mithro gave me) but only after i've finished coding it11:33
jothami think mithro is getting impatient =)11:33
nashHe seems to be.  Not sure why the battleviewer doesn't seem to critical path to me11:34
jothammaybe just the nature of a manager to ensure no one is slacking11:34
jothamreguardless of the task at hand11:34
*** mithro has joined #tp11:35
nashSpeak over the devil11:35
*** mithro has quit IRC11:35
jothampeer slew the devil11:35
*** mithro_ has joined #tp11:35
TBBlemithro_: Ping11:35
nashQuick.. to the other channel about the TP competition prject before mithro sees.11:36
mithro_TBBle: pong11:36
*** mithro_ is now known as mithro11:36
TBBleWork OK'd my packaging stuff. ^_^11:36
mithroTBBle: yay!11:36
* mithro goes to check the logs11:36
TBBleSo now I've gotta set up Darcs and whatnot. Should be a fun Sunday. ^_^11:37
*** mithro changes topic to "http://www.thousandparsec.net/~irc/logs | AI Programming Competition in progress - http://www.thousandparsec.net/tp/comp.php | metaserver - metaserver.thousandparsec.net | 2007-02-26, TP ranked 126th on SF"11:37
*** ChanServ changes topic to "AI Programming Competition in progress - http://www.thousandparsec.net/tp/comp.php | metaserver - metaserver.thousandparsec.net | 2007-02-26, TP ranked 126th on SF"11:37
*** mithro has quit IRC11:38
*** mithro has joined #tp11:38
*** mithro changes topic to "http://www.thousandparsec.net/~irc/logs/ | AI Programming Competition in progress - http://www.thousandparsec.net/tp/comp.php | metaserver - metaserver.thousandparsec.net | 2007-02-26, TP ranked 126th on SF"11:38
nashheyo mithro11:45
mithroso whats up?11:45
mithrogot battles working?11:45
nashObject deletion11:45
nashBattles?11:45
nashWho cares about battles11:45
mithros/battles/getting two AI's to battle11:46
nashAhh... Getting them to argue heaps11:47
nashNeed delete to work before they can respond appropriately11:47
nashHard to work out what happened to the object however11:47
* nash notes that it may in fact be impossible...11:47
mithrowell you can look at the messages?11:47
nashThe AI can?11:47
mithroI forget the messages that tpserver-cpp returns11:48
mithrobut there should be enough data in there to see what happened11:48
nashFor a human... yes11:49
mithrowell, the GRS should give the AI some data?11:51
nashA message concerning an object that no longer exists maybe.. can't see anything else?11:53
mithronash: the GRS in a message should support finding out the battle11:54
nashokay11:54
mithroit probably doesn't because we havn't thought of AI when creating it11:54
mithroit should however11:55
nashright11:55
nashTell you what.. .deleting an object makes me wish for garbage collection11:57
mithrogc?11:57
nashyeah11:58
nashA lot of frees11:59
nash12 frees11:59
mithrois that a lot?11:59
jothamwoo almost done12:00
jothamand time for bed12:00
nashIn one function... lots12:00
mithronash: why so many?12:02
nashObject structure itself, name (strduped), children list, possible orders list, current orders list, possible fleet ancilerary structure, list of ships (if fleet), optional planet structure, resources list (if planet)12:04
nashPlus the AI and GUI pointers reserved for the AI and GUI to use (which need to clean up if necessary)12:04
* nash gives the system a workout12:06
*** bokey_ has quit IRC12:08
*** tuna-fish has quit IRC12:09
nashheh - something a bit funny12:10
*** tuna-fish has joined #tp12:10
nashTwo stars are so close in distance the AI is sending ships alternatively between them first A, then B, as the distance difference is smaller then the different between 2 plants12:11
nashmithro: Are you sure you want me to make this thing better?12:12
nashI might give you another copy in a few days and let you play a game against it - see what you think12:13
nashI'm wondering fi I should cripple it in a number of ways to make it more playable12:13
mithrohe he12:13
nashYou've seen the screenshots - the number of ships it sends is insane12:13
mithro:)12:14
nashTurn 40-50 it is sending 300 odd messages to the server each turn12:14
nashTurn 53 just passed 40012:15
nashIt has sent 9372 at the end of turn 5512:15
mithrowow12:15
nashPassed 10000 on turn 5612:15
nashA human can't play that12:16
nashbest strategy from here for it is to build battle ships and attack random worlds in large fleets12:16
nashOr even the other players home world (which I think is a win?12:16
nashProb half the messages are status updates on objects to be fair12:17
mithrodunno, what if the player was more aggressive?12:18
mithrohave to give it a try12:22
nashmithro: Aggressive is your only hope I think12:22
nashIt is going to out grow you, humans won't have the patience to match.  If I put in some intelligence to counter military buildups, I can't see how to beat it12:23
jothamhave you read about the supreme commander AI?12:24
jothamor seen a movie/the game12:24
jothamthey deal with huge unit numbers12:24
nashYes, but the game interface is designed for it12:25
jothamyeah it's pretty impressive12:25
nashThe game system for minisec encourages fast and wide growth12:25
nashAnyway, it's not the AI that has the problem12:25
nashIt's a human playing the AI12:26
mithroanyway, it'll let us better see the mechanics of minisec12:26
nashmithro: I'll try and get you a version shorlty.12:26
nashNeeds a few more fixes first :-/12:27
mithronash: you got a screenshot of two AI fighting yet?12:27
nashNot yet12:27
nashI'll do one tomorrow12:27
nashSeen it - it's impressive12:27
nashespecially if they start on opposite sides of the map ;-)12:27
nashAnyway - about to head to bed.12:28
nashTalk to you tomorrow12:28
*** _JLP_ has joined #tp12:52
*** JLP has quit IRC13:06
*** zipola has joined #tp14:14
*** nash has quit IRC20:12
*** zipola has quit IRC22:12
*** nash has joined #tp22:26
* nash wavse22:41
*** tuna-fish has quit IRC22:53

Generated by irclog2html.py 2.5 by Marius Gedminas - find it at mg.pov.lt!