Earth Empires Non-Player-Country Project!
TO RUN ON LINUX:
-
Clone the project from github: https://github.com/jhaagsma/ee_npc
-
Copy config_example.php to config.php and fill out your information (see 2.1)
2.1) Go to http://www.earthempires.com/ai/api and Generate an API Key if you don't have one
-
Install php if you don't already have it; on ubuntu sudo apt-get install php
-
Run ee_npc.php in the terminal: ./ee_npc
-
To Stop it go Control-C
-
Login and see the AI Dev forum for discussion http://www.earthempires.com/forum/ai-development or view the API details at http://www.earthempires.com/api
TO RUN ON WINDOWS:
-
DOWNLOAD PHP FOR WINDOWS: http://windows.php.net/download/
-
Extract the zip to C:\php
2.1) The name is important! For some reason it didn't like it when i called it PHP5 for example
-
Go to C:\php\ext and COPY php_curl.dll; PASTE it into C:\php
-
OPEN php.ini-development in an editor (notepad)
-
Find the line: ;extension=php_curl.dll
-
Remove the leading semi-colon / Change it to: extension=php_curl.dll
-
Save the changed file as C:\php\php.ini
-
DOWNLOAD the x86 version of the MS VC package: http://www.microsoft.com/download/details.aspx?id=30679
-
Install it!
-
Go to http://www.earthempires.com/ai/api and Generate an API Key
-
Download or clone the ee_npc project from github: https://github.com/jhaagsma/ee_npc ( https://github.com/jhaagsma/ee_npc/archive/master.zip )
-
Put the project somewhere like Documents, so you can find it: C:\Users(your username)\Documents\ee_npc
-
Copy config_example.php to config.php and fill out your information
-
Find ee_npc.php in your explorer, right click on it, and go to Properties, to find the Location that it is at -- in my case it is at C:\Users\qzjul\Documents\ee_npc
-
Open a Windows Terminal
-
(optional) Right click on the top bar / window bar, and click Properties
-
(optional) Go to the Layout tab, change Screen Buffer width to 200, height to 500; change Window Size width to 200, height to 50.
-
(optional) click OK
-
Run (in the terminal) the following command: C:\php\php.exe "C:\Users(your username)\Documents\ee_npc\ee_ncp.php" (in my case C:\php\php.exe "C:\Users\qzjul\Documents\ee_npc\ee_npc.php" )
-
MAGIC! it starts playing countries!
-
To stop it, go Control-C
-
Login and see the AI Dev forum for discussion http://www.earthempires.com/forum/ai-development or view the API details at http://www.earthempires.com/api