|
Post by mashedpotato on Apr 16, 2018 18:09:19 GMT -5
So, I've been trying to mess around with LuumiaSims' No Blu mod, which alters the GlobalLight resource. There's a tunable for "BrandyBrunchBlue", which refers to the artificial light the game creates when a room is too dark, so that players are able to see everything. The mod changes this blue light to a more neutral, gray light.
The structure (is that what it's called?) is a float3, meaning 3 different valuesfor Red, Blue and Green.
However, when I try to change it, I'm unable to use any decimal value, and I'm stuck with 0 or 1. If i try to input something like:
<T name="BradyBunchBlue">0,1,0,1,0,1</T>
S4S automatically changes it to
<T name="BradyBunchBlue">0,1,0</T>
Which makes all my rooms have this weird green neon light to them, cause the green value is the only one being used, and it's also cranked up to it's maximum.
I find it weird, because the original (modded) file has the following configuration:
<T name="BradyBunchBlue">0,100000001,0,100000001,0,100000001</T>
And the game works it out just fine. If I open the file on S4S and change it, however, it gets set to that weird green. Am I supposed to use a different file, like a tuning one? I'm really confused here.
Thanks in advance, and sorry if I didn't come out clear enough, english isn't my native language.
Edit: I just managed to solve it, turns out i had to use scientific notation, as in:
<T name="BradyBunchBlue">10E-2,10E-2,10E-2</T>
And the game manages it just fine haha
|
|
|
Post by andrew on Apr 20, 2018 16:26:12 GMT -5
Hi mashedpotato, It looks like you found a bug in Studio. The SimData is being converted to XML using your system's language settings, which uses a comma instead of a dot. However, when Studio reads those 3 numbers, it is expecting to find them separated by commas. The next version of Studio will fix this so that it always uses the dot as the decimal point. I'm glad that scientific notation worked though
|
|