Skip to content
/ ee_npc Public
forked from jhaagsma/ee_npc

Earth Empires Non-Player-Country Project!

Notifications You must be signed in to change notification settings

iZarcon/ee_npc

 
 

Repository files navigation

ee_npc

Earth Empires Non-Player-Country Project!



TO RUN ON LINUX:

  1. Clone the project from github: https://github.com/jhaagsma/ee_npc

  2. 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

  1. Install php if you don't already have it; on ubuntu sudo apt-get install php

  2. Run ee_npc.php in the terminal: ./ee_npc

  3. To Stop it go Control-C

  4. 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:

  1. DOWNLOAD PHP FOR WINDOWS: http://windows.php.net/download/

  2. 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

  1. Go to C:\php\ext and COPY php_curl.dll; PASTE it into C:\php

  2. OPEN php.ini-development in an editor (notepad)

  3. Find the line: ;extension=php_curl.dll

  4. Remove the leading semi-colon / Change it to: extension=php_curl.dll

  5. Save the changed file as C:\php\php.ini

  6. DOWNLOAD the x86 version of the MS VC package: http://www.microsoft.com/download/details.aspx?id=30679

  7. Install it!

  8. Go to http://www.earthempires.com/ai/api and Generate an API Key

  9. Download or clone the ee_npc project from github: https://github.com/jhaagsma/ee_npc ( https://github.com/jhaagsma/ee_npc/archive/master.zip )

  10. Put the project somewhere like Documents, so you can find it: C:\Users(your username)\Documents\ee_npc

  11. Copy config_example.php to config.php and fill out your information

  12. 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

  13. Open a Windows Terminal

  14. (optional) Right click on the top bar / window bar, and click Properties

  15. (optional) Go to the Layout tab, change Screen Buffer width to 200, height to 500; change Window Size width to 200, height to 50.

  16. (optional) click OK

  17. 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" )

  18. MAGIC! it starts playing countries!

  19. To stop it, go Control-C

  20. 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

About

Earth Empires Non-Player-Country Project!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%