[Release] Forge of Empires Farmer

01/25/2014 10:45 anonimo79#181
YOU n1 Fsamot

IP check on connection guida ? tutorial ? pls
01/25/2014 14:12 dantamco#182
Great!

Thank you! ^^
01/25/2014 17:25 rrotem#183
Sweet, thanks man :]
01/25/2014 17:44 Unreal.2K7#184
Preamble: this is something i wanted to share to see if others would find it useful.


Dear Fsamot,

the custom supporting feature you introduced is great. I was looking to apply custom rules for every guild mate i had, according to their requests in their profile. This takes long to do manually. Also, since most of the times people use only three kind of supporting requests in varying order (polishing, motivating houses, motivating supplies), the custom rules interface becomes disorientating as you need to play around with drop down menus and such.

So i threw together a simple html+javascript page. I feed it with the data from the ajax POST. Specifically, i use the JSON coming from the "socialbar_list" array in the "startup_service" entry.

Once that is stored in a separate data file, the javascript cycles through the guild members list and shows me the name of the player along with his profile text. I then have three buttons (Polish, Motivate houses, Motivate productions) which i press in the order the user asks to support him.

Example: this user has the initials of the type of supporting method he wants in his description.
[Only registered and activated users can see links. Click Here To Register...], [Only registered and activated users can see links. Click Here To Register...], [Only registered and activated users can see links. Click Here To Register...], [Only registered and activated users can see links. Click Here To Register...]

Doing so a list of custom rules specific for the bot's preferences file is generated. Once finished, i simply have to store this data into the preferences.xml and -presto!- i have my effortlessly populated list of custom rules.
[Only registered and activated users can see links. Click Here To Register...]

Now, altough this is pretty neat, it still requires to incercept the ajax call within the browser, extract the JSON and also manually store the resulting rules in the preferences file.

Since your bot already has this data, could it be possible to integrate something like this in the custom rules generator? Maybe some kind of simple mode (my version) + optional advanced mode (the one currently implemented)?
If this would be possible, it could also allow to notify when players change their profile. This way the user will know they need to update their custom rules.


Again, this is just a suggested feature. I can easily live with manually doing the work. I just posted this because i don't know if others here would find this useful.

I can provide you with the script if you want to take a look.
01/25/2014 18:19 raverDave♫#185
Hello,

I am looking for people who are interested in exchanging Forge Points on different servers.
I can easily create an account so spend all my Forge Points into your Great Buildings, if you do the
same for me.
You are interested? Great! : ) Send me a private message please.
01/25/2014 18:49 Fsamot#186
Quote:
Originally Posted by anonimo79 View Post
YOU n1 Fsamot

IP check on connection guida ? tutorial ? pls
It really simple. You just add the IPs that are alowed to connect to the FOE server and that's it. If the connecting IP is not on the list the bot will not connect to the FOE server. It's just to make sure you don't connect with an unwanted IP (proxies IP is changed, you are connected to a vpn by accident ...).

Quote:
Originally Posted by Unreal.2K7 View Post
Preamble: this is something i wanted to share to see if others would find it useful.


Dear Fsamot,

the custom supporting feature you introduced is great. I was looking to apply custom rules for every guild mate i had, according to their requests in their profile. This takes long to do manually. Also, since most of the times people use only three kind of supporting requests in varying order (polishing, motivating houses, motivating supplies), the custom rules interface becomes disorientating as you need to play around with drop down menus and such.

...
I see, so a simpler/faster version of the add custom support rule with the option of notifying when a players profile info changes.
01/25/2014 18:56 Unreal.2K7#187
Quote:
Originally Posted by Fsamot View Post
I see, so a simpler/faster version of the add custom support rule with the option of notifying when a players profile info changes.
Exactly. Thank you for your interest on this. I would like to stress the fact that what really speeds up the process is the ability to fetch the guild members info automatically (removing the copy-paste player name routine) and the one-click, easily-selectable priority list.


Anyhow, even though these are nifty features, don't waste your pre-exams time! :)

-Piero
01/25/2014 20:36 interlinklord#188
Few issues with this version. Supplies/Production not being started or picked up erratically.
Forge point spending not working. This on US server.
Collects/starts at startup but then does not do the periodic checks. Same result both using default settings & customized.
Nothing in log after initial sequence. both timers in info are running. Old version has no problems. Running it in Win7.
Since you went back .net 4 I tried also on a VM running XP but I had the same results. BTW I noticed that you are checking only for 4.00 & it will not pass the check with 4.03, is that wanted?
01/25/2014 22:03 timtag1190#189
Quote:
Originally Posted by interlinklord View Post
Few issues with this version. Supplies/Production not being started or picked up erratically.
Forge point spending not working. This on US server.
Collects/starts at startup but then does not do the periodic checks. Same result both using default settings & customized.
Nothing in log after initial sequence. both timers in info are running. Old version has no problems. Running it in Win7.
Since you went back .net 4 I tried also on a VM running XP but I had the same results. BTW I noticed that you are checking only for 4.00 & it will not pass the check with 4.03, is that wanted?
I'm on the US server and I don't have any of these problems at all, check your settings and such maybe some of your settings or something got messed up, could even delete the whole folder for the bot and redo everything.
01/25/2014 22:05 Fsamot#190
Hm strange, I'm also using Windows 7 and just left it running for one hour on a US server and it worked fine. You did tho give me a new idea of showing timers for next pickup/production start in the info.

Also I don't understand, what do you mean by 'checking only for 4.00'?
01/25/2014 22:07 Unreal.2K7#191
i suppose he's talking about the .NET framework version.
01/25/2014 22:20 Fsamot#192
But there is no check of the version in the bot. The .NET version was just changed from 4.5 to 4.0 and that's it. As far as I know the versions of .NET are backwards-compatible and if you can run 4.5 you can run everything below too.
01/26/2014 00:18 interlinklord#193
Quote:
Originally Posted by Fsamot View Post
Hm strange, I'm also using Windows 7 and just left it running for one hour on a US server and it worked fine. You did tho give me a new idea of showing timers for next pickup/production start in the info.

Also I don't understand, what do you mean by 'checking only for 4.00'?
I started with a "clean" XP VM. At first run says I don't have .NET and asks if I want to install it. Got a choice between 4.00 & 4.03. I first picked 4.03 but after install it would still say I needed to install .net. Once I installed 4 it started.

For some reason it just sits there and does not do anything aside from the first time when it starts.

Anyway to enable some logging that might help?
01/26/2014 00:33 Gothikmizerie#194
Hey guys just a heads up. I was banned today for using automation programs to play the game. This was the ONLY bot i ever used on FoE. It is a great bot and i give a lot of thanks to Fsamot for making it.

I did OVER USE the bot. So I gladly accept my ban but just a warning to you guys.
01/26/2014 02:09 dantamco#195
Hi Fsamot,

I wanna get Alcatraz bp so I add some new friends (picked from Global Ranking) and add custom support rules for new invited friends (but they do not accept friend invitation yet). Then the bot trys to support new not-accepted-yet-friends and crash (log out).

May you fix it please?

Thank you for your amazing bot.

Quote:
2014-01-26 01:03:12.3582|INFO|Samotorcan.ForgeOfEmpires.Farme r.Application|Motivate player 'XXXXX' building {Id:R_ProgressiveEra_Residential1, Name:High-Rise, EntityType:House, Age:Progressive Era, ProductionMoney:5750, ProductionTime:86400}.
2014-01-26 01:03:13.2733|ERROR|Samotorcan.ForgeOfEmpires.Farm er.Application|Response error from RequestMotivate: Sorry, an internal error occurred. Please try again later
2014-01-26 01:03:13.2733|INFO|Samotorcan.ForgeOfEmpires.Farme r.Application|Logout {Username:AAAAAA, Server:BBBBBBB, Region:en}.