Skip to content

Commit 6468805

Browse files
authored
Merge pull request #47 from IceDynamix/reliquary-update
Update to game version 2.4
2 parents 026048e + 9d65eb9 commit 6468805

File tree

3 files changed

+44
-66
lines changed

3 files changed

+44
-66
lines changed

Cargo.lock

+30-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "reliquary-archiver"
3-
version = "0.1.7"
3+
version = "0.1.8"
44
edition = "2021"
55
license = "MIT"
66
repository = "https://github.com/IceDynamix/reliquary-archiver"
@@ -12,18 +12,18 @@ homepage = "https://github.com/IceDynamix/reliquary-archiver"
1212

1313
[dependencies]
1414
base64 = "0.22.1"
15-
clap = { version = "4.5.4", features = ["derive"] }
15+
clap = { version = "4.5.14", features = ["derive"] }
1616
color-eyre = "0.6.3"
1717
pcap = "2.0.0"
18-
serde = { version = "1.0.201", features = ["derive"] }
19-
serde_json = "1.0.117"
18+
serde = { version = "1.0.205", features = ["derive"] }
19+
serde_json = "1.0.122"
2020
tracing = "0.1.40"
2121
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
22-
ureq = { version = "2.9.7", features = ["json"] }
22+
ureq = { version = "2.10.1", features = ["json"] }
2323

2424
[dependencies.reliquary]
2525
git = "https://github.com/IceDynamix/reliquary"
26-
tag = "v2.0.0"
26+
tag = "v3.0.0"
2727

2828
[profile.release]
2929
opt-level = "z" # optimize for size

src/export/fribbels.rs

+8-31
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ use reliquary::network::gen::command_id;
1212
use reliquary::network::gen::proto::Avatar::Avatar as ProtoCharacter;
1313
use reliquary::network::gen::proto::AvatarSkillTree::AvatarSkillTree as ProtoSkillTree;
1414
use reliquary::network::gen::proto::Equipment::Equipment as ProtoLightCone;
15-
use reliquary::network::gen::proto::Gender::Gender;
1615
use reliquary::network::gen::proto::GetAvatarDataScRsp::GetAvatarDataScRsp;
1716
use reliquary::network::gen::proto::GetBagScRsp::GetBagScRsp;
18-
use reliquary::network::gen::proto::GetHeroBasicTypeInfoScRsp::GetHeroBasicTypeInfoScRsp;
17+
use reliquary::network::gen::proto::GetMultiPathAvatarInfoScRsp::GetMultiPathAvatarInfoScRsp;
1918
use reliquary::network::gen::proto::HeroBasicTypeInfo::HeroBasicTypeInfo;
2019
use reliquary::network::gen::proto::PlayerGetTokenScRsp::PlayerGetTokenScRsp;
2120
use reliquary::network::gen::proto::Relic::Relic as ProtoRelic;
@@ -78,30 +77,7 @@ impl OptimizerExporter {
7877
self.uid = Some(uid);
7978
}
8079

81-
pub fn add_trailblazer_data(&mut self, hero: GetHeroBasicTypeInfoScRsp) {
82-
let gender = match hero.gender.enum_value().unwrap() {
83-
Gender::GenderNone => "", // probably in the prologue before selecting gender?
84-
Gender::GenderMan => "Caelus",
85-
Gender::GenderWoman => "Stelle"
86-
};
87-
88-
self.trailblazer = Some(gender);
89-
info!(gender, "found trailblazer gender");
90-
91-
let mut builds: Vec<Character> = hero.basic_type_info_list.iter()
92-
.filter_map(|b| export_proto_hero(&self.database, &b))
93-
.collect();
94-
95-
self.current_trailblazer_path = avatar_path_lookup(&self.database, hero.cur_basic_type.value() as u32);
96-
if let Some(path) = self.current_trailblazer_path {
97-
info!(path, "found current trailblazer path");
98-
} else {
99-
warn!("unknown path for current trailblazer");
100-
}
101-
102-
info!(num=builds.len(), "found trailblazer builds");
103-
self.trailblazer_characters.append(&mut builds);
104-
}
80+
// TODO: add_multipath_avatars
10581

10682
pub fn add_inventory(&mut self, bag: GetBagScRsp) {
10783
let mut relics: Vec<Relic> = bag.relic_list.iter()
@@ -171,15 +147,16 @@ impl Exporter for OptimizerExporter {
171147
}
172148
}
173149
}
174-
command_id::GetHeroBasicTypeInfoScRsp => {
175-
debug!("detected trailblazer packet");
176-
let cmd = command.parse_proto::<GetHeroBasicTypeInfoScRsp>();
150+
command_id::GetMultiPathAvatarInfoScRsp => {
151+
debug!("detected multipath packet (trailblazer/march 7th)");
152+
let cmd = command.parse_proto::<GetMultiPathAvatarInfoScRsp>();
177153
match cmd {
178154
Ok(cmd) => {
179-
self.add_trailblazer_data(cmd);
155+
// TODO: handle multi path packets
156+
warn!("ignored multipath characters for now, will be supported in next version");
180157
}
181158
Err(error) => {
182-
warn!(%error, "could not parse trailblazer data command");
159+
warn!(%error, "could not parse multipath data command");
183160
}
184161
}
185162
}

0 commit comments

Comments
 (0)