Jump to content

Recommended Posts

  • Honorable Member

This is the hidden content, please

This is the hidden content, please

 

OLD:

 200w.webp

 

NEW:

 200w.webp

Edited by Mali
Core X - External 2 Internal
  • Metin2 Dev 144
  • Eyes 3
  • Good 22
  • muscle 1
  • Love 7
  • Love 72

 

Link to comment
https://metin2.dev/topic/33198-minimap-smooth-zoom/
Share on other sites

Hi @ Mali, thanks for this cool feature!

I had just one little problem in VS2013 (I use the shitty Terenzo source instead of Novaline).
With:

constexpr DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower

The compiler said:

Error	1	error C2146: syntax error : missing ';' before identifier 'DWORD'	C:\VS\client\UserInterface\PythonMiniMap.cpp	68	1	UserInterface
Error	2	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\VS\client\UserInterface\PythonMiniMap.cpp	68	1	UserInterface

I changed it to:

const DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower

Works like charm 🙂
In the readme file I had a problem with the first code block (with the constexpr DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower block), I added too low in the cpp file first, i put it before:

void CPythonMiniMap::SetScale(float fScale)
{
	if (fScale >= 4.0f)
		fScale = 4.0f;
	if (fScale <= 0.5f)
		fScale = 0.5f;
	m_fScale = fScale;

	__SetPosition();
}

But that was produced some errors for me, at the second try I added after the:

void CPythonMiniMap::RemoveObserver(DWORD dwVID)
{
	m_kMap_dwVID_kObserver.erase(dwVID);
}

Now it's compilable.

Thank's again for this great release!

Edited by Werwolf94
Link to comment
https://metin2.dev/topic/33198-minimap-smooth-zoom/#findComment-168041
Share on other sites

  • Forum Moderator
On 11/8/2024 at 8:41 PM, Werwolf94 said:

Hi @ Mali, thanks for this cool feature!

I had just one little problem in VS2013 (I use the shitty Terenzo source instead of Novaline).
With:

constexpr DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower

The compiler said:

Error	1	error C2146: syntax error : missing ';' before identifier 'DWORD'	C:\VS\client\UserInterface\PythonMiniMap.cpp	68	1	UserInterface
Error	2	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\VS\client\UserInterface\PythonMiniMap.cpp	68	1	UserInterface

I changed it to:

const DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower

Works like charm 🙂
In the readme file I had a problem with the first code block (with the constexpr DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower block), I added too low in the cpp file first, i put it before:

void CPythonMiniMap::SetScale(float fScale)
{
	if (fScale >= 4.0f)
		fScale = 4.0f;
	if (fScale <= 0.5f)
		fScale = 0.5f;
	m_fScale = fScale;

	__SetPosition();
}

But that was produced some errors for me, at the second try I added after the:

void CPythonMiniMap::RemoveObserver(DWORD dwVID)
{
	m_kMap_dwVID_kObserver.erase(dwVID);
}

Now it's compilable.

Thank's again for this great release!

Update your sources. You are compiling on really old C++ standards that doesn't recognize "constexpr".

  • Metin2 Dev 1

Gurgarath
coming soon
My Services

Link to comment
https://metin2.dev/topic/33198-minimap-smooth-zoom/#findComment-168084
Share on other sites

  • 4 weeks later...
  • Active+ Member
On 11/9/2024 at 3:41 AM, Werwolf94 said:

Hi @ Mali, thanks for this cool feature!

I had just one little problem in VS2013 (I use the shitty Terenzo source instead of Novaline).
With:

constexpr DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower

The compiler said:

Error	1	error C2146: syntax error : missing ';' before identifier 'DWORD'	C:\VS\client\UserInterface\PythonMiniMap.cpp	68	1	UserInterface
Error	2	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	C:\VS\client\UserInterface\PythonMiniMap.cpp	68	1	UserInterface

I changed it to:

const DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower

Works like charm 🙂
In the readme file I had a problem with the first code block (with the constexpr DWORD g_dwMinimapSmoothZoomMSec = 500; // Upper = Slower block), I added too low in the cpp file first, i put it before:

void CPythonMiniMap::SetScale(float fScale)
{
	if (fScale >= 4.0f)
		fScale = 4.0f;
	if (fScale <= 0.5f)
		fScale = 0.5f;
	m_fScale = fScale;

	__SetPosition();
}

But that was produced some errors for me, at the second try I added after the:

void CPythonMiniMap::RemoveObserver(DWORD dwVID)
{
	m_kMap_dwVID_kObserver.erase(dwVID);
}

Now it's compilable.

Thank's again for this great release!

VS2013 is ancient. Nobody wants to give support for an ancient compiler.

Link to comment
https://metin2.dev/topic/33198-minimap-smooth-zoom/#findComment-168542
Share on other sites

  • 4 weeks later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.