Commit Graph

262 Commits

Author SHA1 Message Date
andres.delikat 9b2ba5c85c Basic implementation of Global.ActiveController, uses an ORAdapter to OR against Active Controller. Still TODO: setting up autofire controllers for platforms and a UI in the Controller Config 2011-08-09 00:51:46 +00:00
andres.delikat 0d01af5c7b Refactor autofire, remove the autofire adaptor. Added an autofire bool to IController and implemented it in the Controller object. Setting to true will turn the controller buttons into autofire buttons 2011-08-08 23:35:13 +00:00
andres.delikat d92c27f89d Autofire Input Adaptor, currently no UI for it 2011-08-07 23:26:06 +00:00
andres.delikat 64e38e83c8 Movie Loadstate - GUID checking in read-only mode + fix a crash bug 2011-07-31 17:35:02 +00:00
andres.delikat 3481943b74 Overhaul movie savestate logic - cleaned up a lot of code, implemented GUID, Future Event, and Timeline checks to read-only situations. Prevented loading of state if an error occurs. Still TODO - GUID checks in read+write mode 2011-07-31 16:41:27 +00:00
andres.delikat ce3bb25409 Movie object cleanup, movie savestate handling cleanup, save GUID into movie savestates 2011-07-31 01:15:14 +00:00
andres.delikat 60a4ea4426 Refactor movie code - a Loaded property, removed a lot of code that was a work around for this needed feature, movie can not write to disk unless this property is true 2011-07-30 23:59:31 +00:00
andres.delikat 2e68314e01 Movies that start from savestate now supported. Record Movie dialog "Record from Now" option implemented. ResetFrameCounter() added to IEmulator and implemented in all existing cores 2011-07-30 20:49:36 +00:00
zeromus 5580295085 movie input refactoring 2011-07-24 23:14:16 +00:00
zeromus e4f9f76198 fix ti-83 virtual keypad 2011-07-24 20:23:27 +00:00
zeromus 198431b8a2 add StickyXORAdapter 2011-07-24 19:52:13 +00:00
andres.delikat 72699b4ad7 another round of refactoring the Movie object 2011-07-17 17:52:39 +00:00
andres.delikat e6b2c794d4 Refactor the movie object, replacing Getfunctions with public properties, renaming of some functions, removing a duplicate function, other misc things 2011-07-17 14:39:15 +00:00
andres.delikat ee713acded Edit Subtitles Form - minor tweaks 2011-07-16 13:31:36 +00:00
andres.delikat b551d9dbdd Movie Subtitles - in Edit Subtitle dialog, parse color value as hex, in render panel read the subtitle color 2011-07-16 02:11:51 +00:00
andres.delikat 7293cd05cc Add error messages to movie convert functions, and other small cleanups, refactor calls to them to handle error messages 2011-07-14 01:12:18 +00:00
andres.delikat a8c66418e7 Movie Convert - started implementing an error message system, did FCM and MMV 2011-07-13 02:11:20 +00:00
zeromus 2c683dc90a dont crash on exit while writing inputlog 2011-07-13 01:45:40 +00:00
andres.delikat a228e05f38 Lots of little fixups to movie code, disable Disable Message config in Message Config as I won't be implmenting that before release 2011-07-13 01:29:13 +00:00
andres.delikat 4c5b48fd7c Hacky fix for loading PCE movies that are less than 5 players. It will read 1-4, but will output 5 once the movie is saved again by the emulator. At some point we should probably support < 5 players for saving to disk, given that 4 players worth of text is a drain. 2011-07-13 00:18:47 +00:00
andres.delikat 93fcd7d94f Edit Comments/Subtitles dialogs - limit max height of auto-height adjustment 2011-07-10 18:36:10 +00:00
zeromus 2425b3c87a fix some input things 2011-07-10 06:24:04 +00:00
zeromus 4991b95def refine input stuff 2011-07-10 02:14:58 +00:00
andres.delikat 29510ddd58 Fix saving of header data from record movie dialog, small fix for inputlog header data 2011-07-06 01:53:15 +00:00
andres.delikat 945577dadd Movie code clean up - document PreLoadText(), put movie truncation in LoadLogFromSavestateText() since it was rudely removed from what is now CommitFrame() 2011-07-05 23:33:13 +00:00
andres.delikat 68d0ff94eb Refactor movie writing code. MovieHeader, MovieLog, and SubtitleList all have their own write methods now instead of the Movie object doing all of the work. Conceptually these 3 objects should be autonomous and the Movie object is simply an object that manages a collection of these objects. 2011-07-05 23:16:54 +00:00
andres.delikat fed74b17b2 Subtitle editor touchups - Make color cells the color they are representing, display color in hex, put try/catches + error messages if trying to parse erroneous data, tooltips for columns 2011-07-04 20:34:53 +00:00
andres.delikat 26569dab58 More work on subtitle maker, implmeent context menu "Add Subtitle" which will open subtitle maker and set frame to the current frame 2011-07-04 19:20:11 +00:00
andres.delikat 8d333fc04c Start subtitle maker form 2011-07-04 18:32:57 +00:00
andres.delikat 505a8baab4 Subtitles - finish parsing all parameters, make render panel use all parameters but color (for now) 2011-07-04 18:04:56 +00:00
andres.delikat 7c09ca4ae3 improvements to subtitle parsing 2011-07-04 17:01:17 +00:00
andrewjpritchard 968c07e7d3 Preliminary VBM conversion. 2011-07-04 13:54:17 +00:00
andres.delikat b6bd94242f Subtitle & Comment editors - clear out old comments & subs before saving the new list 2011-07-04 13:37:51 +00:00
andres.delikat 88f14d07d8 Fixes to comment loading/editing/saving 2011-07-04 13:31:34 +00:00
andres.delikat a95ffcf2f9 Hooked up comment editor/viewer to play movie and context menu, various tweaks to movie code, more progress implemented comment loading/editing/saving 2011-07-04 02:50:38 +00:00
andres.delikat 384a4a61b6 Start movie comments editor 2011-07-04 01:57:18 +00:00
andres.delikat bf5fa3356a Edit Subtitles form - Save subtitles on exit 2011-07-04 01:23:32 +00:00
andres.delikat f886b65015 Write subtitles to movie files 2011-07-04 00:49:37 +00:00
zeromus 0aa234282e phase 1 of fixing up controller logic. tell me how terribly ive broken the movie code. might want to fix it before moving on to phase 2 or decide to revert. 2011-06-27 05:31:46 +00:00
andres.delikat d3f4da39a3 Subtitle viewer implemented for play movie dialog, context menu for edit/viewing subtitles (depending on read only status). Still TODO: save changes when in edit mode 2011-06-26 21:11:12 +00:00
andres.delikat 3235fc1618 Start a subtitle viewer/editor form and hook to the subtitle button on the play movie dialog 2011-06-26 20:26:37 +00:00
andres.delikat 3a15dd6bb9 Basic subtitle loading and rendering. Still lots of todos but basic functionality now exists 2011-06-26 16:39:48 +00:00
andres.delikat 61e82793e9 Start movie subtitle system 2011-06-26 14:36:41 +00:00
andres.delikat 4247b43b07 shut up some warnings 2011-06-22 17:41:59 +00:00
andres.delikat f5014946db status strip - pause icon implemented, movie icon put in but hidden and unimplmeented. Dump Error warning icon put in and disabled, needs to be implemented 2011-06-19 20:50:46 +00:00
andres.delikat fc48e0e4f7 Record Movie Dialog - add header info on record, add author box and hook it up, dialog fix ups 2011-06-19 14:28:13 +00:00
andres.delikat c6a5c7e9b6 change references of Global.Game.Name to Global.Game.FileSystemSafeName for situations that use it to build paths 2011-06-18 21:39:53 +00:00
andres.delikat b95264e9bf Make movie class handle automatically backing up a movie before the first time it alters it, add flag to MultiClient to toggle the movie backup feature 2011-06-18 19:16:05 +00:00
andres.delikat 67f726eae6 Movie backup function added to movie class, currently only hooked to a context menu item of main form 2011-06-18 18:27:51 +00:00
kylethomson c228699255 Getting closer. 2011-06-17 02:43:22 +00:00
andres.delikat 9e7510894e Don't reference usermovie in the movie class 2011-06-17 01:50:51 +00:00
kylethomson e9942dc101 Multitrack overwrite works. Now to fix playback. 2011-06-16 03:56:40 +00:00
kylethomson 882562c452 Multitrack for PCE done, if my idea works. Now to hook up hotkeys. 2011-06-16 02:29:45 +00:00
kylethomson b5b853196e 2011-06-16 01:49:12 +00:00
kylethomson a4fe9754c0 Look at where the error is - This is what I need to access. 2011-06-16 01:35:42 +00:00
kylethomson 445be7ca24 Oopps, forgot to add multitrack file 2011-06-16 01:20:19 +00:00
andres.delikat f36da18f97 Small fixups to movie & tastudio code 2011-06-12 18:31:42 +00:00
andres.delikat 59173e4e44 Some virtual pad progress, virtual pad dumps input into movie file when recording, currently doesn't feed it to the core though (lol). Virtualpad object set up for a nes controller 2011-06-12 14:42:50 +00:00
andres.delikat 2fcb35a4e4 Input Config - Fix NES select & start (I had the saving of the key mappings flip flopped) 2011-06-09 00:58:09 +00:00
andres.delikat c6ddf5fd68 new Movie creates a GUID 2011-06-08 00:42:51 +00:00
andres.delikat a9c8756bd1 Some work on Movie object and convertSMV started 2011-06-08 00:25:16 +00:00
andres.delikat 542d54a9d2 Movie Convert - make compile 2011-06-06 10:41:24 +00:00
andres.delikat 89ff0c8927 ConvertFCM - remove some erroneous code 2011-06-06 02:07:53 +00:00
andres.delikat 8d1a2cb2cd Fix bugs in MMV convert 2011-06-06 01:08:29 +00:00
andres.delikat 4c36d1abda basic mmv conversion done. Still a lot of little todos with header info & error checking 2011-06-06 00:18:42 +00:00
andres.delikat a189411d26 Progress on convertFCM and beginning of convertMMV 2011-06-05 16:29:09 +00:00
andres.delikat 5ad6e0b602 Begin Convert FCM tool. Reads most header stuff, no input log yet. Only hooked up to Drag & Drop atm 2011-06-05 02:50:50 +00:00
offspring131313 4ea39c8525 Added a CompareTo function for Movie objects, and created a basic insertion sort for the play movie dialog. 2011-05-24 01:19:42 +00:00
andres.delikat 4a28b282f8 Fix typo that caused loadstate hotkey mapping to display on load config menu item, fix so that movie log loading from savestate doesn't crash if text line is null 2011-05-23 02:15:16 +00:00
andres.delikat 1d0a504704 Remove an erroneous duplicate message in savestate(), remove a debug message in movie 2011-05-23 01:23:32 +00:00
zeromus 1700c22b17 dont crash when movies directory is missing 2011-05-22 17:41:22 +00:00
andres.delikat f8c1791908 GetMnemonic now looks at the frame count and truncate the movie if it is less than the movie length. Resuming recording now works 2011-05-19 02:15:55 +00:00
andres.delikat 97ef68e64e Record movie dialog now allows user to type in name of file to record, and will auto fill in directory path if user does not. Play movie now uses the PreLoad function so length calculation is significantly faster 2011-05-18 01:49:20 +00:00
andres.delikat 250f424629 Start a MovieConvert class for converting fcm, mmv, and such to .tas files 2011-05-18 01:30:25 +00:00
brandman211 6e98bfc978 Created an efficient frame calculation. 2011-05-18 01:24:26 +00:00
andres.delikat 2b41592c9b Load rerecord count when loading a movie 2011-05-18 00:08:51 +00:00
andres.delikat 5a082bad2f Save input log into savestates. Also add more informative messages & frame counter for better debugging 2011-05-17 22:44:31 +00:00
andres.delikat e5af4418da Movies - CheckTimelines function, disabled until rerecording is smoothed out better 2011-05-17 01:10:04 +00:00
andres.delikat 85e52c3bcb Some refactoring of savestate + movie code and laid out the logic for how these situations should be handled 2011-05-16 15:38:48 +00:00
andres.delikat 4a549631e5 Movie class - refactor time calculations. Make PCE_NTSC = PCE. Remove any 60.0 or 50.0 const ints in favor of the default case. Made a decision that time should be calculated based on the console framerate not the fps at which bizhawk will emulate. Thus SMS uses a ~60.1 fps 2011-05-16 13:56:22 +00:00
offspring131313 386b26ccbe Reverted some changes I thought was improving the readability, but was really just breaking the correctly programmed stuff =D 2011-05-16 07:44:03 +00:00
beirich 003a71cb5a PAL PCE has the same timings as NTSC 2011-05-16 04:07:05 +00:00
offspring131313 644106575e Refactored Movie folder. Added some functions, merged some functions, and added some comments regarding some questions I have about a few of the functions. 2011-05-16 03:55:17 +00:00
offspring131313 96b80f4789 Added a single variable in MainForm from which to derive the Emulator Version number. Just call MainForm.EMUVERSION
Only updated the new method for deriving this in MovieHeader, I'm unaware of anywhere else this information is requested as I'm still learning the system.
2011-05-16 02:54:53 +00:00
andres.delikat a91e7007a7 Play Movie - fixes so that .mc2 & .fm2 get the right system ID on load, and fix the rounding of the fractional part of the movie time 2011-05-15 23:25:25 +00:00
andres.delikat 229852d06c Play movie dialog now shows completion time. It also reads the entire movie in order to determine this. I have stressed tested this yet, it is probably very slow. 2011-05-15 22:59:54 +00:00
andres.delikat 99babf743f Movie class has a GetSeconds() function that returns the number of seconds based on frames / fps. It is loaded with lots of fps formulas for various consoles. 2011-05-14 12:46:41 +00:00
andres.delikat 3dbf342dbe Set system ID in input log 2011-05-14 02:34:18 +00:00
andres.delikat fe0363d80b Movies - Add all current valid movie file extensions to drag & drop, Hook up movie finished mode to frame loop & frame counter display, clean up some logic regarding the toggling of InputLog and UserMovie 2011-05-13 17:03:05 +00:00
andres.delikat 06f771292f Play Movie dialog - hook up details list 2011-05-13 00:17:59 +00:00
andres.delikat 890fa7fbe0 Display rerecord count on the frame counter message for now. I will eventually make it its own display option 2011-05-12 22:51:25 +00:00
andres.delikat f64767d223 oops, didn't check this in 2011-05-12 21:00:52 +00:00
andres.delikat ca457d4ce3 Implement Play Movie from beginning, add author & rerecord header params to file reading/writing code. 2011-05-12 21:00:04 +00:00
andres.delikat 1813829c5f More movie code fixes 2011-05-12 17:29:34 +00:00
andres.delikat ced976a65d Misc cleanups on movie code 2011-05-12 16:56:30 +00:00
andres.delikat 477999f99d Fixes to movie code 2011-05-12 01:33:51 +00:00
andres.delikat 7d135a5d62 Lot's of fix ups to the Play Movie dialog and the Movie class. Cleaned up behavior of main form to allow for a user movie and an input log when the user movie is not active. Currently selecting a movie for playback crashes though. 2011-05-11 01:47:28 +00:00
andres.delikat c09260cc72 Various fixes to play movie dialog & movie class 2011-05-10 00:38:20 +00:00
andres.delikat 3ac209217c Basic rerecording! Inputlog is now saved into savestates, and input log is replaced by savestates contents if in record mode. Still TODO: lots of logic about proper error/timeline checking & logic 2011-05-08 12:51:39 +00:00
andres.delikat a91c8ecbd7 Movie class clean up, add movie version to header, save game name and emulator version to header, movie code will load any non-header or input log as a comment, GetFrame does bounds checks, cleaned up todos 2011-05-08 01:00:13 +00:00
beirich 33c300ff7b good news: movies work! bad news: 1) movies don't work for TI83 yet 2) I broke some NES things, to be fixed in a later commit 2011-05-08 00:06:43 +00:00
beirich 138dfa38ae Make moving saving not cripplingly slow 2011-03-17 05:30:38 +00:00
andres.delikat 9dc75a17e5 Fix SKROM char size, and checking in some movie playback stuff 2011-03-03 20:01:36 +00:00
andres.delikat ced8256dc9 Slight playback fix (still broken) 2011-03-03 18:25:06 +00:00
andres.delikat d7ba739b30 Some fix ups to input recording, and setting up the ability to test recording & playback 2011-02-28 01:26:38 +00:00
andres.delikat 423e9c8783 Add SetControllersAsMnemonic() to IEmulator and implement it in the SMS core. Very crude playback now works. 2011-02-27 22:33:25 +00:00
andres.delikat 1b428b49ae some more typos 2011-02-26 22:19:46 +00:00
andres.delikat 04b6b2baa0 Fix typo! 2011-02-26 22:08:55 +00:00
andres.delikat 0ed57b443b Add GetControllerAsMneumonic() to IEmulator that returns a formatted string of controller inputs. Implemented this function in SMS input.cs and hooked up Movie recording. 2011-02-26 21:36:46 +00:00
andres.delikat c59b9ff6ce More progress on the movie class, basic movie file writing. Survives round trip testing 2011-02-25 22:26:13 +00:00
andres.delikat a5dc7e90b3 Checking in some movie class progress. Basic file saving done. Progress on file loading. 2011-02-25 19:49:29 +00:00
andres.delikat cbdcea1341 Get started on a Movie class 2011-02-24 22:25:53 +00:00