Pottus/ColAndreas

GetTickCount64

Crayder opened this issue · 5 comments

Operating System: Windows XP SP3, latest libraries available.
ColAndreas Version: 1.3
Server Version: 0.3.7 R2-1

---------------------------
samp-server.exe - Entry Point Not Found
---------------------------
The procedure entry point GetTickCount64 could not be located in the dynamic link library KERNEL32.dll. 
---------------------------
OK   
---------------------------

The solution is obvious, but the plugin should be as dynamic as it was before.

It could even be more dynamic just by changing the colindex var to static (outside of the class, ColAndreasMapObject) and moving DEG_TO_RAD and RADIAN_TO_DEG outside of their class, ColAndreasWorld. Doing just this makes the entire source compatible with vs2010.

And cmake when compiling in vs2010:

image

Temp-fix: Replace the git command with a manual cmake set.

For some reason VS2015 refuses to target Windows XP, even after setting _WIN32_WINNT and changing the toolset to v140_xp. I compiled the project using VS2013 and it works in XP now, the downloads have been updated with the fixed dll. Please confirm if it works for you now.

Regarding that CMake error, I've changed it to a set like you suggested (commit 1e2b616) to keep things simple..

Yes, the new plugin works.

Good job with the update, do you have any other plans for it?

Can this be closed ?