Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Resolved Can not initialize new currency

Discussion in 'Economy' started by Cyberaslan, Apr 11, 2023.

  1. Cyberaslan

    Cyberaslan

    Joined:
    Aug 6, 2020
    Posts:
    7
    I had configuration with 1 currency Energy, it works okay. Now I added two new currencies to config (look screenshot).

    Got exception when I try to use SetPlayerCurrencyBalanceAsync COINS in Cloud Code. CurrencyID is correct.

    ENERGY still works okay.

    "Unity.Services.CloudCode.Shared.ApiException: Not Found at Unity.Services.CloudCode.Shared.HttpApiClient.ToApiResponse[T](HttpResponseMessage response)\n at Unity.Services.CloudCode.Shared.HttpApiClient.SendAsync[T](String path, HttpMethod method, ApiRequestOptions options, IApiConfiguration configuration, CancellationToken cancellationToken)\n at Unity.Services.Economy.Api.EconomyCurrenciesApi.SetPlayerCurrencyBalanceAsync(IExecutionContext executionContext, String accessToken, String projectId, String playerId, String currencyId, CurrencyBalanceRequest currencyBalanceRequest, String configAssignmentHash, String unityInstallationId, String analyticsUserId, CancellationToken cancellationToken)"
     

    Attached Files:

  2. Cyberaslan

    Cyberaslan

    Joined:
    Aug 6, 2020
    Posts:
    7
    Also this new currencies has initial balance and max limit, but it not creates
     
  3. Cyberaslan

    Cyberaslan

    Joined:
    Aug 6, 2020
    Posts:
    7
    Solved.
    Just forget to publish config. :rolleyes:

    upload_2023-4-11_16-18-49.png
     

    Attached Files:

    Julian-Unity3D likes this.