Discussion in 'Infinity Army' started by harl3quin, Feb 15, 2019.
just wondering if there is an API i could interact with :)
You can download the JSON files that contain the data, but there's no API.
where is it? and is it up to date?
It is actually an JScript file, so you have to remove the JSON_UNIDADES = ' at the beginning and the '; at the end to get the JSON
could you give me an example url?
for now i only managed to get
<edit> found it!, thanks
What exactly are the valid Army_ID'S?
Neo Terra 104
Yu Jing 201
You can find the ID in the corresponding faction logo of the forum export of Infinity Army
I find IDs 404 and 405 quite interesting.
They cut the files. What were they fore?
And now I'm dreaming about a web app to
automate all dice rolls between two given army lists.
All available faction IDs can also be found in the translation file
- in the JSON_SECTORIAL_NOMBRE section:
"idSectorial_901" : "Non-Aligned Armies"
"idSectorial_902" : "Druze Bayram Security"
"idSectorial_903" : "Japanese Secessionist Army"
"idSectorial_904" : "Ikari Company"
"idSectorial_905" : "Starco. Free Company of the Star"
"idSectorial_101" : "PanOceania"
"idSectorial_102" : "Shock Army of Acontecimento"
"idSectorial_103" : "Military Orders"
"idSectorial_104" : "Neoterran Capitaline Army"
"idSectorial_105" : "Varuna Immediate Reaction Division"
"idSectorial_201" : "Yu Jing"
"idSectorial_202" : "Imperial Service"
// "idSectorial_203" : "Japanese Sectorial Army"
"idSectorial_204" : "Invincible Army"
"idSectorial_301" : "Ariadna"
"idSectorial_302" : "Caledonian Highlander Army"
"idSectorial_303" : "Force de Réponse Rapide Merovingienne"
"idSectorial_304" : "USAriadna Ranger Force"
"idSectorial_305" : "Tartary Army Corps"
"idSectorial_401" : "Haqqislam"
"idSectorial_402" : "Hassassin Bahram"
"idSectorial_403" : "Qapu Khalqi"
"idSectorial_501" : "Nomads"
"idSectorial_502" : "Jurisdictional Command of Corregidor"
"idSectorial_503" : "Jurisdictional Command of Bakunin"
"idSectorial_504" : "Jurisdictional Command of Tunguska"
"idSectorial_601" : "Combined Army"
"idSectorial_602" : "Morat Aggression Force"
"idSectorial_603" : "Shasvastii Expeditionary Force"
"idSectorial_604" : "Onyx Contact Force"
"idSectorial_701" : "ALEPH"
"idSectorial_702" : "Steel Phalanx"
"idSectorial_703" : "Operations Subsection of the S.S.S."
"idSectorial_801" : "Tohaa"
I've stumbled upon this post, so I though that it would be worth mentioning that I'm working on making a public API out of the infinity army JSON files.
If anyone wants to check it out (though it's not even close to being finished yet, so far I've finished parsing the JSON and right now I'm working in structuring the data into a sqlite database so you can make queries on it) here's the link:
You can also use what I have in there so far to fetch all their files and generate properly formatted individual JSON files (run fetcher.py)
Have a nice day!
love it, looking forward to it!
Not sure if this is OT or not:
I just had the idea to build a „NA2 sectorial creator“ in the sense that I‘d like to create a clone of Army in which I add a new sectorial with units from different factions and self written link team rules.
I‘m pretty clueless about programming outside of some science stuff, so I was hoping I might be able to reuse lots of the army code base. Are there ways to do so or is there nothing aside from this JSON file which in the end just has profile values etc?
Or maybe to clarify:
I feel like the only thing necessary to create a new sectorial would be to add the required data into the data bank that seems to be in the JSON file and then get army to load the new file instead of the standard one. Does that sound about right?
Thanks for doing this!
I am pretty new to this, so I'm not sure how to work with the provided files. So far, I managed to clone the github repository into my Pycharm CE, install the required packages and run fetcher.py without any errors. I feel like the next step would be to to put a command like this one
store_remote_data('https://army.infinitythegame.com/im...,'testJSONfile','Users/XXXXX/PycharmProjects/') into the Python console, or maybe something like fetch_json('idSectorial_701').
Does anyone have the commands necessary to create that database?
We tried to create something like that with @Magonus. Unfortunately, being the only coder and having other priorities and interests in life, along with supposedly low interest in the project and upcoming updates for Tohaa (at the time) and dealing with print layouts had me burn out.
If there is another coder who would like to share the workload, I'd consider another attempt to finish the project, but there has been no interest so far.