Skip to main content

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

Hi, the game looks interesting, however on linux it crashes as soon as I interact with one of the buttons in the menu interface (Like New Game) with the following stacktrace in log file:

Unloading 565 unused Assets to reduce memory usage. Loaded Objects now: 21961.
Total: 16.344000 ms (FindLiveObjects: 1.261000 ms CreateObjectMapping: 0.403000 ms MarkObjects: 10.838000 ms  DeleteObjects: 3.835000 ms)

FormatException: Unknown char: .
  at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in <filename unknown>:0 
  at System.Single.Parse (System.String s) [0x00000] in <filename unknown>:0 
  at GMC.GOTO (UnityEngine.GameObject g, System.String sTween, System.Action act) [0x00000] in <filename unknown>:0 
  at GMC.GOTO (UnityEngine.GameObject g, System.String sFrom, System.String sTo, System.Action act) [0x00000] in <filename unknown>:0 
  at WTitle.SlideBtn (UnityEngine.GameObject g, Single fNum, System.Action act) [0x00000] in <filename unknown>:0 
  at WTitle.Show () [0x00000] in <filename unknown>:0 
  at WTitle.Set (System.String s) [0x00000] in <filename unknown>:0 
  at GMC.MainSetFrame (System.String sName, System.String s2) [0x00000] in <filename unknown>:0 
  at GMC+<ReadQue>c__AnonStorey2B.<>m__2F () [0x00000] in <filename unknown>:0 
  at GMC+<ReadQue>c__AnonStorey2B+<ReadQue>c__AnonStorey2C.<>m__0 () [0x00000] in <filename unknown>:0 
  at GMC+<StartQLoop>c__IteratorA.MoveNext () [0x00000] in <filename unknown>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 
 
(Filename:  Line: -1)

Any idea what causes this?

(Note I’m trying to play it on a linux [Fedora 34 - KDE Plasma])

Deleted post

That should be a code problem, the program can't convert a string "0.1" into a number becuse it expect the string to by something like "0,1".

If you want to play before any fix update you can try to changing the system language, English should work fine

Thank you very much! I didn’t expect the internationalization of the game to cause such problems

Sorry for the fatal bug!😭

The error is that when moving buttons on the title screen, an error occurs and stops at the point where the string is converted to a number. As a result, all buttons have stopped functioning. The last error is "Double.Parse", but it is highly likely that other errors are cascading. The most likely cause is that the OS does not support 2-byte code and could not recognize it as a string. I need to replace all 2Byte codes in the game to solve this issue.🤔

(1 edit)

When parsing numbers, especially decimal numbers, it's often a good idea to specify System.Globalization.CultureInfo.InvariantCulture

Thank you for sharing that! I will use it👍

I added InvariantCulture to the Double.Parse operation and that fixed it! Thank you for the instructions on that😁

(2 edits)

like Brackethouse says it sems to be a localization problem, I tried to change the languge on a virtul machine whit fedora 34 and when the OS language has "." (language as english US, english UK and japanes) as decimal separetor the game works normaly, but when the decimal separetor is "," (languge as spanish and italian) it stop after clicking new game, continue or load button (gc list, option and key binding works normaly)

Yes, you are right! I was very mistaken. The decimal separetor's string to number conversion system was changed and it started working fine😆

Thanks for the follow-up and courage for the correction even if the internationalization side seems to be the problem, I was able to launch the game properly via the following command for example: LANG=en_US.UTF-8 ./Game.x86

(+1)

Thank you for letting me know how to resolve it!🤗

I will fix it so that it works correctly without adding that setting👍