Help, Lua is not working in android

  • Aryon245
    27th Dec 2019 Member 0 Permalink

    when i enter commands,The console just brings me to the search menusection or it takes a screenshot.How do i solve this?

  • jacob1
    27th Dec 2019 Developer 0 Permalink
    You aren't bringing up the console, then.

    Press the console button on the right edge of the screen. Don't hold it down, holding it down brings up a keyboard instead.

    If you're in the console, you will set "Welcome to The Powder Toy console" on the top of the screen.
  • Cracker1000
    27th Dec 2019 Member 0 Permalink

    @Neil_75 (View Post)

     What type of commands?

    There are some lua commands that definitely don't work in android port right now, but most of them should work as expected.

  • Aryon245
    27th Dec 2019 Member 0 Permalink

    commands like !tpt.setfpscap

  • jacob1
    27th Dec 2019 Developer 0 Permalink
    There is no exclamation point in that command. Just type: tpt.setfpscap(100) and then click the red upvote button to send it.

    Do you see the message I mentioned?

    @Cracker1000 (View Post)
    Hmm, just the interface api, right? Or are you aware of other commands I might need to fix.
    Edited once by jacob1. Last: 27th Dec 2019
  • Cracker1000
    27th Dec 2019 Member 0 Permalink

    @Neil_75 (View Post)

     it's not working because you are writing it wrong, the correct syntax is "tpt.setfpscap(42)".

    But keep in mind, the it won't work if you try to set it above 60 in android version.

    @jacob1

    I think there were some other than the interface api, like the tpt.setfpscap(2) one. I don't remember at the moment.

     

    Jacob still posts messages while i am still trying to type :P

    Edited 2 times by Cracker1000. Last: 27th Dec 2019
  • Aryon245
    27th Dec 2019 Member 0 Permalink

    Ok, everything seems to work now, Thank you very much jacob1 and cracker 1000 

    Also the saves and stamps disappeared suddenly but the savefiles are still in the save directory the saves are old ones why did they disappeared? i tried backup of saves and reinstalling powder game. (man, jumped to another topic )

    Edited 2 times by Neil_75. Last: 27th Dec 2019
  • jacob1
    27th Dec 2019 Developer 0 Permalink
    @Neil_75 (View Post)
    Awesome :)

    @Cracker1000 (View Post)
    I ninja edited my post to include a question for you :P

    But ok. Probably the sdl port doing vsync. I'll try to remember that.