-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# telearena_reroll | ||
Tele-Arena Reroll Script | ||
|
||
## How to build? | ||
Install [bazel](https://bazel.build/) | ||
|
||
To build a deployable jar, run `bazel build //java/com/jeffreys/scripts/tareroll:TAReroll_deploy.jar` | ||
|
||
## How to test? | ||
To execute tests, run `bazel test ...` | ||
|
||
## How to execute? | ||
`java -jar TAReroll.jar <file with text proto of RerollRequirements>` | ||
|
||
You can also run out of the repo directory, `bazel run //java/com/jeffreys/scripts/tareroll:TAReroll -- <file with text proto>` | ||
|
||
But you're connected to a BBS playing TA, so you need to execute this in the context of my other program - [TelnetScripter](https://github.com/paladine/telnet_scripter) | ||
|
||
## How do you run this script? | ||
Use [TelnetScripter](https://github.com/paladine/telnet_scripter), connect to your system, and then execute the script by | ||
writing a wrapper script | ||
|
||
``` | ||
#!/bin/sh | ||
java -jar TAReroll.jar myRequirements.txt | ||
``` | ||
|
||
## How to stop your script? | ||
It should stop when you're done rerolling :) | ||
|
||
Or you can kill the script process in your OS. You cannot stop it via special text commands. | ||
|
||
## Why Java? | ||
For maximum cross platform support. You can run this on Windows, Linux, Raspberry Pi, etc. | ||
|
||
## Sample requirements script | ||
Figure out the [maximum stats](https://tele-arena.tumblr.com/maxstats) you want for your race/class, and add them to a file. | ||
See the [text proto definition](https://github.com/paladine/telearena_reroll/blob/master/java/com/jeffreys/scripts/tareroll/reroll.proto) | ||
for the list of available fields. | ||
|
||
Here's an example: | ||
``` | ||
knowledge: 20 | ||
intellect: 22 | ||
physique: 20 | ||
stamina: 25 | ||
agility: 20 | ||
charisma: 5 | ||
vitality: 10 | ||
logoff_command: "=x\r\n" | ||
``` |