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
make otc compilable out of the box #1111
Conversation
The |
Why not rely on it? Are there any drawbacks? Not to mention I'm confident pretty much everyone would like to see otclient reworked at this point, that's why you see projects like otclient1.0, otclientv8, otland-otclient, and otclient alternatives like OTU and Tibia Unity 3D. |
@diath Are there any reasons not to use newer C++ standards such as C++17? I recognize this solution by Nekiro might be a temporary one, not entirely appropriate etc, but the solution is very small and easy to replace later on, would you really say it's better to leave otclient in a broken condition like this for months at a time? |
None really other than the fact that you cannot just make a change that relies on C++17 while the project explicitly targets an older version of the standard, you have to update the CMake and Visual Studio (maybe?) projects accordingly as well as the SDK libs (if necessary, although another option would be to drop support for the SDK altogether and forget about it).
Because nothing is broken in the codebase, this is a solution to an unrelated problem (which neither the original PR nor this one describes). The problem lies within how vcpkg distributes the LuaJIT package and not how our code includes it, if you want to fix this issue then I believe the correct place to fix it is in the Visual Studio solution but I don't know much about VS to know what exactly needs to be changed. |
Point by point:
That's fair. I don't either. Appreciate the answer. |
@diath int main() |
Credits to Nekiro for the commit to otland-otclient otland@c873092