cai567890 / pcsx2

Automatically exported from code.google.com/p/pcsx2
1 stars 0 forks source link

[FEATURE REQUEST] Add LUA and TAS #1483

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I think it would be an amazing addition to PCSX2 to add the ability to run lua 
scripts and movie recording/playing for all sorts of things. eg Speedruns and 
keeping up with IRC chat while playing for instance.

I think this feature should definitely be added.

Original issue reported on code.google.com by kalisto2...@gmail.com on 25 Feb 2014 at 12:01

GoogleCodeExporter commented 9 years ago
You can already record movies by pressing F12. why you would want to play them 
in the emulator while running the emulator i don't get..

and LUA scripts, what would you want to use them for?

Original comment by refraction on 25 Feb 2014 at 9:27

GoogleCodeExporter commented 9 years ago
Lua scripting is an extremely useful tool when TASing.
Although some programming knowledge is required, the user has power over things 
like game screen display, inputs, and memory. 

The following are some common applications, though the possibilities are 
endless.
    Displaying helpful information on screen.
    Eliminating tedious repetition.
    Creating specific circumstances for testing.
    Brute forcing a difficult solution.

Example video :)
http://www.youtube.com/watch?v=htSSC2YRNEY

Original comment by kalisto2...@gmail.com on 25 Feb 2014 at 2:22

GoogleCodeExporter commented 9 years ago
This will have to come from a third party :p
We get this request occasionally but no one in the team is a TAS'er 
and LUA sounds like a moon base to me :p
No seriously, best would be if you find someone that wants to code this in!

Original comment by ramapcsx2.code on 26 Mar 2014 at 9:30

GoogleCodeExporter commented 9 years ago
I would attempt it with some help from the code.
I would port from another RR based emulator since the code is generally the 
same.
I just dont know how to go about calling hard reboots, or getting a control 
table from pcsx2.
Tell me how to call them I will submit a pull request by tomorrow.

Original comment by kalisto2...@gmail.com on 26 Mar 2014 at 6:22

GoogleCodeExporter commented 9 years ago
Find void SysCoreThread::ResetQuick() for resets. There is no control table.
I'm not sure you'll have any luck trying to adapt another emus code to this.
This part is entirely up to chance in how it's implemented, so each emulator 
will look different.

Original comment by ramapcsx2.code on 27 Mar 2014 at 3:23