TimeTrack problem with uppercase section name

I was doing some timetrack stuff like this

[O-Planet1@O-MenuButton]
TrackList = T-O-Planet2Tap 

[T-O-Planet2Tap]
0 = Config.SetValue Settings currentPlanet Mars ; works
0 = Config.SetValue Settings CurrentPlanet Mars ; doesn't work

When the section name was capitalized, orxConfig_GetString retrieved a null string instead of "Mars". Otherwise, it worked.

Additionally, orxConfig_GetString retrieved "mars" instead of "Mars" as the value. Not a major problem. I just preferred the upper case value.

commit 3a97578

Comments

  • edited November 2012
    Mmh, weird, I just tried with current latest and I didn't experience that behavior.

    I tried from console and timeline as well as directly in code with orxConfig_GetString and got correct capitalization every time.
    Here's what I tried:
    0 = Config.SetValue Settings currentPlanet mars #
        Config.SetValue Settings CurrentPlanet Mars #
      > Config.GetValue Settings currentPlanet #
        Console.Log "currentPlanet = <" #
      > Config.GetValue Settings CurrentPlanet #
        Console.Log "CurrentPlanet = <"
    
    And here's what I got:
    [00:20:38] [LOG] currentPlanet = mars
    [00:20:38] [LOG] CurrentPlanet = Mars
    
    NB: The command Console.Log isn't available yet, I just added it locally and will push it later to bitbucket.

    Maybe some sequencing issue and your code runs before your timeline got executed? Or the section that was pushed at the time of polling wasn't correct?
    I doubt this would be a platform-specific issue but I tried on OS X so far and will try on Windows later on.
Sign In or Register to comment.