I am having trouble using Texter script.

  • BrianTheEngineer
    15th Jun 2020 Member 0 Permalink

    I have just updated to the latest version of The Powder Toy and came about installing my usual scripts. Then I realized that Texter isn't working for me. Is this a known issue for all players or am I the only one with this issue?

  • jacob1
    15th Jun 2020 Developer 0 Permalink
    When pressing ctrl+t, make sure you don't have caps lock or num lock on. This breaks the script.

    Texter is using the old keyboard api, in that api is was difficult to properly check for ctrl and the vast majority of scripts do not do this.
  • BrianTheEngineer
    15th Jun 2020 Member 0 Permalink

    I don't have either of them on. Are there any scripts that collide with Texter?

  • jacob1
    15th Jun 2020 Developer 0 Permalink
    No. If you are using my mod or the Android port, ctrl+t won't work though and it has to be done from the command line.

    It could be another thing like scroll lock that is on.

    Type this into the console:
    tpt.register_keypress(print)

    Then press left ctrl. It should say ", 306, 64, 1" and ", 306, 64, 2". Can you tell me if that 3rd number is 64, or if it is something else?
  • BrianTheEngineer
    15th Jun 2020 Member 0 Permalink

    The numbers are extremely large. ", 306, 4160, 1" and ", 306, 4096, 2"

    Edited 2 times by BrianTheEngineer. Last: 15th Jun 2020
  • jacob1
    15th Jun 2020 Developer 0 Permalink
    Can I have the number anyway? Might help me look up what it is that you have enabled. Although looking at this sdl header file, num lock and caps lock are the main things that interfere.

    Edit: ok, 4096 means you have num lock on. You'll have to turn that off.

    My laptop has num lock on right now too. Despite not having a num lock key. How annoying ... I hope you find a num lock key somewhere.
    Edited once by jacob1. Last: 15th Jun 2020
  • BrianTheEngineer
    15th Jun 2020 Member 0 Permalink

    I just edited the post for the numbers

  • jacob1
    15th Jun 2020 Developer 0 Permalink
    I edited mine too :)
  • BrianTheEngineer
    15th Jun 2020 Member 0 Permalink

    I don't have a numpad key.

  • jacob1
    15th Jun 2020 Developer 0 Permalink
    Well then we are both in the same boat. I can't explain it. I wonder if rebooting would fix it. Otherwise maybe try googling ways to disable num lock without a num lock key.