![]() |
#151 | |
NGD·Studios
![]() Join Date: May 2007
Location: Wien, Österreich
Posts: 2,859
![]() ![]() |
![]() Quote:
Yes, there's an IP allow list, so you can send me your dynamic one just for a test. |
|
![]() |
![]() |
![]() |
#152 |
Master
![]() ![]() ![]() Join Date: Mar 2012
Location: Zagreb / Croatia
Posts: 578
![]() |
![]()
I recommend you writting a small proxy which will run on your VPS. Proxy accepts requests from your dev PC, forwards it to NGD's API server and sends response back to your PC. That's few lines of python code.
__________________
Slartibartfast / Slartibartflask / Phartiphukborlz / Slartibarbfast / Blart Versenwald :: The true Goat of Alsius
CoR Sentinel |
![]() |
![]() |
![]() |
#153 |
Master
![]() ![]() ![]() Join Date: Apr 2013
Location: Under your bed
Posts: 251
![]() |
![]()
It's not a massive problem - I'm just glad we've got an API. But it would make more sense to limit the requests to the server instead of an IP allow list.. especially if it's just transmitting information that can be publicly obtained through the website anyway. I might try and hit my ISP up for a static IP in any case. I'm paying them enough :P
__________________
|
![]() |
![]() |
![]() |
#154 |
Master
![]() ![]() ![]() Join Date: Mar 2007
Location: Germany
Posts: 254
![]() |
![]()
I just made a few tests with the API.
Looks quite well. You can check it out at: http://regnum-online.de/api/api.php It makes a request to the API every time you load the page. Of course it should store the data into my database in the future and only make a request every minute to be actual... I found a small error with the gems. So far, on Haven Syrtis has all Ignis gems, but the API says that Alsius has 1 Ignis gem. The same error occurs on the War-Status page here.
__________________
Webmaster of http://regnum-online.de/ |
![]() |
![]() |
![]() |
#155 |
NGD·Studios
![]() Join Date: May 2007
Location: Wien, Österreich
Posts: 2,859
![]() ![]() |
![]()
This is a known error, but it isn't in the API or the website. Somehow the game is storing it incorrectly.
|
![]() |
![]() |
![]() |
#156 |
Master
![]() ![]() ![]() Join Date: Jan 2009
Posts: 395
![]() |
![]()
You can with easy convert xml to json or JSON to XML with xml2json.
So not matter what kind of format you use ,but lets say good that finaly there is a official API ![]() There was no barrier before to get this data before ,using cURL,grep,scraperwiki,DOM php selector ..etc and export them as json or xml from main site ..the issue is if main site is real time or not ,or is cached or not ... hopping this API is more real time ...
__________________
Blue Angel lvl 60 lock,Red Devil lvl 52 conjurer, The-End lvl 60 barb,The End lvl 60 marks ,Sir Doran- Knight |
![]() |
![]() |
![]() |
#157 |
Master
![]() ![]() ![]() Join Date: Apr 2013
Location: Under your bed
Posts: 251
![]() |
![]()
Getting the world status (ie: Online/Offline/Under Maintenance) is Real time. Getting the war status is updated every minute, as far as I understand it.
__________________
|
![]() |
![]() |
![]() |
#158 | |
Master
![]() ![]() ![]() Join Date: Mar 2007
Location: Germany
Posts: 254
![]() |
![]() Quote:
I would search like hell to fix this... (if it would be in my own programs, scripts... ) Right... Seems to be the most actual... Real time would be better but I think it would hurt the server ^^
__________________
Webmaster of http://regnum-online.de/ |
|
![]() |
![]() |
![]() |
#159 |
NGD·Studios
![]() Join Date: May 2007
Location: Wien, Österreich
Posts: 2,859
![]() ![]() |
![]() |
![]() |
![]() |
![]() |
#160 |
Master
![]() ![]() ![]() Join Date: Jun 2007
Posts: 375
![]() |
![]()
Any plans on adding the events section back?
|
![]() |
![]() |
![]() |
|
|