Post subject: LUA scripting: AI second player?
Joined: 5/13/2013
Posts: 180
So I noticed that a lot of emulators allow LUA scripting, and I read on the page for said function that "the possibilities are endless". So, taking that note, I figured, hey, if you can code just about anything in LUA as a script, then why not some form of A.I. for the second player? This would be pretty revolutionary for gameplay, as the computer would be helping you play the game without the need of someone cluttering the computer with their hands on another half of the keyboard. I think it can be done, because why not? Imagine playing Contra on 2P mode, and the Blue Guy is doing all the work without without any human input. What if you were playing Kirby Super Star and an enemy you just ate came to life right before your eyes and stayed by your side all on its own? Can't you see yourself at throat and neck with the computer in a game of Super Puzzle Fighter II Turbo? I don't know one day that went by I haven't dreamed of playing Gunstar Super Heroes with a sentient Player 2. I think we can do it.
A wise man once said "Damn, that's one hell of a steak."
nesrocks
He/Him
Player (246)
Joined: 5/1/2004
Posts: 4096
Location: Rio, Brazil
There was this: https://www.youtube.com/watch?v=DlkMs4ZHHr8 It's indeed a very insteresting area. It would be really nice to have pre-built AI for player 2 on the emulator for relevant games.
MESHUGGAH
Other
Skilled player (1917)
Joined: 11/14/2009
Posts: 1353
Location: 𝔐𝔞𝔤𝑦𝔞𝔯
I've thought of that Mario AI too instantly. Probably can be useful for very basic games as a test run, but I can't see it effective in TASes. Unless you are going to implement hundreds for conditions and functions for each game in a way to make it "developable" later which takes a lot of time rather than simply recording 2 players at once and change P2 input later.
PhD in TASing 🎓 speedrun enthusiast ❤🚷🔥 white hat hacker ▓ black box tester ░ censorships and rules...
nesrocks
He/Him
Player (246)
Joined: 5/1/2004
Posts: 4096
Location: Rio, Brazil
I'm not sure he meant it to be used in TASing.
Joined: 5/13/2013
Posts: 180
FODA wrote:
I'm not sure he meant it to be used in TASing.
Well I kinda thought it would be a neat thing to see in a TAS but using it during normal gameplay could be fun as well.
A wise man once said "Damn, that's one hell of a steak."
MESHUGGAH
Other
Skilled player (1917)
Joined: 11/14/2009
Posts: 1353
Location: 𝔐𝔞𝔤𝑦𝔞𝔯
YushiroGowa wrote:
Well I kinda thought it would be a neat thing to see in a TAS but using it during normal gameplay could be fun as well.
I think I was a little bit pessimistic since I was instantly thinking of games in general, and we know that lot of games has lag frames and specific tricks that requires you to avoid some features of the game (getting a power up which makes a pause, jumping which loses 1 frame, players need to focus on 1 enemy etc). But I think http://www.cs.cmu.edu/~tom7/mario/ could be implemented as a second player with some changes like learning from player 1's actions (since you should understand the game faster and better).
PhD in TASing 🎓 speedrun enthusiast ❤🚷🔥 white hat hacker ▓ black box tester ░ censorships and rules...