Monday, 2009-07-06

*** tpb has joined #tp00:00
*** ChanServ sets mode: +o tpb00:00
tansellGreywhind, oh, you may need to give it the full path00:00
tansell(rather then ~)00:00
tansellllnz, or maybe the number of production points spent on the order so far?00:00
Greywhind[Greywhind@localhost tpclient-pywx]$ git push git+ssh://[email protected]/home/users/nathan/tp04testing00:01
Greywhindreverse mapping checking getaddrinfo for 227-14-251-64.serverpronto.com [64.251.14.227] failed - POSSIBLE BREAK-IN ATTEMPT!00:01
GreywhindNo refs in common and none specified; doing nothing.00:01
GreywhindPerhaps you should specify a branch such as 'master'.00:01
Greywhindfatal: The remote end hung up unexpectedly00:01
Greywhinderror: failed to push some refs to 'git+ssh://[email protected]/home/users/nathan/tp04testing'00:01
tansellGreywhind, so give it a branch like it says :)00:02
Greywhindtansell: ok... so i probably want to push both stable and tp04, so you can test the merge, right?00:02
tansellyeah00:03
Greywhindtansell: does it matter which order i push them in?00:03
tansellnot quite sure00:03
tansellGreywhind, no00:03
alanptansell: is that regarding the build fleet orders?00:03
alanpthe percentage?00:03
tansellalanp, yeah00:03
alanphow does an incomplete order work in the server?00:03
alanpdoes it keep calling doOrder?00:03
alanpor does it just set the amount of turns?00:03
tansellalanp, actually it's probably less error prone to store the number of production points already spent on that order00:04
Greywhindtansell: i gave it --all00:04
tansellbut I guess that could lead to "hacks" where you build a really huge ship and then at the last moment change it to a bunch of small ships00:04
*** bddebian has quit IRC00:05
alanphmmm00:05
tansellGreywhind, okay - I'll clone now00:05
Greywhindtansell: ignore the code_cleaning_tp04 branch00:06
tanselloh you need to run00:06
tansellgit-update-server-info00:06
tansellin the remote repository00:06
tansellbtw - this won't push the libtpclient-py00:07
tansellllnz, thoughts?00:07
Greywhindtansell: the directory still appears to be empty?00:07
tansellGreywhind, thats fine00:07
tansellGreywhind, and fix the permissions00:08
tansellit should contain a .git directory with the stuff00:08
Greywhindtansell: what permissions does it need?00:08
tansell(you want to do a   'find -type d | chmod a+rw ; find -type f | chmod a+r'00:08
Greywhindtansell: and how do i properly push libtpclient-py?00:08
llnztansell: on?00:09
tansellllnz, the orders stuff00:09
tansellGreywhind, next time you do a git-init do a00:09
Greywhindnathan@verbal:~/tp04testing$ find -type d | chmod a+rw ; find -type f | chmod a+r00:09
Greywhindchmod: missing operand after `a+rw'00:09
GreywhindTry `chmod --help' for more information.00:09
Greywhindchmod: missing operand after `a+r'00:09
GreywhindTry `chmod --help' for more information.00:09
tansell#git init --shared00:09
tansellGreywhind, oopps00:09
tansellneed an xargs in there00:09
tansellfind -type d | xargs chmod a+rw ; find -type f | xargs chmod a+r00:09
tansellgit init --shared=everyone00:10
llnzwell... i'm at work and busy, so i'd have to look when I get home00:10
Greywhindtansell: done00:10
Greywhindtansell: what about libtpclient-py?00:10
tansellGreywhind, I still don't see anything at00:10
tansellhttp://www.thousandparsec.net/~nathan/00:10
tpbTitle: Index of /~nathan (at www.thousandparsec.net)00:10
tanselloh00:10
*** jnengland77 has joined #tp00:10
tansellyou didn't put your directory in public_html00:10
Greywhindtansell: right00:11
Greywhindtansell: i missed where you said to, sorry.00:11
tansellyou can just move it00:12
Greywhindtansell: k00:13
tansellWarning: Remote HEAD refers to nonexistent ref, unable to checkout.00:13
Greywhindtansell: try it now?00:13
tansellso I don't see any merge attempt here00:16
Greywhindtansell: i removed all traces of my attempt00:16
tansellokay00:18
CIA-22alanp tpserver-cpp-mtsec * r0222699a535a /modules/games/mtsec/ (planet.cpp planet.h): - Owned planets increment their Production resource by 1 until they hit 100.00:18
alanpdoes that look about right for incrementing the resource?00:18
tansellalanp, nfi :)00:18
alanphehe00:18
tansellGreywhind, so you need to do the same for the libtpclient-py.git00:19
alanp11 units of Factories on surface, 32 units of Factories minable00:20
alanpuh oh00:20
alanpnext turn: 22 units of Factories on surface, 32 units of Factories minable00:20
alanpheh00:20
tansellGreywhind, so a straight git merge origin/stable in libtpclient-py.git worked without any problems00:21
alanperrrr00:21
tansellgit checkout -b tp04 --track origin/tp0400:21
tansell git merge origin/stable00:21
tanselltansell@tansell:~/foss/temp/tp04testing/libtpclient-py$ git merge origin/stable00:21
tansellAuto-merged tp/client/cache.py00:21
tansellMerge made by recursive.00:21
* alanp sees issue00:22
tansellGreywhind, that worked fine for you too?00:23
CIA-22alanp tpserver-cpp-mtsec * rae6bf0ce3a57 /modules/games/mtsec/planet.cpp: Fixed error in call of addResource00:23
tansellLandon, poke?00:23
Landonyup00:24
tansellLandon, so it's good to see the progress you have made00:24
tansellLandon, but I would have thought you would hit this milestone about a month ago00:24
Greywhindtansell: oh, sorry, got distracted there00:24
Greywhindtansell: so i need to do the git push in libtpclient-py?00:24
tansellGreywhind, the merge succeeded fine for you right?00:25
tansellLandon, what are your thoughts about that?00:25
Greywhindtansell: yes00:25
Greywhindtansell: inside libtpclient-py it idd00:25
Greywhind*did00:25
tansellGreywhind, yeah, it's a good idea to push that00:26
Landonyeah, I would have wanted to be there a month ago as well, but it took me a while to get to understanding the workflow of ogre00:26
Greywhindtansell: to the tp04testing repo?00:26
tansellLandon, I like your console and actually would love to see you keep that working in a useful function00:26
Landonoh00:26
LandonI have some changes to console that I have yet to push00:26
tansellGreywhind, just push it to the main repo (libtpclient-py) if it worked00:27
Landonbut right now I think I'm using one of the MS fonts for it00:27
CIA-22mavrinac libtpclient-py-tp04 * r4fb41623af7d /tp/client/ (SinglePlayer.py launcher.py):00:27
CIA-22Check for premature subprocess termination and stop the single player00:27
CIA-22game if it occurs.00:27
CIA-22mavrinac libtpclient-py-tp04 * r67f883c00761 /tp/client/SinglePlayer.py: Import 'started' element.00:27
CIA-22mavrinac libtpclient-py-tp04 * r3e96a2870ea9 /tp/client/launcher.py: Proper Epydoc docstrings in launcher.py.00:27
CIA-22mavrinac libtpclient-py-tp04 * r4c83ca3273d8 /tp/client/ (SinglePlayer.py launcher.py):00:27
CIA-22Implement onready callback if a 'started' string to match is available00:27
CIA-22from the server tpconfig XML.00:27
CIA-22mithro libtpclient-py-tp04 * r808b10cd2dd9 /tp/client/pyscheme/expressions.py: Make pyscheme work with unicode inputs.00:27
CIA-22mithro libtpclient-py-tp04 * r4bcdb81d4683 /tp/client/cache.py: Only chec the nodes when they actually exist.00:27
CIA-22Greywhind libtpclient-py-tp04 * r68630c4ab861 /tp/client/ (SinglePlayer.py cache.py launcher.py pyscheme/expressions.py): Merge commit 'origin/stable' into tp0400:27
tansellGreywhind, okay great00:27
tansellnow go up a directory00:27
LandonI need to find a font to use instead00:27
Landonare there any good monospace OS fonts?00:28
Greywhindtansell: k00:28
tanselldo a "git submodule update" to reset back to the base state00:28
Greywhindtansell: k00:28
tansellgit status should show no changes now right?00:28
Greywhindcorrect00:28
alanptansell: "The enhance order uses production points to quickly increase the production capability. For every xx production points spent the enhance order increases the production capability by one. " <---What's xx?00:29
alanp10?00:29
tansellalanp, to be determined by game play :)00:29
alanpok00:31
tansellGreywhind, so now if you do a "git merge origin/stable" it will complain about libtpclient-py right?00:34
Greywhindtansell: right00:34
tansellso you go into libtpclient-py and make it the right commit by doing a "git checkout tp04"00:34
tansell(which should be your merge commit right?)00:34
Greywhindtansell: yes00:34
tansellthen go up a directory00:35
tanselland do a00:35
tansellgit add libtpclient-py00:35
tansellthen a git commit00:35
tansellRight?00:35
tansellthat make sense?00:35
Greywhindtansell: yes00:35
llnzbbl00:36
*** llnz has quit IRC00:36
tansellGreywhind, so your commit should have a change in libtpclient-py and winDesign.py00:36
tansell#modified:   libtpclient-py00:36
tansell#modified:   windows/main/winDesign.py00:36
Greywhindtansell: only to winDesign.py00:37
tansellthen you have done something wrong00:37
Greywhind[Greywhind@localhost tpclient-pywx]$ git add libtpclient-py00:37
Greywhind[Greywhind@localhost tpclient-pywx]$ git commit00:37
Greywhind[tp04 094fb90] Updated libtpclient-py to merge with stable. 1 files changed, 1 insertions(+), 1 deletions(-)00:37
Greywhind[Greywhind@localhost tpclient-pywx]$ git status00:37
Greywhind# On branch tp0400:37
Greywhind# Your branch is ahead of 'origin/tp04' by 13 commits.00:37
Greywhind#00:37
Greywhind# Changed but not updated:00:37
Greywhind#   (use "git add <file>..." to update what will be committed)00:37
Greywhind#   (use "git checkout -- <file>..." to discard changes in working directory)00:37
Greywhind#00:38
Greywhind#modified:   windows/main/winDesign.py00:38
Greywhind#00:38
Greywhindno changes added to commit (use "git add" and/or "git commit -a")00:38
Greywhind[Greywhind@localhost tpclient-pywx]$00:38
tansellso what did you do differently?00:38
tansellthe steps where00:38
tansellreset your repository so it's clean00:38
tansellgit merge origin/stable00:38
tansellcd libtpclient-pywx00:38
Greywhindtansell: you didn't ever tell me to git add windows/main/winDesign.py00:38
tansellgit checkout <sha1 of your merge>00:38
Greywhindso it didn't get committed00:39
tansellcd ..00:39
tansellGreywhind, as there are no conflicts in it, it should have been auto-added00:39
tansellby the merge00:39
Greywhindtansell: it wasn't00:39
tansellgit add libtpclient-py00:39
tansellgit commit00:39
Greywhindtansell: because the merge failed00:39
Greywhind[Greywhind@localhost tpclient-pywx]$ git merge origin/stable00:40
Greywhindfatal: cannot read object dbda575604d4192ef11826a11ccf18a22c92d718 'libtpclient-py': It is a submodule!00:40
tanselltansell@tansell:~/foss/temp/tp04testing$ git merge origin/stable00:40
tansellAuto-merged libtpclient-py00:40
tansellCONFLICT (submodule): Merge conflict in libtpclient-py - needs 4bcdb81d4683b93ef323dbfffe76f63d676439e200:40
tansellAuto-merged requirements.py00:40
tansellAutomatic merge failed; fix conflicts and then commit the result.00:40
Greywhindtansell: so you ran it twice?00:40
tansellno00:40
tansellI ran it once00:41
Greywhindtansell: hm. well, mine just dies instead.00:41
tansellhrm...00:42
tansellGreywhind, reset your tp04 branch back to before the merge00:43
Greywhindtansell: k00:43
tansellmake sure you have a clean repo00:44
tansellthen do a00:44
tansellgit submodule update00:44
tansellit should say00:44
tansellSubmodule path 'libtpclient-py': checked out 'dbda575604d4192ef11826a11ccf18a22c92d718'00:44
tansellesactly right?00:44
Greywhind[Greywhind@localhost tpclient-pywx]$ git submodule update00:45
Greywhindreverse mapping checking getaddrinfo for 227-14-251-64.serverpronto.com [64.251.14.227] failed - POSSIBLE BREAK-IN ATTEMPT!00:45
GreywhindSubmodule path 'libtpclient-py': checked out 'dbda575604d4192ef11826a11ccf18a22c92d718'00:45
Greywhindyes00:45
tansellokay00:45
Greywhindtansell: what is your git --version?00:45
Greywhind[Greywhind@localhost tpclient-pywx]$ git --version00:46
Greywhindgit version 1.6.2.500:46
tansell$ git --version00:46
tansellgit version 1.5.4.300:46
tansellwhat does git status show now?00:46
Greywhind[Greywhind@localhost tpclient-pywx]$ git status00:46
Greywhind# On branch tp0400:46
Greywhind# Your branch is ahead of 'origin/tp04' by 12 commits.00:46
Greywhind#00:46
Greywhindnothing to commit (working directory clean)00:46
tansellso why is your branch ahead of origin/tp04 by 12 commits?00:47
tansell* tp04                      18bbac1 Removed panelPicture, as it is now redundant with panelInfo.00:47
Greywhindtansell: because i have pushed only to the other repo?00:47
Greywhindtansell: in my home dir00:48
tansellwhat does your git log display?00:48
tansellor00:48
Greywhindmost recent:00:48
Greywhindcommit 18bbac1044da28bd35ecedb6dbad3f85a2bdcb5400:48
GreywhindAuthor: Greywhind <[email protected]>00:48
GreywhindDate:   Sun Jul 5 23:52:31 2009 -040000:48
GreywhindRemoved panelPicture, as it is now redundant with panelInfo.00:48
tansellso when you do the following00:49
tanselltansell@tansell:~/foss/temp/tp04testing$ git merge origin/stable00:49
tansellAuto-merged libtpclient-py00:49
tansellCONFLICT (submodule): Merge conflict in libtpclient-py - needs 4bcdb81d4683b93ef323dbfffe76f63d676439e200:49
tansellAuto-merged requirements.py00:49
tansellAutomatic merge failed; fix conflicts and then commit the result.00:49
tansellyou don't get that?00:49
Greywhindthis is all i get:00:50
Greywhind[Greywhind@localhost tpclient-pywx]$ git merge origin/stable00:50
Greywhindfatal: cannot read object dbda575604d4192ef11826a11ccf18a22c92d718 'libtpclient-py': It is a submodule!00:50
Greywhind[Greywhind@localhost tpclient-pywx]$00:50
Greywhindtansell: if my version of git can't do the merge00:51
tansellso my only thought is that your version of git is borked00:51
Greywhindtansell: maybe i could push to the real tp0400:51
Greywhindtansell: and you could do the merge and commit it in tp0400:51
Greywhindtansell: then i can pull the result and it'll be fine00:51
tansellI'm just getting a 1.6.x version to see if I can reproduce00:51
tanselltansell@tansell:~/foss/temp/tp04testing$ git merge origin/stable00:53
tansellAuto-merging libtpclient-py00:53
tansellCONFLICT (submodule): Merge conflict in libtpclient-py00:53
tansellAuto-merging requirements.py00:53
tansellAutomatic merge failed; fix conflicts and then commit the result.00:53
tanselltansell@tansell:~/foss/temp/tp04testing$ git --version00:53
tansellgit version 1.6.3.300:53
Greywhindwtf00:54
tansellyay fedora!00:54
Greywhind^00:54
Greywhindtansell: maybe i'll try switching to the package of 1.6.2.200:56
*** alanp has quit IRC00:58
*** alanp has joined #tp00:58
*** jnengland77 has quit IRC01:00
tansellGreywhind, you'll want to do merging at a later date probably01:01
Greywhindtansell: i can't seem to figure out how to switch to 1.6.2.2, unfortunately01:02
tansellGreywhind, so getting a working git is probably good01:02
Greywhindtansell: are you sure you can't just do the merge for me?01:02
tansellGreywhind, install git from the source?01:02
Greywhindtansell: yeah, i'll try that01:02
tansellGreywhind, I can do a merge for you, but you'll need to merge sometime01:02
Greywhindtansell: yeah01:02
Greywhindtansell: let me try getting the RPM of the newest version01:03
shenkiGreywhind: http://koji.fedoraproject.org/koji/buildinfo?buildID=11203001:04
tpb<http://ln-s.net/3THK> (at koji.fedoraproject.org)01:04
Greywhindshenki: it's for FC12, though?01:05
shenkiGreywhind: if i were you, i'd grab ethe source rpm and build it locally01:05
Greywhindshenki: yeah, it doesn't seem to want to install01:05
Greywhindi'll try from source01:05
shenkiah, suck01:05
shenkiyeah, source install for git isn't too bad - if you do 'make install' as your normal user, it installs neatly inside ~/bin01:06
shenkiso it's easy to get rid of01:06
shenkijust make sure ~/bin is in your path01:06
Greywhindk01:06
Greywhind[Greywhind@localhost git-1.6.3.3]$ make install SUBDIR git-gui SUBDIR gitk-git01:08
Greywhindmake[1]: Nothing to be done for `all'. SUBDIR perl SUBDIR templates01:08
Greywhindinstall -d -m 755 '/usr/local/bin'01:08
Greywhindinstall -d -m 755 '/usr/local/libexec/git-core'01:08
Greywhindinstall: cannot change permissions of `/usr/local/libexec/git-core': No such file or directory01:08
Greywhindmake: *** [install] Error 101:08
Greywhindso much for that theory01:08
Greywhindtrying ./configure --prefix ~01:08
tansellGreywhind, seems like you should just need to do a mkdir /usr/local/libexec/01:09
Greywhindtansell: the dir already exists01:09
shenkierr, why is it trying to install in /usr i wonder01:09
shenkiperhaps they've changd the way it works :/01:09
Greywhinds'alright - i just changed the --prefix01:10
Greywhindodd01:11
GreywhindPATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/real/RealPlayer:/home/Greywhind/bin:/opt/real/RealPlayer01:11
Greywhindand yet01:11
Greywhind[Greywhind@localhost git-1.6.3.3]$ git --version01:11
Greywhindgit version 1.6.2.501:11
Greywhind[Greywhind@localhost git-1.6.3.3]$ /home/Greywhind/bin/git --version01:11
Greywhindgit version 1.6.3.301:11
Greywhindshouldn't it check /home/Greywhind/bin first?01:11
tansellGreywhind, it reads left to right01:12
Greywhindtansell: oh.01:12
Greywhindtansell: ok, got that... now to test it01:14
Greywhind[Greywhind@localhost tpclient-pywx]$ git merge origin/stable01:14
GreywhindAuto-merging libtpclient-py01:14
GreywhindCONFLICT (submodule): Merge conflict in libtpclient-py01:14
GreywhindAuto-merging requirements.py01:14
GreywhindAutomatic merge failed; fix conflicts and then commit the result.01:14
Greywhind\o/01:14
GreywhindFedora's GIT is broken01:15
tansellGreywhind, I guess it could be just the version fedora ships with01:15
Greywhindwell, whatever it is, it's still broken01:16
Greywhindtansell: huh. now the end result seems to be the same as when i originally did that merge01:19
GreywhindTraceback (most recent call last):01:19
Greywhind  File "libtpclient-py/tp/client/threads.py", line 483, in OnCacheDirty01:19
Greywhind    self.application.Post(apply(self.connection, evt, self.application.cache))01:19
Greywhind  File "libtpclient-py/tp/client/cache.py", line 827, in apply01:19
Greywhind    raise IOError("Unable to add the design...")01:19
GreywhindIOError: Unable to add the design...01:19
GreywhindOnNetworkFailure libtpclient-py/tp/client/threads.py:38: DeprecationWarning: BaseException.message has been deprecated as of Python 2.601:19
Greywhind  return unicode(self.message)01:19
*** llnz has joined #tp01:19
GreywhindUnable to add the design...01:19
CIA-22alanp tpserver-cpp-mtsec * r2e9c6bb224c2 /modules/games/mtsec/ (Makefile.am enhance.cpp enhance.h mtsec.cpp planet.cpp): (Extremely) primitive "Enhance Order" for planets01:25
alanptansell: ping01:25
CIA-22alanp tpserver-cpp-mtsec * rd944d448f9b7 /modules/games/mtsec/enhance.cpp: Changed Enhance order to create 1 extra point for every 10 points used. Gameplay will later dictate this number.01:48
Greywhindwell, i have to go to sleep01:48
Greywhindi'm back on the east coast, so it's 1:50 AM01:49
*** Greywhind has quit IRC01:50
*** llnz2 has joined #tp01:54
*** llnz has quit IRC01:54
*** llnz2 is now known as llnz01:54
tansellalanp, pong01:56
alanpugh02:00
* alanp forgets02:00
CIA-22alanp tpserver-cpp-mtsec * r1443bf128a19 /modules/games/mtsec/enhance.cpp: Removed debugging stream output.02:01
alanpohg02:01
alanptansell: you mentioned creating a weapon design, then dropping it as a resource on the planet02:01
tansellalanp, you don't drop a weapon design on a planet02:02
alanpright right02:02
alanpan instance of a weapon i mean02:02
alanpi mean when we build them on a planet02:03
alanpand then we create a unique resource for it02:03
tansellthere should be a "Load Munitions" and "Unload Munitions" on fleet which lets you beam up/down torpedoes/missiles into your fleet from a planet02:03
alanpOK02:03
tansellalanp, when a weapon design is created there should be an associated resource created02:03
alanpOK and the resource will reference the design02:04
alanpso that I can read all of the properties02:04
tansellso on a planet you then select the "Build Munitions" order02:04
alanpwhen loading/firing/etc02:04
tansellwhich will add the resources to the planet02:04
alanpresourceS?02:05
*** llnz2 has joined #tp02:07
*** llnz has quit IRC02:07
*** llnz2 is now known as llnz02:07
alanpI create the design, create the missile resource on the planet02:08
alanpthen load that resource onto my ship02:09
alanpso there only needs to be 1 resource, right?02:09
*** llnz has quit IRC02:11
*** llnz has joined #tp02:11
tansellalanp, I think your confused02:15
alanp???02:15
tansellalanp, there is a difference between the "resource definition" and the actual resources02:15
alanpok02:18
alanpin this case, we will create an actual resource, no?02:18
alanpa resource type on the missile design02:19
alanpon creation we create the resource of the missile02:19
tansellfor each design you need to create a resource definition02:19
alanpright02:19
alanpand then when we build that missile, wont we create an actual resource of it on the planet it's built on?02:20
tansellthe Build Munitions order is what creates the missiles/torpedos on the planet02:20
alanpnod02:20
alanpso when we save the design we will create the definition then02:21
alanpright?02:21
alanpso we're going to have "Build Munitions" which will in essence drop a missile resource onto the planet and then "Load Armaments" to load that onto a ship02:22
tansellyes02:22
tanselldrop is a bad word to use there02:22
alanpunload02:22
tansellno02:23
alanpwhat then?02:23
tansellnot sure02:23
alanphehe02:23
tansellcreate is also wrong02:23
tansellit basically adding a 1 to a counter02:23
tansell(or x if you build multiple)02:23
alanpthis is going to create a lot of resource definitions02:24
tansellalanp, you have an int32 of IDs02:26
alanp;-)02:26
alanpalright, it seems i have my work cut out02:28
*** llnz has quit IRC02:34
tansellalanp, it should be pretty simple02:35
alanpmy question was how to relate the resource to the actual design02:35
alanpbut i guess there are a couple ways to do it02:35
tansellalanp, any way you want - it's only a server side issue02:35
alanpnod02:35
alanptansell: why is it that when I add a resource to a planet it will show as "On Surface" in the client?02:37
tansellalanp, because that is how it's defined02:37
tanselland that is pretty much what you want02:37
alanpwhen I add a production point, the ones I add will say "on surface" but the original game startup ones will say "mineable"02:38
tansellalanp, resources can be in 3 states02:38
tansell"On surface, minable and inaccessible"02:38
tansellon surface can be used straight away02:39
alanphrm02:39
alanpdefinitely want them on the surface02:40
alanpI see what the difference is02:40
alanpthansk02:40
tansellalanp, you should be use minable for the mineral density stuff02:41
alanpyes, definitely02:41
alanpmight be good to clean up the resourcelist with an enum to make it a bit clearer :-)02:42
tansellenum?02:45
tanselloh poke epyon, he is doing clean up stuff :)02:45
alanphehe02:46
alanpactually enum not needed, i misunderstood the call02:52
alanpi'll push it tomorrow afternoon, it's 3am :-)02:54
alanphave a good... day?02:54
alanpbye02:54
chereztansell: Ping?03:02
tansellcherez, pong03:02
cherezI'm having problems the check method for DescStructure, since unlike the other Structures it actually needs some state information (what type it is) to know whether an argument is valid.03:04
tansellcherez, that is correct03:04
cherezAs written so far the check method doesn't take any state data.03:05
tansellit sounds like you are going down the wrong path03:06
cherezSo the solutions I see are either change the api and do a lot of backtracking to clean it up, or just assume the check passes and just let the __set__ method do the testing.03:06
tansellso what is DescStructure?03:08
*** greenlion has joined #tp03:08
cherezIt's basically a list structure that changes its internal structure based on its typefield.03:09
tansellcherez, why do you need that?03:10
cherezA group structure, rather....03:11
tansellstill not needed03:11
tansellOrderDesc/ObjectDesc objects generate new classes03:11
tansellone class for each typeid03:12
tansellso the Order/Object as described in the protocol.xml are basically abstract base classes03:12
cherezRight, I know that.03:13
cherezBut the description frames still have to be sent and received.03:13
cherezSo they need a Structure to describe them.03:13
cherezAnd if I'm not critically misunderstanding the protocol, the exact structure of a description frame does vary at runtime.03:15
tansellso your talking about the 'x' part in struct="I SS T [ISS[x]]"03:16
tansell?03:16
cherezRight.03:16
cherezI made a Structure to represent the [x].03:16
cherezBut I can't write a check method for it because the type of the [x] depends on the I.03:17
tansellcherez, why? when the I is set, it changes the X03:18
tansellobviously you can't set X until you have set the I right?03:18
cherezYes, but the check method doesn't know what the rest of the packet is.03:19
cherezIt's class-level rather than instance-level.03:19
cherezSo it can't know anything about a specific instance, which it would have to in order to know whether any specific X is legal.03:20
tansellso03:24
tansellthe check method is never called directly03:24
tansellit's called by __set__03:24
cherezIt is called directly, though.03:25
cherezIn a lot of places.03:25
tanselllike?03:25
cherezPacket, List, Group.03:25
tansellwelp03:26
tansellnot sure what is the best option :P03:27
cherezI could make check take an instance, but it would mean quite a bit of work to change every call and it would just be for this corner case.03:27
tansellyou could modify the check method to also take stuff03:27
cherezYeah, that's one solution.03:27
cherezThe other one I see is  just make DescStruct's check pass, because it does the checking with __set__ anyway.03:28
cherezAnd every place that check is called follows with a set not long after.03:29
tansellnot quite sure that would work with Group?03:29
cherezBecause Group would start writing to other values before it found that it was wrong?03:30
cherezActually, if the typefield hasn't been written yet the check method won't be right anyway.03:30
tansellyou could just make the ISS[X] special03:31
cherezTreat it like a single value?03:31
tansellor a special group03:32
cherezHmm.03:34
*** llnz has joined #tp03:39
cherezIt would be a bit icky building that group, and I hate to think what its check method would look like, but that is an option.03:39
tansellwell it would just be a subclass of Group right?03:41
cherezYeah, the only real difference would the the check method.03:42
cherezWhich would have to create an instance of the Group.03:42
tansellbblr03:43
CIA-22llnz tpserver-cpp-battlexml * rf9993d2d25f7 / (5 files in 2 dirs):04:14
CIA-22Third reimplementation of RSP Combat for Minisec.04:14
CIA-22This time, it actually does what the game description says, and04:14
CIA-22also creates the BattleXML file (not that it gets written anywhere yet).04:14
*** JLP has quit IRC05:49
CIA-22llnz tpserver-cpp * r4de61a451543 /modules/tpcl/guile/ (tpguile.cpp tpguile.h):05:59
CIA-22In tpguile, set the property values to zero before starting to eval05:59
CIA-22the designs.05:59
CIA-22It shouldn't be necessary in finished designs, but should help incomplete05:59
CIA-22designs.05:59
*** reac has joined #tp06:15
reacmithro, llnz i'm having problems pushing to the daneel repository.. write permission are not working anymore for some reason, getting this error specfically: http://groups.google.com/group/github/browse_thread/thread/a307d5c44ca7c503/8d64f1ba03d79c3206:20
tpb<http://ln-s.net/3TQv> (at groups.google.com)06:20
mithroreac: that thread is totally unrelated06:23
mithrogive it a try now06:23
reacYeap thanks that seems to have solved it06:24
mithrodaneel-ai doesn't have py in the name so the fixperm script didn't do the right thing06:25
reacmm okay .. thank you06:28
*** mithro has quit IRC06:39
CIA-22joelboh tpclient-pyweb * r8c0517f7a209 /frontend/scripts/map.js: Frontend: Added a few comments and descriptions.06:55
matthewdtote: You around?06:56
totematthewd: yep, hi!06:57
totematthewd: no blog post yet, trying to get back on track atm06:58
matthewdk06:59
totematthewd: is it okey if we have the meeting tomorrow, then i get the time to finish a few things i started with this weekend?07:05
totematthewd: ive been sick for a couple of days, if you wonder why im off schedule07:05
matthewdYep, that's okay.07:14
CIA-22llnz tpserver-cpp * r116cfa55423a /modules/tpcl/ (guile/tpguile.cpp mzscheme/tpmzscheme.cpp):07:16
CIA-22Set property value defaults in tpmzscheme, like tpguile.07:16
CIA-22Also updated tpguile copyright date.07:16
* llnz wanders off07:31
llnzlater all07:31
*** llnz has quit IRC07:31
*** Guest34184 has joined #tp08:09
*** Guest34184 has left #tp08:09
*** alanp_ has joined #tp08:45
*** peres has joined #tp09:01
alanp_CIA-22llnz tpserver-cpp * r4de61a451543 /modules/tpcl/guile/ (tpguile.cpp tpguile.h):05:5909:02
alanp_CIA-22In tpguile, set the property values to zero before starting to eval05:5909:02
alanp_:-)09:02
alanp_thanks llnz09:02
CIA-22joelboh tpclient-pyweb * r54fccace9142 /frontend/ (index.html scripts/map.js):09:14
CIA-22Frontend: Added a notify component, it displays various things that09:14
CIA-22happens in the client, for example when its downloading the universe in09:14
CIA-22the background.09:14
*** bddebian has joined #tp09:20
bddebianHeya09:22
CIA-22joelboh tpclient-pyweb * rbaf6a0a4c3f8 /frontend/scripts/map.js: Frontend: Fixed a bug where components get double content.09:23
*** alanp_ has quit IRC09:41
*** ezod has quit IRC10:04
*** ezod has joined #tp10:05
*** peres has quit IRC10:19
*** mhilmi has joined #tp11:58
*** JLP has joined #tp12:08
*** francisco has joined #tp13:18
franciscocould somebody help me install parsec in my ubuntu jaunty?13:18
franciscoI am trying to install GloMoSim but i have no luck13:19
franciscosomebody here?13:22
*** francisco has quit IRC13:37
*** Greywhind has joined #tp13:37
CIA-22joelboh tpclient-pyweb * r8e870c91a047 /frontend/scripts/map.js: Frontend: Fixed a bug where it wasnt possible to logout.13:48
*** alanp_ has joined #tp14:15
*** bddebian has quit IRC14:34
*** alanp_ has quit IRC15:01
CIA-22joelboh tpclient-pyweb * rbe34eeafb901 /frontend/scripts/map.js: Frontend: Forgot to remove some debug code.15:22
CIA-22joelboh tpclient-pyweb * rad64fa18b78b /frontend/scripts/map.js: Frontend: wops another bug15:27
*** llnz has joined #tp16:04
llnzmorning all16:12
CIA-22ric daneel-ai-pyconstraint-1.1 * re7fbf0bf1372 /daneel/problem.py:16:50
CIA-22daneel/problem.py: created a Rule class to hold variable domains, instead of storing them as a dictionary.16:50
CIA-22Modified set/get functions to represent this change.16:50
CIA-22ric daneel-ai-pyconstraint-1.1 * r39b9b83c601f /daneel/basic.py: daneel/basic.py: Updated to store variable domains from cache in the KnownRule class.16:50
CIA-22ric daneel-ai-pyconstraint-1.1 * r49f20a3c1bf7 /daneel/mod-rfts.py: daneel/mod-rfts.py: Added several rules to be solved in startTurn()16:50
*** verhoevenv has joined #tp17:23
*** tuna-fish has quit IRC19:11
*** nash has joined #tp19:17
*** greenlion has quit IRC19:59
*** tansell_laptop has joined #tp20:22
*** verhoevenv has quit IRC20:31
*** tansell--laptop has joined #tp20:34
*** tansell_laptop has quit IRC20:52
tansellmorning people21:21
llnzhi tansell21:21
Greywhindhi tansell21:25
tansellhey Greywhind21:26
tansellany luck?21:26
Greywhinddid you happen to see my last messages yesterday?21:26
Greywhindalso, i just submitted the midterm survey about an hour ago21:26
Greywhindmaybe less21:26
tansellGreywhind, did you try tp03 branch and see if you get the same problem?21:26
Greywhindtansell: let me check21:26
Greywhinddidn't even think to do that21:26
Greywhindsilly me21:26
Greywhindtansell: yes, it still happens with stable21:27
tansellwhat happens?21:28
tanselland which tpserver-cpp?21:28
Greywhindtansell: http://pastebin.com/d79ee82521:29
tpbTitle: pastebin - collaborative debugging tool (at pastebin.com)21:29
Greywhindtansell: a bit of an older one than the newest tpserver-cpp, because i still can't compile the new one21:29
tansellbut which ruleset?21:29
Greywhindtansell: minisec21:30
tansellyou can't create designs in minisec21:30
llnzminisec does not allow the creation of designs21:30
Greywhindah21:30
Greywhindthat might be the cause, i guess :P21:30
Greywhindany others you can't?21:31
tansellrisk21:32
Greywhindk21:32
Greywhindtansell: in mtsec and rfts i'm getting this:21:33
Greywhind2009-07-06 21:32:50 < Info  > Login ok by greywhind21:33
GreywhindERROR: In procedure memoization:21:33
GreywhindERROR: Missing or extra expression in (define New DesignDesignType (make-design-vtable "pwpwpwpwpwpw")).21:33
Greywhindand then the server crashes21:33
llnzi don't think any allow it, except for mtsec which in master doesn't work, and not sure on the mtsec branch currently21:33
tansellblame alanp for that21:33
llnzGreywhind: odd21:33
llnzoh21:34
llnzi think i know what it is21:34
llnzit's because of the space in the name21:34
llnzof the dseign21:34
* llnz makes a note to fix it tonight21:35
*** mithro has joined #tp21:40
Greywhindseems like when i edit a design, then try to save, it also gives me a bad packet21:42
Greywhindhttp://pastebin.com/d2e03a53621:42
tpbTitle: pastebin - collaborative debugging tool (at pastebin.com)21:42
*** tansell--laptop has quit IRC21:44
llnzGreywhind: which ruleset?21:45
Greywhindllnz: rfts21:45
llnzi need to have another look at how _num-components property is set and used21:46
*** bddebian has joined #tp21:56
*** jmtan has quit IRC21:56
tansellGreywhind, so you might want to fix the ioerror that occurs with trying to add designs to minisec22:00
Greywhindtansell: i'll try to figure out a way to do it22:01
Greywhindi have to go eat dinner first22:01
alanpI haven't had time to debug that issue fully22:56
alanpspace in the name of the design?22:56
llnzalanp: yeah, tpguile is wrong there23:00
llnztpmzscheme should work correctly though23:00
alanptpmzscheme doesn't work for me :-(23:01
alanpI think mithro also reported a problem on amd6423:04
alanpi guess i could find another computer do compile on23:07
llnzalanp: i updated both tpcl modules last night to set the default values for properties23:11
*** tansell-laptop has joined #tp23:11
alanpI saw that :-) thanks23:11
llnzand when testing you will just have to avoid space in the design name23:11
llnzuntil i can fix tpguile23:11
*** jmtan has joined #tp23:12
alanpdefault new design is called "New Design" heh23:13
llnzyes, that would be a problem23:13
Greywhindheh23:13
Greywhindyeah23:13
llnzmaybe you can hack the client (or library) to set it to something easier to now23:13
* alanp never tried to change it, here goes nothing23:13
alanp?23:14
alanpoops23:14
alanp2009-07-06 23:15:12 < Debug > Starting design eval23:15
alanpERROR: In procedure memoization:23:15
alanpERROR: Missing or extra expression in (define New DesignDesignType (make-design-vtable "pwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpwpw")).23:15
alanpI get it if the design has no space also23:15
llnzbut that one does have a space in it23:16
llnzthe design name is "New Design"23:16
alanphm, I changed it23:16
llnzobviously not in the right place23:16
alanp..in the design window23:16
llnzbefore it is added to the design window, it is already sent to the server with the default name23:16
alanpthat would do it23:17
llnzgrep the client source code for New Design and change that line23:17
alanpok, simple hack then23:17
alanpok hm23:18
alanpstill an error23:18
alanpdifferent though23:19
alanpmy design gets saved, but I get a Bad Packet error in the client23:19
Greywhindi got the same thing23:19
llnzhow is the packet in error?23:20
Greywhindtansell: ping?23:22
alanpllnz: http://pastebin.com/m67f2a05023:23
tpbTitle: pastebin - collaborative debugging tool (at pastebin.com)23:23
*** DTRemenak|RDP is now known as DTRemenak23:24
llnzodd23:24
alanpyeah, it's just a Design Added packet23:24
alanpfrom wha ti can tell23:24
llnzwas it expecting a design object back?23:24
llnzthe server sent OK packet ("Design added")23:25
llnzahh23:26
llnzit (libtpproto-py) expects a design object in return23:27
alanpshould it?23:28
llnzhumm... maybe it should23:29
llnzi'll have a look into it tonight23:29
* llnz adds it to his list23:29
alanphehe thanks23:30
llnzmtsec is the first real use of the design system, so i expect these bugs23:34
alanpnod23:34
*** bddebian has quit IRC23:34
*** reac has quit IRC23:52

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