Search Unity

[RELEASED] City Building & Battle Perfect Kit

Discussion in 'Assets and Asset Store' started by chemael, Nov 16, 2015.

  1. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @Fortunato1
    1. To prevent 'Finish training' button work in case ArmyCamp doesn't have enough housing space to cover units.
    Change OnButtonInstant function in UIDialogTraining.cs
    Code (csharp):
    1.  
    2. public void OnButtonInstant() {
    3.  
    4.     //Get All ArmyCamp's HousingSpace
    5.     int CampHousingSpaceTotal = 0;
    6.     for(int j=0 ; j < BEGround.instance.Buildings[8].Count ; ++j) {
    7.         CampHousingSpaceTotal += BEGround.instance.Buildings[8][j].GetUnitHousingSpaceTotal();
    8.      }
    9.  
    10.     // If GenQueHousingSpace + All ArmyCamp Unit's HousingSpaces
    11.     // Larger then ArmyCamp's Available HousingSpace,
    12.     // Then return
    13.     if(building.UnitGenHousingSpaceTotal + CampHousingSpaceTotal > BEGround.instance.TroopCapacityTotal) {
    14.         return;
    15.      }
    16.  
    17.     int UnitGenTimeLeftTotal = (int)building.UnitGenTimeLeftTotal();
    18.     int GemCount = TBDatabase.GetGemBySec(UnitGenTimeLeftTotal);
    19.  
    20.     SceneTown.Gem.ChangeDelta(-GemCount);
    21.     building.UnitGenUpdate(UnitGenTimeLeftTotal+10);
    22.     _Hide();
    23. }
    24.  
    2. When Battle is Ended. in case player Win, add Plunder Resources and decrease lost Unit count. if player lose, just decrease Unit count.
    You can see this code at UpdateTownData function in SceneBattle.cs.
    I tested the battle, and it works normally.
     
  2. ToolbeltTechnology

    ToolbeltTechnology

    Joined:
    May 24, 2016
    Posts:
    10
    This looks like an amazing tool to help kickstart the development of a good rts game for mobile!
     
  3. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
  4. generalhak

    generalhak

    Joined:
    Apr 20, 2014
    Posts:
    28
    hi , i just bought it , its awesome
    in this asset i can cheat (change time in phone and building get completed)
    i bought this asset : https://www.assetstore.unity3d.com/en/#!/content/18984
    how can i make your asset to use this asset for timing? what script i have to change ?
    __
    training unit have alot of bugs : like : dosen't get exir for first unit
    and with one tap (without hold) add 2 - 8 unit in trannig
    and when we dont have enough exir we can still make units !!
    thanks
     
    Last edited: Aug 18, 2016
  5. fabricio-silva

    fabricio-silva

    Joined:
    Dec 16, 2012
    Posts:
    2
    Hello , the package works perfectly in Unity 5.3 , need some external asset to work , I saw something about uGui ?
     
  6. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @generalhak
    Thank you for purchasing my asset.
    I saw the Time-cheat prevention asset you linked to me.
    But i didn't use that asset before, so i can't tell you how to apply that asset to my 'CB&BPK' in detail.
    Instead, I can tell you how 'CB&BPK' check the time of building & training completion.
    The class BETime has a variable named deltatime. it was updated by Update function, so you can add time verify
    function at the end of Update function in BETime class.

    And Thank you for telling me about the bug.
    I will check about that.

    to @fabricio-silva
    Thank you for purchasing my asset.
    'CB&BPK' need no other asset. all UI was created by unity gui(uGui).
     
    Last edited: Aug 20, 2016
  7. generalhak

    generalhak

    Joined:
    Apr 20, 2014
    Posts:
    28
    thanks
    but since i buy this i working on bugs !
    another bug is :
    cancel building upgrade > its working
    again upgrade and cancel building upgrade > refund twice
    repeat > refund more !
     
  8. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @generalhak

    Thank you for reporting bugs.
    Here is bug fix.

    1. When training dialog, unit can trainined without any cost.
    Add source code below to the beginning of UnitGenAdd() function in UIDialogTraining.cs
    Code (csharp):
    1.  
    2. PayDef pd = TBDatabase.GetPayDef((int)PayType.Elixir);
    3. ArmyDef ad = TBDatabase.GetArmyDef(unitID, 1);
    4. if((pd != null) && (ad != null)) {
    5.     if(pd.Number.Current() < ad.TrainingCost) {
    6.         // return if not enough cost
    7.         return;
    8.     }
    9. }
    10.  
    2. When training, with one tap add 2~8 unit to the training queue.
    I'm working now. i will post about fix soon.

    3. While repeating building upgrade and cancel, refund count was increased
    Change source code like below, SetUpButtons() function in UDialogMessage.cs
    Code (csharp):
    1.  
    2. if(i == 0) {
    3.   button.GetComponent<Button>().onClick.RemoveAllListeners(); // Add this single line
    4.   //Text txt = button.transform.Find ("Text").GetComponent<Text>();
    5.   button.transform.Find ("Text").GetComponent<Text>().text = textsub[0];
    6.   button.GetComponent<Button>().onClick.AddListener(() => { result = iTemp; Hide(); });
    7. }
    8.  
     
  9. fabricio-silva

    fabricio-silva

    Joined:
    Dec 16, 2012
    Posts:
    2
    how do I set the value of experience that each item generates exempolo : . the gold mine generates 3 Exp the next updating win 7 exp
     
  10. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @fabricio-silva
    Hi,
    The exp was defined as variable named RewardExp at BuildingDef class in TBDatabase.cs file.
    In current version, exp was square root value of build time.
    Code (csharp):
    1.  
    2. RewardExp = (int)Mathf.Sqrt(BuildTime);
    3.  
     
  11. Cartoon-Mania

    Cartoon-Mania

    Joined:
    Mar 23, 2015
    Posts:
    320
    I bougt City Building Perfect Kit (99$ version)

    you say this kit include RTS Camera..

    but there are no RTS Camera.. but very simple zoomin. zoom out camera

    I'm wrong?
     
  12. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @Cartoon-Mania
    Hi, 'Mobile RTS Camera' was included in 'City Building & Battle Perfect Kit'.
    I had a plan to add 'Mobile RTS Camera' to the 'City Building Perfect Kit' also, but for some reason, the update was delayed.
     
  13. Cartoon-Mania

    Cartoon-Mania

    Joined:
    Mar 23, 2015
    Posts:
    320
    I want to know update plan... When are you going to release update version?
     
  14. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @Cartoon-Mania
    The date of 'CBPK' update was not fixed.
    I will post about details and date about the update when the date was fixed.
     
  15. Cartoon-Mania

    Cartoon-Mania

    Joined:
    Mar 23, 2015
    Posts:
    320
    manual is too poor.(99$ version)

    you promise new documnet .. but still There is no change.
     
  16. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @Cartoon-Mania
    Sorry for delay of the document update.
    I'm preparing new document & update for 'City Building Perfect Kit' now.
     
  17. Dannyt007

    Dannyt007

    Joined:
    Aug 3, 2016
    Posts:
    3
    Hi,
    Do you have some news ? An update ?
     
  18. Adeel2072

    Adeel2072

    Joined:
    Aug 9, 2015
    Posts:
    4
    How can i make building's grid size uneven for instance 2x3,3x2,4x2,2x4..
     
  19. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @Adeel2072
    Hi,
    If you want to change building's tile size to 2x3 (for example) follow steps below.
    - Change TileSize Attribute in BuildingType at Database.xml
    - Add Tile2x3 material to Resources/Materials folder.
    (You can duplicate existing Tile2x2 material and change Tiling x, y value in inspector tab)
     
  20. Razed21

    Razed21

    Joined:
    Apr 2, 2016
    Posts:
    3
    Can I get this asset for free I don't have money to buy this asset
     
  21. loydskull

    loydskull

    Joined:
    May 2, 2017
    Posts:
    3
    hi chemael i like your asset i want to buy it.

    You have plan to put a guildwar system and add also a server and client support for your nxt update.?
     
  22. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @loydskull
    Hi,
    I have a plan to add server features. but developing server features takes much times. (several months)
    I will post about details of update features when i'm ready.
     
    loydskull likes this.
  23. Razed21

    Razed21

    Joined:
    Apr 2, 2016
    Posts:
    3
    Chemael can u update the apk links I want to test before upgrading to battleperfect kit
     
  24. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
  25. loydskull

    loydskull

    Joined:
    May 2, 2017
    Posts:
    3
    Thanks for the reply sir. Im looking forward on it.
     
  26. Sqwee-Ray

    Sqwee-Ray

    Joined:
    Aug 2, 2017
    Posts:
    1
    Hi,
    I just bought your kit for one specific reason. The fact that you are able to upgrade buildings. I have the other kits that are $400 and they miss this very essential piece. They want $1800 to build that code into their "Complete Kit." Your code seems to be very simple to read and understand. That being said, can you please narrow down the area or scripts that deal with showing the real-time details of the instance and upgrade details. This would be very helpful..
     
  27. loydskull

    loydskull

    Joined:
    May 2, 2017
    Posts:
    3
    hi,

    Can you give me estimated month in your next updating game for server feature and for the guild war system sir ?
     
  28. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    196
    to @Sqwee-Ray
    Hi,
    Thank you for purchasing my asset.
    If you want to add more info to the Building Info Dialog, you must see UIDialogInfo.cs.

    to @loydskull
    Hi,
    The update date was not fixed yet. Sorry. I will write a post about that, when i was ready.
     
  29. Gatskop_Software

    Gatskop_Software

    Joined:
    Sep 21, 2014
    Posts:
    86
    Hi I did buy this asset loooonnnng time ago I see you talking about an update what will be in the update and when do you think you will be done with it ?
     
  30. Gatskop_Software

    Gatskop_Software

    Joined:
    Sep 21, 2014
    Posts:
    86
    The elixir and gold you win in a battle doesn't reflect in the game
     
  31. RobDan

    RobDan

    Joined:
    Aug 5, 2017
    Posts:
    1
    Hello how are you doing?
    I did buy this game version 1 from unity asset store.
    but I need to talk more detail.
    If you are developer of this building city, let me know. Thanks.
     
  32. furkanzeynep110

    furkanzeynep110

    Joined:
    Jan 6, 2018
    Posts:
    1
    @chemael hello i bought this package but how can i arrange building & soldier & war

    Please Help me !!
     
  33. Betabit

    Betabit

    Joined:
    Feb 4, 2018
    Posts:
    3
    I buy city building perfect kit before I know city building & battle perfect kit ,
    can you help me?
     
  34. RandAlThor

    RandAlThor

    Joined:
    Dec 2, 2007
    Posts:
    1,293
    Hi, in Unity 2018.2.6 i fet an error because of the absolete old particle system.
    Can you please update it. Thank you.
    Also did i say update, what or when will the update come that you mentioned a while ago.
     
  35. Fabyanno

    Fabyanno

    Joined:
    Aug 27, 2015
    Posts:
    6
    Is it possible to disable the battle option in this project?
     
  36. Marc-Uberstein

    Marc-Uberstein

    Joined:
    Apr 10, 2013
    Posts:
    9
    Is this still a supported product? I don't want to pay for a deprecated asset.. please let me know before I do the purchase. Thanks.
     
  37. muhqrocks

    muhqrocks

    Joined:
    Nov 7, 2014
    Posts:
    8
    I recommend you, do not buy it!

    There is no support, and there will never be one!

    have a nice day!
     
    Marc-Uberstein likes this.
  38. cloudeds

    cloudeds

    Joined:
    Oct 22, 2018
    Posts:
    1
    I'm interested in this kit but i'm interested in making a space rts type game can this product do that. Also in the normal rts style or builder in pvp can another map be used instead of or in addition to the player being attacked?
     
  39. ariftuna16

    ariftuna16

    Joined:
    Aug 14, 2021
    Posts:
    1
    hello i want to buy this can you help me?