Sunday, 2009-08-09

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
*** jernejovc has joined #tp00:50
*** mithro has quit IRC00:55
*** nebajoth has quit IRC01:04
*** jernejovc_ has quit IRC01:04
*** alanp has quit IRC01:18
Landonalanp: I've been up here on campus all summer :P just went back home this weekend for a friends 21st01:54
*** nebajoth has joined #tp01:59
*** alanp has joined #tp02:01
alanpllnz: ping02:02
llnzalanp: pong02:02
alanpllnz: i can't find a good way to check the tubes in the ships...02:02
alanpbasically when combat happens, i want to create a list of available tubes02:03
llnzwhy is it hard?02:04
llnzyou have a list of design types and quantity of those designs in the fleet02:05
alanpyes02:05
alanpI think I would have to change the tube components to have some sort of specifier02:05
alanpAlphaMissileTube property or something02:05
llnzwhy not have a property?02:05
llnzsnap02:05
alanpi figured i would be okay with just one property02:06
alanpthat's a problem :-)02:06
alanpOK, so i will change that02:06
alanpfor the lambda function02:06
alanp(lambda (design) (+ 1)) should be ok?02:07
alanp??02:09
alanpbrb02:09
*** alanp has quit IRC02:09
*** alanp has joined #tp02:10
llnzwhich function is that?02:11
alanp        <AlphaMissileTube><![CDATA[(lambda (design) (+ 1))]]></AlphaMissileTube>02:11
llnzproperty value on the component?02:12
alanpyes02:12
alanpexactly02:12
llnzjust (lambda (design) 1)02:12
llnzdon't need the plus02:12
llnzthe property value function will sum them02:12
alanpit will sum all of them?02:12
alanpso if I add 10, I get 10?02:13
llnzyes02:13
alanpoh, great02:13
alanpwasn't sure about that one02:13
alanpany better way than a property for each tube?02:13
llnznope, one property for each tube type02:14
alanpok02:15
alanpI guess I'll have to make a set in the combat class using the names of the properties, kind of ugly02:15
alanplist.insert(ds->getPropertyByName("x")); for each one02:16
llnzwhy is that necessary02:16
alanphow else am i going to get a list of all tubes in the combat class?02:16
llnzthe number of tube-type component is fixed02:17
alanpyes, i have a huge problem with using numbers like that though02:17
alanpit's only fixed until somebody modifies the source and adds another property not at the end02:17
alanpat least the name isn't going to really change, and if you do change the name you can grep and find it elsewhere02:18
alanpusing the numbers just sucks, imo02:18
llnzcomponents02:18
alanp?02:19
llnzwasn't suggesting to use the numbers directly02:20
alanpthe number of tube-type component is fixed, yes02:23
alanpi need to know how many of each tube are in each ship involved in combat02:23
alanpmy idea was to iterate through the list of ships, check the design store to see which tubes they had02:24
alanpand then when I do that, it will be easy to use the missile resources that I already have02:24
alanpso i iterate through the ships, I need to look for each kind of tube on each ship02:25
alanpthis makes sense, no?02:25
alanponce i have the list of the tubes involved in the battle, i can go through the weaponry available02:26
llnzyes02:27
alanpbut to get the list of tubes, I'm going to have to reference them by name (because I don't like to by number)02:27
llnztrue02:28
llnzthere is a fixed number of names (for those properties)02:28
*** DTRemenak has quit IRC02:28
nebajothI haz a torpedo tube02:28
nebajothIN MY PANTS02:28
llnzbbs, dinner02:29
* alanp punch-kick nebajoth02:29
*** DTRemenak has joined #tp02:29
nebajothPUNCH! KICK! ITS ALL IN THE MIND!02:29
nebajothIf you wanna test me, I'm sure you'll find02:30
nebajothThe things I'll teach ya02:30
alanpbbl02:30
nebajothis sure to beat ya02:30
nebajoth:(02:30
* llnz is back03:22
nebajothI think alanp stepped out for a shawarma03:24
nebajothNOT THAT I AM HIS KEEPER03:24
nebajothbut he mentioned it03:24
llnznebajoth: tone it down03:24
nebajothyes sir03:25
nebajothexcuse me, I spend my other irc time in a gaming clan channel03:25
nebajothwith teenagers03:25
nebajothit affects my patterns03:25
nebajothkinda drastically at times03:25
llnzok03:25
llnzso what's your interest in Thousand Parsec?03:26
nebajothas a potentially interesting open source project that is a game03:26
nebajothI run a 50+ member clan03:26
llnzok, cool03:26
nebajothand we've been dabbling in small clan projects03:26
nebajothand its been a good way to get all the teenaged kids pointed in the same direction03:26
nebajothso I've been cruising open source games03:26
nebajothand I know ezod irl03:26
nebajothso naturally I've found my way here03:27
nebajothI'm not 100% sold on TP yet03:27
nebajothI tried minisec03:27
llnzcool03:27
nebajothbut it didn't make very much sense to me03:27
nebajothI've talked to alanp a bit about what he's doing03:27
nebajothand it sounds pretty rad03:27
nebajothso I'm waiting for that to drop before I make any kind of call on it03:27
*** mithro has joined #tp03:28
llnzminisec is pretty simple03:28
nebajothI didn't really know what to do03:28
nebajothI stared at the starchart for a bit03:29
nebajothpicked out my system03:29
nebajoththe end03:29
llnzyeah, we need to make it easier to understand what to do03:29
nebajothezod has, well briefly anyway, outlined some of the wicked stuff that's under the hood03:30
nebajothand I watched a google talk03:30
nebajothgoogle03:30
nebajothnot talk03:30
nebajotha talk on google video03:30
nebajothbut its not all that much fun as a game yet03:30
nebajothand that's pretty necessary for me if I'm going to motivate a bunch of teenagers03:31
*** reac has joined #tp03:31
llnzthere is the start of a video guide to help show the game play03:31
nebajothcan haz?03:32
llnzjust a second03:33
alanpllnz, how can I "lock" a design to prevent it from being modified?03:34
*** nebajoth has quit IRC03:38
*** nebajoth has joined #tp03:38
alanphmm03:41
alanptesting combat... sucks03:43
nebajoth:/03:43
llnznebajoth: http://www.thousandparsec.net/wiki/Video_Tutorials_for_wxPython_Client03:45
tpb<http://ln-s.net/1cN-> (at www.thousandparsec.net)03:45
llnzbut can't find the video03:45
mithronebajoth: a talk on google video?03:46
nebajothyessss03:46
llnzalanp: there is at least two ways iirc03:47
nebajoththey're called something03:47
nebajothbut I forget what03:47
nebajothgoogle ______03:47
nebajothoh03:47
llnzgoogle techtalk03:47
nebajothgoogle tech talks03:47
nebajothyeah03:47
nebajoththat03:47
mithronebajoth: Gaming for Freedom?03:47
nebajothyes03:47
nebajoththat03:47
mithroahh I gave that talk :)03:47
nebajothgood talk :)03:48
nebajothtotally interested me in the project03:48
alanpllnz: what ways are recommended?03:48
mithrothere is also03:48
nebajothOnce you have an account on a server and you succesfully connect to that server, the client <dramatic voice>downloads the Universe</dramatic voice>.03:49
nebajothhahaha03:49
nebajoth</dramatic voice>03:49
nebajothTO BOLDLY CREATE03:49
mithrohttp://www.youtube.com/watch?v=H0LI8vFq_Es&feature=PlayList&p=86F8441377450354&index=0&playnext=103:49
tpb<http://ln-s.net/3o5P> (at www.youtube.com)03:49
nebajothpretty03:50
llnzalanp: addUnderConstruction or maybe addComplete03:53
alanpah03:53
nebajothneeds moar lazors03:56
nebajothpew pew pew03:56
nebajothis the UI done with wxpython?03:57
alanpfaster speed = easier testing04:01
alanpwoop04:01
nebajothalanp04:03
nebajothis there the concept of shields in MTSec?04:04
alanpthere is a concept of armour04:04
nebajothI saw that04:04
alanpno shields04:04
nebajothso no04:04
nebajothword04:04
nebajothlife support systems?04:04
nebajoththat'd be hella cool04:04
nebajothI'm sure that's probably a later milepost04:06
nebajoththis IS missiles and torpedoes after all04:06
alanpis connecting 2 clinets on the same computer a known issue?04:07
llnzother than media, it should be ok04:10
alanpseems to break stuff04:11
llnzas long as you log in a two different players04:11
alanpnod04:11
alanpcan't see anything moving04:11
nebajothpew pew pew04:14
*** tuna-fish has quit IRC04:15
nebajothok04:15
nebajothbed04:15
*** nebajoth is now known as nebaway04:15
*** alanp_ has joined #tp04:24
alanpGreywhind: oubg04:26
alanpGreywhind: ping04:26
Greywhindalanp: pong04:29
alanpGreywhind: the move lines don't show up in your client04:30
Greywhindalanp: yeah, i know. i'm going to see if i can fix that04:30
mithroGreywhind: ping?04:31
Greywhindmithro: pong04:31
mithroGreywhind: so - I'm looking at your two patches04:31
alanpah, cool04:31
Greywhindmithro: yeah04:31
mithroand I don't think it's the right method04:32
Greywhindmithro: i couldn't seem to figure out other methods that would work. what would you recommend?04:32
mithroGreywhind: why not?04:32
Greywhindmithro: probably related to my incomplete knowledge of the network/libtpproto-py side of the system.04:33
mithroGreywhind: I can think of multiple methods04:33
mithroa) fix __deepcopy__04:33
Greywhindmithro: well, i tried to use __deepcopy__, but it didn't seem to return the type of object that the client wanted04:34
mithrob) use a method which is similar to the order creation04:34
Greywhindmithro: i thought my current method was similar to the order creation?04:34
mithroI think you need to dig a bit deeper04:34
mithroGreywhind: no04:34
mithroGreywhind: as .args is not updated as values change04:35
mithroyou can build args easy enough however04:35
Greywhindmithro: what can i build them from?04:36
mithrofrom the arguments04:36
mithros/arguments/properties04:36
mithrothe pack method does something similar04:36
Greywhindmithro: hm. i see. but i couldn't just use the pack method, i assume?04:37
mithroyou can pack do a pack/unpack04:37
mithroyou can do a pack/unpack cycle04:38
mithroyou could store seralized objects in the copy/paste buffer04:39
Greywhindmithro: what are the values i need to pass to pack?04:39
mithroGreywhind: oh you can use __str__ to serialize04:42
Greywhindmithro: i'm kind of lost here04:42
Greywhindmithro: what do i need to serialize?04:42
mithrothe objects04:42
mithrothink about logically what you are doing04:42
mithros/objects/orders/04:42
Greywhindmithro: aren't we talking about orders?04:42
Greywhindmithro: oh.04:43
Greywhindmithro: well, the theory is this: copy stores the current selected order(s) in a buffer. paste then goes through and takes each order, making a new order that's an exact duplicate of it and placing it in the queue after asking for its creation on the server.04:44
mithrowhat operations does copy/paste need to occur?04:44
Greywhindmithro: is that right?04:44
mithroGreywhind: not quite04:44
alanp"can't compare datetime.datetime to int"04:44
alanpugh oh04:44
mithroyou need two copies04:45
alanpmaybe i should use the same client on both04:45
mithrothink about what happens when properties change04:47
Greywhindmithro: well, the panel is updated with the new values, yes? then when the "save" button is pressed, the order is synced with the values?04:48
alanpmithro: http://pastebin.com/m62da999f <-make sense to you?04:50
tpbTitle: pastebin - collaborative debugging tool (at pastebin.com)04:50
mithroso what happens to the copied the orders at that time?04:50
Greywhindmithro: well, if an order is modified after it's already been copied, the copy will not be updated. this should be the functionality we want though, yes?04:52
mithroalanp: try removing your ~/.tp/cache file04:52
alanpi did....04:52
alanp:(04:52
mithroalanp: hrm...04:52
Greywhindmithro: for instance, if you copy a bit of text in a text editor and change the text later, your copied text will not automatically get the new changes04:53
mithroyes04:54
mithroso with your first theory that doesn't occur04:56
mithroGreywhind: and how does that interact with the StateTracker stuff?04:58
Greywhindit does not occur that the copy changes, or it does not occur as we want it to and the copy does change?04:58
alanpwhenever I build a fleet from a new design, I get the cannot compare datetime.datetime to int04:58
alanpI didn't get that before :(04:59
Greywhindmithro: well, StateTracker tracks by queue, so if a new order is added to a queue, StateTracker should be fine with that05:01
mithroGreywhind: so we need to do a copy from the queue into buffer05:01
* alanp going to work around the datetime error for the time being05:02
mithroGreywhind: and then we copy from the buffer into queue05:02
Greywhindmithro: is that not what self.clipboard is?05:02
mithroGreywhind: self.clipboard == queue05:03
Greywhindmithro: oh, does the clipboard not already actually copy the order, just refer to it?05:04
mithroGreywhind: I don't know05:04
mithroGreywhind: but it should copy it05:04
mithroit's copy in and copy out05:05
Greywhindmithro: yeah. so if it does, then it should already be a separate entity, which i can then duplicate into a new order, yes?05:05
*** alanp_ has quit IRC05:05
mithrokinda05:06
*** alanp_ has joined #tp05:07
Greywhindmithro: so... is there a way to keep the args updated after the order is created, from inside the order class?05:09
mithroGreywhind: sure - but that seems to be a crappy thing to do as it's going to be hard to get right05:09
Greywhindmithro: but i still don't know how i could re-generate them from outside the order class, without saving the whole panel that created the order and without doing a lot of special code to generate the arguments from the order's properties?05:11
Greywhinddoes pack/unpack do that for me?05:11
mithroGreywhind: well - what do you think?05:11
Greywhindmithro: i don't really know what pack/unpack do anymore - it's been weeks since i looked at them05:11
mithroGreywhind: well it might be worth re-looking into them05:13
Greywhindmithro: they don't have any explanation :P05:13
mithroTry fromstr and __str__05:14
Greywhindmithro: hm. ok.. i might see what you're getting at. i'll look into it more tomorrow.05:16
mithroso I think if you serialize into the buffer and then unserialize out05:17
Greywhindmithro: yeah, it might work, if these do what i think they do05:18
mithrowant to look at StateTracker stuff too05:18
Greywhindk05:19
Greywhindi need to sleep05:19
Greywhindbut i'll try to do this tomorrow05:19
alanpugh05:22
* alanp having terrible problems relating tubes to missiles05:22
alanpeek05:23
alanpmaybe i have it05:23
*** Greywhind has quit IRC05:29
alanphrm06:29
* alanp having unfortunate problem reading a property of a design06:29
alanp0x00000000004bbe9c in std::_Rb_tree<unsigned int, std::pair<unsigned int const, PropertyValue>, std::_Select1st<std::pair<unsigned int const, PropertyValue> >, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, PropertyValue> > >::_M_begin (this=0x68) at /usr/include/c++/4.3/bits/stl_tree.h:45906:29
*** alanp_ has quit IRC06:32
alanpd'og06:34
alanpd'oh06:34
*** alanp_ has joined #tp06:35
alanpwhy do properties hate me :(06:40
alanpi get the right property ID, there is a value associated in the design06:41
alanpwhen i try to read the value, CRASH06:41
alanphm06:43
*** alanp__ has joined #tp06:44
alanpd'oh06:45
alanpstupid laptop picking up wireless06:45
*** jernejovc_ has joined #tp06:46
*** alanp_ has quit IRC06:46
*** alanp_ has joined #tp06:49
CIA-26alanp tpserver-cpp-mtsec * r8cd2201facca /modules/games/mtsec/ (5 files):06:59
CIA-26- Initial Combat, no damage is done but tubes and missiles are adhered to, torpedoes and damage next06:59
CIA-26- Changed the size of the universe, decreased it by a lot.06:59
CIA-26- Updated Properties, added new ones for each type of tube to match missiles to tubes mainly06:59
*** jernejovc has quit IRC06:59
*** alanp__ has quit IRC07:02
*** jernejovc_ has quit IRC07:05
* llnz wanders off07:40
llnzlater all07:40
*** llnz has quit IRC07:40
*** jernejovc has joined #tp07:44
*** peres has joined #tp08:11
*** alanp_ has quit IRC08:20
*** peres has quit IRC08:49
*** tuna-fish has joined #tp09:06
*** jmtan has joined #tp09:15
*** reac has quit IRC10:06
*** jmtan1 has joined #tp11:23
*** jmtan has quit IRC11:23
*** Greywhind has joined #tp12:29
*** verhoevenv has joined #tp13:11
*** verhoevenv has quit IRC13:55
*** nebaway is now known as nebajoth14:00
*** verhoevenv has joined #tp14:08
*** nebajoth is now known as nebaway14:24
*** nebaway is now known as nebajoth14:28
*** nebajoth is now known as nebaway14:31
CIA-26epyon tpserver-cpp-refactor * r24cedab59b63 /tpserver/objectbehaviour.h: Typedef for ObjectBehaviour shared_ptr (need to rethink it thou...)16:14
CIA-26epyon tpserver-cpp-refactor * rcb7fb1a069ee /tpserver/objectbehaviour.h: Include fix16:14
CIA-26epyon tpserver-cpp-refactor * rf46c2043fb55 / (7 files in 4 dirs): FrameException updated to a more useful format16:14
epyonGeesh, when I started this project I never imagined how much work was before me -_-16:14
*** llnz has joined #tp16:15
llnzmorning all16:22
alanpmorning16:22
llnzhi alanp16:22
alanphey16:22
*** jnengland77 has joined #tp16:25
CIA-26epyon tpserver-cpp-refactor * r439df57fa574 /tpserver/tcpconnection.cpp: TcpConnection now catches FrameExceptions as a last resort16:43
CIA-26epyon tpserver-cpp-refactor * rf6dfd5f924f9 /tpserver/playerconnection.cpp: PlayerConnection now catches FrameExceptions and sends them as fail16:43
CIA-26epyon tpserver-cpp-refactor * rd304c12e4d0e /tpserver/playerconnection.cpp: Include fix16:43
CIA-26epyon tpserver-cpp-refactor * r3948d00883da /tpserver/ (adminconnection.cpp playerconnection.cpp): AdminConnection now catches frane exceptions also16:43
llnzepyon: i noted you removed objectrelationships yesterday (or the day before)16:44
*** reac has joined #tp16:46
epyonllnz: yes16:46
epyoninterface of object was doubling the interface of objectrelationship16:47
epyonand objectrelationship was only used internally by object16:47
llnzisn't that going to limit how rulesets can provide alternative views to players of an object16:47
llnz?16:47
epyonHow can they, if objectrelationship was private?16:48
epyonAaah, you mean the functionality16:48
epyonthe functionality as it was is untouched16:48
epyonthe children IdSet was moved into object16:48
CIA-26epyon tpserver-cpp-refactor * r46fe8f313e7f /tpserver/adminconnection.cpp: Second instance of admin connection read also packed in try..catch for FrameExceptions17:00
CIA-26epyon tpserver-cpp-refactor * r915de8e6664c /tpserver/adminconnection.cpp: AdminConnection now uses FrameException throws instead of multiple sendFail's17:00
CIA-26epyon tpserver-cpp-refactor * rc4ed13950404 /tpserver/playerconnection.cpp: Second instance of player connection read also packed in try..catch for FrameExceptions17:00
CIA-26epyon tpserver-cpp-refactor * r08090f7466bb /tpserver/playerconnection.cpp: PlayerConnection now uses FrameException throws instead of multiple sendFail's17:00
alanpwow17:08
alanpllnz: hey17:09
llnzalanp: hi17:09
alanpllnz: for the scheme, how can i make it so that no matter how many components of X you add, the value is 3?17:09
alanpIE: I add 14 component Y, I want property to be 317:09
llnzepyon: FrameException constructor needs to take a list of generic references (refsys references)17:09
alanpit should always be "3"17:09
* alanp very close17:09
llnzalanp: umm...17:10
alanpmy scheme, is terrible17:10
llnzsomething like this in the property calc func:17:10
alanpohhhh17:10
alanpI could have probably figured this out, but I'm guessing it would have taken a while17:11
llnzlamdba ((design list) ( cons 3 'Type of value three'))17:12
alanpwell, I don't actually want it to be "3", just the value assigned to it17:12
alanpwhich happens to be 317:12
alanp        <tpclDisplayFunction><![CDATA[(lambda (design bits) (let ((n (apply + bits))) (cons n (number->string n))))]]></tpclDisplayFunction>17:12
alanp?17:12
alanpno, that will add it17:12
alanper no?17:12
alanphm17:12
llnzhold on, what are you trying to do?17:13
alanpI have a component that has a property "X" with a  property that has a value "Y", When I add components I don't want to add to Y, I want to keep Y17:14
alanpalpha missile tube has missilesize 317:14
alanpi don't want missilesize to increase to 6 when I add 2 tubes17:14
alanpI want it to be 3 always17:14
llnzbut what happens if you have a component that has a different missilesize?17:14
alanpyeah, i was just going to say that17:15
alanpI guess I'll just use the properties for each one17:15
llnzthe 'bits' list could end up as [3 3 3 4]17:15
llnzfor three alpha tubes and a beta tube17:15
alanpyeah exactly17:15
alanpi guess what i could do then is have a property AlphaMissileSize and a property NumAlphaMissiles?17:16
alanpluckily, this wont be hard for me to change17:16
llnzNumAlphaTubes?17:17
alanpi will need some way to keep track of how many tubes are in a design17:17
alanpI need to keep track of 1) number of each tube 2) size of each tube17:19
alanpthis should be done in the properties, no?17:19
llnzit could be17:30
llnzthe size of each tube type is fixed, correct?17:30
alanpyes, it is17:33
alanpbut we can have multiple of each tubes17:33
alanp4 alpha, 10 gamma or something17:33
alanpWouldn't I need a property to track the number of each one?17:33
llnzyes, but i don't think you need the size of each tube type17:36
alanpwell I was going to do this17:37
alanpI have a property name for each property, that was set to 117:37
alanpi just set it to the size of the weapon17:37
alanpI need that one, and it was only checking for >0.0 before, so it should be fine that way17:37
CIA-26epyon tpserver-cpp-refactor * r10a75d556e5c /tpserver/ (playeragent.cpp playeragent.h): PlayerAgent checks now throw instead of returning false17:51
CIA-26epyon tpserver-cpp-refactor * re1d5f48746ed /tpserver/playeragent.cpp: PlayerAgent throws FrameExceptions instead of doing sendFail's17:51
*** Vadtec has quit IRC18:17
*** Vadtec_ has quit IRC18:17
*** edison has quit IRC18:17
*** edison has joined #tp18:18
*** Vadtec_ has joined #tp18:18
*** Vadtec has joined #tp18:18
*** Vadtec_ has quit IRC18:38
*** Vadtec_ has joined #tp18:39
*** Vadtec_ has quit IRC18:45
*** Vadtec_ has joined #tp18:46
*** Vadtec_ has quit IRC18:50
*** Vadtec_ has joined #tp18:53
*** alanp has quit IRC19:08
*** alanp has joined #tp19:09
CIA-26alanp tpserver-cpp-mtsec * r5452ee479d05 /modules/games/mtsec/ (avacombat.cpp tpserver-cpp-mtsec-gamedata.xml):19:33
CIA-26- This version finds the tubes available better19:33
CIA-26- Added a couple properties19:33
*** nash has joined #tp19:34
alanpwomp womp19:37
*** shenki has quit IRC19:50
*** shenki_ has joined #tp19:50
*** shenki has joined #tp19:59
*** shenki_ has quit IRC19:59
*** nebaway is now known as nebajoth20:10
*** mithro has quit IRC20:13
tansellmorning people20:16
*** nebajoth is now known as nebaway21:08
*** shenki has quit IRC21:17
*** mithro has joined #tp21:36
*** verhoevenv has quit IRC22:11
*** shenki has joined #tp22:43
*** cherez has quit IRC23:44
*** cherez has joined #tp23:56

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