nuciluc 10 Posted October 30, 2013 Hi all, in the past I follow the code development of your proxy server on code.google.com I used it to make a personal small mirror with a different policy regarding records expire date and I had fun studying automatic update procedures. With XVM-5.0.1-test1 I can see that your proxy are using 2.0 API but I can not find any update on proxy code on site. You will be release updated code or you will keep it secret? Thank you very much Share this post Link to post Short link Share on other sites
Mr A 750 #118656 Posted October 30, 2013 https://bitbucket.org/iBat/nodejs-xvm-proxy 1 Share this post Link to post Short link Share on other sites
nuciluc 10 #118678 Posted October 30, 2013 https://bitbucket.org/iBat/nodejs-xvm-proxy thank you very much Is it possible to partecipate in discussion about this code? I'm sorry but I can't partecipate in Russian :( I see that in config file API version is 2.0, but there is not APP ID in URL so every update request fail Share this post Link to post Short link Share on other sites
Mr A 750 #119022 Posted October 30, 2013 I'm sorry but I can't partecipate in Russian You can write in English. but there is not APP ID Recieved here for RU. More info here. Share this post Link to post Short link Share on other sites
nuciluc 10 #119229 Posted October 30, 2013 (edited) test in progress... I put EU appID on config/config.json and now I receive this error: TypeError: Cannot read property 'type' of undefined at /xvm/proxy2/updater.js:278:47 at Array.forEach (native) at createFromHttp (/xvm/proxy2/updater.js:276:16) at /xvm/proxy2/updater.js:145:30 at /xvm/proxy2/updater.js:235:9 at /xvm/proxy2/node_modules/async/lib/async.js:530:17 at /xvm/proxy2/node_modules/async/lib/async.js:116:25 at /xvm/proxy2/node_modules/async/lib/async.js:24:16 at Request._callback (/xvm/proxy2/node_modules/async/lib/async.js:527:21) at Request.self.callback (/xvm/proxy2/node_modules/request/request.js:129:22) Edited October 31, 2013 by nuciluc Share this post Link to post Short link Share on other sites
iBat 392 #119402 Posted October 31, 2013 test in progress... I put EU appID on config/config.json and now I receive this error: TypeError: Cannot read property 'type' of undefined at /xvm/proxy2/updater.js:278:47 at Array.forEach (native) at createFromHttp (/xvm/proxy2/updater.js:276:16) at /xvm/proxy2/updater.js:145:30 at /xvm/proxy2/updater.js:235:9 at /xvm/proxy2/node_modules/async/lib/async.js:530:17 at /xvm/proxy2/node_modules/async/lib/async.js:116:25 at /xvm/proxy2/node_modules/async/lib/async.js:24:16 at Request._callback (/xvm/proxy2/node_modules/async/lib/async.js:527:21) at Request.self.callback (/xvm/proxy2/node_modules/request/request.js:129:22) Do you got message Tanks list updated after updater.js start? Share this post Link to post Short link Share on other sites
nuciluc 10 #119499 Posted October 31, 2013 (edited) yes, I clear all log and run updater.js {"level":"info","message":"MongoDB connected: xvm","timestamp":"2013-10-31T08:52:36.191Z"} {"level":"info","message":"Tanks list updated","timestamp":"2013-10-31T08:52:36.249Z"} {"level":"info","message":"[UPDATER] no more players for update for server RU.... Cooldown","timestamp":"2013-10-31T08:52:36.475Z"} {"level":"info","message":"[UPDATER] no more players for update for server KR.... Cooldown","timestamp":"2013-10-31T08:52:36.477Z"} {"level":"info","message":"[UPDATER] no more players for update for server US.... Cooldown","timestamp":"2013-10-31T08:52:36.478Z"} {"level":"info","message":"[UPDATER] no more players for update for server SEA.... Cooldown","timestamp":"2013-10-31T08:52:36.479Z"} {"level":"info","message":"[UPDATER] no more players for update for server VTC.... Cooldown","timestamp":"2013-10-31T08:52:36.480Z"} {"level":"info","message":"[UPDATER] fetched new players for server EU","timestamp":"2013-10-31T08:52:36.487Z"} after that I receive the error I posted before and node die node version 0.10.18, should I change it ? EDIT: I tried to use development files instead of default ones and it seems work EDIT2: no same error :( EDIT3: go back to default branch, modified commandController.js from http://api.worldoftanks.ru/2.0/encyclopedia/tanks/ to http://api.worldoftanks.eu/2.0/encyclopedia/tanks/ no error, but every request fail.. too many request and API server timeout Edited October 31, 2013 by nuciluc Share this post Link to post Short link Share on other sites
iBat 392 #119586 Posted October 31, 2013 I need more research for this issue. Share this post Link to post Short link Share on other sites
nuciluc 10 #119591 Posted October 31, 2013 decreased intensity on config/config.json to 2 and changed updater.js var intensity = Math.ceil(1000 / (server.intensity || 5)); to var intensity = Math.ceil(1000 / (server.intensity)); testing in progress... Share this post Link to post Short link Share on other sites
nuciluc 10 #122391 Posted November 4, 2013 (edited) #@iBat it seems that new proxy code do not add new players, I'm right ? Edited November 4, 2013 by nuciluc Share this post Link to post Short link Share on other sites
nuciluc 10 #128088 Posted November 18, 2013 thank you iBat for yesterday commits.. they partially solve my problems on update Share this post Link to post Short link Share on other sites
bounceplink 2 #128715 Posted November 20, 2013 I saw in WG news for ASIA server they are taking the API down for maintenance for two hours. Perhaps we are in for a fix after all this while? Share this post Link to post Short link Share on other sites
nuciluc 10 #145712 Posted January 15, 2014 I solve update issue with a little workaround (but I have less and less requests from master XVM server). I put server code on another little server, using the same DB and doing reverse update with different IP and different appID. So first update script use this query missed.find({ _id: { $gte: limits.min, $lte: limits.max }}, { _id: 1 }).sort({ dt: 1 }).limit(config.get("updater:playersPoolSize")); second one use this missed.find({ _id: { $gte: limits.min, $lte: limits.max }}, { _id: 1 }).sort({ dt: -1 }).limit(config.get("updater:playersPoolSize")); I update 4 records every 5 seconds for server and during night all queue goes away. Hope this can help somehow Share this post Link to post Short link Share on other sites
nuciluc 10 #149167 Posted January 28, 2014 I found that problem is on WN8 calculation: WG often send damage_dealt=0 for every tank and WN8 calculation fail so I deactivate WN8 on server side to keep other data updated. Hope it can help Share this post Link to post Short link Share on other sites
nuciluc 10 #168237 Posted April 12, 2014 dear @iBat, @sirmax, , , I'm following this project from more than a year, especially XPM and server side code.I learned a lot of things regarding json, javascript, python, mongodb, java and tuning web-apps.Yesterday I found that java-xvm repository moved or was hidden. I would like to contribute somehow, because I love opensource projects.It will be possible?I don't know Russian (I would a bit [] ) but I can read/write English without problems. In the meantime I suggest some entries for XVM Italian translation on by-reservation.com I wait your answer. Share this post Link to post Short link Share on other sites
Mr A 750 #168241 Posted April 12, 2014 (edited) java-xvm nodejs-xvm-proxy ? Other repo is: d-xvm-proxy Edited April 12, 2014 by Mr A Share this post Link to post Short link Share on other sites
nuciluc 10 #168308 Posted April 12, 2014 api 3.0 are with java-xvm, nodejs-xvm are with 2.0 by the way, I'm asking you if I could help somehow testing or review code ? server tuning ? Share this post Link to post Short link Share on other sites
13 3,395 #168330 Posted April 13, 2014 Sorry, but we don't provide support to server-side code. Also, java-xvm code will be not published and was be written only for our internal use. Thanks for your suggestion of help, but currently we don't need any help with server-side code. But we'll keep in mind your suggestion. If you want to help our project, you can write code for new XVM features, or help us with translation to italian for docs and official xvm website. Thanks for your message. Share this post Link to post Short link Share on other sites
nuciluc 10 #168363 Posted April 13, 2014 I don't need any support to server code. I wrote to Sirmax, he told me to write here. I have a copy of java-xvm source code, I tested and tuned a bit. But now you close-source it, so I will not use it anymore, because I can not update it. I start learning proxy code because you often have problem on your server. And now you have problems, again.. I will continue to stand by, working with servers is my primary job. Share this post Link to post Short link Share on other sites