CityVilleBot (Project DEVIL)


Join the forum, it's quick and easy

CityVilleBot (Project DEVIL)
CityVilleBot (Project DEVIL)
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Try LilyCity HD, it's a real cityville clone
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptyMon Apr 20, 2015 1:52 pm by ertyanna

» expansions cityville hack new 12/12/15
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptySat Feb 14, 2015 9:52 pm by nico

» Biohazard Problem Expansion
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptySat Nov 08, 2014 3:12 pm by CV FO LIFE

» CAN SOMEONE HELP ME?
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptySat 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)
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptySat Nov 01, 2014 12:59 pm by Blue Angel

» [Resolved] codebase-php Error
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptySun Oct 12, 2014 7:22 am by nico

» -_- Which bot is now working ????
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptyThu Oct 09, 2014 7:06 pm by lobobpf6

» bot 1.2 does nt work
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptySun Aug 10, 2014 1:00 am by nathaliafariass

» COMO FUNCIONA
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) EmptySun Aug 10, 2014 12:38 am by nathaliafariass

Affiliates
free forum


[PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

+3
theclarets1969
rlff38
Little Todd
7 posters

Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  Little Todd Thu Apr 26, 2012 8:11 pm

This plugin performs actions in your Downtown

v1.0
-Initial Release

v1.1
-Fixed issue with Business Buildings not showing in correct listing.

v1.2
-Fixed issue with residences showing 0 population.
-Added quest footer to supply Dam, Windmill, and Electric Company. (So you get credit on your quest when bot supplies them.)
-Added option for streakbonus on Community and Landmarks. (Moved for botclass.php)
-Rewrote entire class file for faster loading.
-**Sections now only appear if you have those objects in your downtown.
-**Example: You will only see the select Landmarks box if you have a Landmark in your downtown.

v1.3
- Fixed issue with population not showing correctly on Skyscrapers, Custom Residences, and Neighborhoods.
- Fixed issue with appraisal not showing correctly on Premium Businesses.
- Rewrote hooks file for faster bot running. Less reloading of the configuration.

Requires latest full install.

CVBot - DEVIL 1.10 [Update 1.5.6] (27/04/2012)

Code:
http://www.mediafire.com/download.php?11mveevpvbs3cng

Enjoy,
Little Todd.


Last edited by Little Todd on Tue May 08, 2012 6:53 pm; edited 2 times in total

Little Todd

Posts : 409
Points : 425
Join date : 2012-02-23

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  rlff38 Thu Apr 26, 2012 8:23 pm

Thx Very Happy

rlff38

Posts : 120
Points : 126
Join date : 2011-12-27
Location : France

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  theclarets1969 Thu Apr 26, 2012 8:52 pm

great work little todd appreciated

theclarets1969

Posts : 501
Points : 805
Join date : 2011-10-14
Location : planet earth

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  rlff38 Thu Apr 26, 2012 9:31 pm

In v1.2
* Need a fix for Neighbourhoods:

line 772, AFTER
Code:
$pop += $house["currentPopulation"];

ADD ON A NEW LINE
Code:
if($house["currentPopulation"]==0) {$pop += $xmlsOb->GetResidencesBasePopulation($house["itemName"]);}

Very Happy

rlff38

Posts : 120
Points : 126
Join date : 2011-12-27
Location : France

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  Little Todd Thu Apr 26, 2012 10:11 pm

rlff38 wrote:In v1.2
* Need a fix for Neighbourhoods:

line 772, AFTER
Code:
$pop += $house["currentPopulation"];

ADD ON A NEW LINE
Code:
if($house["currentPopulation"]==0) {$pop += $xmlsOb->GetResidencesBasePopulation($house["itemName"]);}

Very Happy

Nice catch.

I imagine custom homes has the same issue.

I'll get it updated.

Thanks.

Little Todd

Posts : 409
Points : 425
Join date : 2012-02-23

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  <BQ> Fri Apr 27, 2012 2:28 am

really good work Little Todd,

the loading performance is super, it is maybe possible for the the other plugs (Buildings, Im-Export & Factory)?

<BQ>

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

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  Little Todd Fri Apr 27, 2012 4:43 am

<BQ> wrote:really good work Little Todd,

the loading performance is super, it is maybe possible for the the other plugs (Buildings, Im-Export & Factory)?

Thanks.

And yes, Buildings can easily be done, since it's the same functions. Just need to change the world and plugin settings to save correctly.

I have stayed away form Im-Export, since it's your plug, but I can take a look and see what can be done. Which reminds me.... People are putting the trucking depot in the main world, and the airport in downtown, so I think it should check both worlds for these items. I think ships, cruisers, ferry and trains can only be in main world, so we're good with those not being included in Downtown.

As for the factory, I'll have to look at it, I've not used it so I have no idea at this time.

I'll let you know, and keep you updated on what I think can be done to improve performance.

Little Todd

Posts : 409
Points : 425
Join date : 2012-02-23

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  <BQ> Fri Apr 27, 2012 3:00 pm

Little Todd wrote:

Thanks.

And yes, Buildings can easily be done, since it's the same functions. Just need to change the world and plugin settings to save correctly.

I have stayed away form Im-Export, since it's your plug, but I can take a look and see what can be done. Which reminds me.... People are putting the trucking depot in the main world, and the airport in downtown, so I think it should check both worlds for these items. I think ships, cruisers, ferry and trains can only be in main world, so we're good with those not being included in Downtown.

As for the factory, I'll have to look at it, I've not used it so I have no idea at this time.

I'll let you know, and keep you updated on what I think can be done to improve performance.


trucking depot in the main world, and the airport in downtown Very Happy

all the 3 plugs need some time to load, so it would great
brings a rewrite from these plugs a improvement?

<BQ>

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

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  rlff38 Tue May 08, 2012 10:11 am

there is another bug with some business which not have a "min" appraisal

Before fix :
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Bugappraisalindt

These businesses can be built using the glass Studio.

In order to get the appraisal value, you must REPLACE the GetBusinessAppraisal function in ./codebase-php/GetSettingsFromXml.php with this one :

Code:
  function GetBusinessAppraisal($itemName){
      foreach ($this->gsXML->items->item as $item)
      {
        if ($item['name'] == $itemName)
        {
            if (!isset($item->appraisal['min']))
            {
              if(!isset($item['derivesFrom']))
              {
                  $res = $this->GetBusinessMaxAppraisal($itemName);
                  break;
              }
              $res = $this->GetBusinessAppraisal((string)$item['derivesFrom']);
              break;
            }
            $res = $item->appraisal['min'];
            break;
        }
      }
      return $res;
  }

After fix :
[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Bugappraisalindtcorrect

rlff38

Posts : 120
Points : 126
Join date : 2011-12-27
Location : France

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  Little Todd Tue May 08, 2012 6:56 pm

Plugin updated.

See first post.

Little Todd

Posts : 409
Points : 425
Join date : 2012-02-23

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  demian.kinley Tue May 08, 2012 8:20 pm

Little Todd wrote:Plugin updated.

See first post.


thank you, Little Todd

you have read my message about your ImageDL ?

demian.kinley

Posts : 323
Points : 351
Join date : 2012-02-20

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  <BQ> Wed May 09, 2012 2:10 am

some problems by me, after try to capture bandit in DT ...

Code:

  .
  .
  .
=====================================
[BUILDINGS-PremiumBus] Visiting all business buildings done.
Warning: Invalid argument supplied for foreach() in C:\Dokumente und Einstellungen\Rene\Eigene Dateien\Downloads [Project DEVIL]\CVBot - Project DEVIL 1.10 [Both Worlds]\Plugins\Buildings-DownTown\Hooks.php on line 920
[BUILDINGS-PremiumBus] Visiting all business buildings (before supply)
=====================================
[BUILDINGS-PremiumBus] LOOP #3 starting...
=====================================
[BUILDINGS-PremiumBus] Supplying done.
Warning: Invalid argument supplied for foreach() in C:\Dokumente und Einstellungen\Rene\Eigene Dateien\Downloads [Project DEVIL]\CVBot - Project DEVIL 1.10 [Both Worlds]\Plugins\Buildings-DownTown\Hooks.php on line 1105
[BUILDINGS-PremiumBus] Supplying all business buildings (with premium goods)...
=====================================
Loading Downtown World
[BUILDINGS-BanditsDT] Action done.
[BUILDINGS-BanditsDT] Error: Not enough cops, need 5
[BUILDINGS-BanditsDT] Bandit(6) requires 5 cops, you have 0
[BUILDINGS-BanditsDT] Trying to capture Bandit(6)
[BUILDINGS-BanditsDT] 4[]
[BUILDINGS-BanditsDT] Bandit(7) requires 6 cops, you have 6
[BUILDINGS-BanditsDT] Trying to capture Bandit(7)
[BUILDINGS-BanditsDT] Action started...
=====================================


edit: with my old hooks, i have no probs

<BQ>

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

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  Little Todd Wed May 09, 2012 2:27 am

<BQ> wrote:some problems by me, after try to capture bandit in DT ...

Code:

  .
  .
  .
=====================================
[BUILDINGS-PremiumBus] Visiting all business buildings done.
Warning: Invalid argument supplied for foreach() in C:\Dokumente und Einstellungen\Rene\Eigene Dateien\Downloads [Project DEVIL]\CVBot - Project DEVIL 1.10 [Both Worlds]\Plugins\Buildings-DownTown\Hooks.php on line 920
[BUILDINGS-PremiumBus] Visiting all business buildings (before supply)
=====================================
[BUILDINGS-PremiumBus] LOOP #3 starting...
=====================================
[BUILDINGS-PremiumBus] Supplying done.
Warning: Invalid argument supplied for foreach() in C:\Dokumente und Einstellungen\Rene\Eigene Dateien\Downloads [Project DEVIL]\CVBot - Project DEVIL 1.10 [Both Worlds]\Plugins\Buildings-DownTown\Hooks.php on line 1105
[BUILDINGS-PremiumBus] Supplying all business buildings (with premium goods)...
=====================================
Loading Downtown World
[BUILDINGS-BanditsDT] Action done.
[BUILDINGS-BanditsDT] Error: Not enough cops, need 5
[BUILDINGS-BanditsDT] Bandit(6) requires 5 cops, you have 0
[BUILDINGS-BanditsDT] Trying to capture Bandit(6)
[BUILDINGS-BanditsDT] 4[]
[BUILDINGS-BanditsDT] Bandit(7) requires 6 cops, you have 6
[BUILDINGS-BanditsDT] Trying to capture Bandit(7)
[BUILDINGS-BanditsDT] Action started...
=====================================

I find your log output very strange....

After trying to capture bandits, it should be reloading the config, but I don't see any coins, goods, energy line.
Also, the foreach lines that show the error is $bot->dt_fobjects, which is always set....

Let me run a few tests and see if I can replicate the error.


Little Todd

Posts : 409
Points : 425
Join date : 2012-02-23

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  AQIROCK Tue May 29, 2012 4:30 am

Dogs theater is Hotel I saw it in plugin buildings downtown but there's nothing to click is there anyway to fix it? Here is the pic : [You must be registered and logged in to see this link.] Thanks in advanced!
AQIROCK
AQIROCK

Posts : 426
Points : 448
Join date : 2011-12-11
Age : 42

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  AQIROCK Tue May 29, 2012 4:49 am

lol! it showing the same also for building plugins [You must be registered and logged in to see this link.] hmm maybe cant use this plugin for that. for main town I took by bot but for downtown i do it manual just wonder why we cant name that dogs theater like others hotel thou
AQIROCK
AQIROCK

Posts : 426
Points : 448
Join date : 2011-12-11
Age : 42

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  dinos Tue May 29, 2012 7:05 am

I have anticipated aqirock.
I was going to write the same thing. Very Happy

dinos

Posts : 17
Points : 19
Join date : 2012-03-02

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  AQIROCK Tue May 29, 2012 7:13 am

dinos wrote:I have anticipated aqirock.
I was going to write the same thing. Very Happy

haha can't do anything I think as we also cant click the dogs theater to invite friends but I have some tips, place a most goods business beside that hotel, collects it and it will also make your dogs theater full in few minutes as long as you supply that business
AQIROCK
AQIROCK

Posts : 426
Points : 448
Join date : 2011-12-11
Age : 42

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  <BQ> Tue May 29, 2012 7:52 am

AQIROCK wrote:

haha can't do anything I think as we also cant click the dogs theater to invite friends but I have some tips, place a most goods business beside that hotel, collects it and it will also make your dogs theater full in few minutes as long as you supply that business

updates comes in some minutes

<BQ>

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

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  AQIROCK Tue May 29, 2012 7:57 am

<BQ> wrote:
updates comes in some minutes

cool but I have finish this quest im sure its giving a benefit to others thou xD
AQIROCK
AQIROCK

Posts : 426
Points : 448
Join date : 2011-12-11
Age : 42

Back to top Go down

[PLUGIN] Buildings-DownTown v1.3 (08/05/2112) Empty Re: [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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