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

walker error #519

Open
Godji46 opened this issue Jan 21, 2025 · 1 comment
Open

walker error #519

Godji46 opened this issue Jan 21, 2025 · 1 comment

Comments

@Godji46
Copy link

Godji46 commented Jan 21, 2025

begin
  Self.Name := 'Walker';

  minimapImage := Minimap.GetCleanMinimap();
  minimapSample := Minimap.ScaleMinimap(minimapImage, Self.Scaling);

  Self.Cache := TMatchTemplateRGBCache.Create(Self.Map.ScaledMap.ToMatrix(), MinimapSample.ToMatrix());
  Self.WalkUpText := ['Walk here', 'lk he'];

  minimapSample.Free();
  minimapImage.Free();
end;

Edit by slacky:
This references Simba 1.4 issue where the cache allocation

TMatchTemplateRGBCache.Create(Self.Map.ScaledMap.ToMatrix(), MinimapSample.ToMatrix());

causes "Invalid floating point operation".

@slackydev
Copy link
Contributor

slackydev commented Jan 27, 2025

Image

Adding this image as an attachment, image comes from the user that created this issue.

Personally I have no idea why this issue comes up, but if this is unchanged in Simba 2.0 we could add some security measures so that proper errors are raised on bad input - now I'd assume a blank cache matrix (all white, all black etc) would be bad for example.

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

2 participants