Kerni

Active Member
Game Developer
Oct 9, 2017
536
609
Have you tried specifically telling the game to use US locale when saving and loading? That should probably fix that without the need for converting anything, and would probably be more stable in the long run. IIRC, in c# that's done through passing a "culture" parameter to most things that are affected by it.
I tried it , but unfortunately this also did not work at all. ( i had some people testing it for me as i produced... uff i think about 5 different versions one with culture.indifferent and several with static culture values like US/EN GB/EN)
 

Xelztied

New Member
Jul 9, 2018
6
2
I tried it , but unfortunately this also did not work at all. ( i had some people testing it for me as i produced... uff i think about 5 different versions one with culture.indifferent and several with static culture values like US/EN GB/EN)
That does sound strange... I could see it not working on saves from before the change, but as long as it was set on both save and load it should work fine on any saves from after the change was made.

This might even be a nice way to try out if you haven't already tried it.
 

Kerni

Active Member
Game Developer
Oct 9, 2017
536
609
That does sound strange... I could see it not working on saves from before the change, but as long as it was set on both save and load it should work fine on any saves from after the change was made.

This might even be a nice way to try out if you haven't already tried it.
Okay, i put this into the awake function in my first script. I tried it out , seems to not break anything.
If this works , that would be awesome :)
(but we will have to see if any bug reports are arriving with the same symptoms as always once i release the next public release)
 

HD_DVD

Newbie
Sep 16, 2020
15
11
I once had such a problem about 8 years ago in a GPGPU project. Basically, the function that converts decimals is localized (some countries use the comma, others the full stop). So I fixed it by setting the locale to "standard (aka C)", done the conversion, and then reset.

Anyway, I don't know if you have a post with known bugs, but I've noticed a couple of them as I've started playing the game now:
1. With VSync Off the game is locked at 60, with VSync On the game is uncapped.
2. When taking the magnetic transport while crouching, the character falls underground upon reaching the destination.
I think this might be it with the comma. We use comma as a decimal point, not dot. For example seven point five would be written as 7,5. I did some coding in C# a few years back and when Kerni talked about converting strings to float this was something that also came to my mind that it could be a problem.
 
4.60 star(s) 14 Votes