This forum is closed for posting. Please, join us in our Discord server at discord.gg/regnum. See you there!

Go Back   Champions of Regnum > English > Technical Support

Technical Support Questions about game technical support to the users of the community

Reply
 
Thread Tools Display Modes
Old 04-09-2017, 11:30 AM   #1
kamax
Master
 
kamax's Avatar
 
Join Date: Oct 2007
Location: france
Posts: 397
kamax is on a distinguished road
Default API for War Status ?

Hello,

It would be nice to make the war status API public. I need it in android / iphone app i have build and want to refresh.

I already have some old info but it would be nice to have the latest and full info. I already have MP a guy from NGD but he no more reply.

Can someone give me this API that i can refresh my smartphone apps ?
kamax no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 01:24 PM   #2
Slartibartfast
Master
 
Slartibartfast's Avatar
 
Join Date: Mar 2012
Location: Zagreb / Croatia
Posts: 578
Slartibartfast is on a distinguished road
Default

You should contact Adrian for all questions regarding API.
__________________
Slartibartfast / Slartibartflask / Phartiphukborlz / Slartibarbfast / Blart Versenwald :: The true Goat of Alsius
CoR Sentinel
Slartibartfast no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 02:00 PM   #3
kamax
Master
 
kamax's Avatar
 
Join Date: Oct 2007
Location: france
Posts: 397
kamax is on a distinguished road
Default

Yes Adrian, i'll try again to contact him.
He give me some info in 2013.

Are you the owner of regnum sentinel website ?
Is boss respawn time in the API ?
kamax no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 02:07 PM   #4
Slartibartfast
Master
 
Slartibartfast's Avatar
 
Join Date: Mar 2012
Location: Zagreb / Croatia
Posts: 578
Slartibartfast is on a distinguished road
Default

Yes, I created regnumsentinel. And no, there is no boss info in API.
__________________
Slartibartfast / Slartibartflask / Phartiphukborlz / Slartibarbfast / Blart Versenwald :: The true Goat of Alsius
CoR Sentinel
Slartibartfast no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 02:16 PM   #5
kamax
Master
 
kamax's Avatar
 
Join Date: Oct 2007
Location: france
Posts: 397
kamax is on a distinguished road
Default

How do you get boss respawn time then ?
kamax no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 03:56 PM   #6
Slartibartfast
Master
 
Slartibartfast's Avatar
 
Join Date: Mar 2012
Location: Zagreb / Croatia
Posts: 578
Slartibartfast is on a distinguished road
Default

Quote:
Originally Posted by kamax View Post
How do you get boss respawn time then ?
Bosses respawn in 109 hours interval, so I do the math.
__________________
Slartibartfast / Slartibartflask / Phartiphukborlz / Slartibarbfast / Blart Versenwald :: The true Goat of Alsius
CoR Sentinel
Slartibartfast no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 09:12 PM   #7
kamax
Master
 
kamax's Avatar
 
Join Date: Oct 2007
Location: france
Posts: 397
kamax is on a distinguished road
Default

Oh i see and you have to adjust every time the server reboot. It's a lot of work.
kamax no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 10:26 PM   #8
Slartibartfast
Master
 
Slartibartfast's Avatar
 
Join Date: Mar 2012
Location: Zagreb / Croatia
Posts: 578
Slartibartfast is on a distinguished road
Default

Quote:
Originally Posted by kamax View Post
Oh i see and you have to adjust every time the server reboot. It's a lot of work.
Not really, it's all fully automated. My site requires zero maintenance.
__________________
Slartibartfast / Slartibartflask / Phartiphukborlz / Slartibarbfast / Blart Versenwald :: The true Goat of Alsius
CoR Sentinel
Slartibartfast no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 10:39 PM   #9
kamax
Master
 
kamax's Avatar
 
Join Date: Oct 2007
Location: france
Posts: 397
kamax is on a distinguished road
Default

Oh yes, you can check if the server is down since you probably have a script that run 24/24h. I had the smartphone wayin mind and i probably can't check if server is down all the time with a smartphone.
kamax no ha iniciado sesión   Reply With Quote
Old 04-09-2017, 11:05 PM   #10
Slartibartfast
Master
 
Slartibartfast's Avatar
 
Join Date: Mar 2012
Location: Zagreb / Croatia
Posts: 578
Slartibartfast is on a distinguished road
Default

Smartphone application is not enough for this. You need the server which will pull war status once a minute from NGD's server, store data and serve it to your mobile application. You can't access directly to NGD's servers from your application because of:

1. Access to NGD's server is limited from one IP only
2. There is API call limit, i think it's 60 calls per hour

Practically, you have a single API command - get_world_status which returns something like:

Code:
{
    "haven": {
        "capture_owners": {
            "alsius_castle_capture_point": "alsius",
            "alsius_door_capture_point": "alsius",
            "alsius_fort_1_capture_point": "alsius",
            "alsius_fort_2_capture_point": "alsius",
            "ignis_castle_capture_point": "ignis",
            "ignis_door_capture_point": "ignis",
            "ignis_fort_1_capture_point": "ignis",
            "ignis_fort_2_capture_point": "ignis",
            "syrtis_castle_capture_point": "syrtis",
            "syrtis_door_capture_point": "alsius",
            "syrtis_fort_1_capture_point": "alsius",
            "syrtis_fort_2_capture_point": "alsius"
        },
        "gem_owners": {
            "gem_altar_alsius_1": "alsius",
            "gem_altar_alsius_2": "alsius",
            "gem_altar_ignis_1": "alsius",
            "gem_altar_ignis_2": "ignis",
            "gem_altar_syrtis_1": "syrtis",
            "gem_altar_syrtis_2": "syrtis"
        },
        "relic_owners": {
            "realm_relic_aggersborg": "realm_relic_altar_aggersborg",
            "realm_relic_algaros": "realm_wall_power_source_syrtis_3",
            "realm_relic_eferias": "realm_relic_altar_eferias",
            "realm_relic_herbred": "realm_wall_power_source_syrtis_2",
            "realm_relic_imperia": "realm_relic_altar_imperia",
            "realm_relic_menirah": "realm_relic_altar_menirah",
            "realm_relic_samal": "realm_relic_altar_samal",
            "realm_relic_shaanarid": "realm_relic_altar_shaanarid",
            "realm_relic_trelleborg": "realm_relic_altar_trelleborg"
        }
    }
}
And that's all the info you will get from API. All other higher level data should be derived from it.

Good luck
__________________
Slartibartfast / Slartibartflask / Phartiphukborlz / Slartibarbfast / Blart Versenwald :: The true Goat of Alsius
CoR Sentinel
Slartibartfast no ha iniciado sesión   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:19 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2016 © All rights reserved