Git Product home page Git Product logo

Comments (12)

ZhengPeiRu21 avatar ZhengPeiRu21 commented on July 19, 2024 1

Thank you for report this. I'm glad you've found a temporarily solution that is working for you. Could you please share some details of your build environment? (OS version, g++ version, boost version, etc.) I will try to resolve this error so others are not having same trouble.

from mod-playerbots.

wraix avatar wraix commented on July 19, 2024 1

I get this error to. I am not sure it is a good idea ever to use comparison like == or != on vectorial objects that contains floats as floats will almost always be different on the last decimals due to the rounding errors of how they work in hardware. A better comparisson would be to say "vector A" and vector B are equal iff they differ by some small epsillon. I am pretty sure that that functionality is already implemented somewhere in the azerothcore.

from mod-playerbots.

youhuowa avatar youhuowa commented on July 19, 2024 1

azerothcore-wotlk/modules/mod-playerbots/src/strategy/actions/MovementActions.cpp:455:82: fatal error: use of overloaded operator '!=' is ambiguous (with operand types 'WorldPosition' and 'WorldPosition')
if (sPlayerbotAIConfig->hasLog("bot_movement.csv") && lastMove.lastMoveShort != movePosition)

There is another line in MovementActions.cpp

from mod-playerbots.

rogerc66 avatar rogerc66 commented on July 19, 2024 1

azerothcore-wotlk/modules/mod-playerbots/src/strategy/actions/MovementActions.cpp:455:82: fatal error: use of overloaded operator '!=' is ambiguous (with operand types 'WorldPosition' and 'WorldPosition') if (sPlayerbotAIConfig->hasLog("bot_movement.csv") && lastMove.lastMoveShort != movePosition)

There is another line in MovementActions.cpp

Confirmed, changed to the same line above and it compiled.

from mod-playerbots.

rogerc66 avatar rogerc66 commented on July 19, 2024

I have used hack way to make it compiled first, but I'm sure it's not supposed to be a perfect solution.

if (telePos && telePos != movePosition) to if (telePos && not (telePos == movePostion))

from mod-playerbots.

rogerc66 avatar rogerc66 commented on July 19, 2024

I'm on Ubuntu 20.04, Clang version 10.0.0, cmake version 3.16, boost version 1.71
Ubuntu is a VM running on a Synology NAS.

from mod-playerbots.

htc16 avatar htc16 commented on July 19, 2024

I think you need cmake 3.18 and clang 11

from mod-playerbots.

rogerc66 avatar rogerc66 commented on July 19, 2024

I think you need cmake 3.18 and clang 11

ok, I will try them

from mod-playerbots.

ZhengPeiRu21 avatar ZhengPeiRu21 commented on July 19, 2024

I get this error to. I am not sure it is a good idea ever to use comparison like == or != on vectorial objects that contains floats as floats will almost always be different on the last decimals due to the rounding errors of how they work in hardware. A better comparisson would be to say "vector A" and vector B are equal iff they differ by some small epsillon. I am pretty sure that that functionality is already implemented somewhere in the azerothcore.

Thank you for the helpful suggestion. I will find time to fix this comparison.

from mod-playerbots.

ZhengPeiRu21 avatar ZhengPeiRu21 commented on July 19, 2024

I have changed this line to more secure in 90be77b. Please let me know if this resolve the issue for you.

from mod-playerbots.

ZhengPeiRu21 avatar ZhengPeiRu21 commented on July 19, 2024

Thank you again for finding these comparisons. I have fixed this other one in 7e2a87a.

from mod-playerbots.

rogerc66 avatar rogerc66 commented on July 19, 2024

Thank you again for finding these comparisons. I have fixed this other one in 7e2a87a.

Thank you for your good working, I think this issue can be closed.

from mod-playerbots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.