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

CAS milsim request off by one error #38

Closed
warzen opened this issue Aug 16, 2020 · 5 comments
Closed

CAS milsim request off by one error #38

warzen opened this issue Aug 16, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@warzen
Copy link

warzen commented Aug 16, 2020

When resquesting CAS in milsim mod (grid), there's an off by one error
Requesting CAS at 030002 gets an acknowlede of a CAS at 029001 and these are the coordinates used by the plane.

@warzen
Copy link
Author

warzen commented Aug 16, 2020

This is happening when typing a 6 digit coordinate. It's working fine with a 10 digit one.

@Mysteryjuju
Copy link

It seems to be an issue with the CBA function CBA_fnc_mapGridToPos: CBATeam/CBA_A3#1362

@warzen
Copy link
Author

warzen commented Aug 21, 2020

CBA function is bugged:
https://cbateam.github.io/CBA_A3/docs/files/common/fnc_mapGridToPos-sqf.html

off by one error in all case
when _dooffset is false, it should return upper left coordinates instead of lower left coordinates (current situation)
anyway, in SSS case, _dooffset should be set to true to aim at the middle of the square instead at one left corner (wether it's top or bottom).

@Mysteryjuju
Copy link

This issue is partially solved with the new target in center of the square: #52
Maybe, the next best solution is to wait a fix in CBA.

@SceptreOfficial SceptreOfficial added the bug Something isn't working label Sep 5, 2020
@SceptreOfficial
Copy link
Owner

CBATeam/CBA_A3#1579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants