Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't handle naval units in a mission #37

Open
skeletonwburg opened this issue Oct 9, 2022 · 0 comments
Open

Can't handle naval units in a mission #37

skeletonwburg opened this issue Oct 9, 2022 · 0 comments

Comments

@skeletonwburg
Copy link
Contributor

skeletonwburg commented Oct 9, 2022

Errors when naval units are in a mission:

  unit: {
    id: 39,
    name: 'Naval-1-1',
    coalition: 3,
    type: 'Forrestal',
    position: { lat: 34.907013766222875, lon: 33.75533160822897 },
    groupName: 'Naval-1',
    numberInGroup: 1,
    speed: 1.3594386535012912,
    heading: 326,
    category: 4
  }
}
Error: expected alt to be a number
    at positionLLFrom (F:\Documents\Git\yet-another-dcs-server\src\common.ts:179:11)
    at unitFrom (F:\Documents\Git\yet-another-dcs-server\src\unit.ts:253:29)
    at F:\Documents\Git\yet-another-dcs-server\src\group.ts:45:50
    at Array.map (<anonymous>)
    at Object.callback (F:\Documents\Git\yet-another-dcs-server\src\group.ts:45:30)
    at Object.onReceiveStatus (F:\Documents\Git\yet-another-dcs-server\node_modules\@grpc\grpc-js\src\client.ts:348:28)
    at Object.onReceiveStatus (F:\Documents\Git\yet-another-dcs-server\node_modules\@grpc\grpc-js\src\client-interceptors.ts:462:34)
    at Object.onReceiveStatus (F:\Documents\Git\yet-another-dcs-server\node_modules\@grpc\grpc-js\src\client-interceptors.ts:424:48)
    at F:\Documents\Git\yet-another-dcs-server\node_modules\@grpc\grpc-js\src\call-stream.ts:330:24
    at processTicksAndRejections (node:internal/process/task_queues:77:11)```
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

No branches or pull requests

1 participant