Can not initialize new currency

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)”

8940726--1226346--slide.png

Also this new currencies has initial balance and max limit, but it not creates

Solved.
Just forget to publish config. :roll_eyes:

1 Like