Alternative Lua console key?

  • gbl08ma
    3rd Aug 2011 Member 0 Permalink
    First of all, I'm a bit new to The Powder Toy, but I like it, it's a nice time waster (in the good sense). Secondly, I'm sorry if this is the wrong section (although I don't think so). And thirdly, I searched a lot before posting this, but could find nothing and it's driving me nuts.

    All instructions I see for opening the Lua console in Powder Toy refer to a tilde ( ~ ) or ( ` ) key, which is to the left of the ( 1 ) key... but not on all keyboards. I'm Portuguese and I use a keyboard with Portuguese key mapping, and the key to the left of the 1 key and above the Tab key doesn't have a tilde, instead it allows people to write a backwards slash ( \ ) or a pipe ( | ). Pressing this key in the Powder Toy does nothing.

    Being a Portuguese keyboard, it has a tilde key in a different position. That key allows me to write a tilde (or write letters with a tilde like ã, ?, õ, and so on) or a ^ (which also allows me to write letters like â, ê, ô, etc.).
    Pressing this key doesn't fire up the console either...

    I tried lots of key combinations but I can't manage to open the Powder console. This means this console is only available to people with an English keyboard? By the way, the tilde key on my keyboard doesn't write a ~ once I press it, it first waits for another letter to be pressed, and only writes a plain ~ if I press space after pressing ~ first (this doesn't open TPT console either).

    I'm on Linux Ubuntu 11.04, and I know I can switch keymaps and (eventually, depending on how TPT captures keypresses) that would allow me to access the console... but, it's much of an hassle to switch keymaps every time I want to use TPT.

    I also read something about a Python console, but I can't open it either... well, I'd be already much satisfied if I knew how to open the Lua one.

    Any ideas? :D

    Cheers,
    gbl08ma
  • MasterMind555
    3rd Aug 2011 Member 0 Permalink
    @gbl08ma (View Post)
    On my keyboard, the console key is #~|\ And I can write all those letters, so should be near that key
    If you don't find it, just smash everykey of your keyboard and it should popup
  • nmd
    3rd Aug 2011 Member 0 Permalink

    MasterMind555:

    @gbl08ma!145212
    If you don't find it, just smash everykey of your keyboard and it should popup


    the advice of an experienced member :P
  • MasterMind555
    3rd Aug 2011 Member 0 Permalink
    @nmd (View Post)
    Well I did that a while ago and the menu of secret elements poped up
  • boxmein
    3rd Aug 2011 Former Staff 0 Permalink
    I'll make a special mod for you to open the console :D
  • Pilihp64
    3rd Aug 2011 Developer 0 Permalink
    @boxmein (View Post)
    i beat you
    http://minus.com/mbUO1rK (updated for new version)
    save this as autorun.lua in the tpt directory.
    when you move your mouse to the very top and left side of the powder toy screen, the console opens.
  • boxmein
    3rd Aug 2011 Former Staff 0 Permalink
  • BlueAmulet
    3rd Aug 2011 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 12th Apr 2024
  • gbl08ma
    3rd Aug 2011 Member 0 Permalink
    Thank you guys, I'll have a look at these solutions later. I just closed TPT when I remembered of this thread.

    EDIT: the autorun.lua solution works well, thanks a lot :)
  • Cr15py
    3rd Aug 2011 Member 0 Permalink
    @gbl08ma (View Post)
    It's nice to see someone smart who knows what they're talking about and explains their problem for once. Here's my best advice. Pick a key you never use(if your keyboard has a windows key, use that), find the keycode(it's a number) associated with the '~' key, and replace the windows key with that keycode. Try googling something like "mapping English keycodes onto Portuguese keyboard ubuntu". If all else fails, myself or someone else can compile you a copy with the keycode of your choice.