Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Car Parking Kit 2

Discussion in 'Assets and Asset Store' started by LightingBox2, Sep 29, 2016.

  1. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Shop scene is not included. You can add your own shop and IAB system to your game or simply just delete the shop button from garage scene.
     
  2. k_kenji

    k_kenji

    Joined:
    Jan 17, 2017
    Posts:
    7
    Thank you for providing a wonderful completion project.
    When I played Garage of the scene of the project purchased at Asset Store

    IndexOutOfRangeException: Array index is out of range.
    VehicleSelect.Start () (at Assets/Car Parking Kit 2.0/Scripts/Menu/VehicleSelect.cs:63)

    An error of such contents comes out and stops.
    I do not know where to fix it.
    Could you tell me how to deal with it?
    As Unity beginner, I would be pleased if you explain it carefully.
    Thank you.

    I've edited it
    When importing from the asset store, if I imported excluding "ProjectSettings", the problem no longer exists.
    It worked perfectly.
    why?
     
    Last edited: Feb 17, 2017
  3. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Play garage scene and press H key from keyboard to clear playerprefs
    Run again scene to save and load default values into playerprefs
     
  4. k_kenji

    k_kenji

    Joined:
    Jan 17, 2017
    Posts:
    7
    thank you for your answer. I thank you.
    Also, there are additional questions and requests.

    I would like to add a car I created, but I do not understand the setting and it does not work well.

    · After selecting the added car, if you select another car, Clone of the added car will remain.

    · You can not unlock even if you click "buy" button of added car.

    · After selecting the added car, clicking the Start button does not react. It does not reflect on the "Day_Car" of the scene.

    Would you please create a tutorial for adding cars you created if possible?
    Please.
     
  5. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Hi
    First watch my tutorials playlist :
    Play-list

    These are Truck Parking Kit tutorials, but the package structure is same. you can watch these tutorials as well :
    Play-list
     
  6. k_kenji

    k_kenji

    Joined:
    Jan 17, 2017
    Posts:
    7
    Thank you for prompt response. I will refer to it. If I can not understand, I will ask again. Thank you.
     
  7. fcomert

    fcomert

    Joined:
    Feb 14, 2017
    Posts:
    4
    AdMob nerede eklendi
     
  8. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    AdMob doesn't support rewarded video now. You can use UnityAds instead.
     
  9. fcomert

    fcomert

    Joined:
    Feb 14, 2017
    Posts:
    4
    Where to place AdMob interstitial code
     
  10. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Attach your AdMob demo script to FailedMenu under Canvas in Day_Car scene. Don't forget to call ShowInterstitial in Start function from AdMob demo script.
     
  11. budicreed

    budicreed

    Joined:
    Dec 10, 2016
    Posts:
    8
    Hi, can i ask for backup file in 1.7 version ? because 2.0 don't have a bus scene. and i really need that version.
     
  12. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    No it's not compatible. It's completely a new package with a new design and car physics.
     
  13. budicreed

    budicreed

    Joined:
    Dec 10, 2016
    Posts:
    8
    I know it is not compatible, but all i need is build game based on 1.7 version, can you give me the back up file(.unitypackage) ? because when I download from asset store, its automatly download the 2.0 version.
     
  14. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    I have sent in private message.
     
  15. Mikhail-Sholokhov

    Mikhail-Sholokhov

    Joined:
    May 12, 2015
    Posts:
    11
    1.How to make cars for the opening levels?
    2.Сan make a choice from the menu lvl? As in older versions.
     

    Attached Files:

  16. Carloshs

    Carloshs

    Joined:
    Feb 25, 2017
    Posts:
    3
    Hi there, i just bought it, i cant build. it says
    Could not create texture from Assets/Car Parking Kit 2.0/Textures/Lens Flare/1.jpg: File could not be read

    seems to be corrupted that file right?


    well, now it says:
    ArgumentException: May only be called in OnPostProcessTexture
    UnityEditor.Modules.DefaultTextureImportSettingsExtension.ShowImportSettings (UnityEditor.Editor baseEditor, UnityEditor.TextureImportPlatformSettings platformSettings) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultTextureImportSettingsExtension.cs:93)
    UnityEditor.TextureImporterInspector.ShowPlatformSpecificSettings () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/TextureImporterInspector.cs:1464)
    UnityEditor.TextureImporterInspector.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/TextureImporterInspector.cs:1305)
    UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1227)
    UnityEditor.DockArea:OnGUI()


    there is a lot of problems with the ads, im in the last unity version (5.5.1) dindt touch anything of the project and wont work
     
    Last edited: Feb 25, 2017
  17. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Hi
    I will test it on 5.5.1 and i send a new update for you tomorrow
    You can try now on 5.3.1+ or 5.4.1 +
    Also unity has a simple bug in Tag Manager when you upgrading project. Try to read attached file in this post
     

    Attached Files:

    Last edited: Feb 27, 2017
  18. Mikhail-Sholokhov

    Mikhail-Sholokhov

    Joined:
    May 12, 2015
    Posts:
    11
    will you answer me?
     
  19. orientapps

    orientapps

    Joined:
    Jun 6, 2016
    Posts:
    10
    Hi, I have interest on this asset. But first can you tell me how do I create an asset for car models? Should I buy car models and assets too?
     
  20. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
  21. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    I checked it out on 5.5.2.
    You need to remove UnityAdsIntegration.cs after importing package or turn on Ads in unity Services window.
    After that unity start to compile the full project. Now save and close unity and restart your OS (windows). It works for me
     
  22. k_kenji

    k_kenji

    Joined:
    Jan 17, 2017
    Posts:
    7
    Hello.

    When building for PC, camera does not move with mouse drag (camera rotate can not be done). Is it a bug?
    Can you tell me how to deal with it?

    One more thing please.
    I would like to add a caliper,
    I want to make the caliper move according to the y axis (horizontal) rotation of the tire.
    Would you add a caliper and tell me the way to do that?

    Best Regards,
     
  23. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Hi
    I will test the pc problem.

    Please send me screenshot from caliper. I don't know what is that.
     
  24. k_kenji

    k_kenji

    Joined:
    Jan 17, 2017
    Posts:
    7
    [引用= "aliyeredon2、ポスト:2975839、メンバー:809483"]こんにちは
    私はPCの問題をテストします。

    キャリパーから私のスクリーンショットを送ってください。私はそれが何であるかを知らない。[/ QUOTE]
    迅速な対応ありがとうございました。
    これは、ブレーキキャリパの画像です。 c.jpg
     
  25. k_kenji

    k_kenji

    Joined:
    Jan 17, 2017
    Posts:
    7
    a1.jpg
    Hello.
    About the camera problem I asked in the past,
    I added a new camera's script and off "CameraMove (Script)" and "Drag_Touch" and solved it.
    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3. using UnityEngine.EventSystems;
    4. public class CameraRotate1 : MonoBehaviour
    5. {
    6.     public Transform targetObject;
    7.     public Vector3 targetOffset;
    8.     public float averageDistance = 5.0f;
    9.     public float maxDistance = 20;
    10.     public float minDistance = .6f;
    11.     public float xSpeed = 200.0f;
    12.     public float ySpeed = 200.0f;
    13.     public int yMinLimit = -80;
    14.     public int yMaxLimit = 80;
    15.     public int zoomSpeed = 40;
    16.     public float panSpeed = 0.3f;
    17.     public float zoomDampening = 5.0f;
    18.     public float rotateOnOff = 1;
    19.  
    20.     private float xDeg = 0.0f;
    21.     private float yDeg = 0.0f;
    22.     private float currentDistance;
    23.     private float desiredDistance;
    24.     private Quaternion currentRotation;
    25.     private Quaternion desiredRotation;
    26.     private Quaternion rotation;
    27.     private Vector3 position;
    28.  
    29.  
    30.     void Start() { Init(); }
    31.     void OnEnable() { Init(); }
    32.  
    33.     public void Init()
    34.     {
    35.         if (!targetObject)
    36.         {
    37.             GameObject go = new GameObject("Cam Target");
    38.             go.transform.position = transform.position + (transform.forward * averageDistance);
    39.             targetObject = go.transform;
    40.         }
    41.  
    42.         currentDistance = averageDistance;
    43.         desiredDistance = averageDistance;
    44.  
    45.         position = transform.position;
    46.         rotation = transform.rotation;
    47.         currentRotation = transform.rotation;
    48.         desiredRotation = transform.rotation;
    49.  
    50.         xDeg = Vector3.Angle(Vector3.right, transform.right );
    51.         yDeg = Vector3.Angle(Vector3.up, transform.up );
    52.         position = targetObject.position - (rotation * Vector3.forward * currentDistance + targetOffset);
    53.     }
    54.  
    55.     void LateUpdate()
    56.     {
    57.         if (Input.GetMouseButton(2) && Input.GetKey(KeyCode.LeftAlt) && Input.GetKey(KeyCode.LeftControl))
    58.         {
    59.             desiredDistance -= Input.GetAxis("Mouse Y") * 0.02f  * zoomSpeed*0.125f * Mathf.Abs(desiredDistance);
    60.         }
    61.         else if (Input.GetMouseButton(0) && EventSystem.current != null && !EventSystem.current.IsPointerOverGameObject())
    62.         {
    63.             xDeg += Input.GetAxis("Mouse X") * xSpeed * 0.02f;
    64.             yDeg -= Input.GetAxis("Mouse Y") * ySpeed * 0.02f;
    65.             yDeg = ClampAngle(yDeg, yMinLimit, yMaxLimit);
    66.  
    67.             desiredRotation = Quaternion.Euler(yDeg, xDeg, 0);
    68.             currentRotation = transform.rotation;
    69.             rotation = Quaternion.Lerp(currentRotation, desiredRotation, 0.02f  * zoomDampening);
    70.             transform.rotation = rotation;
    71.         }
    72.  
    73.         desiredDistance -= Input.GetAxis("Mouse ScrollWheel") * 0.1f  * zoomSpeed * Mathf.Abs
    74.             (desiredDistance);
    75.         desiredDistance = Mathf.Clamp(desiredDistance, minDistance, maxDistance);
    76.         currentDistance = Mathf.Lerp(currentDistance, desiredDistance, 0.1f  * zoomDampening);
    77.         position = targetObject.position - (rotation * Vector3.forward * currentDistance +
    78.             targetOffset);
    79.         transform.position = position;
    80.  
    81.     }
    82.  
    83.     private static float ClampAngle(float angle, float min, float max)
    84.     {
    85.         if (angle < -360)
    86.             angle += 360;
    87.         if (angle > 360)
    88.             angle -= 360;
    89.         return Mathf.Clamp(angle, min, max);
    90.     }
    91. }
    View attachment 221459
     
    Last edited: Mar 2, 2017
  26. Carloshs

    Carloshs

    Joined:
    Feb 25, 2017
    Posts:
    3
    it would be nice to get the % of the car inside the parking lot, is any way to know it right now?
     
  27. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Last edited: Mar 14, 2017
  28. Carloshs

    Carloshs

    Joined:
    Feb 25, 2017
    Posts:
    3
  29. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Nothing added. Just fixed some bugs.

    Update 2.1: - Fixed little issues
    - Added quick start guide
    - Supports for unity latest version 5.5+
    - Added version 1.7 download link
     
  30. ansaliraza

    ansaliraza

    Joined:
    Jan 22, 2017
    Posts:
    1
    can you tell me how you handle drive and reverse gear???
     
  31. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Space - Hand brake
    W.S - Move
    C - Change Camera
    R - Switch Gear
    H - Horn
     
  32. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
  33. theserhat

    theserhat

    Joined:
    Mar 24, 2017
    Posts:
    2
    Hi can you send me too
     
  34. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    That was an old question. I don't remember anything
     
  35. Mikhail-Sholokhov

    Mikhail-Sholokhov

    Joined:
    May 12, 2015
    Posts:
    11
    Hello!How to create change controls?
     
  36. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Control type is available in this playerprefs key:
    0 = Steering Wheel
    1 = Arrow Keys
    3 = Accelerometer
    Code (CSharp):
    1. // Read control type (0,1,2)
    2. PlayerPrefs.GetInt ("ControlType")
    3.  
    4. // Set control type
    5. PlayerPrefs.SetInt("ControlType",1)
     
  37. Mikhail-Sholokhov

    Mikhail-Sholokhov

    Joined:
    May 12, 2015
    Posts:
    11
    In what script is this?
     
  38. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
  39. Mikhail-Sholokhov

    Mikhail-Sholokhov

    Joined:
    May 12, 2015
    Posts:
    11
  40. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785


    You need to learn unity scripting
     
  41. Mikhail-Sholokhov

    Mikhail-Sholokhov

    Joined:
    May 12, 2015
    Posts:
    11
    You had a change of control in the old versions, but why not in the new version?
     
  42. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    You cad add control selection from CPK1 to CPK2. First learn unity and then start making games.
    Also you asked me more than 1000 questions in email.Stop asking other questions
     
  43. Mikhail-Sholokhov

    Mikhail-Sholokhov

    Joined:
    May 12, 2015
    Posts:
    11
    I do not have CPK1.
     
  44. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    Download link is available in CPK2 doc
     
  45. Himanshuchahar

    Himanshuchahar

    Joined:
    Apr 15, 2016
    Posts:
    36
    Hi Ali,
    I am getting an issue related to best time for each level. When I go from 1st level to 2nd level then to 3rd level, it only captures time for 1st level. And even if I complete 3rd level, in level selection screen 3rd level is locked.
     

    Attached Files:

  46. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    You are using very old version

    you have two options:
    1. Download update 1.7 (download link is available in u 2.1 doc)
    2. Download update 2.1
     
    Himanshuchahar likes this.
  47. tahir-ul-nasir

    tahir-ul-nasir

    Joined:
    Nov 23, 2013
    Posts:
    3
    Hi in car parking kit 2 there is a script of " Parking Manager".In this script, you have fixed time value for each level to 7 minutes 3 seconds. I want to change this value but as I change it, it reset gain the value you have fixed 7 minutes 3 seconds .how can I change it............????
     
    Last edited: Apr 25, 2017
  48. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    1.Go to Day_Car scene (playable level).
    2.Search ParkingManager in hierarchy.
    3.Select all ParkingManager game object.
    4. Change minute and seconds in inspector
     
  49. LightingBox2

    LightingBox2

    Joined:
    Mar 31, 2015
    Posts:
    2,785
    My webgl version game New update :

    Unity 2017-05-09 02-05-48-95.jpg Unity 2017-05-09 02-05-58-14.jpg Unity 2017-05-09 02-12-57-16.jpg Unity 2017-05-09 02-10-17-65.jpg
    Unity 2017-05-09 02-09-54-17.jpg
     
  50. dtemreaydin

    dtemreaydin

    Joined:
    Nov 7, 2013
    Posts:
    1
    Thanks for your parking game. I want to change start position in game scene. How can I do this.