Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits) (+1)

I just get a black screen after the Unity logo. Found the error:

ERROR processing JSON file. MESSAGE: E:/DOWN/age-of-transcendence-win64/Age of Transcendence_Data/StreamingAssets/flyweights/gameplay/ActiveAbility.json:
Input string was not in a correct format.
Uploading Crash Report
ArgumentNullException: Value cannot be null.
Parameter name: source
  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0000d] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at util.Traits.InitFromJson[T] (System.String filename) [0x00006] in <cb216d07482d44869895570eabbce045>:0 
  at ecs.FlyweightsDb.InitFromJson () [0x0005d] in <cb216d07482d44869895570eabbce045>:0 
  at ecs.Ecs.ReloadTraitsAndConfigs () [0x00000] in <cb216d07482d44869895570eabbce045>:0 
  at ecs.Ecs.Start () [0x0000b] in <cb216d07482d44869895570eabbce045>:0 

This is because I'm in Sweden, we use comma as a decimal number separator, so a decimal.parse might fail. If you force the current thread to "en-US" before loading JSON it might work.

Confirmed this by changing region to UK and it worked :)

(1 edit) (+1)

Thank you so much for sending this, and for verifying the fix! First time I get this error, it would never have crossed my mind! Next release will have that fixed

I also got this one when trying to launch it today.

Did you try the fix and hopefully worked for you too? I've fixed it locally but I haven't pushed another version since.

(+1)

Yes, changing . to , in this file helped.