Lua? In MY emulator?
It's likelier than you think!
I forked VBA-M a few days ago to add scripting support and it just reached alpha level.
You can download/star/subscribe the project at https://github.com/dkreuter/VBA-M
You'll have to compile it yourself, and I only have a linux machine to work with, so I don't know if it even works with windows.
Anyway, here are some of the uses I imagine:
I personally want to use it to get traces as nice html.
Feedback? Bug-reports? Questions? Suggestions?
UPDATE: The building process for linux users should be fully automated now.
Here's a test-file you can use with my emulator. Put it in the top folder of the project and name it… "pokemon.lua" maybe. Launch the emulator with 'vbam -l firered.gba' in the top folder, press F11, type 'require "pokemon"'. Resume emulation with Ctrl+D. You should see lots of debug output now. (PROFIT!)
I can see so much potential with this. If the Lua can be triggered on a RAM write, you could use a writebytetooffset in a pokescript to trigger a lua script, do some stuff, then return!
As for networking, that might take a bit of work for stuff like a DPPt style underground, but I can see some REALLY good but simple uses for networking: Mystery Gifts. Use an online distribution system (or codes based on an online thingy) to get certain items or event pokemon. Or, a GTS to trade pokemon with other ROM-Hack-players. OR, an online saving system where you can view your progress... With networking, the possibilities are endless!
Although, I must request one feature if it's not already existant: Linking (wireless or wired) from a Lua script. While it's possible manually, it's annoyingly difficult. If we could have link connections from lua, we could have a wifi battle system, or a wifi trading system in all the Pokemon Games!
|All times are GMT -8. The time now is 9:46 AM.|
© 2002 - 2015 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2015.