CityVilleBot (Project DEVIL)
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Try LilyCity HD, it's a real cityville clone
Mon Apr 20, 2015 1:52 pm by ertyanna

» expansions cityville hack new 12/12/15
Sat Feb 14, 2015 9:52 pm by nico

» Biohazard Problem Expansion
Sat Nov 08, 2014 3:12 pm by CV FO LIFE

» CAN SOMEONE HELP ME?
Sat Nov 08, 2014 3:09 pm by CV FO LIFE

» hello friends i have new update of cv bot project devil 1.10 update (2.01)
Sat Nov 01, 2014 12:59 pm by Blue Angel

» [Resolved] codebase-php Error
Sun Oct 12, 2014 7:22 am by nico

» -_- Which bot is now working ????
Thu Oct 09, 2014 7:06 pm by lobobpf6

» bot 1.2 does nt work
Sun Aug 10, 2014 1:00 am by nathaliafariass

» COMO FUNCIONA
Sun Aug 10, 2014 12:38 am by nathaliafariass

Affiliates
free forum


Project DEVIL 1.10 (29.10.2011)

Page 4 of 12 Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next

View previous topic View next topic Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  kns4945 on Sat Sep 24, 2011 12:36 pm

bot has many errors when visiting neighbors
avatar
kns4945

Posts : 9
Points : 17
Join date : 2011-09-23
Age : 70
Location : india

http://www.facebook.com/greek123

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Admin on Sat Sep 24, 2011 12:40 pm

kns4945 wrote:bot has many errors when visiting neighbors
those erros are normally on buildings that do not accept the "streakBonus".. like Malls, Attractions..
you can notice that too when you are "accepting" a help on a build like this on you City

Admin
Admin

Posts : 80
Points : 50
Join date : 2011-09-21

http://cityvillebot.forumotion.eu

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  kns4945 on Sat Sep 24, 2011 12:43 pm

i use only harvest crops with neighbor plugin

still it shows
amf runtime error

i did not even open the browser when i used bot

so can u explain
avatar
kns4945

Posts : 9
Points : 17
Join date : 2011-09-23
Age : 70
Location : india

http://www.facebook.com/greek123

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  dada79 on Sat Sep 24, 2011 12:52 pm

Admin wrote:
you can see a little diference between enqueueTime and clientEnqueueTime...
enqueueTime: finish with ,162
clientEnqueueTime: looks like its just the integer part.. you can use the function floor(floatval(clientEnqueueTime)) and see if it works
intval sometimes may not work as expected.. you can see that the Type on image still "Number".. intval will turn into Integer.. maybe theres some conflict on that
I tried too with : floor(floatval($enqueueTime)); but still doesn't work , I get the following message error :

Code:
ERROR: Wonder::getRadius - Invalid client enqueue time
-> Harvesting: casino_social_business (id:5363)
[BUILDINGS-Hotel] casino_social_business: Harvesting...

my function NewObjectAction :

Code:
function NewObjectAction($obj, $flag) {
      unset($this->error_msg);

      $action = $flag;
      if ($flag == "harvest") {
      $this->SendMsg('-> Harvesting: ' . $obj['itemName'] . ' (id:'.$obj["id"].')');
         $action = "harvestState";
         $this->dooberItems +=2;
      } else if ($flag == "supply") {
      $this->SendMsg('-> Supplying: ' . $obj['itemName'] . ' (id:'.$obj["id"].')');
         $action = "supply";
      }
      $this->GetTimers($stamp, $enqueueTime);
      $amf = new AMFObject("");
      $amf->_bodys[0] = new MessageBody();
      $amf->_bodys[0]->_value[0] = $this->GetAmfHeader();

      $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
      $amf->_bodys[0]->responseURI = '';
      $amf->_bodys[0]->_value[2] = 0;

      $amf->_bodys[0]->_value[1][0]['sequence'] = $this->GetSequense();
      $amf->_bodys[0]->_value[1][0]['enqueueTime'] = (float)$enqueueTime;
      $amf->_bodys[0]->_value[1][0]['functionName'] = "GameMechanicService.performMechanicAction";
      $amf->_bodys[0]->_value[1][0]['stamp'] = (float)$stamp;
      
      $amf->_bodys[0]->_value[1][0]['params'][0] = $obj["id"];
      $amf->_bodys[0]->_value[1][0]['params'][1] = $action;
      $amf->_bodys[0]->_value[1][0]['params'][2] = "GMPlay";
        $amf->_bodys[0]->_value[1][0]['params'][3]['operation'] = $flag;
      $amf->_bodys[0]->_value[1][0]['params'][3]['clientEnqueueTime'] =  floor(floatval($enqueueTime));
      
      $amf->_bodys[0]->_value[1][1]['enqueueTime'] = (float)$enqueueTime;
      $amf->_bodys[0]->_value[1][1]['sequence'] = $this->GetSequense();
      $amf->_bodys[0]->_value[1][1]['stamp'] = (float)$stamp;
      $amf->_bodys[0]->_value[1][1]['functionName'] = "UserService.updateEnergy";
      $amf->_bodys[0]->_value[1][1]['params'] = Array();
      
      $amf->_bodys[0]->_value[1][2] = 0;

      $serializer = new AMFSerializer();
      $result = $serializer->serialize($amf);
      $x = $this->SendRequest($result);
      $this->Add2Report('Hotel/Mall');
   }


With chales tool , when I active breakpoint , harvest building , remove breakpoint , on error message with ERROR: Wonder::getRadius , appears ...and sever restore configuration ...


Last edited by dada79 on Sat Sep 24, 2011 1:01 pm; edited 1 time in total

dada79

Posts : 53
Points : 38
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Admin on Sat Sep 24, 2011 12:59 pm

kns4945 wrote:i use only harvest crops with neighbor plugin

still it shows
amf runtime error

i did not even open the browser when i used bot

so can u explain

NO i cant explain.. you are just talking and talking.. and not showing any image or log of events.. i dont have crystal ball..
besides the fact that is already too much make an application (BOT) and conduct the updates of the plugins (wich only Inbox was made by me)..

instead of demmand answers.. you could be part of the solution in trying to help like the other users... but i guess you dont know how to do something like this right?!
SO.. keep calm, be patience and try dont be "rushing".. becos THIS IS FOR FREE!!

Admin
Admin

Posts : 80
Points : 50
Join date : 2011-09-21

http://cityvillebot.forumotion.eu

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Admin on Sat Sep 24, 2011 1:24 pm

your function does not looks like the same that im doing in BotClass.php.. are you using a diferent version??
dada79 wrote:
Code:
function NewObjectAction($obj, $flag) {
      unset($this->error_msg);

      $action = $flag;
      if ($flag == "harvest") {
      $this->SendMsg('-> Harvesting: ' . $obj['itemName'] . ' (id:'.$obj["id"].')');
         $action = "harvestState";
         $this->dooberItems +=2;
      } else if ($flag == "supply") {
      $this->SendMsg('-> Supplying: ' . $obj['itemName'] . ' (id:'.$obj["id"].')');
         $action = "supply";
      }
      $this->GetTimers($stamp, $enqueueTime);
      $amf = new AMFObject("");
      $amf->_bodys[0] = new MessageBody();
      $amf->_bodys[0]->_value[0] = $this->GetAmfHeader();

      $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
      $amf->_bodys[0]->responseURI = '';
      $amf->_bodys[0]->_value[2] = 0;

      $amf->_bodys[0]->_value[1][0]['sequence'] = $this->GetSequense();
      $amf->_bodys[0]->_value[1][0]['enqueueTime'] = (float)$enqueueTime;
      $amf->_bodys[0]->_value[1][0]['functionName'] = "GameMechanicService.performMechanicAction";
      $amf->_bodys[0]->_value[1][0]['stamp'] = (float)$stamp;
      
      $amf->_bodys[0]->_value[1][0]['params'][0] = $obj["id"];
      $amf->_bodys[0]->_value[1][0]['params'][1] = $action;
      $amf->_bodys[0]->_value[1][0]['params'][2] = "GMPlay";
        $amf->_bodys[0]->_value[1][0]['params'][3]['operation'] = $flag;
      $amf->_bodys[0]->_value[1][0]['params'][3]['clientEnqueueTime'] =  floor(floatval($enqueueTime));
      
      $amf->_bodys[0]->_value[1][1]['enqueueTime'] = (float)$enqueueTime;
      $amf->_bodys[0]->_value[1][1]['sequence'] = $this->GetSequense();
      $amf->_bodys[0]->_value[1][1]['stamp'] = (float)$stamp;
      $amf->_bodys[0]->_value[1][1]['functionName'] = "UserService.updateEnergy";
      $amf->_bodys[0]->_value[1][1]['params'] = Array();
      
      $amf->_bodys[0]->_value[1][2] = 0;

      $serializer = new AMFSerializer();
      $result = $serializer->serialize($amf);
      $x = $this->SendRequest($result);
      $this->Add2Report('Hotel/Mall');
   }
With chales tool , when I active breakpoint , harvest building , remove breakpoint , on error message with ERROR: Wonder::getRadius , appears ...and sever restore configuration ...

try with :
Code:
['enqueueTime'] = floatval($enqueueTime);
['stamp'] = floatval($stamp);
or just comment them...
also i guess is not necessary the UpdateEnergy on the same request...

i dont have the Eiffel Tower yet.. i cant tell much about this atm...

Admin
Admin

Posts : 80
Points : 50
Join date : 2011-09-21

http://cityvillebot.forumotion.eu

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  dada79 on Sat Sep 24, 2011 1:41 pm

Admin wrote:your function does not looks like the same that im doing in BotClass.php.. are you using a diferent version??

try with :
Code:
['enqueueTime'] = floatval($enqueueTime);
['stamp'] = floatval($stamp);
or just comment them...
also i guess is not necessary the UpdateEnergy on the same request...

i dont have the Eiffel Tower yet.. i cant tell much about this atm...
Normal I try add some amf lines because with wonder, eiffel tower ,Harvesting Hotel/Socialbusiness building doesn't works correctly now .
Harvesting normal business doesn't works too because of eiffel tower i think ,

log report

Code:
[BUILDINGS-Business] Action done.
Harvesting (bus_movieplex) x=41 y=69
ERROR: Internal Server Error
[BUILDINGS-Business] Action started...

dada79

Posts : 53
Points : 38
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  <BQ> on Sat Sep 24, 2011 6:12 pm

Admin wrote:

you can see a little diference between enqueueTime and clientEnqueueTime...
enqueueTime: finish with ,162
clientEnqueueTime: looks like its just the integer part.. you can use the function floor(floatval(clientEnqueueTime)) and see if it works

this will not work for now, coz we have no specific data for the clientEnqueueTime. well, we must wait

<BQ>

Posts : 221
Points : 226
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  iriedawta on Sat Sep 24, 2011 8:02 pm

what does this means> I get it after i run the bot and it goes through neighbors

PHP Fatal error: Cannot break/continue 1 level in C:\Program Files (x86)\cityvillebot\Plugins\Multi\Hooks.php on line 384
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null g
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
PHP Warning: shuffle() expects parameter 1 to be array, null given in C:\Program Files (x86)\cityvillebot\Plugins\Neighbors\Hooks.php on line 655
oks.php on line 655

iriedawta

Posts : 3
Points : 3
Join date : 2011-09-24

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Admin on Sat Sep 24, 2011 8:07 pm

iriedawta wrote:what does this means> I get it after i run the bot and it goes through neighbors

it means you have not SAVED the configurations on Neighbors plugin.. or choosed the "Selected" option but no neighbors were selected

Admin
Admin

Posts : 80
Points : 50
Join date : 2011-09-21

http://cityvillebot.forumotion.eu

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Admin on Sat Sep 24, 2011 9:13 pm

UPDATED 1.02 - Go to page 1 for details...

Admin
Admin

Posts : 80
Points : 50
Join date : 2011-09-21

http://cityvillebot.forumotion.eu

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Admin on Sat Sep 24, 2011 10:28 pm

new function for clientEnqueueTime:
Code:

  function GetTimersNew($stamp, $NEWenqueueTime, $NEWclientEnqueueTime, $number)
  {
    list($l1, $l2) = explode(" ",microtime());
    $b1=bcmul($l2,'1000.0',3);
    $b2=bcmul($l1,'1000.0',3);
    $stamp=bcadd($b1,$b2,0);

    $s1=strval(rand(0,1000));
    $b3=bcsub($stamp,$s1,3);
    $enqueueTime=(float)bcdiv($b3,'1000.0',3);
    $clientEnqueueTime=(float)bcdiv($b3,'1000.0',0);
   
    $NEWenqueueTime = bcadd($enqueueTime, (string)($number / 10), 3);
    $NEWclientEnqueueTime = bcadd($clientEnqueueTime, (string)($number / 10), 0);
  }

example of using:
Code:

GetTimersNew($stamp, $NEWenqueueTime, $NEWclientEnqueueTime, 0)
$bot->_bodys[0]->_value[1][0]['params']['stamp'] = floatval($stamp);
$bot->_bodys[0]->_value[1][0]['params']['enqueueTime'] = floatval($NEWclientEnqueueTime);
$bot->_bodys[0]->_value[1][0]['params'][3]['clientEnqueueTime'] = floatval($NEWclientEnqueueTime);
where $number is 0 becos of: $bot->_bodys[0]->_value[1][0]
and on so on..

Admin
Admin

Posts : 80
Points : 50
Join date : 2011-09-21

http://cityvillebot.forumotion.eu

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  iriedawta on Sat Sep 24, 2011 10:43 pm

Admin wrote:
iriedawta wrote:what does this means> I get it after i run the bot and it goes through neighbors

it means you have not SAVED the configurations on Neighbors plugin.. or choosed the "Selected" option but no neighbors were selected

the configurations is been saved twice(not the first time using this bot) but why do I have to select the neighbors to go through and do the chores. BEfore I didnt have to do that and the bot worked fine like that in revamp.

Tried 1.02 version and it still does few of them like that it after I deleted the whole file and made another one. I didnt select any neighbors and it is on "all" like I always did before.

iriedawta

Posts : 3
Points : 3
Join date : 2011-09-24

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  <BQ> on Sun Sep 25, 2011 3:46 am

Version 1.02
Download: Mediafire
Change log: Pastebin (or ChangeLog.txt)

is there maybe the old BotClass.php include

<BQ>

Posts : 221
Points : 226
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  pptpptppt on Sun Sep 25, 2011 5:41 am

Code:
ERROR: Sequence OOSlBONUSl ERROR: This action does not support streakbonus
ERROR: Sequence OOS
ERROR: Error calling function VisitorService.redeemVisitorHelpAction -> Wonder::getRadius - Invalid client enqueue timeLoading configuration...
ERROR: Error calling function VisitorService.redeemVisitorHelpAction -> Wonder::getRadius - Invalid client enqueue time
[Neighbors] Accepting help on obj=7807
[Neighbors] Accepting help on obj=13040
[Neighbors] Accepting help on obj=11797
[Neighbors] Accepting help on obj=6132
[Neighbors] Accepting help on obj=6129
[Neighbors] Accepting help from: XXXXXXXXX

Also, the cpu of CVBOT.EXE always 50% when it runs.

Code:

[NEIGHBORS-Help(Sending)] You already have visited this neighbor. No rewards
[Neighbors] Visit:Sammi s Town (??) (207 N to go)
[NEIGHBORS-Help(Sending)] You already have visited this neighbor. No rewards
[Neighbors] Visit:?臬 s Town (?喳?) (208 N to go)
[NEIGHBORS-Help(Sending)] You already have visited this neighbor. No rewards
[Neighbors] Visit:Paul s Town (?凋犖鞊? (209 N to go)
[NEIGHBORS-Help(Sending)] You already have visited this neighbor. No rewards
[Neighbors] Visit:Dream Land (Tzu-Ling Chuang) (210 N to go)
[NEIGHBORS-Help(Sending)] You already have visited this neighbor. No rewards
[Neighbors] Visit:Samantha s City () (211 N to go)
[NEIGHBORS-Help(Sending)] Starting to help your neighbors...
You will see that it always check the list repeat and no save the list within 24 hours which people has visited.


Last edited by pptpptppt on Sun Sep 25, 2011 5:48 am; edited 2 times in total

pptpptppt

Posts : 8
Points : 12
Join date : 2011-09-25

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  kns4945 on Sun Sep 25, 2011 5:42 am

Thank u Very much Admin Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy

For making this super version 1.2 works perfect Cool Cool Cool Cool Cool Cool
avatar
kns4945

Posts : 9
Points : 17
Join date : 2011-09-23
Age : 70
Location : india

http://www.facebook.com/greek123

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Blondero on Sun Sep 25, 2011 6:04 am

thx for update


v1.02 runs without errors for me finally, but unfortunately it slower.
he makes an error but still:

ERROR: Invalid commodity.Supply (ship_cruise) x =- 31 y =- 34
ERROR: Invalid commodity.
[BUILDINGS Cruise] Cruise Ship Supplying
Harvesting: (ship_cruise) x =- 31 y =- 34

Blondero

Posts : 49
Points : 52
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  kns4945 on Sun Sep 25, 2011 6:36 am

try a better internet connection it works fine except hotel Laughing Laughing Laughing Laughing Laughing Laughing
avatar
kns4945

Posts : 9
Points : 17
Join date : 2011-09-23
Age : 70
Location : india

http://www.facebook.com/greek123

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Blondero on Sun Sep 25, 2011 6:44 am

MY internet connection iss very best Smile

is only problem with devil version.

i found new problems:

the bot will not collect my founders house ( res_bridgeapartment )

and see :

[BUILDINGS-Hotel] Action done.
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
ERROR: Sequence OOSlBONUSl ERROR: This action does not support streakbonus
Loading configuration...
ERROR: Sequence OOSŸ(): Supplying: casino_social_business (id:11413)
[BUILDINGS-Hotel] casino_social_business: Supplying... (with goods)
ERROR: Wonder::getRadius - Invalid client enqueue timeŸ(): Harvesting: casino_social_business (id:11413)
ERROR: Wonder::getRadius - Invalid client enqueue time
[BUILDINGS-Hotel] casino_social_business: Harvesting...
[BUILDINGS-Hotel] casino_social_business: Sending visitors...
[BUILDINGS-Hotel] casino_social (casino_social_business)
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
Loading configuration...
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
ERROR: Sequence OOSlBONUSl ERROR: This action does not support streakbonus
Loading configuration...
ERROR: Sequence OOSŸ(): Supplying: tiki_social_business (id:11280)
ERROR: Sequence OOS
[BUILDINGS-Hotel] tiki_social_business: Supplying... (with goods)
ERROR: Wonder::getRadius - Invalid client enqueue timeŸ(): Harvesting: tiki_social_business (id:11280)
ERROR: Wonder::getRadius - Invalid client enqueue time
[BUILDINGS-Hotel] tiki_social_business: Harvesting...
[BUILDINGS-Hotel] tiki_social_business: Sending visitors...
[BUILDINGS-Hotel] tiki_social (tiki_social_business)
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
Loading configuration...
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
ERROR: Sequence OOSlBONUSl ERROR: This action does not support streakbonus
Loading configuration...
ERROR: Sequence OOSŸ(): Supplying: hotel_sailboat_large (id:11003)
ERROR: Sequence OOS
[BUILDINGS-Hotel] hotel_sailboat_large: Supplying... (with goods)
ERROR: Wonder::getRadius - Invalid client enqueue timeŸ(): Harvesting: hotel_sailboat_large (id:11003)
ERROR: Wonder::getRadius - Invalid client enqueue time
[BUILDINGS-Hotel] hotel_sailboat_large: Harvesting...
[BUILDINGS-Hotel] hotel_sailboat_large: Sending visitors...
[BUILDINGS-Hotel] hotel_sailboat (hotel_sailboat_large)
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
Loading configuration...
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
ERROR: Sequence OOSlBONUSl ERROR: This action does not support streakbonus
Loading configuration...
ERROR: Sequence OOSŸ(): Supplying: resort_hotel_large (id:10607)
ERROR: Sequence OOS
[BUILDINGS-Hotel] resort_hotel_large: Supplying... (with goods)
ERROR: Wonder::getRadius - Invalid client enqueue timeŸ(): Harvesting: resort_hotel_large (id:10607)
ERROR: Wonder::getRadius - Invalid client enqueue time
[BUILDINGS-Hotel] resort_hotel_large: Harvesting...
[BUILDINGS-Hotel] resort_hotel_large: Sending visitors...
[BUILDINGS-Hotel] Resorthotel (resort_hotel_large)
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
Loading configuration...
[BUILDINGS-Hotel] Action started...
=====================================
[BUILDINGS-Mall] Action done.
Coins: 54108482 Goods: 99694/120840/0 Energy: 14
Loading configuration...
ERROR: Sequence OOSŸ(): Supplying: mall2_level5 (id:10989)
ERROR: Sequence OOS
[BUILDINGS-Mall] mall2_level5: Supplying... (with goods)
Ÿ(success): Harvesting: mall2_level5 (id:10989)
ERROR: OOSlBONUSl ERROR: This action does not support streakbonus
ERROR: OOS
[BUILDINGS-Mall] mall2_level5: Harvesting...
[BUILDINGS-Mall] mall2_level5: Sending visitors...
[BUILDINGS-Mall] (mall2_level5)
Coins: 54108482 Goods: 99694/120840/0 Energy: 13
Loading configuration...
Ÿ(success): Supplying: mall_level5 (id:9137)
[BUILDINGS-Mall] mall_level5: Supplying... (with goods)
Ÿ(success): Harvesting: mall_level5 (id:9137)
lBONUSl streakBonus3: 8579 coins
[BUILDINGS-Mall] mall_level5: Harvesting...
Ÿ(success): Visiting: [mall_level5] 57 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
Ÿ(success): Visiting: [mall_level5] 100 times.
[BUILDINGS-Mall] mall_level5: Sending visitors...
[BUILDINGS-Mall] (mall_level5)

Blondero

Posts : 49
Points : 52
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  dada79 on Sun Sep 25, 2011 9:47 am

Hi all sowijo_kaskuser give me a solution to collectBB with wonder , I tried it , it seems to work fine :

function code :

Code:
function collectBB($obj, $silent = true) {
      //if($silent)$this->SendMsg('[BUILDINGS-Business] Collect (' . $obj['itemName'] . ") x=" . $obj['position']['x'] . " y=" . $obj['position']['y']);

      unset($this->error_msg);
      $amf = new AMFObject("");
      $amf->_bodys[0] = new MessageBody();
      $amf->_bodys[0]->_value[0] = $this->GetAmfHeader();

      $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
      $amf->_bodys[0]->responseURI = '';
      $amf->_bodys[0]->_value[2] = 0;

      $amf->_bodys[0]->_value[1][0]['sequence'] = $this->GetSequense();;
      $amf->_bodys[0]->_value[1][0]['functionName'] = "WorldService.performAction";
      $amf->_bodys[0]->_value[1][0]['params'][0] = "harvest";
      $amf->_bodys[0]->_value[1][0]['params'][1] = $obj;
      $amf->_bodys[0]->_value[1][0]['params'][1]['state'] = "closedHarvestable"; //make it ready to collect
      $amf->_bodys[0]->_value[1][0]['params'][2] = microtime(true);
      $amf->_bodys[0]->_value[1][0]['params'][3] = Array();
      $amf->_bodys[0]->_value[1][0]['params'][3][0] = $this->xmlsOb->GetBuildingsProductCount($obj['itemName']);
      $amf->_bodys[0]->_value[1][0]['params'][3][1] = 0;

      $serializer = new AMFSerializer();
      $result = $serializer->serialize($amf);
      $x = $this->SendRequest($result);

    $msg = $this->CheckResponse($x);
      if($silent)$this->SendMsg("Harvesting (" . $obj['itemName'] . ") x=" . $obj['position']['x'] . " y=" . $obj['position']['y']);

      $this->Add2Report('Collect business buildings');
   }

for clientEnqueueTime just do : microtime(true); and it seems to work fine Wink
many thanks to sowijo_kaskuser Smile


Last edited by dada79 on Sun Sep 25, 2011 10:02 am; edited 1 time in total

dada79

Posts : 53
Points : 38
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  <BQ> on Sun Sep 25, 2011 10:00 am

on the second cycle i get some Errors by colecting SocialBusinesses, the next cycle is good then

Code:

Loading configuration...
ERROR: Sequence OOSŸ(): Supplying: casino_social_business (id:8074)
[BUILDINGS-Hotel] casino_social_business: Supplying... (with goods)
ERROR: Not ready for harvestŸ(): Harvesting: casino_social_business (id:8074)
ERROR: Not ready for harvest
[BUILDINGS-Hotel] casino_social_business: Harvesting...
Ÿ(success): Visiting: [casino_social_business] 66 times.
Ÿ(success): Visiting: [casino_social_business] 100 times.
Ÿ(success): Visiting: [casino_social_business] 100 times.
Ÿ(success): Visiting: [casino_social_business] 100 times.
Ÿ(success): Visiting: [casino_social_business] 100 times.
[BUILDINGS-Hotel] casino_social_business: Sending visitors...
[BUILDINGS-Hotel] Côte-d'Azur-Casino von xxx (casino_social_business)
Coins: 270744137 Goods: 209399/306420/0 Energy: 42
Loading configuration...
Coins: 270744137 Goods: 209399/306420/0 Energy: 42
ERROR: Sequence OOSlBONUSl ERROR: This action does not support streakbonus
ERROR: Sequence OOS
Loading configuration...
ERROR: Sequence OOSŸ(): Supplying: tiki_social_business (id:7935)
[BUILDINGS-Hotel] tiki_social_business: Supplying... (with goods)
ERROR: Not ready for harvestŸ(): Harvesting: tiki_social_business (id:7935)
[BUILDINGS-Hotel] tiki_social_business: Harvesting...
Ÿ(success): Visiting: [tiki_social_business] 28 times.
Ÿ(success): Visiting: [tiki_social_business] 100 times.
Ÿ(success): Visiting: [tiki_social_business] 100 times.
Ÿ(success): Visiting: [tiki_social_business] 100 times.
Ÿ(success): Visiting: [tiki_social_business] 100 times.
[BUILDINGS-Hotel] tiki_social_business: Sending visitors...
[BUILDINGS-Hotel] Tonga-Turm von xxx (tiki_social_business)
Coins: 270744137 Goods: 209399/306420/0 Energy: 42

it's some wrong with the code?
Code:

   function processVisits($obj, $silent = true) {
      $extraVisits = $obj['lastSavedMax'] - $obj['visits'];
      if ($obj["className"] == "Hotel" ||
          $obj["className"] == "SocialBusiness" ||
            $obj["className"] == "Mall" ||
            $obj["className"] == "Mall2" ||
    (isset($obj["derivesFrom"]) && (in_array($obj["derivesFrom"],array("hotel_sailboat_low","casino_social_business")))))   

<BQ>

Posts : 221
Points : 226
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  dada79 on Sun Sep 25, 2011 10:12 am

<BQ> wrote:on the second cycle i get some Errors by colecting SocialBusinesses, the next cycle is good then

it's some wrong with the code?
Code:

   function processVisits($obj, $silent = true) {
      $extraVisits = $obj['lastSavedMax'] - $obj['visits'];
      if ($obj["className"] == "Hotel" ||
          $obj["className"] == "SocialBusiness" ||
            $obj["className"] == "Mall" ||
            $obj["className"] == "Mall2" ||
    (isset($obj["derivesFrom"]) && ($obj["derivesFrom"]=="hotel_sailboat_low")))

don't need to control if "casino_social_business" is in array normally ... Mall2 classname doesn't exist , just Mall ...

try :

Code:

   function processVisits($obj, $silent = true) {
      $extraVisits = $obj['lastSavedMax'] - $obj['visits'];
      if ($obj["className"] == "Hotel" ||
          $obj["className"] == "SocialBusiness" ||
            $obj["className"] == "Mall" ||
    (isset($obj["derivesFrom"]) && ($obj["derivesFrom"]=="hotel_sailboat_low")))

dada79

Posts : 53
Points : 38
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  <BQ> on Sun Sep 25, 2011 10:21 am

[quote="dada79"]

don't need to control if "casino_social_business" is in array normally ... Mall2 classname doesn't exist , just Mall ...

try :

Code:

   function processVisits($obj, $silent = true) {
      $extraVisits = $obj['lastSavedMax'] - $obj['visits'];
      if ($obj["className"] == "Hotel" ||
          $obj["className"] == "SocialBusiness" ||
            $obj["className"] == "Mall" ||
    (isset($obj["derivesFrom"]) && ($obj["derivesFrom"]=="hotel_sailboat_low")))

not working by me with only
Code:

$obj["className"] == "SocialBusiness" ||
#
#
(isset($obj["derivesFrom"]) && ($obj["derivesFrom"]=="hotel_sailboat_low")))

he visits then the SocialBusinesses only 22 times

<BQ>

Posts : 221
Points : 226
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  dada79 on Sun Sep 25, 2011 10:30 am

[quote="<BQ>"]
dada79 wrote:

don't need to control if "casino_social_business" is in array normally ... Mall2 classname doesn't exist , just Mall ...

try :

Code:

   function processVisits($obj, $silent = true) {
      $extraVisits = $obj['lastSavedMax'] - $obj['visits'];
      if ($obj["className"] == "Hotel" ||
          $obj["className"] == "SocialBusiness" ||
            $obj["className"] == "Mall" ||
    (isset($obj["derivesFrom"]) && ($obj["derivesFrom"]=="hotel_sailboat_low")))

not working by me with only
Code:

$obj["className"] == "SocialBusiness" ||
#
#
(isset($obj["derivesFrom"]) && ($obj["derivesFrom"]=="hotel_sailboat_low")))

he visits then the SocialBusinesses only 22 times

in processVisitsFragment add SocialBusiness to array ;

Code:
if(in_array($obj['className'],array('Hotel','Mall','SocialBusiness')))

dada79

Posts : 53
Points : 38
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  <BQ> on Sun Sep 25, 2011 10:32 am

[quote="dada79"]

in processVisitsFragment add SocialBusiness to array ;

Code:
if(in_array($obj['className'],array('Hotel','Mall','SocialBusiness')))

done Very Happy
curious 1 cycle is good, next bad ...

<BQ>

Posts : 221
Points : 226
Join date : 2011-09-21

Back to top Go down

Re: Project DEVIL 1.10 (29.10.2011)

Post  Sponsored content


Sponsored content


Back to top Go down

Page 4 of 12 Previous  1, 2, 3, 4, 5 ... 10, 11, 12  Next

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum