Installation

Thank you for purchasing our kit. The following instructions will help you setup your new City Building Kit version. We've added more features than ever in our latest version. If you have trouble installing, please contact us and we'll help you out.

👍

Remember - Keep Daily Backups!

When working on a strategy game with a kit as big as the Complete Kit - always keep a working daily backup! Save yourself the trouble of rolling-back changes and losing work.

📘

Compatibility

Recommended Unity and Unity Pro click to download version 5.4.1.

Up to $40 in NGUI/2DTK coupons are included for Complete Kit buyers. After purchasing through our site, look in your purchase confirmation email for instructions on how to get your download, bonuses, and coupons.

Video Walkthrough

Instructions:

  1. First, unzip the downloaded file you received after ordering from CityBuildingKit.com
  2. Open Unity version 5.4.1 and select File > Open Project...
  3. In the Project Wizard window that appears, click Open Other...
  4. Pick the folder you just unzipped as the Project Directory and press Open
  5. If Unity says Project reimport required, continue to reimport it.

The project will open, and you will see a screen like this:

1194

Click on image to view larger

Next, import NGUI and 2D Toolkit assets

Unity 5 introduces new UI and 2D features, but they're not as further developed as NGUI and 2D Toolkit. You'll need to download both of these assets for the Starter Kit to function properly.

**Requirements:

As per NGUI's team instructions, NGUI should be imported in a new empty scene, not directly in the game scene (throws a few internal NGUI errors otherwise). Safer to apply this to 2DToolKit as well. We've included a blank scene for you, called ImportFrameworksHere.unity in the Assets/Scene folder. Open this scene.

1. In Unity, File > New Scene or open Assets/Scene/ImportFrameworksHere.unity
2. Delete the NGUI folder from the Project View (if it exists)
3. Import NGUI from the updated Unity Package or your purchase.

📘

NGUI Free Version is not compatible (version 2.7.0)

You will still see UILabel errors even after importing. Please use the Standard or Professional version of NGUI version 3.6+ available here

*Up to $40 in coupons for NGUI and 2D Toolkit are available if you buy our Complete Kit

Import Water+ Lite (for new Complete Kit v6.0 owners)

For water effects used in the game, there's a well-made, highly-reviewed and time-saving asset called Water+ Lite (mobile-ready) available for $2.95 here/en/#!/content/11361)

Delete the WaterPlusShader directory. Then open the ImportFrameworksHere.unity scene and import Water+Lite.

❗️

Troubleshooting errors when importing Water+Lite:

See this error message when importing?
Assets/WaterPlusShader/Scripts/FlowmapAnimator.cs(4,14): error CS0101: The namespace global::' already contains a definition for FlowmapAnimator'

You've had Water+ Lite imported already. Please delete the WaterPlusShader directory - the issue should go away.

Import Water FX Pack (for new Complete Kit v6.0 owners)

Available for free from https://www.assetstore.unity3d.com/en/#!/content/19248

Like before, delete the Water FX Pack directory in the Assets folder. Then open the ImportFrameworksHere.unity scene and import Water FX Pack.

Drop in SpriteLightKit (for new Complete Kit v6.0 owners)

SpriteLightKit is used for the day/night change cycles. It's available for download here: https://github.com/prime31/SpriteLightKit

Download the project and then drop the Assets/SpriteLightKit folder to replace your product's Assets/SpriteLightKit folder which is filled currently only with a readme installation instructions.

If you have any troubles:

  1. Add a new layer called LightLayer in Inspector/Layer(Default)/Add Layer
  2. Make sure the:
    SpriteLightKitImageEffect goes to your tk2dCamera camera
    SpriteLightKit goes to SpriteLightKit, child of tk2dCamera

❗️

Console Errors

Due to licensing restrictions, we can't include the free SpriteLightKit in the kit packaging. If you forget to add this resource then nighttime effects won't activate but no errors may show.

After importing the assets...

Open the Scenes folder in Assets and click the Game.unity scene. You're ready to run the demo scene! The UILabel compile errors you saw earlier and the pink color should be gone so long as NGUI and 2DToolkit have both been properly imported. You should see the green checkerboard from the game.

1920

Click on image to view larger

Run the scene by pressing the Play button in the top center. (When playing on a PC, use the developer controls in the top left of the game to move or zoom or test on your device. Touch controls work much better than the arrow buttons for developers)

Tip: We recommend you use File > Build and Run... to test on your mobile device for native touch controls like scrolling, pinch, zoom, or drag-and-drop.

Don't see the screen above?

❗️

Troubleshooting Problems

Did you follow the instructions above and still don't see see the green checkerboard?

  1. Do you have the Game.unity scene open from the Scenes folder?
  2. Are you using a version of NGUI greater than 3.6? (Not the free version 2.7.0)
  3. Did you import both 2D Toolkit and NGUI in the ImportFrameworksHere.unity scene?
  4. Did you import Water+Lite (mobile ready) and Water FX Pack?
  5. Did you drop in SpriteKitLight?

Contact our support team if you're having trouble and we'll help you out.

Apart from the 5 troubleshooting questions above - if you see a screen like the example below, you'll need to press the 2D button at the top to go from 3D to 2D view. See the photo examples below:

2044

3D view, needs to switch to the 2D button at the top to change. Click to view larger

1440

2D button at the top to see the game view. Click to view larger

How to Test PvP Battles after Installation.

Next, if you want to try out PvP Battles in the Complete Kit, follow the instructions below to add your License Code to both Game and Map01 GameManager > SaveLoadWWW and SaveLoadBattle Inspectors.

The kit is already setup to use our demo server scripts, but you need a license code to use them. Otherwise you will see the download file corrupted message below that says "License code not added to the Gamemanager or downloaded file corrupted."

286

Click on image to view larger. See this error message when trying the battle feature? Follow the instructions below to add your license code.

When testing the competitions, if you get error message "License code not added to GameManager or downlaoded file corrupted" it means you haven't entered your license code into the kit's Game scene GameManager > SaveLoadWWW and more importantly, the battle Map01 GameManager > SaveLoadBattle.

  1. Open Game.unity scene
  2. In Game Manager, select SaveLoadWWW
  3. Type your License Code on the right side Inspector and save. (See screenshot below)

This will allow you to use the Settings > Server Save and Server Load options. Follow steps 4-6 below to be able to use online battles.

981

Click on image to view larger. Add the license code to Game > GameManager > SaveLoadWWW

For Battles:
4. Open Map01.scene
5. In Game Manager, select SaveLoadBattle
6. Type your License Code on the right side Inspector and save. (See screenshot below)

Now you should be able to run the scene again and download a sample map successfully from the preconfigured CityBuildingKit.com server.

979

Click on image to view larger. Add the license code to Map01 > Game Manager > SaveLoadBattle

What maps does the CityBuildingKit.com demo server provide?

By default, the demo server will return 1 of 3 sample enemy player maps. If you experiment with Server Load, it will download the same pre-designed base every time for testing. These are configured with the kit's default buildings. If you begin making changes to your game such as new buildings or units, use the server scripts on your own domain or else crashes could occur when the demo server provides default kit enemy player map data.

Login to to get a copy of the server scripts for your own website. Then repeat the instructions above but change the http://citybuildingkit.com Server Address to where you uploaded your own script like http://yoursite.com/pvp/

Want to test the server scripts on your own website?

Download the server scripts from the CityBuildingKit.com Customer Download Center.

Upload the PvP Server Sync scripts to your web host. You can download these scripts from our download center and upload to your website like http://yoursite.com/pvp/ or https://mybucket.s3.amazonaws.com/pvp/

Then update the URLs and license used for both Game scene GameManger > SaveLoadWWW inspector and Map01 scene GameManager > SaveLoadBattle inspector.

📘

Add your License code to both the Game and Map01 scene GameManagers

If you're not using our demo server but using your own website change the http://citybuildingkit.com Server address to where you uploaded the script files on your site.

All you need to do is change the URL to the folder you uploaded like:
http://yoursite.com/pvp/ or https://mybucket.s3.amazonaws.com/pvp/