Lua Scripts

From DKC Speedruns
Revision as of 18:48, 9 February 2017 by Rainbowsprinklez (talk | contribs) (Useful scripts)
Jump to: navigation, search

What is Lua?

Lua is a programming language that is built-in to many emulators. It is used primarily for TASes, but has many applications. The ones provided here work for Snes9x rr only unless otherwise specified. If you have any ideas for future Lua scripts, contact Rainbowsprinkles or Kipples_.

How to Use

Download and unzip the file where you'd like. In Snes9x rr v1.53, go to File>Lua Scripting>New Lua Script Window. From here, hit browse and navigate to the .lua file you unzipped. Finally, hit run! You should notice white numbers/letters appear at the top of your screen!

DKC1 Scripts

Useful scripts

First up is a timer. Starts when you press L and ends when you press R. It clears when you load a save state. AND it could be used for any SNES game, not just DKC1. This only works on Snes9x rr.

File:Timer.zip

Next we have an upgraded timer for you. This will show you your best. Also compatible with any game, this works exactly the way the other one does.

[File:best.zip]]

Fun Scripts

Inspired by Newageretrohippies "cursed cart", this script enables X to fly! Enjoy!

File:X2Fly.zip

Coming soon

  • A practice script that makes you immune to most enemies
  • Another "fun" script that messes with speed (all I'll say)

DKC2 Scripts

To use these scripts, you will need a special snes9x emulator. Visit snes9x-rr and download "snes9x-1.51-rerecording-v7-win32.zip" (latest version when this was written). To use, save the text from the below pastebins to a .lua file. Then simply open the rom, go to File-> Lua Scripting-> New Lua Script Window and load the script!