Commit Graph

13 Commits

Author SHA1 Message Date
Kurt
2242861c80 Add logic for drop compatibility check skipping (parsing) 2021-03-03 17:44:16 -08:00
Kurt
d7b46726a0 Absorb extension logic from SysBot.AnimalCrossing project
Extract out pis=>nhi, and nhi=>pis (player item set)
2021-01-17 09:29:46 -08:00
Kurt
83169b8738 Bump language version to c#9 2020-12-24 23:53:40 -08:00
Kurt
833483027f Minor clean
memes
2020-07-29 18:35:59 -07:00
berichan
f0eef1a0db
USB changes and updated de item list (#318)
* Update README.md

* Added USB functionality

* Updated readme

* Revert README.md changes

* Remove unnecessary lib dependencies

only directly referenced by injection project

* Minor clean

handle compiler/roslyn messages

* Update README.md

* added a null check and a usb-botbase-safe poke function

* Revert "Update README.md"

This reverts commit e106a62b0d.

* Created new de item list using https://github.com/berichan/NH_CreationEngine

Co-authored-by: Kurt <kaphotics@gmail.com>
2020-06-29 06:31:22 -05:00
berichan
e0e4dd508c
Added support for USB-botbase (#299)
Only for player item injection at this time; no sync / toggle between modes
2020-06-06 12:58:13 -07:00
Kurt
8edf0a6ec4 Add trycatch for sysbot read/write, turn off auto-r/w on fail
Closes #156

turning off auto-r/w won't happen if the auto-r/w itself fails. still pops open a message saying error until you turn it off in the other window.
2020-05-03 13:51:26 -07:00
Kurt
839e1a3f14 Add unit test for item injection validation
Check the other bind list too

don't bother checking that a bound index actually exists in the item pocket
2020-04-26 18:58:13 -07:00
Kurt
f28a544604 Finalize the verification logic for inventory
Move the ValidateEnabled check to the top to completely disable validation -- it is recommended to actually use the validation. This should work perfectly for everyone, assuming you haven't corrupted the region we're validating.

Game data structure stores as follows:

Item[20] bag;
u32 bagCount;
sbyte[20] binds;
Item[20] pocket;
u32 pocketCount;
sbyte[20] binds;

count is 0,10,20 depending on unlocked, and binding is -1 or 0-7 depending on where the item is bound (item quick use wheel)
2020-04-26 18:37:51 -07:00
Kurt
1ff26a3be7 Update validation & add bypass
Require first uint to match, can bypass others
2020-04-04 21:35:03 -07:00
Kurt
1db185151d
Add automatic read/write items for all pocket items (1-40) (#51)
Decentralizes pocket injection logic from SysBotUI so that other auto-injectors can be passed in (future? like terrain/overworld items).

Adds validation to not modify items if the pocket data doesn't have the expected layout.

Closes #47 by implementing things in a more abstract & extendable way. Thanks @jfmherokiller for the example implementation which served as an inspiration!
2020-04-04 20:57:25 -07:00
Kurt
ebfd2ca87f Add generic RAM read/write form
accessible once a save is loaded, same as item injecting

untested, but should be fine
2020-04-01 16:29:56 -07:00
Kurt
b3e8b1b1fb Add sysbot logic for remote control 2020-03-31 19:22:42 -07:00