Difference between revisions of "Lua Scripts"

From DKC Speedruns
Jump to: navigation, search
(Created page with "Here are some useful lua scripts for dkc")
 
m
 
(31 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Here are some useful lua scripts for dkc
+
=== 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 Kipples_ or Rainbowsprinklez.
 +
 
 +
=== How to Use ===
 +
Download and unzip the file where you'd like. In Snes9x rr v1.51, 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!
 +
 
 +
Download snes9x here! First one! [http://tasvideos.org/EmulatorResources/Snes9x.html]
 +
 
 +
== DKC1 Scripts ==
 +
 
 +
=== Bizhawk Scripts===
 +
This script shows the hitbox of each entity as well as various other information! The 5 categories shown here from left-to-right are: id, x speed, y speed, x position, and y position. All values shown on-screen are in hexadecimal.
 +
 
 +
[[File:Wiki_array+hitbox.png|400px]]
 +
 
 +
Download the Lua script by Amaraticando and RainbowSprinklez here!
 +
 
 +
[[File:DKC-hitboxes-bizhawk-v1.0+objects.zip]]
 +
 
 +
=== Useful (outdated but still OK) 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]]
 +
 
 +
This is pretty special. This lua script makes you invincible to ANYTHING. However, there is a catch. The L button turns this feature on while R turns it off. It is useful off in practicing SJRs.
 +
 
 +
[[File:invinc.zip]]
 +
 
 +
=== Fun Scripts ===
 +
Inspired by Pichi's "cursed cart", this script enables X to fly! Enjoy!
 +
 
 +
[[File:X2Fly.zip]]
 +
 
 +
== DKC2 Scripts ==
 +
 
 +
To use these scripts, you will need a special snes9x emulator. Visit [http://code.google.com/p/snes9x-rr/downloads/list 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 .txt file then change the extension to .lua. Then simply open the rom, go to File-> Lua Scripting-> New Lua Script Window and load the script!
 +
 
 +
*[http://pastebin.com/AfJBasMT Lua ID Script]
 +
*[http://pastebin.com/E9XzrvmV Lua Timer]
 +
*[https://drive.google.com/file/d/1ud1ZxWr-mMx10mkbQtoi3eDxbdXk00Pw/view?usp=sharing Lua ID Script for Bizhawk]
 +
*[https://drive.google.com/file/d/12S4fEbwqiltO9-JYvNROcELATmSh07Gv/view?usp=sharing Bizhawk Haunted Hall Practice Script (J)]
 +
*[https://drive.google.com/file/d/1y1voGCyrW3W7biCnJym4Sxk5ifGho1fH/view?usp=sharing Bizhawk Haunted Hall Practice Script (U)]
 +
 
 +
 
 +
=== Additional ===
 +
 
 +
*[https://pastebin.com/gcdKfDEa Lua IL Timer (for IL Leaderboards) for Bizhawk (accurate)]
 +
*[http://pastebin.com/1ZCaL39h Lua IL Timer (for IL Leaderboards) for Snes9x-rr (inaccurate)]

Latest revision as of 19:36, 29 February 2024

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 Kipples_ or Rainbowsprinklez.

How to Use

Download and unzip the file where you'd like. In Snes9x rr v1.51, 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!

Download snes9x here! First one! [1]

DKC1 Scripts

Bizhawk Scripts

This script shows the hitbox of each entity as well as various other information! The 5 categories shown here from left-to-right are: id, x speed, y speed, x position, and y position. All values shown on-screen are in hexadecimal.

Wiki array+hitbox.png

Download the Lua script by Amaraticando and RainbowSprinklez here!

File:DKC-hitboxes-bizhawk-v1.0+objects.zip

Useful (outdated but still OK) 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

This is pretty special. This lua script makes you invincible to ANYTHING. However, there is a catch. The L button turns this feature on while R turns it off. It is useful off in practicing SJRs.

File:Invinc.zip

Fun Scripts

Inspired by Pichi's "cursed cart", this script enables X to fly! Enjoy!

File:X2Fly.zip

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 .txt file then change the extension to .lua. Then simply open the rom, go to File-> Lua Scripting-> New Lua Script Window and load the script!


Additional