Jump to content

Recommended Posts

  • Honorable Member

Thanks to @ Gurgarath @ HaiosMotan

This is the hidden content, please

This is the hidden content, please

 

.gif

 

Requirements: 

Spoiler

 

 

Video:

video.jpg?ex=65b69d28&is=65a42828&hm=713

Release:

rls.png?ex=65b69d2d&is=65a4282d&hm=acea3

Edited by Mali
  • Metin2 Dev 128
  • Eyes 1
  • Confused 1
  • Scream 1
  • Good 26
  • Love 7
  • Love 63

 

Link to comment
https://metin2.dev/topic/32035-atlas-minimap-image-by-day-type/
Share on other sites

  • Honorable Member

Snow-mode atlases and minimaps for basic maps from late 2020.

This is the hidden content, please

This is the hidden content, please

 

Spoiler

.png

.png

note: you need to call the reloadminimap where the snowtexturesetoption changes the textureset.

Path and filename are might different from the code of the system, it's for my codes which didn't follow the official reversed one.

  • Metin2 Dev 31
  • Good 5
  • Love 8
  • Honorable Member
1 hour ago, Gopinich said:

Is it possible to resize the window or image?

yes, but why is your atlas is smaller than normal?

 

Update:

 .gif

 

 

Edited by Mali
  • Metin2 Dev 1

 

Fix the problem

 

 

You must change your client files with these ones.

https://metin2.download/picture/GYNQ915cOI08kk1a48psc7kxN4s25iO3/.gif


 

If you encountered the following problem



https://metin2.download/picture/L61WMUx8H29jgpvAh4Z2y1hZ23vA1ur3/.gif

The system works well but the Atlas doesn't properly resize between Snow / Night and Normal

Or the other way around: 

https://metin2.download/picture/ IOzb6b8wxm21398ig2KaG3ib287tTpt4/.gif




 

Edited by Gurgarath
Core X - External 2 Internal
  • Metin2 Dev 3
  • Confused 1
  • Good 2
  • Love 1
1 hour ago, Mali said:

oui, mais pourquoi votre atlas est-il plus petit que la normale ?

 

Mise à jour:

 .gif

 

 

I don't know, the files I have are like that. I will now take care of the minimap.
Thx @ Mali

Edited by Gopinich
  • Love 1
6 hours ago, Gopinich said:

Fix the problem

 

 

You must change your client files with these ones.

https://metin2.download/picture/GYNQ915cOI08kk1a48psc7kxN4s25iO3/.gif


 

If you encountered the following problem



https://metin2.download/picture/L61WMUx8H29jgpvAh4Z2y1hZ23vA1ur3/.gif

The system works well but the Atlas doesn't properly resize between Snow / Night and Normal

Or the other way around: 

https://metin2.download/picture/ IOzb6b8wxm21398ig2KaG3ib287tTpt4/.gif




 

download link is broken ? Can you share the fix? I have the same issue with smaller normal atlas.

  • 2 months later...

Works, thanks Mali!

The only problem i found is as i am moving on the map, the minimap does not load the other chunk of minimap.dds from the map

Screenshot-1.png

 

I fixed it by adding

#if defined(ENABLE_NIGHT_SNOW_ATLAS_MINIMAP)
	CMapOutdoor& rkMap = rkBG.GetMapOutdoorRef();

	const bool bIsNight = rkBG.GetDayMode() == CPythonBackground::DAY_MODE_DARK
		&& rkBG.GetNightModeOption()
		&& rkBG.IsBoomMap(rkBG.GetWarpMapName());

	const bool bIsSnow = rkBG.GetXMasShowEvent()
		&& rkBG.GetSnowTextureModeOption()
		&& rkBG.IsSnowMap(rkBG.GetWarpMapName());

	//Minimap
	rkMap.ReloadMinimapTexture(bIsNight, bIsSnow);
#endif

in the void CPythonMiniMap::Update function

Edited by Thrall
Core X - External 2 Internal
  • Lmao 1
  • 1 month later...
On 3/24/2024 at 1:29 AM, Thrall said:

Works, thanks Mali!

The only problem i found is as i am moving on the map, the minimap does not load the other chunk of minimap.dds from the map

Screenshot-1.png

 

I fixed it by adding

#if defined(ENABLE_NIGHT_SNOW_ATLAS_MINIMAP)
	CMapOutdoor& rkMap = rkBG.GetMapOutdoorRef();

	const bool bIsNight = rkBG.GetDayMode() == CPythonBackground::DAY_MODE_DARK
		&& rkBG.GetNightModeOption()
		&& rkBG.IsBoomMap(rkBG.GetWarpMapName());

	const bool bIsSnow = rkBG.GetXMasShowEvent()
		&& rkBG.GetSnowTextureModeOption()
		&& rkBG.IsSnowMap(rkBG.GetWarpMapName());

	//Minimap
	rkMap.ReloadMinimapTexture(bIsNight, bIsSnow);
#endif

in the void CPythonMiniMap::Update function

where did you add it? For me it's not working.

Does anyone have a fix for this?

 

 

Works.

Edited by HFWhite
  • Metin2 Dev 2
  • 1 year later...
On 1/15/2024 at 12:37 PM, Gopinich said:

Fix the problem

 

 

You must change your client files with these ones.

https://metin2.download/picture/GYNQ915cOI08kk1a48psc7kxN4s25iO3/.gif


 

If you encountered the following problem



https://metin2.download/picture/L61WMUx8H29jgpvAh4Z2y1hZ23vA1ur3/.gif

The system works well but the Atlas doesn't properly resize between Snow / Night and Normal

Or the other way around: 

https://metin2.download/picture/ IOzb6b8wxm21398ig2KaG3ib287tTpt4/.gif




 

I NEED THAT FIX 😞

  • 4 months later...
On 3/20/2026 at 9:42 AM, TronTR2 said:

I NEED THAT FIX 😞

1. Changes in PythonMiniMap.h

// Search:
		float				m_fAtlasImageSizeX;
		float				m_fAtlasImageSizeY;

// Add below:
#ifdef ENABLE_SET_ATLAS_SCALE
		float				m_fAtlasScaleX;
		float				m_fAtlasScaleY;
#endif

2. Changes in PythonMiniMap.cpp

A. Update CPythonMiniMap::LoadAtlas()

Replace direct dimensions assignment with conditional scaling:

// Search:
	m_fAtlasImageSizeX = (float) m_AtlasImageInstance.GetWidth();
	m_fAtlasImageSizeY = (float) m_AtlasImageInstance.GetHeight();

// Replace with / Change to:
#ifdef ENABLE_SET_ATLAS_SCALE
	SetAtlasScale(m_fAtlasScaleX, m_fAtlasScaleY);
#else
	m_fAtlasImageSizeX = (float)m_AtlasImageInstance.GetWidth();
	m_fAtlasImageSizeY = (float)m_AtlasImageInstance.GetHeight();
#endif

B. Update CPythonMiniMap::SetAtlasScale()

Assign scale factors before adjusting the image scale:

// Search:
void CPythonMiniMap::SetAtlasScale(float fx, float fy)
{
	m_AtlasImageInstance.SetScale(fx, fy);

// Change to:
void CPythonMiniMap::SetAtlasScale(float fx, float fy)
{
#ifdef ENABLE_SET_ATLAS_SCALE
	m_fAtlasScaleX = fx;
	m_fAtlasScaleY = fy;
#endif

	m_AtlasImageInstance.SetScale(fx, fy);

C. Update CPythonMiniMap::__Initialize()

Set default scale values on initialization:

// Search:
	m_fAtlasImageSizeX = 0.0f;
	m_fAtlasImageSizeY = 0.0f;

// Add below:
#ifdef ENABLE_SET_ATLAS_SCALE
	m_fAtlasScaleX = 1.0f;
	m_fAtlasScaleY = 1.0f;
#endif

D. Update CPythonMiniMap::UpdateAtlasImage()

Re-apply scale when the atlas image updates:

// Search:
	m_bAtlas = true;
}

// Add below (inside CPythonMiniMap::UpdateAtlasImage):
#ifdef ENABLE_SET_ATLAS_SCALE
	SetAtlasScale(m_fAtlasScaleX, m_fAtlasScaleY);
#endif

That's it, simple as that! Don't forget to leave a thank you if this helped you out.

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.