Page 3 of 3

Re: Lua

Posted: Sun Jun 16, 2019 4:55 am
by SSUPII
I'm really sorry for this thread revival, but this is a pinned thread about Lua so I guess this is the right place to ask.

Is there a component in Lua that you can use to detect if the DS lid is closed?

Re: Lua

Posted: Wed Oct 27, 2021 11:03 am
by Natronium
xperia64 wrote:
Mon Apr 25, 2016 10:22 pm
A Super Mario 64 DS improved control scheme script:
http://pastebin.com/BrM2yDKe

L+R is Enable/Disable
The left joystick does the touchscreen joystick
Y has been remapped to A since there should be no reason to use the run button

Known Issues:
Going through doors with this enabled and the joystick tilted will make the joystick stuck. Just disable and enable the script again.
I know this is late but is there any way to map the Y button back to normal? I'm using a bluetooth controller and I'd like to remap the camera rotation to L1 and R1, since touch controls allow for the camera rotation to be mapped to the X and Y buttons. Normally this would be an easy fix by remapping inside the DraStic App, but since the Lua remaps the Y button on the backend, I cant remap from the within UI part of the app. If someone has either a copy of the script changes, or can walk me through how to change the Lua file myself that would be really helpful, as I'm really not versed on Lua and other programming languages.

Re: Lua

Posted: Wed Oct 27, 2021 11:42 am
by Natronium
Not sure if anyone else has had this issue, but if so I was able to fiddle around with the Lua and I think I fixed my issue. If anyone else needs the file, here's the modified one. This is just a slight change to xperia64 's original Lua. If they ask me to remove I will, since I'm really not sure if posting this here is okay or not, but here's the file. All it does is map the touch screen analog input to the joystick on your controller of choice for smoother movement options. All I did was disable the part of xperia64's original Lua that mapped the Y button to the A button. Don't forget to Rename the Lua to the name of the rom file when placing in DraStic's "scripts" folder.