Castle Age Autoplayer

By erik a. Last update Feb 26, 2010 — Installed 246,865 times.

Automating multiple accounts using Autoplayer and imacros

in
Subscribe to Automating multiple accounts using Autoplayer and imacros 19 posts, 10 voices



stallion Scriptwright
FirefoxWindows

i just got done setting up a system to let autoplayer run multiple accounts.
the system uses autoplayer and another addon called imacros

using imacros isnt hard, i started by setting up a seperate macro for each account that logs into facebook and waits for 6 minutes letting autoplayer progress each account.

i will copy the script i use with generic details for you guys to use as a template.

VERSION BUILD=6500125 RECORDER=FX
SET !ERRORIGNORE YES

TAB T=1
URL GOTO=http://www.facebook.com
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://login.facebook.com/login.php?login_atte... ATTR=ID:email CONTENT=YOUREMAIL2@EMAIL.COM
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://login.facebook.com/login.php?login_atte... ATTR=ID:pass CONTENT=YOURPASSWORD2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=VALUE:Login
URL GOTO=http://apps.facebook.com/castle_age/keep.php
WAIT SECONDS=180
TAG POS=1 TYPE=A ATTR=TXT:Logout

VERSION BUILD=6500125 RECORDER=FX
TAB T=1
URL GOTO=http://www.facebook.com
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://login.facebook.com/login.php?login_atte... ATTR=ID:email CONTENT=YOUREMAIL@EMAIL.COM
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://login.facebook.com/login.php?login_atte... ATTR=ID:pass CONTENT=YOURPASSWORDHERE
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=VALUE:Login
URL GOTO=http://apps.facebook.com/castle_age/keep.php
WAIT SECONDS=180
TAG POS=1 TYPE=A ATTR=TXT:Logout

you should be able to work off that script or write your own. simply set up one for each account and set the macro to loop and it will log in, play for 6 minutes log out, log in to the next one, play 6 minutes, and on and on.

 
Prodiniz User
FirefoxWindows

Stallion, that's pretty cool, but you're aware that Firefox has an option to run multiple profiles right? While I'm certainly not downing your script, as I'm sure many would prefer the comfort of only using one browser window, I'm just stating for those that may not know that Firefox offers multiple profiles to run simultaneously.

For example, I run 4 profiles in Firefox. 1 for each account. 3 of which run the CAAP and the other I manual as it's my primary facebook account. They all run very happily and smoothly in the background only needing to be check periodically.

The only downside is that if the CAAP updates, each profile has to be updated independantly. On the flip side, if there is a rather buggy CAAP release (see v127) I can only update one and test before I apply.

Additionally, I can have different CAAP settings for each profile whereas while I'm not sure how it works with your macro program I would imagine that it would retain the same CAAP settings for all accounts. If it doesn't, then thats cool.

In all seriousness tho, thanks for contributing and keep the ideas coming.

 
stallion Scriptwright
FirefoxWindows

i wasnt aware that you can run multiple profiles, if you can elaborate that would be great. otherwise ill research it myself.
the only reason my macro works is that all the accts are about at the same point. your idea will work much better i think.

 
stallion Scriptwright
FirefoxWindows

i figured out how to run multiple profiles, but after 5 are running simutaneously there seems to be a ton of drag, and i cant figure out how to create a .bat file to open up all the profiles at once.

for right now ill let my macro run and let generic settings on autoplayer advance the characters.

ill continue to try your method but i dont think i can run the amount of profiles necessary without bogging the hell out of my laptop.

 
Tarsis User
FirefoxWindows

I think the limitation may be in your hardware. I'm running 5 on a Q6600 no o/c, 8G RAM system and see no more lag or slowdown than I do with one profile open.

 
MDTrav User
FirefoxWindows

I run 5 on my server box, it only has an amd athlon xp 2500 and 1 gig of ram. I just need to restart all the firefox's once a week.

Dang how many accounts do you need? I can kill everything with my 6 pretty quick. Other then horde and hydra

Wow, I was just looking at Imacros that looks like fun stuff to play with though.

 
Prodiniz User
FirefoxWindows

Stallion, I would have to agree with Tarsis that it's a hardware limitation in this case. Likely ram. An upgrade to 1-2GBs of ram and you'd more than likely see that sluggishness go away when you're multitasking. I personally have no issues with 2GB of ram and Pentium 3ghz core2duo. I'm sorry I wasn't able to elaborate on profiles last night. It was getting late. Here is the best I could find at a glance without digging too deep for those of you who want to do something similar:

http://kb.mozillazine.org/Profile_Manager

But Stallion, you're macro idea is still very cool. Like I said, keep it up and maybe you can get to the point where it's easily customizable with the right macros.

 
escher2003v2 User
FirefoxMacintosh

Prodiniz, thanks for that link. I now have a separate profile for both of my accounts, but what I can't figure out is how to run them at the same time. Little halp plz?

 
escher2003v2 User
FirefoxMacintosh

Never mind, I figured it out!

 
dan comix User
FirefoxX11

I recently started running multiple profiles as well, and I found that the location of the training grounds tab throws the script for a loop. In my main acct, the battle tab is first and everything works. In the two new accts, the training grounds tab is first and the script won't attack until I manually click the Battle tab.

Here is the error log:
zynga/Castle Age Autoplayer: Unable to Navigate to battle_01 using battle
zynga/Castle Age Autoplayer: No battle buttons on battlepage?

I think the fact that the tabs are in a different order is gacking the script.

Edit: using v128 and it seems to get stuck on Town page.

I am also getting this in the error log:
zynga/Castle Age Autoplayer: Unable to Navigate to undefined using battle,raid

edit 2: Once I click on the Battle tab, it goes to the Raid page. I am using when stamina available setting

 
dan comix User
FirefoxX11

I think the above problem occurs from lvls 1-10. After level 10 the Training Grounds tab and Battle tab switch.

 
stallion Scriptwright
FirefoxWindows

after a full day of playing around with both the multi-profile, and my macro account setup. i am going with the macro setup.

the main benefit is the fact that with multi profiles up to about 6 is ok, after that my laptop becomes very non functional due to both the internet connection and the processor allocations

with the macro setup, only 1 new profile is busy, and it lets each one play itself for awhile then goes on the the next making my computer a happy camper and allowing me to do whatever i wish without worring about processor or connection issues.

 
stallion Scriptwright
FirefoxWindows

i guess what im saying is:
if you are trying to run more accounts than your processor/ram or net connection can handle then you can substitute multi-profile with imacros automation

 
BandH User
FirefoxWindows

escher2003v2 asked the question about how to run multiple profiles at the same time but figured it out before someone answered the question. Could someone let me know how to do it?

 
Majorpayne User
FirefoxWindows

And here i am running 2 instances of vmware

 
Majorpayne User
FirefoxWindows

http://www.howtogeek.com/howto/internet/firefox...

instructions to open multiple instances

 
lb2010 User
FirefoxWindows

I think macros can still be used to autoupdate every other day
unless some similar greasemonkey script already do this.
I mean that by reloading the page because the old version still
runs. I think this is internally how greasemonkey works because
its not just CAAP that is affected so I guess imacros would be
useful for this. Is there a guide to do this stallion?

Majorpayne: lol, what an overkill man..

 
jammi User
FirefoxWindows

my macro for facebook auto login stucks at this point
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=VALUE:Login

and gives me error:
RuntimeError: element INPUT specified by VALUE:Login was not found, line: 7 (Error code: -921)

how to solve it?plz tell me...em in trouble

my whole macro is:

VERSION BUILD=7110203 RECORDER=FX
TAB T=1
URL GOTO=http://www.facebook.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=ACTION:https://www.facebook.com/login.php?login... ATTR=ID:email CONTENT=emailid@hotmail.com
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ACTION:https://www.facebook.com/login.php?login... ATTR=ID:pass CONTENT=passwrod
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:login_form ATTR=VALUE:Login

 
jammi User
FirefoxWindows

i started using imacroz yesterday..it was login in fine yesterday but today its not working...plz help me