Skip to content

tool to create a relic export from network packets of a certain turn-based anime game

License

Notifications You must be signed in to change notification settings

IceDynamix/reliquary-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reliquary-archiver

tool to create a relic export from network packets of a certain turn-based anime game

json output format is based on the format of HSR-Scanner

made to be used with fribbels hsr optimizer

run

  • requires npcap (windows) or libpcap (linux)
    • when installing on windows, make sure to enable the "winpcap api-compatible mode". if this is grayed out for you, see here for more details
    • when building on Linux, set the CAP_NET_RAW capability on the resulting executable (via pcap(3pcap))
      sudo setcap CAP_NET_RAW=+ep target/release/reliquary-archiver
  • download latest release from here
  • make sure you're on the main menu screen before the train hyperdrive in-gmae
  • run the archiver executable and wait until it says "listening with a timeout"
  • enter train hyperdrive in-gmae
  • if successful, the archiver should output a file to archiver_output.json

cli usage

Usage: reliquary-archiver.exe [OPTIONS] [OUTPUT]

Arguments:
  [OUTPUT]  Path to output .json file to [default: archive_output.json]

Options:
      --pcap <PCAP>          Read packets from .pcap file instead of capturing live packets
      --timeout <TIMEOUT>    How long to wait in seconds until timeout is triggered (for live capture) [default: 120]
  -v, --verbose...           How verbose the output should be, can be set up to 3 times. Has no effect if RUST_LOG is set
  -l, --log-path <LOG_PATH>  Path to output log to
  -h, --help                 Print help

to customize logging, either

  • set the verbose flags
  • or set RUST_LOG env variable to customize logging, see here

to output logs to a file, provide --log-path <path>. file logs will always be trace-level.

build from source

  • follow instructions here
    • for me on windows, adding the Packet.lib and wpcap.lib from the sdk (check the x64 or arm dir) to this directory was enough to link successfully
  • cargo build / cargo run

library

want to do more with packet parsing? check out the standalone library the archiver is built on top off!