*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** Alklomion has joined #tp | 01:54 | |
Alklomion | Hey, has anyone got much experience with the Tpserver-cpp server windows version? | 01:55 |
---|---|---|
*** xdotx has joined #tp | 02:03 | |
xdotx | nash: you probably do not need to be using "-Wno-unused-parameter" | 02:05 |
xdotx | for cases where you are not using an argument in a function, do not name it | 02:06 |
xdotx | this makes it clear to the compiler (and reader) that it is unused | 02:06 |
nash | xdotx: umm... that's not valid C | 02:09 |
nash | From K&R: Unless the parameter type list consists solely of void, showing that the function takes no parameters, each declarator in the parameter type list must contain an identifier | 02:09 |
xdotx | nash: you cannot delcare foo as: void foo(int a); then implement with: void foo(int) { } ? | 02:10 |
nash | no | 02:11 |
xdotx | o_O | 02:11 |
nash | void | 02:11 |
nash | testfn(int x, int){ | 02:12 |
nash | ... | 02:12 |
nash | gcc -o test005 test005.c ──(Thu,Jun19)─┘ | 02:12 |
nash | test005.c: In function ‘testfn’: | 02:12 |
nash | test005.c:4: error: parameter name omitted | 02:12 |
xdotx | that's silly... why does it care? | 02:12 |
nash | Well, it makes the grammer simpler for starters ;-) | 02:13 |
xdotx | yeah i suppose | 02:13 |
*** Alklomion has quit IRC | 02:13 | |
nash | But think k&r declerations: | 02:13 |
nash | foo(x,y,z) int x; int y; int z; { .. } | 02:14 |
xdotx | C definitely was built with compiler in mind | 02:14 |
nash | So... foo(x,,z){ .} | 02:14 |
nash | Eeek | 02:14 |
nash | Looks like a typo to me! | 02:14 |
nash | xdotx: it's suppressing a warning. There is no requirement about the type of names you use, so dummy1 are pefectly vaid | 02:15 |
xdotx | it's a useful warning though :/ you should be able to express that it's a dummy argument? | 02:15 |
xdotx | (also i completely don't understand your example) | 02:16 |
nash | Yes, depends on who is warning you | 02:17 |
nash | you can do __attribute__((unused)) | 02:17 |
nash | if you like, and not add the warning | 02:18 |
nash | But I use a lot of callbacks in my code ;-) | 02:18 |
nash | So I have a lot of unused paramaters | 02:18 |
* xdotx nods | 02:18 | |
mithro | xdotx! | 02:18 |
mithro | hrm missed Alklomion | 02:18 |
xdotx | well in good ol' cpp you can use the non-named param for dummies. jus' so you know | 02:19 |
nash | how is that | 02:21 |
nash | wrong window | 02:21 |
nash | xdotx: Yet another reason why C++ is evil. | 02:21 |
xdotx | how's that possibly a problem though? if you meant to name it, you get an error when you try to use it. if you mean without using, it's a warning. | 02:23 |
xdotx | mm. name without using* | 02:23 |
mithro | bblr | 02:27 |
nash | just weird | 02:27 |
xdotx | that's k&r notation is weird! supporting two distinctly different types function declarations? what's the benefit? | 02:28 |
nash | to maintain compatabilty with the huge base of existing C code using K&R when the ansi method was introduced is teh benefit | 02:29 |
xdotx | mm | 02:34 |
nash | gcc needs a flag to accept k&r these days I believe | 02:38 |
xdotx | nope. i tested with -ansi -pedantic and it went fine | 02:39 |
nash | weird | 02:42 |
nash | it doesn't like void foo(); however ;-) | 02:42 |
*** zzorn_laptop has joined #tp | 03:05 | |
*** mithro has quit IRC | 03:17 | |
*** nash has quit IRC | 03:17 | |
*** xdotx has quit IRC | 03:35 | |
*** llnz has joined #tp | 04:30 | |
*** Mithro-BB has joined #tp | 04:44 | |
Mithro-BB | Sup? | 04:44 |
*** Mithro-BB has quit IRC | 04:44 | |
*** Mithro-BB has joined #tp | 04:44 | |
Mithro-BB | Llnz: how goes every thing? | 04:46 |
llnz | hi Mithro-BB | 04:46 |
llnz | not too bad, you? | 04:46 |
Mithro-BB | BB is for blackberry | 04:46 |
llnz | cool | 04:46 |
Mithro-BB | Good in a sypy meeting | 04:47 |
Mithro-BB | I should have a cool surprise for you by next Monday | 04:49 |
llnz | cool | 04:49 |
*** Mithro-BB has quit IRC | 04:54 | |
*** JLP has joined #tp | 05:39 | |
JLP | good morning everyone | 05:40 |
llnz | hi JLP | 05:41 |
*** Ohm has quit IRC | 06:03 | |
* llnz wanders off | 07:42 | |
llnz | later all | 07:42 |
*** llnz has quit IRC | 07:42 | |
*** zzorn_laptop has quit IRC | 07:44 | |
*** Iwanowitch has joined #tp | 10:08 | |
*** jphr has joined #tp | 10:21 | |
*** jphr has quit IRC | 10:36 | |
*** jphr has joined #tp | 10:37 | |
*** vi1985 has joined #tp | 11:03 | |
vi1985 | mornin all | 11:04 |
jphr | morning | 11:11 |
CIA-31 | jphr tpserver-cpp-risk * r15ed89a1d10f /modules/games/risk/risk.cpp: Made it so guest players can join a full game | 11:11 |
CIA-31 | jphr tpserver-cpp-risk * r3394ed1d3e13 /modules/games/risk/ (risk.cpp risk.h sample.conf testing-risk.conf): Made game capable of assigning just one planet at startup with risk_randomly_assign = false | 11:52 |
*** Erroneous has joined #tp | 12:58 | |
*** nuleren has joined #tp | 14:02 | |
*** JLafont-laptop has joined #tp | 14:06 | |
*** Iwanowitch has quit IRC | 14:17 | |
*** Iwanowitch has joined #tp | 14:17 | |
Iwanowitch | Hmm. X server crash, for no reason. That's a long time ago. | 14:18 |
*** Zzz2 is now known as Asmm | 14:19 | |
*** Ohm has joined #tp | 14:37 | |
*** JLafont-laptop has joined #tp | 14:45 | |
*** greywhind has joined #tp | 14:52 | |
*** JLafont-laptop has quit IRC | 14:52 | |
*** JLafont-laptop has joined #tp | 14:52 | |
*** vi1985 has quit IRC | 16:18 | |
CIA-31 | jphr tpserver-cpp-risk * rc5e7d10030ef /modules/games/risk/ (colonize.cpp colonize.h move.cpp move.h riskturn.cpp): Added a tonne of implementation to Colonize::doOrder. Also fixed logic error in Move::doOrder | 16:23 |
*** Ohm has quit IRC | 16:27 | |
*** JLafont-laptop has quit IRC | 16:43 | |
*** JLafont-laptop has joined #tp | 16:46 | |
*** JLafont-laptop has quit IRC | 16:53 | |
CIA-31 | jphr tpserver-cpp-risk * rfb0dd6c51e90 /modules/games/risk/colonize.cpp: Made additional changes to Colonize::doOrder to try and get it working; Does not currently work properly | 17:23 |
CIA-31 | jphr tpserver-cpp-risk * rf8d044564d10 /modules/games/risk/colonize.cpp: Fixed problems in Colonize::doOrder() | 17:23 |
*** jphr has quit IRC | 17:24 | |
*** sladegen has quit IRC | 17:48 | |
*** sladegen has joined #tp | 17:48 | |
CIA-31 | jphr tpserver-cpp-risk * r0de5dfda0e76 /modules/games/risk/colonize.cpp: Added todo | 18:00 |
*** nuleren has quit IRC | 18:03 | |
*** JLafont-laptop has joined #tp | 18:05 | |
*** JLafont-laptop has quit IRC | 18:11 | |
*** JLafont-laptop has joined #tp | 18:15 | |
*** JLafont-laptop has quit IRC | 18:21 | |
*** greywhind has quit IRC | 18:24 | |
*** Ohm has joined #tp | 18:31 | |
*** nash has joined #tp | 18:32 | |
*** JLafont has joined #tp | 19:02 | |
*** Alklomion has joined #tp | 19:25 | |
*** mithro has joined #tp | 19:31 | |
mithro | Alklomion: ping? | 19:31 |
mithro | i'm going to get coffee | 19:38 |
mithro | I'll be back in 10 | 19:38 |
mithro | ~seen sladegen | 19:48 |
tpb | mithro: I have not seen sladegen. | 19:48 |
ezod | ~seen Equilibrium | 19:50 |
tpb | ezod: I have not seen Equilibrium. | 19:50 |
ezod | tpb: well you should, it's a great movie! | 19:50 |
* mithro pokes Alklomion | 20:04 | |
Alklomion | mithro: hey, i'm here now | 20:09 |
mithro | Alklomion: okay | 20:09 |
mithro | so how are things going? | 20:09 |
Alklomion | the programming is going fine | 20:09 |
Alklomion | I'm having trouble setting up the windows server cpp client | 20:09 |
Alklomion | I've been trying to use your python client to connect to tpserver-cpp for windows, but it says the username/pw is invalid, even after i've changed it to auto add players | 20:11 |
*** peres has joined #tp | 20:13 | |
mithro | Alklomion: tpserver-cpp doesn't run on windows? | 20:15 |
Alklomion | oh? there's a download link for a windows version | 20:17 |
mithro | where? | 20:18 |
Alklomion | http://www.thousandparsec.net/tp/downloads.php#tpserver-cpp | 20:18 |
tpb | <http://ln-s.net/1whF> (at www.thousandparsec.net) | 20:18 |
Alklomion | win32 version 0.3.1 | 20:18 |
mithro | umm - that is tpclient-pywx, tpserver-cpp is at 0.5.0 | 20:20 |
mithro | http://www.thousandparsec.net/tp/downloads.php#tpclient-pywx | 20:20 |
tpb | <http://ln-s.net/JkJ> (at www.thousandparsec.net) | 20:20 |
ezod | there appears to be a tpserver-cpp-0.4.1-win32.zip | 20:21 |
ezod | on sf | 20:21 |
mithro | oh - that is very ancient | 20:21 |
Alklomion | Yeah, that's the one I meant to link to | 20:22 |
ezod | 0.4.1 is over a year old | 20:22 |
Alklomion | So I guess I'd need to switch over to unix to run the local server and do some testing | 20:25 |
ezod | might run in cygwin/mingw? | 20:26 |
mithro | Alklomion: yeah | 20:27 |
mithro | ezod: that is how 0.4.1 windows version was built | 20:27 |
mithro | but nobody has built it on windows since then | 20:27 |
mithro | so it would be a pretty big effort | 20:27 |
ezod | project for me after gsoc maybe :) | 20:29 |
ezod | im fairly familiar with mingw | 20:29 |
CIA-31 | alklomion /tmp/gm9vEe2JUA/AzT3MWev5d-midp * r6a4e129c6ee0 /src/net/thousandparsec/netlib/Connection.java: | 20:29 |
CIA-31 | Fixed the way the connection is opened to be compatible with the way it is done in J2ME and still keep compatibility with thousand parsec. | 20:29 |
CIA-31 | via git-CVS emulator | 20:29 |
ezod | haven't had a windows box around in years though... | 20:29 |
mithro | ezod: all the parts are there | 20:30 |
mithro | but because of the way windows works, you have to static compile the rulesets into the server | 20:30 |
mithro | Alklomion: so where are we at? | 20:30 |
CIA-31 | alklomion /tmp/eeOt0crpQj/yOCCcCakGr-midp * r6731540dc98c /src-test/net/thousandparsec/netlib/test/TestConnect.java: | 20:31 |
CIA-31 | J2ME compatible test (it still won't run because it isn't a midlet) | 20:31 |
CIA-31 | via git-CVS emulator | 20:31 |
CIA-31 | alklomion /tmp/xmzspJk69r/3FVeiTQ38k-midp * r00c2435f6195 /src-test/net/thousandparsec/netlib/test/TestMidlet.java: | 20:32 |
CIA-31 | Midlet that can test that a connection can be made to a thousand parsec server | 20:32 |
CIA-31 | via git-CVS emulator | 20:32 |
Alklomion | I have written the midlet that will hopefully test the connection is present | 20:32 |
Alklomion | to do that i'll need to run a server in unix and continue testing it | 20:33 |
* ezod and autoconf are about to scrap | 20:33 | |
mithro | Alklomion: have you tried connecting to demo1? | 20:33 |
Alklomion | demo1 is tps, i think | 20:34 |
mithro | Alklomion: http://isv-image.ubuntu.com/vmware/ | 20:34 |
tpb | Title: Index of /vmware (at isv-image.ubuntu.com) | 20:34 |
mithro | Alklomion: nope, it has support for tp and tps | 20:34 |
Alklomion | so you can connect with both? even if it were currently running in tps? | 20:35 |
mithro | yes | 20:35 |
mithro | https://help.ubuntu.com/community/VMware/Player | 20:36 |
tpb | Title: VMware/Player - Community Ubuntu Documentation (at help.ubuntu.com) | 20:36 |
mithro | Alklomion: that is probably the quickest way to get a ubuntu working | 20:37 |
mithro | Alklomion: so how do I test this? | 20:37 |
* mithro is starting netbeans | 20:37 | |
Alklomion | mithro: first you'll probably need to delete the build.xml then reload the project, it will create a new one that won't have a fit if you try to run it | 20:38 |
mithro | I have a completely fresh checkout | 20:39 |
Alklomion | it is completely fine to delete files in Git, yes, they can just be reverted later on if needed? | 20:40 |
mithro | yes | 20:41 |
mithro | but you need to right click and do the delete that way | 20:41 |
mithro | otherwise CVS will automatically re-create them | 20:41 |
Alklomion | I'm checking out the module so we're on the same page this time :) | 20:43 |
mithro | okay | 20:44 |
CIA-31 | alklomion /tmp/uyotmOwtm2/6bDkwRI5xZ-midp * ra96673d0f547 /src/net/thousandparsec/util/URI.java: | 20:46 |
CIA-31 | Removed some debugging println statements | 20:46 |
CIA-31 | via git-CVS emulator | 20:46 |
mithro | Alklomion: you should remove the files which don't compile too | 20:47 |
* ezod cheers! tpadmin-cpp is alive! | 20:49 | |
mithro | ezod: yay! | 20:50 |
ezod | mithro: when you get a chance, can you step me through git-izing this tree and doing the initial push? | 20:53 |
mithro | sure! | 20:53 |
mithro | git-izing? you should have been using git from the start!? | 20:53 |
ezod | :( | 20:54 |
ezod | i was worried there would be no way to reconcile the repos | 20:54 |
mithro | http://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpadmin-cpp.git;a=summary | 20:55 |
tpb | <http://ln-s.net/1whU> (at git.thousandparsec.net) | 20:55 |
mithro | ezod: nah, with git you can merge anything | 20:55 |
* ezod is starting to like git | 20:55 | |
ezod | so, clone the empty repo, git-add my files, and push? | 20:55 |
mithro | yeah | 20:56 |
mithro | Alklomion: so... | 20:58 |
Alklomion | Trying to work out why it isn't recognizing my midlet *sigh* | 20:58 |
CIA-31 | aaron tpadmin-cpp * r96a7b662d00e / (13 files in 2 dirs): Initial import of local tpadmin-cpp tree. | 20:58 |
ezod | very skeletal currently | 20:59 |
mithro | Alklomion: but the libtpproto-java should compile right? | 21:01 |
Alklomion | oh - yeah | 21:01 |
Alklomion | if you deleted build.xml and reopened the project, it will compile | 21:01 |
mithro | it seems you have not removed the Pipeline or Pair/Abstract java files? | 21:01 |
Alklomion | nope | 21:01 |
mithro | how will it compile then? | 21:02 |
Alklomion | I removed them on my system, i just did not remove them from Git | 21:02 |
mithro | can you please remove them from git then? | 21:03 |
mithro | otherwise I can not reproduce your results | 21:03 |
CIA-31 | alklomion /tmp/j1GeGAyuRB/55yABfk4YF-midp * r80ebb9294854 /src/net/thousandparsec/netlib/PipelinedConnection.java: | 21:03 |
CIA-31 | Removed | 21:03 |
CIA-31 | via git-CVS emulator | 21:03 |
CIA-31 | alklomion /tmp/BDJeqJ75jP/dRkbYWWgiQ-midp * r57c6f4e82631 /src/net/thousandparsec/util/ (AbstractIterator.java Pair.java): | 21:05 |
CIA-31 | Removed | 21:05 |
CIA-31 | via git-CVS emulator | 21:05 |
Alklomion | does right clicking the project and selecting build work once those three have been removed? | 21:08 |
*** JLafont has quit IRC | 21:19 | |
*** JLafont has joined #tp | 21:22 | |
mithro | testing | 21:25 |
mithro | BUILD SUCCESSFUL (total time: 6 seconds) | 21:27 |
mithro | yay! | 21:27 |
JLafont | mithro: I just sent you an e-mail. Also I was trying to do the getting started document on the wiki but it seems I can't upload any images. | 21:27 |
*** Erroneous has quit IRC | 21:27 | |
mithro | JLafont: ahh, okay I think I know the problem | 21:27 |
*** Iwanowitch has quit IRC | 21:27 | |
mithro | JLafont: can you try uploading images again now? | 21:30 |
mithro | Alklomion: so have you committed the midlet and stuff that you are using to test? | 21:31 |
Alklomion | yep | 21:31 |
JLafont | one sec | 21:33 |
mithro | so how do I run it? and where is it located? | 21:33 |
mithro | Alklomion: you might need to commit the stuff in the nbproject directory | 21:34 |
Alklomion | Do you remember how I've been copying the tp03 folder from src-generated, as I did not want to change the overall structure away from what it currently was | 21:34 |
Alklomion | Copy the tp03 folder in src-generated/.../netlib/ to src/.../netlib | 21:34 |
Alklomion | the same with the test directory in src-test | 21:35 |
CIA-31 | alklomion /tmp/SIsIys0q48/cJn8938e7N-midp * rc2600906ac36 /nbproject/ (private/private.properties project.properties): via git-CVS emulator | 21:36 |
Alklomion | mithro: done, i think | 21:37 |
JLafont | mithro: it worked | 21:37 |
JLafont | And I need to update my ssh key again | 21:37 |
mithro | JLafont: okay in a sec | 21:38 |
mithro | Alklomion: your stuff seems to be in src-test? | 21:39 |
mithro | (the test runner?) | 21:39 |
Alklomion | yeah, there's a file called TestMidlet | 21:39 |
Alklomion | mithro: copy the test directory from \src-test\net\thousandparsec\netlib\ to \src\net\thousandparsec\netlib | 21:40 |
mithro | Alklomion: you really need to find a way to not have to copy this | 21:41 |
Alklomion | yeah - i know. | 21:41 |
Alklomion | I could change the structure of the files, would that make things easier? In the short term, I'd think so, but it would be more difficult in the long term. Or at the end i could just copy it back to the structure that was used in the master branch. | 21:42 |
mithro | Alklomion: well, it should be a way to include stuff from both directories without having to copy | 21:43 |
mithro | Running with locale: en_AU.UTF-8 | 21:45 |
mithro | Running in the identified_third_party security domain | 21:45 |
mithro | TP03Decoder instantiated | 21:45 |
mithro | URI Object Completed | 21:45 |
mithro | Port is:-1 | 21:45 |
mithro | Method.valueOf(serverUri.getScheme()) is: net.thousandparsec.netlib.Connection$MethodCode@1cb37664 | 21:46 |
mithro | serverURI.getScheme() is: tp | 21:46 |
mithro | javax.microedition.io.ConnectionNotFoundException: TCP open | 21:46 |
mithro | that looks like you are getting very close | 21:46 |
mithro | JLafont: new key updated | 21:47 |
JLafont | mithro: awesome. Thanks | 21:47 |
Alklomion | mithro: yeah, I think it is close, which is exciting :) | 21:52 |
mithro | it looks like the host is null | 21:54 |
mithro | I did a | 21:54 |
mithro | System.out.println(host); | 21:54 |
mithro | System.out.println(port); | 21:54 |
mithro | in the makeTPConnection method | 21:55 |
mithro | and go | 21:55 |
mithro | t | 21:55 |
mithro | Method.valueOf(serverUri.getScheme()) is: net.thousandparsec.netlib.Connection$MethodCode@1cb37664 | 21:55 |
mithro | serverURI.getScheme() is: tp | 21:55 |
mithro | null | 21:55 |
mithro | 6923 | 21:55 |
Alklomion | sec - reloading netbeans, it is such a resource hog on my poor computer | 21:56 |
mithro | yeah it is annoying | 21:57 |
mithro | I hard coded the host name to "127.0.0.1" | 21:57 |
mithro | and it connected! | 21:57 |
mithro | 2008-06-20 12:05:20 < Info > Accepted connection from localhost [::ffff:127.0.0.1], connection id 7 | 21:57 |
mithro | 2008-06-20 12:05:20 < Info > Accepting new tp (tcp) connection | 21:57 |
mithro | 2008-06-20 12:05:20 <Warning> Client did not show correct version of protocol (version 2 or less) | 21:57 |
mithro | 2008-06-20 12:05:20 < Info > Closed connection 7 | 21:57 |
Alklomion | that's an error in my parser, i think | 22:03 |
Alklomion | well, it must be | 22:03 |
mithro | yeah - that would be my guess | 22:03 |
mithro | you might want to write some tests for your URI.java | 22:04 |
Alklomion | URI HOST IS: demo1.thousandparsec.net/tp | 22:04 |
Alklomion | yet getHost() is returning null, hmm | 22:04 |
Alklomion | aah, i know what is causing that problem. | 22:12 |
Alklomion | I should really just remove the stuff that will probably never be used in the URI file | 22:12 |
mithro | that sounds like a good idea | 22:13 |
mithro | you can use netbeans to tell you about unused functions | 22:13 |
Alklomion | yeah | 22:18 |
mithro | you should also remove all unused imports | 22:18 |
Alklomion | yep | 22:18 |
mithro | netbeans complains about them too :) | 22:18 |
Alklomion | yeah, that's an easier thing to do | 22:18 |
Alklomion | the information you linked before, did the midlet throw back an error? | 22:19 |
Alklomion | an IO Error? | 22:19 |
mithro | yeah | 22:32 |
JLafont | mithro: I'm having some trouble pushing my commits. Its the same thing that was happening before my comp went crazy too. http://pastebin.com/d33ffce0b | 22:33 |
mithro | Alklomion: http://pastebin.com/m73f2020 | 22:33 |
*** greywhind has joined #tp | 22:34 | |
mithro | JLafont: give it a whirl now | 22:37 |
CIA-31 | juan tpserver-py-dronesec * rb4816c5ad1e8 /tp/server/rules/dronesec/actions/Automerge.py: Automerge rewritten to be more efficient and to include messages | 22:37 |
CIA-31 | juan tpserver-py-dronesec * rc634fe4ff4f7 /tp/server/rules/dronesec/actions/MoveDrones.py: MoveDrones now send a message confirming arrival at destination | 22:37 |
CIA-31 | juan tpserver-py-dronesec * rd2b5bac71698 /tp/server/rules/dronesec/orders/ (DroneProductionBackup.py ProduceDrones.py): | 22:37 |
CIA-31 | Produce Drones modified to be more "fire and forget". | 22:37 |
CIA-31 | A backup of the old produce drones was made for referencial purposes | 22:37 |
CIA-31 | juan tpserver-py-dronesec * r101e98178997 /tp/server/rules/dronesec/actions/FleetCombat.py: Fleet Combat should now take into account a ships type when dealing damage | 22:37 |
JLafont | yay | 22:37 |
CIA-31 | juan tpserver-py-dronesec * rc272f275d630 /tp/server/rules/dronesec/ (__init__.py actions/Defeat.py): Implemented Defeat. It will remove an overlord of a defeated player and send him a message | 22:37 |
tpb | aloril has quit worldforge (Ping timeout: 378 seconds) | 22:50 |
tpb | aloril has joined on worldforge | 23:02 |
mithro | Alklomion: any luck? | 23:05 |
Alklomion | Naw, I'll probably get to it tomorrow. Finalising some documentation for the uni | 23:06 |
Alklomion | but for now - it is lunch time | 23:07 |
mithro | Alklomion: I would try and knock if off while you have me about to ask questions off | 23:26 |
mithro | I won't be around on the weekend | 23:26 |
*** peres has quit IRC | 23:39 | |
*** Epyon has joined #tp | 23:56 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!