Custom API

CivAPI557

Chieftain
Joined
Oct 11, 2016
Messages
2
I'm a backend developer with great passion for Civ. I have been playing it since the first version came out and "just one more turn" has kept me awake quite a few nights. I made a similar thread on Reddit and I was referred to this forum.

I have never been fond of the multiplayer system, which requires you to have all players present in the game at all times or you have to stuff in a dedicated server with quite high hardware capabilities in a closet just to be able to play.

So, for this version (civ 6), I am designing an API, using a stack composed of node.JS/express/redis. Basically a REST interface on which you can play the game.

This opens up a few important things to me:
  • I can design the client however I want.
  • I can automate things that are repetitive.
  • I can try to make an AI based off machine learning.
  • I can play with my friends without having to have a powerful/error prone server running.
  • I can play a full-featured version on my mobile.
  • I can easily make balance modifications so that each civ feels playable.
Since I don't have a pre-release of the game; I have been mainly watching filthyrobot and marbozir to fill up with information about the game.

Finding the formulas behind the game is paramout to my success. I would like to get help to find out more about the inner workings of civilization from more experienced players. Especially if you have a prerelease of the game.

The game engine is written in microservices, each handling specific tasks. So far I have completed the game lobby, simple map service, simple unit service, tech tree and all districts, buildings and wonders. I do mocha testing to ensure I don't break things and to ensure my reverse-engeering is still working with the discoveries I have made so far.

I'm currently working on adding civics and government.

I've found some sites with information about civ 6, but most of it is lacking in detail. To be specific, what stats does the Palace that comes with the City Center have? So far I have guessed it adds 2 Production, 1.9 Science, 5 gold, 1 culture and 3 defence. It's probably 2 science, but I have not fully been able to replicate the science per population formula to match the videos online.

Sidenote 1: I have pre-ordered and will be playing the original version as well; but I still feel the multiplayer version is not good enough for me. Plus it's a fun project to work on.

Sidenote 2: I am aware that I am working of rulesets that are in the prerelease, and I might have to change them after the game is released in 10 days, but it should not be too hard to change; basically all information is in JSON and can be easily adjusted.

Anyone willing to help me out figuring out the rules of the game? What currently have me puzzled is how Tourism works. I have not dived too deep into that, but after I finish all the civics I will look into that.
 
Back
Top Bottom