Lua Scripts

Discuss previously released ROM Hacks here. Total Conversions, Kaizo Hacks, Vandalized monstrosities, anything goes.
Post Reply
User avatar
SpiderDave
Posts: 7
Joined: Sat Feb 15, 2020 4:56 am
Contact:

Lua Scripts

Post by SpiderDave »

My site is gone and I don't know when I'll be able to get it back, so I'm dumping the EmuLua page here. This is basically all the cool emulator Lua scripts I could find with some that I created. Specifically excluded are any TAS-related scripts, since there are already good places to find those.

----------------------------------------------------------------------------------------------------

Bullet Avoider TWO THOUSAND
Game: Any
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
Files: nes/superbulletdodger0002.lua, nes/superbulletdodger0003.lua
Emulator: FCEUX

Download

What happens when you take a ROM that only plays music and code a game around it? Something like this!

https://youtu.be/84JZIZBeQZU

----------------------------------------------------------------------------------------------------

Metroid Enhanced
Game: Metroid
Author: Neill Corlett
Site: http://www.neillcorlett.com/metroidlua
(Note: site is down, try here)
Emulator: FCEUX

Download


ImageImage
This is a Lua script for FCEUX that adds some new stuff to an old game, Metroid:

* Equipment menu that lets you toggle powerups, including the Ice and Wave beams
* Maximum energy tanks raised from 6 to 7
* Start out with full health and missiles
* Minimap and large map on pause screen, with mouse interaction (tooltips / click elevators to navigate between areas)
* Clear time and item percentage
* Max missiles display
* Countdowns on broken blocks
* Popup boxes when you collect a powerup
* Mouse input on password screen

----------------------------------------------------------------------------------------------------

RCR Stats Display
Game: River City Ransom
Author: BillyWM
Site: https://github.com/BillyWM/FCEUX-Lua-Script-Collection
File: RCR-statDisplay.lua
Emulator: FCEUX

Download

Image
Display stats.

----------------------------------------------------------------------------------------------------

RCR Bot
Game: River City Ransom
Author: BillyWM
Site: https://github.com/BillyWM/FCEUX-Lua-Script-Collection
File: RCR-bot.lua
Emulator: FCEUX

Download


Image
Bot; The game plays itself.

----------------------------------------------------------------------------------------------------

Rewind
Game: Any
Author: BillyWM
Site: https://github.com/BillyWM/FCEUX-Lua-Script-Collection
File: rewind.lua
Emulator: FCEUX

Download


Rewind script; press select to rewind.

----------------------------------------------------------------------------------------------------

battlekid.lua
Game: Battle Kid: Fortress of Peril
Author: BillyWM
Site: https://github.com/BillyWM/FCEUX-Lua-Script-Collection
File: battleKid.lua
Emulator: FCEUX

Download


* Auto-savestate in each new room.
* Minimap
* Drag and drop

----------------------------------------------------------------------------------------------------

Power Blade Enhanced
Game: Power Blade
Author: SpiderDave
Emulator: FCEUX

Download



Image
This script is intended to make the game a little more challenging and fun. Some enemies are modified, but the main feature is adding guest enemies. At the moment, you can add the eagles from ninja gaiden and the flying shells from megaman. The guest enemy positions can be saved and loaded with the script. Currently you will have to add them yourself, but I'd like to save several modification files in the future.

Changes:
* (Many changes, to be detailed later)

----------------------------------------------------------------------------------------------------

Street Fighter 2010 Improvement
Game: Street Fighter 2010 - The Final Fight
Author: SpiderDave
Emulator: FCEUX

Download


Image
This script is designed to improve some of the control issues, as well as other issues.
Fixes:
* Time limit for final stage increased from 200 to 300
* Time limit reset after cut scene on final stage
* Ability to shoot multiple times in the air
* Ability to shoot up in the air
* Ability to shoot down in the air without doing a backflip jump
* Changed ground kick shot to attack low
* Remove delay from start of walking state
* Jump straight up while on wall by pressing A + up
* Backflip off wall by pressing A + up + away from wall
* Press start to skip target screen (Currently may require more than one press)
* Display quote when script is started while title screen is showing
Cheats:
* Invincibility
* Infinite HP
* Full power
* Infinite time
* Press select to warp to next level

----------------------------------------------------------------------------------------------------

Bionic Commando Rocket
Game: Bionic Commando
Author: SpiderDave
Emulator: FCEUX

Download


https://youtu.be/O7G2sOr_n1s
This script lets the player select a rocket pack instead of the Bionic Arm. I've fixed a number of issues, but there may be some bugs, especially with the jump option.

----------------------------------------------------------------------------------------------------

Super Mario Bros. 2 Instant Character Switching
Game: Super Mario Bros. 2
Author: SpiderDave
Emulator: FCEUX

Download

Image
Instant in-game character switching by pressing select.

Changes:
* Change character in game by pressing select
ToDo/Issues/Bugs:
* Pressing select when not in game can cause undesired effects, such as
distorted graphics, wrong palette.
* Luigi gravity isn't quite perfect
* Character switching can be abused in some ways, like continuing a
princess float with another character, or switching mid-jump with toad
to get a higher jump with Luigi. A good fix would be to make switching
only possible on the ground, or have switching cancel a jump.

----------------------------------------------------------------------------------------------------

Bikkuri Nekketsu Shin Kiroku! Harukanaru Kin Medal Text Tool
Game: Bikkuri Nekketsu Shin Kiroku! Harukanaru Kin Medal
Author: SpiderDave
Emulator: FCEUX

Download


This script takes Japanese text as it's being printed to the screen
and attempts to print the romanized text to the console. Sort of an experiment.

----------------------------------------------------------------------------------------------------

Castlevania 2 Improvement
Game: Castlevania 2
Author: SpiderDave
Emulator: FCEUX (please use this version.)

Download



Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

2018.11.8
Changes:

* Message speed increased
* New patterns for Dracula (needs work and balancing)
* Improved Death boss
* Improved Carmilla boss
* Skeletons can turn around
* Improved skulls, ghosts, medusa heads
* Improved floating eyes
* Hands are hidden until close.
* All fireballs should now face proper direction
* Don't re-fight Bosses
* Locked boss rooms
* Fireballs (except those created by script) are destructable
* Most special weapons now have a heart cost.
* Garlic disappears after a while.
* The cross is now equippable and works as a Banshee Boomerang
* Equip Dracula's ring and white dagger to use axes
* Fixed spelling "Prossess" -> "Possess"
* New top display
* Holy water burn effect. The bottle is also now blue.
* Diamond sprite graphics are changed, and trail added.
* Day starts at 1
* Changed lives display to mean "extra" lives (you can go down to 0)
* The period of invincibility when you get hit now starts when you land,
* and the player flashes.
* Eye, Nail and Rib are always active if you own them.
* Experience is now gained when killing enemies, and experience system is reworked.
* Experience display shows total experience from all levels, not just current.
* Start at level 1; maximum level is 99.
* New "Level Up" toast. Provides brief invincibility and health replenish on level up.
* Gold system added. Gold is added automatically when killing enemies.
* Hearts no longer give experience and are no longer used to buy items.
* Maximum hearts lowered to 99 (these are now only used for special weapons).
* New reworked Sub screen

Debug and experimental stuff (may not be in the final version):
* Cheats
* Frame tester
* Bat mode

ToDo/Issues/Bugs:
* Snakes should turn before jumping
* Ferryman shouldn't bounce off the dock and leave
* works most of the time; buggy.
* Custom projectiles need a better hit method. Currently
* It simply creates holy fire where the projectile was.
* Custom projectiles may disappear on non-enemy objects
* such as moving platforms.
* Blood Skeletons
* Don't get items you already have (Dracula's parts, etc)
* Messages to fix: 0d 1e
* replace hp graphics when unloading script
* add mummy bandages
* overhaul menu system, make new sub screen
* select weapons, relics, equipment
* bestiary
* map
* clue list
* improve gold system
* add slash character to font
* add save system, remove lives?
* add production flag to remove all cheats/debug stuff
* test for rom.writebyte and show message to upgrade fceux if not there
* make garlic throw a bunch of garlic
* fix medusa heads, ghosts, etc.
* move selectable whip to a cheat option
* Change reflected fireballs to blocked fireballs (disappear)
* make bordia mountains useful (put something there)
* move respawn points to where you first entered the screen
* add stopwatch
* fix special weapons sometimes using hearts when you don't use them.

----------------------------------------------------------------------------------------------------

Tetris Mods
Game: Tetris
Author: retrotails
Site: https://www.dropbox.com/s/79zw8wwa2q5jd ... s.lua?dl=0
File: tetris.lua.txt
Emulator: FCEUX

Download



https://youtu.be/7HPXpLTNLLI
Features:
* Smooth piece falling
* Skip pre-title screen early
* Custom text on loss
* More selectable music

Note: Currently, there seems to be an issue in the displayText function (It causes the "text" variable to increase in size until it causes the game to freeze). A possible fix is to add "local text = text" after line 76.

----------------------------------------------------------------------------------------------------

Xkeeper's emu-lua scripts
Games: Various (Mostly NES, a few GBx)
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
Emulators: FCEUX, ?

Download

Many scripts for NES and a few for Gbx. Details to be added later.

----------------------------------------------------------------------------------------------------

SMB Jetpack
Game: Super Mario Bros.
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: nes/smb1jetpack.lua
Emulator: FCEUX

Download

Image
Jump is replaced with a jetpack-style movement ability.

----------------------------------------------------------------------------------------------------

smb1.lua
Game: Super Mario Bros.
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: nes/smb1
Emulator: FCEUX

Download

Image
Display movement speed information in a graph.

----------------------------------------------------------------------------------------------------

Area Scrambler
Game: Super Mario Bros.
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: nes/smb1areascrambler.lua
Emulator: FCEUX

Download

Image
Scramble area, changing blocks and enemies (may freeze the game).

----------------------------------------------------------------------------------------------------

Hitboxes
Game: Super Mario Bros.
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: nes/smb1hitboxes.lua
Emulator: FCEUX

Download

Image
Display hitboxes.

----------------------------------------------------------------------------------------------------

smb1lulz.lua
Game: Super Mario Bros.
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: nes/smb1lulz.lua
Emulator: FCEUX

Download

Image
"Press up to cast MAGIC MISSILE!"

----------------------------------------------------------------------------------------------------

zelda.lua
Game: The Legend of Zelda
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: nes/zelda.lua
Emulator: FCEUX

Download

Image
Adds a life bar with animation

----------------------------------------------------------------------------------------------------

zelda 2 - 4matsy.lua
Game: Zelda II - The Adventure of Link
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: nes/zelda 2 - 4matsy.lua
Emulator: FCEUX

Download

Image
Display stats, enemy info, life bars

----------------------------------------------------------------------------------------------------

Rom Size Calculator
Game: Any
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: rom size calculator.lua
Emulator: FCEUX

Download

Image
Display ROM size

----------------------------------------------------------------------------------------------------

bugs bunny birthday blowout.lua
Game: The Bugs Bunny Birthday Blowout
Author: Xkeeper
Site: https://github.com/Xkeeper0/emu-lua
File: nes/bugs bunny birthday blowout.lua
Emulator: FCEUX

Download

Image
Display information, map

----------------------------------------------------------------------------------------------------

Z2.lua
Game: Zelda II - The Adventure of Link
Author: Christopher DeMichiei
Site: http://www.thedeemer.com/Script.html
Emulator: FCEUX

Download


https://youtu.be/h2_RirdJPpg
Display stats in game's own font.

----------------------------------------------------------------------------------------------------

LearningFFV.lua.lua
Game: Final Fantasy V
Author: Christopher DeMichiei
Site: http://www.thedeemer.com/Script.html
Emulator: FCEUX

Download


https://youtu.be/tMehtqno1xQ
Display various stats.

----------------------------------------------------------------------------------------------------

Lag Remover
Game: All (well, most)
Author: SpiderDave
Site: http://pastebin.com/DNJbimpL
Emulator: FCEUX

Download

UPDATE: This script really isn't needed anymore since newer versions of FCEUX have an overclocking option. Try it!

Removes lag from games by speeding things up when lag is detected. This makes the sound
missing, clicky, or garbled. Can't really fix this since when the game lags, the sound doesn't.

Try it on your favorite laggy games: Castlevania II, Metroid (Mother Brain's room), etc.

----------------------------------------------------------------------------------------------------

Various
Game: Various
Author: haseeb-heaven
Site: https://github.com/haseeb-heaven/LuaScripts_NES
Files: Lua Scripts NES.zip
Emulator: FCEUX
License: See README

Download


Various scripts for:
* Super Mario Bros
* Battle City
* Mighty Final Fight
* Yie-Ar Kung-Fu

----------------------------------------------------------------------------------------------------

Zelda Randomizer Map Marker
Zelda Randomizer Map Marker

Game: The Legend of Zelda
Author: Gannio
Emulator: FCEUX

Download


https://youtu.be/F4D8h2u6LZA
This script allows the player to map the location of area secrets on the map using the 2nd player's controller.

----------------------------------------------------------------------------------------------------

sprite test
SpiderDave_sprite_test.lua

Game: Various
Author: SpiderDave
Emulator: FCEUX

Download

Image
Displays tile values of sprites.

* Tested in FCEUX 2.2.3
* Works for most games.
* Requires Lua-GD EDIT: No longer required.
* Make sure to download the Spidey folder too.

Windows:
FCEUX folder:
gd.dll
freetype6.dll
libgd2.dll
libpng13.dll
jpeg62.dll
libiconv2.dll

Lua scripts folder:
SpiderDave_sprite_test.lua
Spidey
SpideyStuff.lua
default_font.lua
hexgrid.png
hexgrid.gd

----------------------------------------------------------------------------------------------------

The Addams Family - Level Selector v2
Game: The Addams Family
Author: ventuz
File: addams_family_level_select.lua
Emulator: FCEUX

Download

Image
From the author: "This is a lua script for "Addams Family" for FCEUX 2.1.4a (it must be this version, newer looks wrong, idk what other version works) What does this lua do, allow you teleport across different level / rooms. Press Start to see this. Can be done by controller input."

Note: I tested it on FCEUX 2.2.3 and it seems to work fine on the European version. USA version works though the text is cut off at the top. Sometimes it puts you through the ground or other strangeness, but loading the level again with the script fixes it. --SpiderDave

----------------------------------------------------------------------------------------------------

freem's Scripts
Game: Various
Author: freem
Site: https://github.com/freem/fceuxLuaScripts
Emulator: FCEUX

Download


Various Lua scripts (and related files) for NES games.

Contents:

connectedNES - Scripts for the connectedNES demo ROM
RCProAm - Scripts for R.C. Pro-Am
SuperDodgeBall - Scripts for Super Dodge Ball
Tennis - Scripts for Tennis

----------------------------------------------------------------------------------------------------

SMB Framework
Game: Super Mario Bros. (World)
Author: SpiderDave
Site: https://github.com/SpiderDave/spiderdav ... ter/EmuLua
Files: SpiderDave_SMB_Framework.lua (run updateSMB.exe first)
Emulator: FCEUX

Download


A WIP framework with many things you can do. Make sure you have the latest FCEUX from here (not the main page one, it's outdated). Put updateSMB.exe in your LuaScripts folder and run it. Run the SpiderDave_SMB_Framework.lua script. Not much is changed by default, create a file smb/config.txt and add some items. You can see the available/default items in smb/config.default.txt.
Image
Image
Image
Image
Image

Post Reply