Commit Graph

178 Commits

Author SHA1 Message Date
ansstuff a40e4c655a * Taseditor: Markers aren't bound to Input by default, Markers are always restored when deploying Bookmarks
* Taseditor: Lua registermanual allows changing the "Run function" button caption
* Taseditor: fixed bug with rejecting movies starting from savestate
2012-07-19 19:40:40 +00:00
ansstuff 18b9dd1c59 * Lua functions emu.pause() and emu.unpause() don't yield and don't reset emulator speed anymore
* updated docs

[[Split portion of a mixed commit.]]
2012-05-01 21:05:35 +00:00
ansstuff 125173107b * Taseditor: set/pick Markers by doubleclick, throw Markers away
* Taseditor: clicks on Input don't change Selection
* Taseditor: selection by dragging from Frame#
* Taseditor: better way to check doubletap for Shift and Ctrl keys
* Taseditor: no more "allow keys in Piano Roll"; new accelerators: Ctrl + arrows, Shift + arrows, Home/End/Page Up/Page Down, Ctrl + Home/End, Shift + Home/End
* Taseditor: showing row_last_clicked when Shift or Alt is held
2012-03-17 15:59:35 +00:00
ansstuff d659fab541 * Taseditor: Fixed previous commit accuracy
* Better turbo off method in lua engine when quitting
2012-02-25 20:54:13 +00:00
ansstuff b38fa3e73d Documented TAS Editor classes 2012-02-23 19:47:41 +00:00
ansstuff c1469cb418 * 1 new Lua function in Joypad library: getimmediate()
* 1 new Lua function in TAS Editor library: getsuperimpose()
* added 5 new Lua scripts demonstrating some TAS Editor library functions
* updated fceux.chm and online documentation, uploaded HelpNDoc3 project file

[[Split portion of a mixed commit.]]
2012-02-01 22:02:26 +00:00
ansstuff a1e0de898b * Taseditor: quicksave/quickload hotkeys save/load current branch
* Taseditor: Help->Show Tooltips
* Added "Restore Playback (TAS Editor)" hotkey (Enter by default)
* 9 new Lua functions in TAS Editor library
2012-01-29 22:33:23 +00:00
ansstuff a4d5e98ee7 * changed taseditlib folder name to taseditor 2012-01-12 20:15:23 +00:00
ansstuff 578c974062 * Tasedit: more refactoring
* Tasedit: resizing TAS Editor window
* Tasedit: INPUT_TYPE_1P
* Tasedit: File->New Project
2012-01-12 19:56:17 +00:00
ansstuff c6c04b577b * Tasedit: refactoring
* fixed recording bug where "length" tag appeared in fm2s
* changed default mapping of Frame Advance to Tilde
* Config->Silent autosave
* Tasedit: Lua panel
* 5 new Lua functions: emu.paused(), taseditor.setplayback(int frame), taseditor.stopseeking(), taseditor.registerauto(), taseditor.registermanual()
2012-01-08 18:19:49 +00:00
ansstuff b3c53d5ad5 * Tasedit: header lights on Paste/PasteInsert
* 10 new Lua functions (TAS Editor library)
* Tasedit: Find Note dialog (Ctrl-F)
* Tasedit: Config->Reappearing Find Note dialog
* bugfixes
2011-12-25 21:54:31 +00:00
zeromus d233874ced add winapi lua library and cleanup various vcproj from tasedit additions 2011-10-31 19:11:31 +00:00
ansstuff 11a99a56e3 * Tasedit: execute lua functions when jumping inside greenzone
* added rewind hotkey (~), works only in Taseditor
2011-10-14 17:33:58 +00:00
zeromus 5975decb3d try fixing lua drawing alpha blending stuff 2011-07-01 04:01:20 +00:00
gocha bcada013d2 Lua: sound.get: move freqreg to regs.frequency 2011-03-06 09:01:45 +00:00
gocha e0aff101e0 Lua sound.get(): add a little more members for DMC channel. 2011-02-27 11:21:34 +00:00
gocha 88c8e1521e Lua: add input.openfilepopup() and input.savefilepopup(), very basic interface for GetOpenFileName() and GetSaveFileName(). 2011-02-27 02:20:01 +00:00
gocha 2e30792b8f Removed temporally comment 2011-02-26 23:05:09 +00:00
gocha ffca5efaca Lua: add sound.get(), remove iowritelib. 2011-02-26 15:20:30 +00:00
gocha 9cc4ee1d77 add iowrite.readbyte() lua function, to read the last value written to write-only port. it currently supports only general sound registers ($4000-4013, $4015, $4017). 2011-02-13 22:41:19 +00:00
zeromus ef2f43449b lua drawing x/y off by 8pixels stuff didnt make sense to me either. lua screen should be 240 (same as nes screen) and if you draw at 0,0 on a standard NTSC setup of y=[8,231] then you wont see anything because youve asked the emulator to cut it off. 2010-12-18 01:07:10 +00:00
zeromus a6bcf003d5 since you went to the trouble to point it out... 2010-11-05 21:11:28 +00:00
qeed 0d63ef203a added wrapper around places that uses malloc to use FCEU_dmalloc, for debugging purpose if the need comes up 2010-09-19 00:00:38 +00:00
zeromus 45848c7591 emulua: add rom.gethash 2010-07-27 03:40:59 +00:00
zeromus cb95c4fc96 possibly fix mouse input in sdl lua 2010-07-18 02:45:17 +00:00
adelikat 38c4c3d228 Lua - fix so that setting speed.mode to normal turns off turbo. 2010-06-12 17:12:46 +00:00
zeromus 55daec3e57 add luasocket builtin to luaperks 2010-06-10 06:13:51 +00:00
adelikat 3bfa40572e New lua function: gui.savescreenshotas() 2010-06-07 16:38:47 +00:00
fatratknight a8fa67db16 Edited gui.text to return a value, the x position where it would paint the next character. This should hopefully allow scripters to place a useful box around the text, perhaps for looks or clicking like it's a button. 2010-06-06 22:50:46 +00:00
adelikat 7c6c8d0941 Added lua function movie.getfilename() which returns the current movie filename without the path included. 2010-05-29 04:06:49 +00:00
zeromus 4e66aaef9c replace most of the crappy iostream stuff with EMUFILE 2010-05-17 21:02:38 +00:00
ugetab 046617c693 Added player 3 and 4 to autohold notification window. Made FCEU_DispMessage able to display to different screen locations to do it. Fixed up the input display code for autohold.
Wow, that's a lot of stuff changed for something so basic.
2010-05-16 04:18:49 +00:00
ugetab a874412b61 Added option for palette selection as color for LUA colors. Included an LUA script to display all choices with the value used to pick displayed color.
Documented new color option and missing gui.text information.
2010-05-15 05:03:53 +00:00
adelikat 9006fd7a73 Movies now have a "finished" option. If a playback stops the movie isn't cleared from memory, and can be replayed or a state loaded. Similar functionality as DeSmuME and GENS rerecording. 2010-05-12 15:31:24 +00:00
ugetab 6c991885bf Added a few options to emu.getscreenpixel. Can now fully distinguish between LUA and Emu pixels, or ignore distinction. 2010-05-10 16:52:27 +00:00
ugetab a8016502b0 Added gui.getpixel() and emu.getscreenpixel() to get LUA pixel written. Also fixed some coding misconceptions about how LUA worked for Game Genie Add/Delete functions. Documented stuff. 2010-05-10 07:20:55 +00:00
ugetab 40423f46a0 Fixed several LUA savestate issues, including crashes and silent failures, and added savestate.object(), which is savestate.create() with intuitive save state ordering. Also documented it. 2010-05-09 02:02:20 +00:00
ugetab a5a1af821a Added emu.addgamegenie() and emu.delgamegenie() functions to LUA. Documented them as well. Took the todo out of a few comments too. 2010-05-08 20:34:27 +00:00
ugetab 1f70280225 Dealt with bug 2746888. LUA now CDs to folder of LUA file on load. Added working Windows CD code, and test *NIX CD code. *NIX code still needs to be confirmed. 2010-05-01 18:48:42 +00:00
ugetab 0613eb2163 Addressed bug 2995032. LUA now throws a maximum of 8 errors when stopping a script. 2010-05-01 16:42:06 +00:00
fatratknight 45c10c1e23 Fix attempt #2 of a desync under high lua load, joypad.get, and a stateload from the user. Removed a call to FCEUD_UpdateInput, that's the whole fix. I mostly undid ugetab's recent changes in this change. 2010-04-26 01:58:49 +00:00
ugetab 1ff2b3d892 lua functions movie.ispoweron() and movie.isfromsavestate() fixed. 2010-04-21 21:10:17 +00:00
adelikat a96f1e5360 New lua functions movie.ispoweron() and movie.isfromsavestate() 2010-04-21 03:24:14 +00:00
adelikat 801f4c7d96 Fix bug that caused zapper.read() to crash when a movie playback ends. 2010-04-08 20:44:59 +00:00
smelenchuk f0c5732035 Checks in Lua gui.text() to make sure drawing isn't attempted
off-screen.  Should close #2692369.
2010-04-08 00:46:56 +00:00
adelikat b38e181aa6 Win32 - Lua console - filename updates when lua scripts are dragged to emulator or recent filenames invoked. This is done by implementing an UpdateLuaConsole() function. TOOD: there are probably other useful things for that function to do. 2010-04-07 23:56:15 +00:00
adelikat b7b4629019 Lua - ip out all the code related to pausing/unpausing of the emulator when running/stopping lua scripts. Let the user be in control of that. 2010-04-07 21:45:06 +00:00
adelikat 4cf0532e30 Lua - fixed zapper.read() to read movie data if a movie is playing. Also changed the struct values to x,y,fire. This breaks lua scripts that used it previous, sorry. Fixed the zapper lua scripts to be compatible with the new zapper code. Updated documentation to reflect this change.
[[Split portion of a mixed commit.]]
2010-03-28 04:47:02 +00:00
mart0258 088c065c9d W32 LUA: Add argument capabilities to scripts -- appears as variable "arg", which may sometimes be null. (Modified file also adds a second screenshot capability to lua.) 2010-02-02 22:12:07 +00:00
mart0258 d9be086126 MinGW - fix some possible build issues and compile time errors 2009-12-11 03:07:34 +00:00
zeromus f576691091 fix weird compile error 2009-11-08 17:13:27 +00:00
gocha 4c36140c0d apply recent lua changes of snes9x:
* accept a table for color value.
* add gui.parsecolor, joypad.getup, joypad.getdown, emu.emulating.
* gui.line, gui.box, joypad.get becomes like Gens.
* win32: add a menu to Lua window, add "Font..." and "Clear" items.
Note: gui.box will work much differently from before, it's easy to write a wrapper function, though.
2009-11-08 12:15:25 +00:00
zeromus 856ca12c03 add luaperks.lib (iup and associated libraries) 2009-11-03 06:11:55 +00:00
zeromus 6b2a3afe7f then, we should get rid of the check for the lua dll 2009-10-31 14:08:06 +00:00
gocha 10aa7e32d8 Readd lua files from pcejin and fix VS2005/2008 compile error "lstate.h - include file not found". lstate.h is an internal header file of Lua, but TAS emulators refer it for some advanced implementation (for instance, error handling); sideeffect: Lua library has become a static library.
Note: we can import more files from desmume and some other TAS emulator projects if they're needed.
2009-10-31 12:07:26 +00:00
gocha 0bc230bd31 add savestate.registerload, savestate.registersave, and savestate.loadscriptdata from snes9x lua (test needed! especially for savestate.loadscriptdata, one of the functions I've never used) 2009-10-25 03:02:00 +00:00
gocha 0ed6811c8c Lua: add register s and p. 2009-10-19 04:07:30 +00:00
zeromus 51b0429c24 fix osx compile issues 2009-10-19 03:09:25 +00:00
gocha 25cdffc734 add lua console, and add/replace print, tostring, addressof, and copytable. 2009-10-19 03:01:26 +00:00
gocha 8b8cc62b26 Lua: change defaultSize of memory.registerexec 2009-10-15 01:12:57 +00:00
gocha 9ca250083a Lua: initialize 'transparencyModifier' 2009-10-14 22:43:12 +00:00
gocha 469bf325a1 Lua: remove 'extern int fromPause' from doPopup. it doesn't exist. 2009-10-13 21:50:59 +00:00
gocha 3b86027f01 FCEU_LuaGui speedup 2009-10-12 22:43:26 +00:00
gocha e462f55688 Lua: upgrade gui.popup, add input.popup. 2009-10-12 22:30:06 +00:00
qeed 643f8f7cff define forceinline to be nothing if it is a unix and not using gcc 2009-10-12 19:28:07 +00:00
qeed d3ef9e7f81 woops, fix forceinline define 2009-10-12 19:05:23 +00:00
qeed d0b9f45f02 fixed linux compilation errors 2009-10-12 19:04:28 +00:00
gocha f075b248ae Lua: converted internal graphic buffer to 32bpp, however, the final output is still indexed 8bpp (XBuf); sideeffects: add gui.opacity, fix gui.line, add small font of gens lua (not used), gui.gdoverlay supports indexed image. 2009-10-12 07:32:31 +00:00
gocha 9553ec70c7 re-add movie.playbeginning for backward compatibility; add the description of emu.registerbefore, emu.registerafter, emu.registerexit, memory.getregister, memory.setregister, memory.registerwrite and memory.registerexec to the Lua functions list. 2009-10-11 23:48:45 +00:00
adelikat 888febcd19 Added some backwards compatible lua functions. Cleaned some lua stuff up, added documentation on lua changes to the help file. 2009-10-11 21:11:30 +00:00
gocha 3cabff32c6 add memory.[get|set]register; since I don't know about NES specification much, there are only a, x, y, and pc at present. 2009-10-11 08:50:09 +00:00
gocha 3ab41b359c ported memory hook codes from gens, then re-implemented memory.registerwrite, and add memory.registerexec; FIXME: CallRegisteredLuaMemHook in nsf.c, I couldn't get how it should be; there might be other issues possibly 2009-10-11 08:34:10 +00:00
gocha d7b02d9549 Lua: add movie.recording and movie.playing, and rename movie.playbeginning to movie.replay 2009-10-11 05:29:41 +00:00
gocha cc55d175a6 Lua: add emu.framecount and other alternative names of existing functions. 2009-10-11 05:09:17 +00:00
gocha f0a1983112 Lua: rename fceu_* functions to emu_* 2009-10-11 04:39:05 +00:00
qeed 5a2750d160 Fixed linux compilation issues 2009-10-10 23:12:21 +00:00
gocha dfeff60615 Remove emu.OnClose and register fceulib as emu instead.
Add emu.registerbefore, emu.registerafter and emu.registerexit.
2009-10-08 05:02:22 +00:00
gocha 313ed75b55 Lua: register entire LuaBitOp library. 2009-10-08 03:45:47 +00:00
fatratknight feb135ce2e Added in an invert possibility for joypad_set. Using a string instead of true/false/nil will let lua invert the player's input. 2009-09-15 18:20:10 +00:00
fatratknight 0bea4a45d8 Reworked many things relating to joypad_set. New logic, removed a few functions, all that stuff. Hopefully a few bug fixes with no new bugs on the way. Haven't put in the invert that I like, but hopefully that isn't hard to put in. 2009-09-15 16:39:49 +00:00
fatratknight 23a190acd2 Attempted fix of joypad_set. Just changed the source. 2009-09-14 20:16:25 +00:00
adelikat 5bf67f1754 Lua - adding fceu.unpause() 2009-08-16 15:27:17 +00:00
adelikat 6c001a81cb Win32 - Reverted acmlm's /dll folder fix. 2009-03-29 12:43:51 +00:00
adelikat f06284d822 Lua - added FCEU.softreset() and FCEU.poweron(). Deleted a lua test script. Updated Lua documentation in the Help .chm 2009-03-28 13:38:44 +00:00
adelikat 23b719e042 Lua - input.Get() changed the x,y coordinates of the mouse to xmouse and ymouse 2009-03-21 23:26:04 +00:00
adelikat 3f60a5c6f8 Win32 - GUI Dialog - added option to disable the context menu. Win32 Help CHM - added a page of lua functions & descriptions. Minor cleanup in lua-engine.cpp 2009-03-16 14:10:59 +00:00
adelikat efcc05ed8d Lua - zapper.read() change x/y to xmouse/ymouse 2009-03-16 02:14:28 +00:00
adelikat 8bb8c9e86d Lua - added movie.playbeginning() 2009-03-15 23:55:07 +00:00
adelikat 5c4579f859 Lua - added movie.getname() 2009-03-15 23:46:57 +00:00
adelikat 8768ea1c5e Lua - added FCEU.setreadonly() 2009-03-15 23:21:52 +00:00
adelikat c9e6ca74a7 Lua - added FCEU.getreadonly 2009-03-15 21:36:01 +00:00
adelikat ee99847b35 Lua - added movie.rerecordcount() and movie.length() 2009-03-15 21:12:15 +00:00
adelikat b947e0d25b Lua - added movie.active() function. Returns a bool value based on whether a move is loaded. 2009-03-15 15:29:35 +00:00
adelikat 86562d9ad3 Fixed Joypad.set, it uses 3 values instead of 2 now. True will take control of a button and make it on, False will take control and make it off, and Nil will not take control (allowing the user to press the button) 2009-03-14 21:00:28 +00:00
adelikat fc06b4b02b Lua - added input.() 2009-03-08 22:36:38 +00:00
adelikat 512f555b3d oops, removed debug line 2009-03-08 19:19:11 +00:00
adelikat a5ff19b58c Lua - added FCEU.lagged() function 2009-03-08 19:14:37 +00:00
adelikat 810c2ae53f Lua - added zapper.read() 2009-03-08 18:10:07 +00:00
adelikat e43366247a Lua - added FCEU.lagcount() function 2009-03-07 19:26:07 +00:00
shinydoofy ff32c900bc SDL - enable the turbo function as well 2009-02-23 16:36:03 +00:00