Skip to content

Commit 9086324

Browse files
v1.0.0
1 parent 4e22745 commit 9086324

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Changelog ##
22

3+
#### v1.0.0 ####
4+
* Added key command
5+
* Added click command
6+
* Added wait command
7+
* Fixed compatibility with version 2.0 of StS
8+
39
#### v0.8.0 ####
410
* Added card_in_play to the game state
511
* Added the turn number to the game state

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ CommunicationMod launches a specified process and communicates with this process
5757
- Clicks the button on the left side of the screen, generally causing you to return to the previous screen.
5858
- Equivalent to SKIP, CANCEL, and LEAVE.
5959
- Available whenever the return, cancel, or leave buttons are present on the left side of the screen. Also used for the skip button on card reward screens.
60+
- KEY Keyname [Timeout]
61+
- Presses the key corresponding to Keyname
62+
- Possible keynames are: Confirm, Cancel, Map, Deck, Draw_Pile, Discard_Pile, Exhaust_Pile, End_Turn, Up, Down, Left, Right, Drop_Card, Card_1, Card_2, ..., Card_10
63+
- The actual keys pressed depend on the corresponding mapping in the game options
64+
- If no state change is detected after [Timeout] frames (default 100), Communication Mod will then transmit the new state and accept input from the game. This is useful for keypresses that open menus or pick up cards, without affecting the state as detected by Communication Mod.
65+
- Only available in a run (not the main menus)
66+
- CLICK Left|Right X Y
67+
- Clicks the selected mouse button at the specified (X,Y) coordinates
68+
- (0,0) is the upper left corner of the screen, and (1920,1080) is the lower right corner, regardless of game resolution
69+
- Will move your cursor to the specified coordindates
70+
- Timeout works the same as the CLICK command
71+
- Only available in a run
72+
- WAIT Timeout
73+
- Waits for the specified number of frames or until a state change is detected, then transmits the current game state (same behavior as Timeout for the CLICK and KEY commands, but no input is sent to the game)
74+
- Possibly useful for KEY and CLICK commands which are expected to produce multiple state changes as detected by Communication Mod
75+
- Only available in a run
6076
- STATE
6177
- Causes CommunicationMod to immediately send a JSON representation of the current state to the external process, whether or not the game state is stable.
6278
- Always available.
@@ -72,7 +88,6 @@ CommunicationMod launches a specified process and communicates with this process
7288
- Unselecting cards in hand select screens is not supported.
7389
- Several actions do not currently register a state change if they are performed manually in game.
7490
- You must manually edit the mod's config file to set the command for your external process.
75-
- Communication Mod has only been tested on Windows 10 at this point.
7691
- Communication Mod has not been tested without fast mode on.
7792
- Some of the commands will currently hijack your mouse cursor, though the hijacking of your mouse will go away in future versions.
7893

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>autoplay</groupId>
77
<artifactId>CommunicationMod</artifactId>
8-
<version>0.8.0</version>
8+
<version>1.0.0</version>
99
<packaging>jar</packaging>
1010
<name>Communication Mod</name>
1111
<description>Used to help external programs communicate with Slay the Spire</description>

0 commit comments

Comments
 (0)