Lua Scripts & Real Game Carts?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
User avatar
Xious
Posts: 189
Joined: Sun Oct 11, 2009 5:21 am
Location: Sol 3 in Mutter's Spiral
Contact:

Lua Scripts & Real Game Carts?

Post by Xious »

I noticed an interesting video about the Justin Bailey Metroid '23rd Edition' hack, and the Lua scripts mentioned therein.

How exactly do these scripts function? Do they tie-into the emulator or do they add an interchangeable ASM hack overlay to the game?

Is there a reasonably simply way to use the Lua script data to add features directly into a ROM so that it runs on real hardware, or would this be impossible?

-Xious
User avatar
Dwedit
Posts: 4470
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Post by Dwedit »

Lua scripts are for the emulator they run inside, and give enhancements to the emulator.
They don't do any ASM hacks. Just peeks and pokes.

Porting it to a cartridge is about as reasonable as porting an MP3 replacement music system.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

In fact, if you have Famicom expansion sound available, porting an MP3 replacement music system might be easier than running Lua on a coprocessor because an MP3 player chip can present an interface much like that of the Japanese version of Bases Loaded.
UncleSporky
Posts: 388
Joined: Sat Nov 17, 2007 8:44 pm

Post by UncleSporky »

You can tell it would be impossible just by looking at screens of the Metroid 23rd Anniversary hack. There's a minimap in the corner overlaid over the rest of the game, as well as a timer and other things. This might be possible to add to the game but it would take a huge overhaul, and your certainly couldn't just overlay it.
Post Reply