*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** jernejovc has quit IRC | 00:49 | |
*** jernejovc has joined #tp | 00:51 | |
cherez1 | Why won't you speak to me, server? :( | 01:00 |
---|---|---|
llnz | at what point are you having trouble? | 01:09 |
llnz | the actual tcp connection? after the connect frame? | 01:09 |
*** nebajoth is now known as nebaway | 01:14 | |
cherez1 | llnz: The connection frame seems to... not do anything. | 01:18 |
cherez1 | The server is receiving it and identifying the protocol version, but it stops there. | 01:18 |
cherez1 | (That's sending a tp04 connection.) | 01:18 |
llnz | cherez1: will be around in an hours time? | 01:19 |
cherez1 | Sure. | 01:19 |
llnz | ok. I'll race home and I'll give you a hand | 01:22 |
llnz | bbs | 01:24 |
*** llnz has quit IRC | 01:24 | |
*** tansell-laptop has quit IRC | 01:37 | |
*** mithro has joined #tp | 01:49 | |
Greywhind | mithro: ping? | 02:30 |
tansell | Greywhind, pong - sorry I've been teaching a course all day | 02:34 |
Greywhind | tansell: no problem | 02:36 |
Greywhind | tansell: is there any way we could get either demo1 server restarted with the newest server version or get another server running that has a newer server version? | 02:37 |
tansell | Greywhind, why? | 02:38 |
Greywhind | tansell: i'm trying to test on Windows, but there seems to be some sort of issue with demo1's object list or something | 02:38 |
tansell | Greywhind, well your going to need to compile tpserver-cpp for windows to do the release anyway | 02:38 |
Greywhind | tansell: it gives me an error that ValueError: The object isn't new enough to update the dictionary with! Current 2009-08-11 17:55:09, update 2009-08-10 21:25:09 | 02:38 |
Greywhind | tansell: are there any instructions for compiling tpserver-cpp on windows? | 02:39 |
tansell | sure | 02:39 |
tansell | I can't remember where | 02:40 |
tansell | I think in the ./windows/ directory or something | 02:40 |
tansell | cherez1, sounds like your not sending the full packet | 02:40 |
Greywhind | tansell: do i need to build tpserver-cpp for Windows myself for the release, or does someone else have the capability to do that already? it sounds like a large setup. | 02:42 |
tansell | Greywhind, you'll need to do it | 02:43 |
tansell | you cross compile from Linux for Windows | 02:43 |
Greywhind | tansell: i didn't change tpserver-cpp though, so wouldn't someone else normally be in charge of doing tpserver-cpp builds? i can do it, but it seems like someone else would have done it before | 02:44 |
cherez1 | tansell: As far as I can tell, the packet is the length defined in the header, and it contains all the members that a connection frame has. | 02:44 |
cherez1 | Let me double check everything. | 02:45 |
tansell | you turn on debugging on both sides? | 02:46 |
cherez1 | On client side; I'm not sure how on the server. | 02:47 |
Greywhind | tansell: well, anyway, i guess i can reboot and try to cross-compile the server on linux... any idea what i'll need? | 02:47 |
cherez1 | Would it be this log_level value in the .conf? | 02:48 |
Greywhind | tansell: the readme says to get things from your blog... is that still valid? | 02:48 |
tansell | http://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpserver-cpp.git;a=blob;f=win32/README;h=592c7c52c099a8a485f2e0a67dd2d3cbabfc24f5;hb=f7260eaca02f94e0568e7182bdc18831087d194f | 02:48 |
tpb | <http://ln-s.net/3uYV> (at git.thousandparsec.net) | 02:48 |
tansell | should be | 02:48 |
*** jnengland77 has quit IRC | 03:02 | |
*** cherez1 has quit IRC | 03:58 | |
*** cherez has joined #tp | 03:58 | |
*** llnz has joined #tp | 03:58 | |
llnz | cherez: sorry, got held up | 03:59 |
cherez | llnz: No worries. | 03:59 |
cherez | To start a connection, should a TP04 client need to do any more than send a connection frame? | 04:00 |
llnz | yes, that's it | 04:02 |
llnz | ok | 04:02 |
llnz | can you try connecting to demo1 | 04:02 |
llnz | i'm watching | 04:02 |
llnz | humm... | 04:03 |
llnz | looks like the packet you send it either too short (length doesn't match the data length), or isn't flushed properly | 04:04 |
*** Greywhind has quit IRC | 04:04 | |
llnz | so... what do you send? | 04:05 |
cherez | 'TP\x04\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00)\x00\x00\x00\x15libtpproto2-py/0.4.0 ' | 04:05 |
cherez | I might be mistaken about that space at the end. | 04:06 |
cherez | Space was there; I removed it now. | 04:07 |
cherez | Without the space the string would be: | 04:10 |
cherez | 'TP\x04\x00\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00\x28\x00\x00\x00\x14libtpproto2\x2dpy\x2f0\x2e4\x2e0' | 04:10 |
cherez | \x28 should be the length, which comes to 40, and I count 40 characters in the string. | 04:10 |
llnz | hehe | 04:12 |
llnz | found the problem | 04:13 |
cherez | Gulp? | 04:14 |
llnz | that length should be 24 | 04:14 |
llnz | it's the length of the data, not the whole frame | 04:14 |
cherez | :( | 04:14 |
cherez | Well, I have a lot of code to fix. | 04:14 |
llnz | the xml doesn't say that clearly, but the older protocol docs do | 04:14 |
llnz | substract 16 | 04:15 |
llnz | subtract that is | 04:15 |
cherez | That actually shouldn't be much hassle.... | 04:16 |
*** mithro has quit IRC | 04:16 | |
cherez | Have to update all my unit tests. | 04:16 |
cherez | It worked! | 04:21 |
cherez | Thanks, llnz! | 04:21 |
llnz | cool | 04:21 |
cherez | Now, to strategically subtract 16 in my unit tests. | 04:21 |
llnz | do you have changes to protocol.xml? | 04:23 |
llnz | if you do, please change header to make the length field clear that it's only the data length | 04:23 |
cherez | Sure. | 04:23 |
cherez | After that I can push it tot he documents repo. That and fixing some name inconsistencies are all I did. | 04:24 |
*** mithro has joined #tp | 04:52 | |
tote | RULESET OPTIONS | 05:52 |
tote | Map (F): | 05:52 |
tote | what does that mean? | 05:52 |
llnz | tote: what context? | 05:54 |
tote | when i run risk with the SinglePlayer.py script in libtpclient-py | 05:54 |
llnz | oh, it's asking for a filename '(F)', that will be loaded as the map | 05:55 |
tote | okey, is it needed to play risk? | 05:57 |
llnz | apparently | 05:58 |
tote | hmm why is move order in risk of type list but it has no options :/ | 06:03 |
llnz | tote: i hope you are using the generic methods for all the generic bits, order descriptions, the option descriptions, etc | 06:04 |
tote | hmm? | 06:04 |
llnz | well... order desrcriptions tell you the type of the arguments each order needs | 06:05 |
llnz | the server sets them and sends them to the client | 06:05 |
tote | well my backend code works basicly the same as tpclient-pywx | 06:06 |
llnz | tpclient-pywx creates the gui fields for the order parameters on the fly | 06:07 |
llnz | it knows what each type needs | 06:07 |
tote | yeah, so do i | 06:07 |
llnz | oh | 06:08 |
llnz | sorry, i might have misunderstood your comment above | 06:08 |
tote | http://pastebin.com/d5b7ec2ac | 06:09 |
tpb | Title: pastebin - collaborative debugging tool (at pastebin.com) | 06:09 |
tote | this is why i send from my frontend to my backend | 06:09 |
tote | what* | 06:09 |
tote | wops, backend to frontend* | 06:09 |
tote | and builds up form elements based on what type of arguments there is | 06:10 |
tote | problem is i thought that list arguments would always have options, but it doesnt seem to have that | 06:11 |
llnz | odd | 06:13 |
tote | odd that i thought that or that it doesnt give me options? | 06:14 |
llnz | odd that it has no options | 06:16 |
llnz | but i guess that is possible | 06:16 |
tote | hmm now it seems that no orders has options | 06:16 |
tote | the build fleet order on the demo server worked yesterday but it doesnt work now | 06:16 |
tote | it gives no options | 06:16 |
tote | and i haven't changed my code since then | 06:16 |
llnz | hehe, it's getting more and more odd | 06:19 |
tote | i think i have found the error, its in my code (:P), if i check object.order_types how can i find the options for list args then? | 06:24 |
tote | only solution i can find atm is the dummy create all order_types and then use the default value for every argument and then remove the order | 06:25 |
llnz | ah, probe order was created just for that | 06:27 |
tote | probe order? | 06:28 |
llnz | send the default values for the order (frame type OrderProbe) to a specific object, and it returns an order with all the read-only fields *for that object* | 06:29 |
tote | hmm is there any code that uses it atm that i can look at? | 06:30 |
llnz | tpclient-pywx uses it | 06:31 |
llnz | but i don't know where to look for the calls to make it happen | 06:31 |
llnz | mithro: ping | 06:34 |
tote | "grep -nR 'OrderProbe' *" return no result in the pywx code, same with just probe | 06:37 |
llnz | grep for Order_Probe | 06:43 |
llnz | and there is something in libtpclient-py with orders_probe | 06:44 |
llnz | something in the cache | 06:44 |
CIA-26 | joelboh tpclient-pyweb * r8b9e6d30113f / (3 files in 2 dirs): Fixed a bug that made it impossible to send orders with no arguments. | 07:03 |
tote | i tried to create an Order_Probe object, but it only gave me the default values | 07:04 |
llnz | its the reply to sending the order_probe that you want | 07:04 |
tote | so i should apply the order_probe to cache? | 07:05 |
llnz | no idea, ask mithro | 07:06 |
tote | mithro: ping :) | 07:10 |
llnz | i might not be around much over the next few days | 07:55 |
* llnz wanders off | 07:56 | |
*** llnz has quit IRC | 07:56 | |
*** jmtan has joined #tp | 08:04 | |
*** alanp_ has joined #tp | 08:30 | |
*** nebaway is now known as nebajoth | 09:20 | |
*** jmtan has quit IRC | 09:52 | |
*** nebajoth is now known as nebaway | 09:59 | |
*** alanp_ has quit IRC | 10:05 | |
*** jmtan has joined #tp | 10:24 | |
*** gimpyfuzz has joined #tp | 13:18 | |
*** gimpyfuzz is now known as mhilmi | 13:19 | |
*** jmtan1 has joined #tp | 13:31 | |
*** jmtan has quit IRC | 13:31 | |
*** Greywhind has joined #tp | 13:48 | |
*** Erroneous has joined #tp | 13:49 | |
*** verhoevenv has joined #tp | 14:43 | |
*** verhoevenv has quit IRC | 15:30 | |
*** jernejovc_ has joined #tp | 15:41 | |
*** jernejovc has quit IRC | 15:42 | |
*** gimpster has joined #tp | 17:26 | |
*** mhilmi has quit IRC | 17:37 | |
tote | mithro: ping? :) | 18:01 |
*** jmtan1 has quit IRC | 18:54 | |
*** nebaway is now known as nebajoth | 19:00 | |
tote | mithro: i need to sleep, but i have one problem left, and i need to figure out how to use order probing, as i cannot send the right start values for list arguments from just order_types | 19:11 |
tote | mithro: hope we can talk about it tomorrow, in about 6-7 hours :) | 19:11 |
*** Erroneous has quit IRC | 19:27 | |
*** Erroneous has joined #tp | 20:05 | |
*** Erroneous has quit IRC | 20:13 | |
*** nebajoth is now known as nebaway | 20:17 | |
*** cherez1 has joined #tp | 20:38 | |
*** cherez has quit IRC | 20:38 | |
*** cherez1 has quit IRC | 20:39 | |
*** cherez has joined #tp | 20:39 | |
*** Erroneous has joined #tp | 21:09 | |
*** jmtan has joined #tp | 23:10 | |
*** gimpster is now known as mhilmi | 23:20 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!