Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames
You last visited: Today at 11:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Forge of Empires (FoE) json response

Discussion on Forge of Empires (FoE) json response within the Browsergames forum part of the Other Online Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2016
Posts: 3
Received Thanks: 0
Question Forge of Empires (FoE) json response

Hello,

First of all, I hope I am posting in the correct forum, I'm a bit overwhelmed by the amount of forums and posts you've got. Congrats on the amount. If it's in the wrong area, feel free to move it.

Secondly, I'm looking on how to retrieve some data from the browser game Forge of Empires (FoE). I've been looking at a few of the bots I saw posted here but I couldn't figure out how these bots get their data or send any commands.

I am not looking to create another bot, just simply trying to read some data from the servers which would make it easier for me to run my guild and keep track of things.

Using the web console I've found that FoE uses the same link to POST their request per session. ( [where x....x is the unique code]) However, when I enter this link into some code I've got running on a localhost I'm getting a 'NULL' response. Which figures, as when I enter the URL in my browser, it redirects me to the homepage of FoE.

My code being the following:
Code:
$url = "https://nl3.forgeofempires.com/game/json?h=xxxxxxxxxxxx";
$data2 = file_get_contents($url);
$data1 = json_decode($data2);

var_dump($data1);
* Where x...x is being replaced by the session code I am currently running

So can anyone point me in the right direction on how to read information of a specific FoE server? Any help/pointers would be appreciated!

Thanks in advance,
Kind regards,
mrgoldy is offline  
Old 09/12/2016, 23:19   #2
 
elite*gold: 0
Join Date: Aug 2016
Posts: 42
Received Thanks: 14
you need to storage the cookies somewhere i think
jessiesharp is offline  
Old 09/12/2016, 23:27   #3
 
elite*gold: 0
Join Date: Sep 2016
Posts: 3
Received Thanks: 0
Could you give me an example or link me to an example work on how it's done so I can have a look and play with it?
mrgoldy is offline  
Old 09/12/2016, 23:30   #4
 
elite*gold: 0
Join Date: Aug 2016
Posts: 42
Received Thanks: 14
not writing in php but i think you should check this

or just check in others bots how its made
jessiesharp is offline  
Old 09/17/2016, 16:48   #5
 
elite*gold: 0
Join Date: Jun 2012
Posts: 409
Received Thanks: 194
file_get_contents isn't made to do that.
You should use curl ().
With curl, you'll be able to manage your session (cookies ...)
Xavierbot is offline  
Old 09/27/2016, 23:19   #6
 
elite*gold: 0
Join Date: Sep 2016
Posts: 3
Received Thanks: 0
Hi I'm doing a quite complete bot for FOE using picture recognition.
The english web site is not fully translated yet but documentation is translated and moreover, last release is nicely working (farming, managing PF, looking for treasures, ...)

You only need to have a java runtime.
Please enjoy and give me some feedback.
joueursuivant is offline  
Old 09/28/2016, 19:57   #7


 
Else's Avatar
 
elite*gold: 4
The Black Market: 166/0/0
Join Date: Feb 2008
Posts: 3,854
Received Thanks: 1,268
Quote:
Originally Posted by joueursuivant View Post
Hi I'm doing a quite complete bot for FOE using picture recognition.
The english web site is not fully translated yet but documentation is translated and moreover, last release is nicely working (farming, managing PF, looking for treasures, ...)

You only need to have a java runtime.
Please enjoy and give me some feedback.
Short: Pixelbot? Worthless. You can not detect the exact timestamp, eg.
Else is offline  
Old 09/28/2016, 23:03   #8
 
elite*gold: 0
Join Date: Sep 2016
Posts: 3
Received Thanks: 0
It is more than a pixel bot it is a full picture recognition bot and it is more efficient and quicker.
But you are right, It cannot read tiemstamp but the bot knows when it launched a production so it know when to harvest it.
This knowledge is already in place in my bot but i still need to implement the OS task programmation to launch automaticaly the bot. (in verbose mode you could see lot of information about "tache" (task in french).

The mecanism is in place for treasures, material and ressources, and help function to do it only once a day.

please, let's test it and give me your feed back.

Regards
joueursuivant is offline  
Old 09/29/2016, 20:08   #9


 
Else's Avatar
 
elite*gold: 4
The Black Market: 166/0/0
Join Date: Feb 2008
Posts: 3,854
Received Thanks: 1,268
Quote:
Originally Posted by joueursuivant View Post
It is more than a pixel bot it is a full picture recognition bot and it is more efficient and quicker.
But you are right, It cannot read tiemstamp but the bot knows when it launched a production so it know when to harvest it.
This knowledge is already in place in my bot but i still need to implement the OS task programmation to launch automaticaly the bot. (in verbose mode you could see lot of information about "tache" (task in french).

The mecanism is in place for treasures, material and ressources, and help function to do it only once a day.

please, let's test it and give me your feed back.

Regards
Link?
Else is offline  
Old 09/29/2016, 21:55   #10
 
elite*gold: 0
Join Date: Sep 2016
Posts: 3
Received Thanks: 0


web site (mostly in english but not yet fully translated) :





I will be very please to get some feedback, and priority for next evolutions

why i cannot put a texte associated to an url !!!

installation package :

joueursuivant is offline  
Old 10/06/2016, 23:34   #11
 
elite*gold: 0
Join Date: Sep 2016
Posts: 3
Received Thanks: 0
Sounds great joueursuivant.
I've still been trying to connect to FoE Servers using php curl and bunch of other languages, but I am not succeeding.

So I am just wondering how I can connect to the servers to read out the server data.. Anyone could help with an example or set-up of that?
mrgoldy is offline  
Old 10/07/2016, 14:48   #12


 
Else's Avatar
 
elite*gold: 4
The Black Market: 166/0/0
Join Date: Feb 2008
Posts: 3,854
Received Thanks: 1,268
Quote:
Originally Posted by mrgoldy View Post
Sounds great joueursuivant.
I've still been trying to connect to FoE Servers using php curl and bunch of other languages, but I am not succeeding.

So I am just wondering how I can connect to the servers to read out the server data.. Anyone could help with an example or set-up of that?
What want you do with the example? Check maybe this .
Else is offline  
Reply

Tags
foe, json, response


Similar Threads Similar Threads
Forge of Empires
09/29/2016 - Browsergames Trading - 3 Replies
Hey ich suche einen Forge of Empires Account postet einfach was ihr so habt :)
Forge Of Empires BOT
05/10/2014 - Browsergames Trading - 1 Replies
get a banned account have to check. edit2: using bot in foe at moment will be a sure ban, be careful.
[Buying] Forge of Empires
05/03/2014 - Browsergames Trading - 0 Replies
Hallo Habe vor einiger Zeit hier einen FoE Accunt erstanden super Sache:cool: Falls wer auch sowas übrig hat bevorzugt wir Greifental meldet Euch bei mir Freue mich auf zahlreiche Antworten eure Springmaus:)
Forge of Empires HTTP Request (JSON)
11/01/2013 - Browsergames - 0 Replies
Hallo, nach ein paar Jahren traue ich mich endlich mal zu Posten. Ich hab eine Frage an IT Spezis unter euch. bei FOE laufen ja im Hintergrund ne menge HTTP request in form von json. nun hab ich mir das mal genauer angeschaut und gesehen das jedes request mit ein art Prüfsumme versehen ist. Die frage ist ob jemand weiss wie sich diese besagte Prüfsumme zusammen setzt. hier mal ein Bsp. Request (Checksum ist in Fett dargestellt):
Forge of Empires Bot
10/14/2013 - Browsergames - 5 Replies
Hello folks, I am working on a Forge of Empires Bot with following features: * build/gather resources * motivate/polish the neighborhood * runs in the background * multiple worlds at once Problem: it's OS X only.



All times are GMT +1. The time now is 11:28.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.