Commit Graph

56 Commits

Author SHA1 Message Date
adelikat c20ae5b16c cleanup BasicBot 2019-12-22 11:39:40 -06:00
adelikat 1aa318d7e1 use ToolFormBase properties instead of globals 2019-12-22 10:57:06 -06:00
adelikat b80b367831 refactor IMovie to expose the movie mode, and make extension methods that do IsPlaying type logic. This way there can be direct checks, and more variety of methods without cluttering the interface 2019-12-21 16:34:29 -06:00
YoshiRulz 8f93a954e1
Move Lua hacks to Lua libs
Changed parameter of IInputMovie.SetRerecordCount to ulong to match internal
2019-12-16 15:04:35 +10:00
J.D. Purcell d3b62009e6 BasicBot: Fix DPI scaling issues. 2019-10-13 14:49:25 -04:00
James Groom 90b0574bc3
Remove unnecessary calls to ToList (e.g. in foreach)
squashed PR #1591
2019-10-13 15:50:57 +00:00
ShinobiWannabe 3edd6600be Fix merge issue
duplicate function
2019-07-15 23:00:41 -04:00
ShinobiWannabe 8c2eb9cd57 Merge branch 'master' into basicbot_tasstudio_issue 2019-07-15 22:54:50 -04:00
ShinobiWannabe bb0e0522f2 Icon change, and changed _lastAdvancedFrame to private
Had to put code back in to sync it.  Changed a variable to private and changed Copy icon on copy cutton to "duplicate".
Note: To fix the error with the pull request for being ahead x commits and behind x commits, must merge from upstream/master which got the missing commits.
2019-07-15 22:38:54 -04:00
ShinobiWannabe ac125fc19d Added Help MenuItem
Goes out to tasvideos page for the basic bot
2019-07-14 05:47:56 -04:00
ShinobiWannabe f7f3f65a19 Copy Best Input to Clipboard
Added a Copy button in the Best Attempt group.  There is a tooltip on the copy button that explains it literally copies the input and can be put into a text file or into TasStudio.
2019-07-14 03:51:26 -04:00
ShinobiWannabe 68a58c1dd5 CurrentBotAttmpt.Log will not go over amount of frames.
Restricting the Update function from adding additional _currentBotAttempt inputs.  Checks if Emulator.Frame advanced from last Update.  Works fine if you are not flipping through multiple branches in TasStudio. Doing that results in some other Ram Watches being off sometimes.
2019-07-12 21:08:12 -04:00
YoshiRulz e6374ef477
Use string interpolation 2019-03-19 00:06:37 +10:00
YoshiRulz c0a28a320b
Inconsequential changes (no whitespace)
Remove useless semicolon, remove useless `? true : false`, move period to next
line
2019-01-07 22:02:02 +10:00
zeromus 615d7848f9 basic bot - fix failure to fully use selected memory domain (fixes #1305) 2018-11-30 10:14:35 -06:00
nattthebear ebe789eed2 heh 2017-05-10 07:45:23 -04:00
J.D. Purcell b53502eed8 Spaces -> tabs. 2017-04-15 16:37:30 -04:00
adelikat 5ff33e7569 Rename IController.Type to IController.Definition to more clearly describe the property 2016-12-12 12:30:32 -06:00
adelikat 546947041b BasicBot - Remove unnecessary usage of Global.Emulator 2016-12-04 12:23:44 -06:00
adelikat db194c8360 Basic Bot - Fix logic for determining the best attempt, no longer thinks every new attempt is better, I think this fixes #603 2016-10-06 12:03:32 -05:00
adelikat 2d9fde1bed Basic Bot - update Run button status when loading a bot file 2016-10-06 10:59:57 -05:00
zeromus a7d2b8d7f7 * add a new IToolForm update mechanism which has extensible update points (so a tool can both pre- and post- update)
* make trace logging "core-pushes" model, to a sink installed by the frontend. This sink can go straight to the disk without wasting memory if that's what the Trace Logger tool has selected; or the Trace Logger will buffer it if it needs to.  Formerly, we had a "core-pushes-to-buffer" and "client-pulls-once-per-frame" which necessarily caused huge buffers no matter what was going on.
2016-08-13 15:31:26 -05:00
nattthebear 111648cf98 Break a bunch of memory domain stuff with pointless refactoring 2016-04-13 19:50:06 -04:00
adelikat 7885934a1e Add a global tools path in path config, have various tool related paths fallback to this tools folder, wire it up to hex editor .tbl files and basic bot .bot files. Change various tool paths to be . by default to point to the tools folder instead. Add tools folder to version control and builds 2016-02-05 20:46:18 -05:00
adelikat 894a9c2318 Rework ToolHelpers from a static object to ToolFormBase that inherits form and have a lot of tools inherit it, in hopes of moving a lot of copy pasta into a base class, move a few functions that show up a lot there 2016-01-30 20:24:53 -05:00
AdamSturge fa6ed30ba5 Merge pull request #559 from TASVideos/feature/reduce-basic-bot-ui-size
reduced basic bot window size
2016-01-27 18:50:35 -08:00
zeromus d7186c9e6f remove c#6isms 2016-01-21 21:22:26 -06:00
Adam Sturge 40a38703c1 reduced basic bot window size 2016-01-20 21:44:17 -08:00
adelikat 8ea6c2cc66 Merge pull request #556 from AdamSturge/master
Create movie directory and basic bot compare to UI
2016-01-20 21:09:22 -05:00
adelikat 36250ee782 Basic Bot - have the clear button clear out the attempts and frames values 2016-01-20 17:56:08 -05:00
Adam Sturge 19ae023d8e Changed case of event listeners for comparison UI elements 2016-01-17 17:46:48 -08:00
Adam Sturge 16aae180e5 Save/Load bot data now accounts for comparison values 2016-01-17 17:44:39 -08:00
Adam Sturge c172590ce4 Reset comparison values when new is pressed. Adjusted camel casing on UI elements 2016-01-17 17:20:12 -08:00
Adam Sturge f67b8e5bdf Added update code for _comparisonBotAttempt 2016-01-17 17:01:17 -08:00
Adam Sturge a7f24179cb Added UI components for specifying comparision values. Added logic to control enabling them. 2016-01-16 16:22:39 -08:00
BordynConfused 30f6b659f2 BasicBot got smarter
BasicBot can now search for values that are greater than, less than, or
equal to the best run values.
2015-10-22 13:21:20 -05:00
adelikat e3c40ea2ef Basic Bot - make the UpdateValues call much much faster 2015-09-07 10:29:40 -04:00
adelikat eaaac167f1 Basic Bot - ability to set datasize and endianness of ram values 2015-09-06 23:23:04 -04:00
adelikat 81df9f1224 Basic Bot - don't show quicksave loaded osd message 2015-09-06 22:49:23 -04:00
adelikat 7b8cde51a9 Basic Bot - restart logic 2015-09-06 22:29:46 -04:00
adelikat 811f8c96e6 Basic Bot - StatusBar and Text title stuff 2015-09-06 22:21:12 -04:00
adelikat 23a3edb3ea Basic Bot - clear stats context menu option 2015-09-06 20:45:48 -04:00
adelikat b34449a820 Basic Bot - Run btn validation 2015-09-06 20:37:46 -04:00
adelikat e4d6557145 BasicBot - Remove a todo 2015-09-06 20:18:57 -04:00
adelikat d25c51f033 Basic Bot - save total attempts and frames into .bot files 2015-09-06 19:54:16 -04:00
adelikat cf0c529601 BasicBot - memory domain picker 2015-09-06 19:37:15 -04:00
adelikat 2290becddf Basic Bot - turbo when botting, normal speed when playing, save and load frame length in bot files 2015-09-06 18:00:39 -04:00
adelikat 004a65c92e Basic Bot - UI and code reorg 2015-09-06 17:39:11 -04:00
adelikat 6db5a01f54 Basic Bot - implement New menu item 2015-09-05 23:47:27 -04:00
adelikat 92a7773b3a Basic Bot - ability to save and load bot files 2015-09-05 23:39:51 -04:00