Skip to content

area request fixes - #15

Open
fayeforpay wants to merge 1 commit into
LastExceed:masterfrom
fayeforpay:area-request
Open

fayeforpay wants to merge 1 commit into
LastExceed:masterfrom
fayeforpay:area-request

Conversation

@fayeforpay

Copy link
Copy Markdown
Contributor
  • fix zone update crashes
  • add region request answers

most basic version of the fix I could come up with until I have a better understanding of how Cube World handles zones, in hopes to write a more sophisticated fix in the future.

fix both p48 & block - zone update crashes
add region request answers

@LastExceed LastExceed left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions:

state: State::Ready,
progress_current: 0,
progress_maximum: 0,
zone: Point2::origin()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is zone an offset relative to the sector? if not, would it make sense to compute this value properly?

unknown_a: 0,
unknown_b: 0,
unknown_c: 0,
id: 0,

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't each mission have a different id ?

Comment on lines +24 to +25
let zone_loot = self.loot.read().await.get(&zone).cloned().unwrap_or_default();
source.send_ignoring(&WorldUpdate::from((zone, zone_loot))).await;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this effectively render the addon_data.zone_requests checks redundant, as it always satisfies the client on the first request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants