It's annoying having to do this all the time though.xperia64 wrote: Known Issues:
Going through doors with this enabled and the joystick tilted will make the joystick stuck. Just disable and enable the script again.
Lua
Re: Lua
Last edited by Hemmings on Tue Apr 14, 2020 4:53 am, edited 2 times in total.
- dsattorney
- Posts: 443
- Joined: Thu Aug 03, 2017 11:29 am
Re: Lua
Can you be more specific?Exedion wrote:One question: with lua script can hidden virtual buttons automatically when enter in a battle? That will be a important feature
OBJECTION!


- dsattorney
- Posts: 443
- Joined: Thu Aug 03, 2017 11:29 am
Re: Lua
Do you understand that most phones do not have a four-way accelerometer? So it's impossible to do a script for your purposes.
OBJECTION!


Re: Lua
Actually they do, an X and Y axis. What you are probably thinking of is a gyroscopic sensor which has yaw, pitch & roll.dsattorney wrote:Do you understand that most phones do not have a four-way accelerometer? So it's impossible to do a script for your purposes.
However it seems to not be possible anyway since only the X rotation function in the lua code is supported at the moment.android.get_rotation()
Returns an integer with the current device rotation in degrees.
The range is [0,-180[ for counter-clockwise rotation and [0,180] for clockwise rotation.
- dsattorney
- Posts: 443
- Joined: Thu Aug 03, 2017 11:29 am
Re: Lua
Exophase any chance you could add Y rotation to the lua code?kaikun97 wrote:However it seems to not be possible anyway since only the X rotation function in the lua code is supported at the moment.android.get_rotation()
Returns an integer with the current device rotation in degrees.
The range is [0,-180[ for counter-clockwise rotation and [0,180] for clockwise rotation.
Re: Lua
Hi!
I'm trying to write LUA script for pokemon black/white to show/hide controls in certain moments of the game. How can I debug and get values from this part of NDS memory? Or in other words how to easily debug it?
- drastic.get_ds_memory_arm9_8(address)
- drastic.get_ds_memory_arm9_16(address)
- drastic.get_ds_memory_arm9_32(address)
- drastic.get_ds_memory_arm7_8(address)
- drastic.get_ds_memory_arm7_16(address)
- drastic.get_ds_memory_arm7_32(address)
and it's will be cool to get the option for disabling/enabling touch screen of nds using LUA
BEST!
I'm trying to write LUA script for pokemon black/white to show/hide controls in certain moments of the game. How can I debug and get values from this part of NDS memory? Or in other words how to easily debug it?
- drastic.get_ds_memory_arm9_8(address)
- drastic.get_ds_memory_arm9_16(address)
- drastic.get_ds_memory_arm9_32(address)
- drastic.get_ds_memory_arm7_8(address)
- drastic.get_ds_memory_arm7_16(address)
- drastic.get_ds_memory_arm7_32(address)
and it's will be cool to get the option for disabling/enabling touch screen of nds using LUA
BEST!
Re: Lua
Anyone has any idea how to do this?talos91 wrote:Exophase any chance you could add Y rotation to the lua code?kaikun97 wrote:However it seems to not be possible anyway since only the X rotation function in the lua code is supported at the moment.android.get_rotation()
Returns an integer with the current device rotation in degrees.
The range is [0,-180[ for counter-clockwise rotation and [0,180] for clockwise rotation.
-
- Posts: 46
- Joined: Sat Nov 26, 2016 12:05 am
Re: Lua
Tried to test the Lua script for desmume which helps with Learn with Pokemon - Typing Adventure but game will always have a white screen no matter which rom I try (normal or patched rom)..
The Retroarch desmume core and all those 1000 DS emulators in the Google store based on desmume can open the patched rom and run the game fine without a keyboard but saving won't work and Lua scripts ain't supported :/
Normal rom will give a error saying "the setup for the keyboard has failed bla bla"
Is there any way to have this game working in drastic and have the in-game saving work too?
The Retroarch desmume core and all those 1000 DS emulators in the Google store based on desmume can open the patched rom and run the game fine without a keyboard but saving won't work and Lua scripts ain't supported :/
Normal rom will give a error saying "the setup for the keyboard has failed bla bla"
Is there any way to have this game working in drastic and have the in-game saving work too?
