Problem with Keyboard imput...

sebmacflysebmacfly Member Posts: 1,018
edited January 2012 in Working with GS (Mac)
Hi,

I'm having trouble with the Keyboard input behavior...
When i want to enter en number > 100000, the attribute changed is bad...
When i enter a number < 100000, all is ok...

Any idea?

Thanks

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    is the Attribute you are changing Text type ? or numerical Type ?

    if what is input is not in the numericalValue format for the attribute Type it will not process nor display
    think of it this way: to the computer 100,000 is not a numberValue … it is a textString for a number

    @};- MH
  • quantumsheepquantumsheep Member Posts: 8,188
    "Problem with Keyboard imput..."

    Well *I* laughed!

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • ultimaultima Member, PRO Posts: 1,207
    edited January 2012
    what he's referring to i believe is when you type in 1000000 for example it'll turn into 10-e6(when stored) .. and if you call out that attribute to display the value... it's not 1000000

    if i remember correctly someone from GS said it's Lua problem, and it'll be fixed when they start to use native code.
  • MotherHooseMotherHoose Member Posts: 2,456
    @ultima … you explained that so nicely!

    but, @semacfly reference > 100,000 and > 100000; 900000 and 90000 do display properly 8-|

    @quantumsheep … well thankfully KB imp isn't utterly messed-up … then we would have to deal with cows as well as imps!

    @};- MH
  • sebmacflysebmacfly Member Posts: 1,018
    edited January 2012
    thanks guys for the answer...

    @Ultima :
    I know that the display is 1e+09 (for exemple...), that's why i'm using floor function to display all my number correctly.
    When i use the floor function, i sse that the number entered using Keyboard input behavior is not correct. And when i re-enter in the keyboard, the last number entered is not the same then before... strange

    @quantumsheep :
    LoL you're taking fun of me lol sorry for the eror :) *input*

    @MotherHoose:
    The attribute type is "real"
  • sebmacflysebmacfly Member Posts: 1,018
    edited January 2012
    I entered 5,123,456,789 (without the comas) in the text input,
    Display text with the floor function (for all the 9 numbers) = 5,123,457,000
    Display text for the attribute in the keyboard input (without any floor function) : 5.12346e+09

    I'm a little lost on this issue

    PS : I know that i'm using correctly the floor function, because in my other game all is OK (but i never used the keyboard input)
  • MotherHooseMotherHoose Member Posts: 2,456
    @sebmacfly … we would never take/make fun of you!… but, we will take/make fun with you!
    a laugh is nice, especially when peoples is talking math! So your typo helped us enjoy your post!

    looks like the DisplayText is treating the realAttribute as type and not content
    darn computer wants to do things its way and pay no attention to how you want things!
    and so set in its way, wont change anything to the format you ask for!

    if you are lost, imagine where those of us who never work with higher math functions are … :-&

    @};- MH
  • sebmacflysebmacfly Member Posts: 1,018
    Thanks :)

    I'm doing it with "text" attribute type... seems work... i'll let you know ;)

    Cheers! and Laugh is nice, i agree :P
  • sebmacflysebmacfly Member Posts: 1,018
    No way... i'm using numbers like 9.000.000.000 and i think that's too much...
    Any Chef or Sous-Chef to confirm that?

    Thanks :)
  • ingenious.applicationsingenious.applications Member Posts: 102
    No way... i'm using numbers like 9.000.000.000 and i think that's too much...
    Any Chef or Sous-Chef to confirm that?

    Thanks :)
    I too am using numbers into the billions, but I cannot get them to display properly. It's quite frustrating.
Sign In or Register to comment.