*** tpb has joined #tp | 00:00 | |
-barjavel.freenode.net- [freenode-info] channel flooding and no channel staff around to help? Please check with freenode support: http://freenode.net/faq.shtml#gettinghelp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
glew | hi llnz, thanks for the insight on the XML problem, i'll look into it | 00:45 |
---|---|---|
*** Greywhind has quit IRC | 02:15 | |
*** verhoevenv has quit IRC | 02:35 | |
*** Linkadmin has quit IRC | 03:21 | |
*** JohnSGalt has joined #tp | 03:28 | |
*** StrangerDanger has quit IRC | 03:28 | |
*** Greywhind has joined #tp | 04:00 | |
llnz | adding interplayer boards is hard | 05:47 |
*** glew has quit IRC | 05:51 | |
*** mithro has joined #tp | 05:58 | |
*** Linkadmin has joined #tp | 06:01 | |
*** JohnSGalt is now known as StrangerDanger | 07:00 | |
*** null_000 has joined #tp | 07:15 | |
*** mithro has quit IRC | 07:32 | |
*** StupidIncarnate has joined #tp | 07:39 | |
StupidIncarnate | llnz? | 07:43 |
llnz | hi StupidIncarnate | 07:43 |
StupidIncarnate | hey | 07:43 |
StupidIncarnate | actually this is probably a tansell question | 07:44 |
StupidIncarnate | well, do you know python llnz+ | 07:46 |
StupidIncarnate | ? | 07:46 |
llnz | yes, i do know python | 07:46 |
StupidIncarnate | I loaded up the current server set to mtsec, and I get this error when I try to launch tpclient-pweb http://pastebin.com/fLnh3SbR | 07:47 |
tpb | Title: Python | Traceback (most recent call la - Anonymous - fLnh3SbR - Pastebin.com (at pastebin.com) | 07:47 |
StupidIncarnate | minisec works for me | 07:47 |
llnz | odd | 07:52 |
llnz | which branches of libtpclient-py, libtpproto-cpp and tpserver-cpp | 07:54 |
StupidIncarnate | most recent tpserver branch where it fixes mtsec | 07:55 |
StupidIncarnate | for the libs.... | 07:55 |
StupidIncarnate | apparently a very old branch. Let me check those out | 07:57 |
llnz | master of tpserver-cpp is better | 07:58 |
StupidIncarnate | I think i have the master | 07:58 |
llnz | ok | 07:58 |
StupidIncarnate | what's the git command line to check? | 07:58 |
llnz | git branch | 07:59 |
StupidIncarnate | git status says I'm on master | 07:59 |
llnz | ok | 07:59 |
StupidIncarnate | :/ actually, i think this is the most recent update for the branch Im on which is tp04 | 08:07 |
StupidIncarnate | I'm not completely sure, but that's what it looks like | 08:07 |
StupidIncarnate | what branch are you on llnz for libtpclient-py? | 08:10 |
*** intimidckfan has joined #tp | 08:11 | |
*** intimidckfan has quit IRC | 08:22 | |
llnz | tp04 | 08:26 |
*** cahirwpz has joined #tp | 08:30 | |
StupidIncarnate | llnz, so I'm looking at git gui's visual history. It says that the last change was "Quote the username/password" | 09:48 |
StupidIncarnate | for libtpclient | 09:49 |
llnz | StupidIncarnate: same | 09:52 |
StupidIncarnate | k, then I don't know | 09:52 |
llnz | it's going to be hard to add interplayer boards | 10:02 |
llnz | they are kind of set up wrong | 10:02 |
StupidIncarnate | hmmm? is that a feature of mtsec? | 10:03 |
llnz | i was going to add them to minisec to test | 10:03 |
llnz | i can't remember who asked for it | 10:03 |
StupidIncarnate | no idea what interplayer boards are | 10:05 |
llnz | message boards that players share to communicate with each other | 10:07 |
StupidIncarnate | i didn't think the server could do that | 10:07 |
llnz | it can't yet | 10:42 |
*** mithro has joined #tp | 11:17 | |
* llnz wanders off | 11:24 | |
llnz | later all | 11:24 |
*** llnz has quit IRC | 11:24 | |
*** mithro has quit IRC | 14:18 | |
*** verhoevenv has joined #tp | 14:56 | |
*** null_000 has quit IRC | 15:55 | |
*** epyon-sa2ura has quit IRC | 16:03 | |
*** mithro has joined #tp | 16:13 | |
*** mithro has quit IRC | 16:16 | |
StupidIncarnate | tansell? | 16:18 |
*** mithro has joined #tp | 16:31 | |
*** mithro has quit IRC | 16:37 | |
*** mithro has joined #tp | 16:38 | |
*** mithro has quit IRC | 16:46 | |
*** cahirwpz has quit IRC | 16:51 | |
*** Agon has joined #tp | 16:53 | |
*** glew has joined #tp | 17:33 | |
*** cahirwpz has joined #tp | 18:04 | |
*** Agon has quit IRC | 18:31 | |
*** verhoevenv has quit IRC | 19:15 | |
*** verhoevenv has joined #tp | 19:16 | |
*** verhoevenv has quit IRC | 19:58 | |
*** verhoevenv has joined #tp | 20:06 | |
*** llnz has joined #tp | 20:14 | |
llnz | morning all | 20:14 |
glew | hi llnz | 20:17 |
llnz | hi glew | 20:18 |
ezod | glew: so any progress on save/load in libtpclient-py? | 20:42 |
glew | ezod: I've had some headway into it, but mostly i've found some issues that i need to address in the persistence module and I found my problem in running MTsec | 20:43 |
glew | i'm still in the process or working in the __main__ block of SinglePlayer.py to work on loading | 20:43 |
ezod | that should be really simple | 20:46 |
glew | what part, the loading part in SinglePlayer.py's main block? | 20:46 |
ezod | yeah | 20:46 |
ezod | Load game? -> yes = load a file dialog (or prompt for filename, in this case) and call load() function, no = do the setup process | 20:47 |
glew | yup | 20:47 |
glew | so i can write the load() function within SinglePlayerGame, right? | 20:48 |
ezod | yes, imo save() and load() should be member functions of SinglePlayer | 20:48 |
ezod | btw, regarding the version compatibility stuff, the DTD for singleplayer xml is located in the "web" repo, under downloads/tpconfig.dtd | 20:49 |
ezod | i can take care of adding the appropriate stuff to that, and to the XML for various components | 20:50 |
ezod | so you don't have to fork all those repos on github yourself | 20:50 |
ezod | you can either send me patches (git has functionality to export them) or just tell me how you want it to look | 20:51 |
glew | ok, so you're saying i can access version information from the web repos | 20:51 |
ezod | not really | 20:58 |
ezod | i'm saying you need to look in the XML config for the components | 20:58 |
ezod | (don't have to worry about this initially) | 20:58 |
ezod | like, each server, ai, and ruleset has an xml file that describes it for singleplayer purposes | 20:59 |
ezod | and the tpconfig.dtd describes how that file is structured | 20:59 |
glew | alright, I know what you're talking about now | 20:59 |
ezod | so since you are going to have to add a field to the effect of "minimum version that this version of the <server,ai,ruleset> is compatible with saved games from" | 21:00 |
ezod | that has to be put in the DTD, as well as all the existing XML files | 21:00 |
ezod | and also somehow incorporated into the xml import code in SinglePlayer.py... | 21:01 |
ezod | i can help with that part | 21:01 |
glew | ok so just to make sure i'm following what you're saying | 21:01 |
glew | I know i need to have the "minimum version compatible with this save for each component (server, ai, ruleset)" | 21:02 |
glew | and this can be obtained from the XML files | 21:02 |
glew | for each component | 21:02 |
ezod | ya | 21:02 |
ezod | so the process would go like this | 21:02 |
glew | but what definition has to be added to the DTD, a field for compatibility? | 21:03 |
ezod | ya | 21:03 |
ezod | say you're playing a game: serverA version X, rulesetB version Y, aiclientC version Z | 21:04 |
ezod | you save it | 21:04 |
ezod | so singleplayer table in sqlite stores those component names and their versions | 21:04 |
ezod | so when you load, before configuring all those components, you need to check: | 21:04 |
ezod | (a) whether the person has serverA | 21:04 |
ezod | (b) whether the version of serverA the person has is compatible with saves from version X | 21:05 |
ezod | and same for rulesetB and aiclientC | 21:05 |
glew | ok, makes sense | 21:06 |
ezod | that can all be obtained from the XML already, except there is no compatibility field | 21:06 |
ezod | so that's all that needs to be added | 21:06 |
glew | right, so the compatibility field would likely either contain up to what previous version it is compatible with, or explicitly what versions its compatible with | 21:07 |
ezod | yeah, i'll leave it up to you to determine whether the explicit thing is necessary | 21:08 |
ezod | just because my gut says it's not and it would be harder to parse ;) | 21:09 |
glew | thats what i was thinking, but i'm not sure how future "backwards" compatibility will work out, but we'll hope for the best | 21:09 |
ezod | i just can't see there being a version in between that's incompatible, know what i mean? | 21:11 |
glew | I know what you mean, I don't think it will be a problem | 21:12 |
glew | ezod: i have a question about the problem I found when trying to run MTsec | 21:14 |
glew | the reason i wasn't able to start a server with MTsec was because it requires a gamedata_file parameter | 21:15 |
glew | this is defined in one of the quickstart definitions for tpserver-cpp | 21:16 |
glew | but I didn't find this parameter in the xml file for tpserver-cpp-mtsec | 21:16 |
glew | (i think thats the name of the file) | 21:16 |
glew | So I was wondering if it should be a parameter or a forced parameter? | 21:16 |
ezod | perhaps it should | 21:17 |
ezod | llnz or alanp would know better than i | 21:18 |
llnz | glew: i guess tpserver-cpp is installed, correct? | 21:18 |
llnz | what prefix did you use? | 21:18 |
glew | um, recently i don't think i specified one when installing | 21:19 |
llnz | /usr/local then | 21:19 |
glew | so if i'm following what your saying, its defaulting to /usr/local/share | 21:19 |
glew | yeah | 21:19 |
llnz | what is in /usr/local/share/tp/ ? | 21:20 |
glew | um for me, daneel-ai.xml, a risk map, tpservre-cpp.xml, tpserver-cpp-minisec.xml, tpserver-cpp-mtsec.xml, tpserver-cpp-mtsec-gamedata.xml, tpserver-cpp-rtts.xml, tpserver-cpp-risk.xml, and tpserver-cpp-tae.xml | 21:21 |
ezod | that's the singleplayer xml stuff | 21:22 |
ezod | for the most part | 21:22 |
llnz | there is your tpserver-cpp-mtsec-gamedata.xml | 21:22 |
glew | right, so in the past when i've tried to start a SinglePlayer game with MTsec, it would crash becausse the tpserver-cpp-mtsec-gamedata.xml file wasn't specified | 21:23 |
glew | the xml definition for tpserver-cpp-mtsec.xml includes a parameter for components file | 21:24 |
glew | but this is passed by --components_file | 21:24 |
glew | --gamedata_file is the parameter that is necessary ( think it contains both the components and hte properties) | 21:24 |
llnz | yeah, that looks like the problem | 21:25 |
ezod | easy to fix | 21:33 |
ezod | is it always going to be tpserver-cpp-mtsec-gamedata.xml? | 21:33 |
ezod | (for mtsec) | 21:33 |
ezod | if so, just add that forced param to the .xml.in for mtsec with the appropriate path variable etc. | 21:34 |
ezod | otherwise you can make it a variable parameter with that as the default? | 21:34 |
glew | i think so, and by what llnz was saying earlier, for SinglePlayer it should be located in /usr/local/share/tp/ | 21:34 |
*** cahirwpz has quit IRC | 22:09 | |
*** glew has quit IRC | 23:05 | |
*** glew has joined #tp | 23:07 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!