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:
    194

    CBPK AssetStore Link

    About
    This is 'City Building Perfect Kit' (CBPK).
    Use CBPK to create city building games like 'clash of clan' or 'boom beach', and any kind of city or town build game.

    Feature
    - all source code included (c#)
    - unity 4.6x, 5.0x support
    - uGui only (no other asset required)
    - a star path finding included
    - mobile friendly (android demo apk will be supported)

    Features Detail
    - 3d city building framework
    - tile grid ( with grid to snap functionality)
    - 9 type of building with specialized functions
    (Town Hall, Hut, Wall, Gold Mine, Gold Storage, Elixir Extractor, Elixir Storage, Barrack, Army Camp)
    - produce resources by realtime
    - collect resources by clicking resource building
    - build various buildings with collected resources
    - each building creation has limitation by user level & town hall level
    - building upgrade in realtime
    - uGui base game UI
    (building info dialog, upgrade dialog, command dialog, shop, option, messagebox, training dialog..)
    - buy gems
    - use gem to finish the work instantly
    - get exp and levelup
    - a star path finding included
    (worker unit use a star path finding to move along the map, and to find working buildings)
    - wall building (same way to coc)
    - battle functionality not included.

    With this kit, create city building type game easily!

    About Battle related features
    Battle functionality will be added to form of another asset package ('city building & battle perfect kit') later.
    I will support upgrading functionality from this asset to 'city building & battle perfect kit'.
    battle functionality will include features below
    - training attack units
    - build defense towers
    - invasion to other(npc) city
    - plunder resources
    - produce and use war items while in battle (recover our unit's hp, bombing ground,...)

    'City Building & Battle Perfect Kit' is Available Now !!!.


    CB&BPK AssetStore Link

    Added Feature
    - camera control with touch input (pixel perfect camera panning, pinch zoom, rotate supported)
    (yes, Mobile RTS Camera was included - http://u3d.as/rmK)
    - 2 types of removable deco object(tree,cactus)
    - editor added (create & load, edit, save maps)
    - 3 types of attack unit(ground, air type)
    - training units in Barrack
    - 3 types of defense tower(minigun,missile,laser)
    - invasion to other(npc) city
    - deploy attack unit by touch ground
    - game result process (get plunder resource, consume deployed attack unit) - plunder resources
    - use war items while in battle (big missile, small missile pack)
    - unit movement by flock avoid algorithm
    - all bug fixed.

    server or network battle is not supported.
    Database.xml file format was changed. Backup your project before upgrade.

    Price
    the price of CB&BPK is 299$.
    the owner of 'city building perfect kit' (CBPK) can upgrade to the CB&BPK with 199$ price.

    Resources
    Manual
    Android APK

    Be careful
    Before purchase this asset, i recommend you to test downloadable apk and see video & manual.
    This asset is not for beginner.

    Thanks.
     
    Last edited: May 7, 2016
    thedreamer likes this.
  2. thedreamer

    thedreamer

    Joined:
    May 13, 2013
    Posts:
    218
  3. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    Thank you thedreamer~
     
  4. kasana_94

    kasana_94

    Joined:
    Apr 13, 2014
    Posts:
    24
    Excellent, but I cannot find it on store !!
     
  5. Shawn67

    Shawn67

    Joined:
    Jan 2, 2014
    Posts:
    2,192
    Ditto... Has it not been approved yet? If it has, link would be nice.. ;)
     
  6. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to kasana_94 & Shawn67
    Thank you for watching this thread.
    The 'City Building Perfect Kit' is in waiting review now.
     
  7. superflay

    superflay

    Joined:
    Nov 21, 2015
    Posts:
    13
    How much will it cost (approx)
     
  8. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    The 'City Building Perfect Kit' is on the Store now!

    to superflay
    Hi~ the price of CBPK is $100.
     
  9. Canvas-Games

    Canvas-Games

    Joined:
    Dec 4, 2015
    Posts:
    2
    I am interested to make a 2D city builder game and I also already have some 2D sprites.
    I saw at the kit page that the buildings were some type of 3d file.. If I want to use 2D sprites instead, would the kit support?
    How would it be done, technically?

    Do you have an .apk or webplayer where you could share the game from the video?
    Would be very handful for anyone to really prove the gameplay.

    Also, I found that the manual very short.. Is there more documentation that comes along after purchasing the kit?

    At last, it seems very nice ;)
     
  10. MrGky93

    MrGky93

    Joined:
    Feb 27, 2014
    Posts:
    268
    demo ??
     
  11. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to Canvas Games
    - To use this asset in 2D space, you must modify picking and batch related code. In my thought, this is not a simple job.
    - Here is download link of APK.
    - The asset has same document of asset description page link. but the source codes has detail comments.
    - Thank you for your interest in my asset!

    to Rayleigh2116
    - Here is download link of APK.
     
    MrGky93 likes this.
  12. SIV

    SIV

    Joined:
    May 7, 2014
    Posts:
    182
    Great !
    No first release sale ? :)
     
  13. cobramike

    cobramike

    Joined:
    Mar 11, 2015
    Posts:
    1
    Ya no first release sale. Also it make no sense to buy this and make something unique. Because there are millions versions out on android and so on. Please release the battlepack also. Than it make sense to buy this pack.

    I am not negative and i am gonna support you in later stage. But when i am reading your post i read that this pack is not first and need still some work. And when checking the asset store i get this feathers for much less money. I even fount a pack that has evry thing in it for only 300 euros.
     
  14. Canvas-Games

    Canvas-Games

    Joined:
    Dec 4, 2015
    Posts:
    2
    Thanks for sharing the apk =).

    I've played it a little and everything seems to work perfectly (despite some minor bugs). Though, I didn't liked the camera movement - seemed very rough. Is there any update pretension to improve it? I think others might complain about that as well.
     
  15. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to SIV
    I have no plan for sale.

    to cobramike
    Thank you for your advice.
    I think that 'CBPK' is useful to peoples who find realtime town, farm, city building game framework.

    to Canvas Games
    I agree to your opinion about camera movement(touch input).
    I will improve this by next update. but the next update date is not fixed yet.
     
    Last edited: Dec 8, 2015
  16. superflay

    superflay

    Joined:
    Nov 21, 2015
    Posts:
    13
    Hello, one more thing. About the battle part. What do you mean by "support upgrading functionality from this asset". Does it mean we have to pay also for that or this version is just the Beta of the final kit and once the battle functionality is done you will update this asset.
    Does this package allow us to change the building mesh once it it upgraded to level 2 for example? Or the upgrade is just in properties...(coin volume, hitpoints...)
     
  17. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to superflay
    - About the upgrade
    'CBPK' with battle functionality will be released with a tentative name 'City Building & Battle Perfect Kit'.
    The price of the 'City Building & Battle Perfect Kit' is little higher then 'CBPK'.
    The user of 'CBPK' can upgrade to 'City Building & Battle Perfect Kit' by paying difference between prices.

    - You can set prefabs(mesh) to certain types and level of building.
    For example, Town Hall level1 use 'Town Hall_1" prefab. and when user upgrade to level2, building create instance of 'Town Hall_2' prefab and destroy old one.
    You can modify building's mesh, color, texture in prefab what ever you want.
     
  18. Scheromat

    Scheromat

    Joined:
    Nov 7, 2014
    Posts:
    8
    Hi @chemael,

    can you told us a little bit about the camp, barrack, and training units?
    Can the user see the finished units in the camp? (walking around)

    And whats the difference between battle kit and normal kit? (source, scenes, etc..)
    Is it possible to use the own battle mechanism? (i already prepared one pvp php server to upload and download stats and maps)

    Have you other features planned for this kit? (cbpk)

    all in all, a perfect kit :)
     
    Last edited: Dec 11, 2015
  19. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    Hi @Scheromat
    Thank you for purchasing my asset.

    - About Barrack & Army Camp
    The Barrack & Army Camp is reserved for battle relative functions.
    The UI is completed, but can't produce army now.
    The Army is defined in TBDatabase's Armies list, and when training completed,
    UIDialogTraining.cs's public void UnitCreated(intunitID) function is called.
    I think that user can use this UI to produce other thing (if user create farm game, this UI is useful to produce vegetables or corn,..)

    - Differences with a tentative name 'City Building & Battle Perfect Kit' and 'CBPK'
    The 'City Building & Battle Perfect Kit' has all the same feature of 'CBPK' and additional battle relative features.
    So if you started your new project with 'CBPK', upgrade to ''City Building & Battle Perfect Kit' with little effort.
    The battle relative features are below.
    - Batch several types of defense tower(machine gun, missle,..)
    - Training several unit and they swarm in army camp.
    - Select enemy city to invade in Worldmap scene. (not multiplay, just singleplay quest like goblin village in COC)
    - Deploy units in enemy city and they attack enemy buildings.
    - Flunder enemy's gold and elixier.
    - Use items (heal, bomb,..) while in invasion.
    This is a lot of work, so the release date of 'City Building & Battle Perfect Kit' is not fixed yet.
    Currently i implementing defense towers.

    - 'CBPK' update plan
    I will update below features soon.
    - More detail documents.
    - Improved touch camera movement.
    - Orthographic camera mode.
     
    SIV and Scheromat like this.
  20. SIV

    SIV

    Joined:
    May 7, 2014
    Posts:
    182
    How can i add another building please ?
    For example i want more than 1 type of mine/storage, what should i do ?

    Thanks
     
  21. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    Hi @SIV
    Thank you for purchasing my asset.

    How to add new building type
    1. Add new building definition to Database.xml
    Currently, 10 kind of buildings are defined. so you must add 11th building like this.
    <BuildingType ID="11" Name="New Building" Info="" TileX="2" TileZ="2" LevelMax="13" Category="0" MaxCount="0,1,1,2,3,3,4,5,6,7">
    <BuildingDef HitPoint="380" BuildPrice="1000,0,0" BuildTime="60" TownHallLevelRequired="1" />
    </BuildingType>

    2. Add Building Mesh prefab in "Resources/Prefabs/Buildings/New Building_1".
    Prefab name must be the same name of Building Type name defined in Database.xml and append "_1" for level1.

    3. To show newly added building is show on Shop menu, You must add belows to _Show function in UIShop.cs.
    bt.Add (TBDatabase.GetBuildingType(11)); <-Add 11th building to show
    FillContents(0, "Economy", bt);

    4. Add thumbnail image show in shop window
    "Resources/Icon/Building/New Building"
    The name of thumbnail image must be the same name of Building Type name defined in Database.xml.

    Thank you.
     
  22. SIV

    SIV

    Joined:
    May 7, 2014
    Posts:
    182
    Thanks.

    It looks so complex :(
    Any plans to make it easier like using "data" scripts and change/add stuff in inspector ?
    Rather than general xml.

    Thanks,
    Aouadi
     
  23. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    Bug Fix!
    @Scheromat reported some bug.(Thank you @Scheromat)
    I will fix these bugs by next update. but until then, change code manually.

    1. When Creating Building with initial buildtime (for example, Army Camp), the price is payed twice.
    To fix this, Change code in Building.cs's Update() function.

    // check whether user has enough resources or not
    // decrease user's resource
    PayType payTypeReturn = PayforBuild(defNext);
    if(payTypeReturn != PayType.None) {
    if(payTypeReturn == PayType.Gold) UIDialogMessage.Show("Insufficient Gold", "Ok", "Error");
    else if(payTypeReturn == PayType.Elixir) UIDialogMessage.Show("Insufficient Elixir", "Ok", "Error");
    else if(payTypeReturn == PayType.Gem) UIDialogMessage.Show("Insufficient Gem", "Ok", "Error");
    else {}​

    return false;​
    }

    to

    // in case initial build (level0->level1), the upgrading price already payed.
    if(Level != 0) {

    // check whether user has enough resources or not
    // decrease user's resource
    PayType payTypeReturn = PayforBuild(defNext);
    if(payTypeReturn != PayType.None) {
    if(payTypeReturn == PayType.Gold) UIDialogMessage.Show("Insufficient Gold", "Ok", "Error");
    else if(payTypeReturn == PayType.Elixir) UIDialogMessage.Show("Insufficient Elixir", "Ok", "Error");
    else if(payTypeReturn == PayType.Gem) UIDialogMessage.Show("Insufficient Gem", "Ok", "Error");
    else {}

    return false;​
    }​
    }

    2. Army Camp Upgrading Error
    The definition of Army Camp in Database.xml has 8 level. but actual mesh prefab is only one.
    (I'm sorry that was my fault. I should left only one definition of army camp in database.xml)
    When user upgrade Army Camp. code can't find next level mesh prefab. that cause error.
     
    Scheromat likes this.
  24. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    Hi Everybody!
    Limited Time 50% Sale. Merry Christmas & Happy New Year !!!
    AssetSore Link
     
  25. SIV

    SIV

    Joined:
    May 7, 2014
    Posts:
    182
    Thanks :)
     
  26. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @SIV
    My pleasure
     
  27. prog27

    prog27

    Joined:
    Dec 26, 2015
    Posts:
    1
    Can i use this kit on Farm simulation game?
     
  28. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @prog27
    Thank you for your interest in my asset.
    You can create Farm Simulation, City Building type games easily with this 'CBPK'.
     
  29. Adnukemedia

    Adnukemedia

    Joined:
    Jun 9, 2015
    Posts:
    3
    The current version doesn't have any troops generation right ? or the chat.

    Any plans on coming with the updated version where we can generate troops too ?
    Is there a way to have a talk to you on skype for few queries?
     
  30. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @Adnukemedia
    Hi~
    In current version, troops generation ui & logic is completed.
    You can easily add your code & models in there.
    If you have any question, write in this forum or mail me.
    I will reply ASAP.
    Thank you
     
  31. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    Hi Everybody.

    Bug fix on iOS device.
    The data saving path on iOS device has problem.
    Change the pathForDocumentsFild function in BEUtil.cs like below.
    Code (csharp):
    1.  
    2. public static string pathForDocumentsFile(string filename) {
    3.      if (Application.platform == RuntimePlatform.IPhonePlayer) {
    4.          //string path=Application.dataPath.Substring(0,Application.dataPath.Length-5);
    5.          //path=path.Substring(0,path.LastIndexOf('/'));
    6.          //return Path.Combine(Path.Combine(path,"Documents"),filename);
    7.          return Application.persistentDataPath+"/"+filename;
    8.       }
    9.  
     
    Last edited: Feb 25, 2016
  32. thedreamer

    thedreamer

    Joined:
    May 13, 2013
    Posts:
    218
    It supports the save and load system?
     
  33. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @thedreamer
    The 'CBPK' save city data to xml file when an action(start build duilding, building position change, etc) is occured.
    And when game started, load the xml file and restore city data and apply time between last exit time to current start time.
    If you want to do this manually.
    Use Save() function in SceneTown.cs.
    Try android apk.
     
  34. TopsyArts

    TopsyArts

    Joined:
    Jan 6, 2016
    Posts:
    13
    Hi BraveElephant team,
    I bough the kit and spent some times on it in Unity, please let me know how can I contact you, I am eager to work with you to take this kit into the next level for a real game project; so we can work together, test, implement, release and publish the new feature on a real project which will go on AppStore, PlayStore and Windows Phone Store. Let's have a chat, then I link you to my team and we work together. Thanks
     
  35. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
  36. TopsyArts

    TopsyArts

    Joined:
    Jan 6, 2016
    Posts:
    13
    Thanks a lot @chemael
    I sent you a detailed email. please have a read and let me know.
    Thanks
     
  37. newguyy123

    newguyy123

    Joined:
    Sep 24, 2015
    Posts:
    1
    It could not run on an iOS device. Couldn't figure out your post in BEUtil.cs.

    Also, tried emailing you but you did not reply. Check your email

    Thanks
     
  38. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @newguyy123
    Hi, I check mails several times in a day.
    Did you mail to support@braveelephant.net ?
    Could you tell me your mail address?

    Change pathForDocumentsFile function in BEUtil.cs like this.
     
  39. TopsyArts

    TopsyArts

    Joined:
    Jan 6, 2016
    Posts:
    13
    @chemael
    Did you have a chance to look at the email that I sent to you with the following subject "Strategy Kit expansion opportunity" ?

    Thanks
     
  40. MadMapp

    MadMapp

    Joined:
    Nov 15, 2012
    Posts:
    49
    how would i add a new resource type

    how would i add removable objects to the grid on start, ie trees or rock the player must pay to remove to expant the buildable area
     
  41. MadMapp

    MadMapp

    Joined:
    Nov 15, 2012
    Posts:
    49
    some video tutorials would be great, or more in depth documentation
     
  42. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @rizla
    Thank you for purchasing my asset

    1. Add New Resource Type
    Add new resource type is not an easy work.
    To do this, you must add new resource to PayType enums in TBDatabase.cs and edit all PayType related functions even Database.dat xml files.

    2. Add Removable object on start
    - You can create removable object by adding new building. for example, a tree is 2x2tile building.
    And you can set this tree on start by OnStart function in SceneTown.cs.
    Check line 110 in SceneTown.cs
    - You also add 'Remove' button when user clicked that tree.
    To do this, you must change _Show function in UICommand.cs
    - Actual building remove function is BuildingRemove function in BEGround.cs

    3. Video tutorial or detailed document
    I'm preparing more detailed document now.
     
    MadMapp likes this.
  43. Adnukemedia

    Adnukemedia

    Joined:
    Jun 9, 2015
    Posts:
    3
    Hey Chemael,

    I have been following your thread since 1 week and wanted to know when you will be releasing the new kit with troop generation and other features. I am very much interested in buying your kit and prepare a game like boom beach or clash of kings.

    Let me know if we can talk privately on skype.

    Thanks

    Adnukemedia
     
  44. MadMapp

    MadMapp

    Joined:
    Nov 15, 2012
    Posts:
    49
    reading through the above comments, you have some bug fixes mentioned, do these need to be made nor are they already implemented, also any update on the troop battle system implementation?
     
  45. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @Adnukemedia
    Thank you for the interest in my asset.
    I guess the release date of the Battle Kit and update of CBPK will be the middle of next month.
    Soon I will post detail update list on this forum.

    to @rizla
    Thank you for purchasing my asset.
    The next update will be include all bug fixes.
     
  46. jasonlai2020

    jasonlai2020

    Joined:
    Jul 3, 2012
    Posts:
    8
    Hi BraveElephant,
    Can CBPK runs on WebGL platform ?
     
  47. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @talentsoftech
    Hi, Thank you for the interest in my asset.
    Currently, the 'CBPK' is not working in WebGL platform.
     
  48. MadMapp

    MadMapp

    Joined:
    Nov 15, 2012
    Posts:
    49
    turning this in to a farming game and would like your opinions on how to approach,

    so im thinking of how to produce products, corn, carrots etc, so i need a "field" object,
    im planning on using the barracks as a frame work, it will hold a list of plants,fruit and veg etc,
    it will "build" the produce and store in the army camp or "silo" as i will name it,

    now i want more than just 1 type of field, perhaps i would like a hen house, where players can build say, feathers eggs and meat, 3 troops types,
    i would want many different barracks each with their own selection of "troops", would i need to have a seperate silo type/armp camp type for each barracks type,
    or is there an easy way to add them all to one collective army camp?


    once these troops/prodicts are made, how would i remove them from the storage, ie sell them to a customer, or trade them in another building to produce a secondary product, ie i have egg flour milk, if i click an oven, it can make bread and deduct from the army camp/silo,

    is this the best way to approach the situation, or is there a better way?

    cheers
     
  49. thedreamer

    thedreamer

    Joined:
    May 13, 2013
    Posts:
    218
    I would like to say my idea

    Of course, my wish list

    Procedural-Level-Generation Of course, the battle unit included

    This is the level editor

    It must be a tool that developers can easily create a level

    It can also create random levels
     
  50. chemael

    chemael

    Joined:
    Feb 18, 2015
    Posts:
    194
    to @thedreamer
    That's good idea.
    I think that level editor will be useful to create various ready made map. (for example, quest to conquer npc city)
    and random map generation will be good too.