Jump to content
safademirel

[RLS]Metin Stones on Minimap

Recommended Posts

InstanceBase.h

find

            NAMECOLOR_WAYPOINT, 


            
add

            NAMECOLOR_METIN,

44e6c42494.png

PythonCharacterManagerModule.cpp

find

    PyModule_AddIntConstant(poModule, "NAMECOLOR_MOB", CInstanceBase::NAMECOLOR_NORMAL_MOB);

add

    PyModule_AddIntConstant(poModule, "NAMECOLOR_METIN", CInstanceBase::NAMECOLOR_METIN);

0a47377989.png

InstanceBaseEffect.cpp

find

    else if (IsPoly())
    {
        return NAMECOLOR_MOB;
    }

add

    else if (IsStone())
    {
        return NAMECOLOR_METIN;
    }


1076e830b1.png

PythonMiniMap.cpp

find

    m_NPCPositionVector.clear();


        
add

    m_MetinPositionVector.clear();

    
d08919d084.png

find

        else if (pkInstEach->IsNPC())
        {
            aMarkPosition.m_fX = ( m_fWidth - (float)m_WhiteMark.GetWidth() ) / 2.0f + fDistanceFromCenterX + m_fScreenX;
            aMarkPosition.m_fY = ( m_fHeight - (float)m_WhiteMark.GetHeight() ) / 2.0f + fDistanceFromCenterY + m_fScreenY;

            m_NPCPositionVector.push_back(aMarkPosition);
        }

add

        else if (pkInstEach->IsStone())
        {
            aMarkPosition.m_fX = ( m_fWidth - (float)m_WhiteMark.GetWidth() ) / 2.0f + fDistanceFromCenterX + m_fScreenX;
            aMarkPosition.m_fY = ( m_fHeight - (float)m_WhiteMark.GetHeight() ) / 2.0f + fDistanceFromCenterY + m_fScreenY;

            m_MetinPositionVector.push_back(aMarkPosition);
        }

f39fa095e2.png

find

    // NPC
    STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_NPC));
    aIterator = m_NPCPositionVector.begin();
    while (aIterator != m_NPCPositionVector.end())
    {
        TMarkPosition & rPosition = *aIterator;
        m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY);
        m_WhiteMark.Render();
        ++aIterator;
    }

add

    // Metin
    STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_METIN));
    aIterator = m_MetinPositionVector.begin();
    while (aIterator != m_MetinPositionVector.end())
    {
        TMarkPosition & rPosition = *aIterator;
        m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY);
        m_WhiteMark.Render();
        ++aIterator;
    }
    


44a7fa46f8.png

PythonMiniMap.h

find

		TInstanceMarkPositionVector		m_NPCPositionVector;

add

		TInstanceMarkPositionVector		m_MetinPositionVector;

f1d38ff30e.png
root/colorinfo.py

find

CHR_NAME_RGB_WARP = (136, 218, 241)

add

CHR_NAME_RGB_METIN = (240, 255, 255)

You can select another color from here
    84f60e93ba.png

    
root/introloading.py

find

            chrmgr.NAMECOLOR_WAYPOINT : colorInfo.CHR_NAME_RGB_WAYPOINT,

add

            chrmgr.NAMECOLOR_METIN : colorInfo.CHR_NAME_RGB_METIN,

e200633f41.png

Ingame Screen

UFIGpU6.png            

Edited by safademirel
PythonMinimap.h part is missing. (see edit history)
  • Love 18

Share this post


Link to post

U forgot to define "m_MetinPositionVector" in "PythonMiniMap.h".
Anyway, thx 4 sharing. :)


€: Now it's alright. :D



Greetz

Edited by d3s4st3r (see edit history)
  • Love 1

Share this post


Link to post

  

help

777incia4169646.png

look at the prevous reply just add :

TInstanceMarkPositionVector		m_MetinPositionVector;

after

TInstanceMarkPositionVector		m_WarpPositionVector;

 

  • Love 1

Share this post


Link to post

 

1205 13:26:44228 :: Traceback (most recent call last):

1205 13:26:44276 ::   File "introLoading.py", line 208, in LoadData

1205 13:26:44276 ::   File "introLoading.py", line 283, in __RegisterColor

1205 13:26:44276 :: AttributeError
1205 13:26:44276 :: : 
1205 13:26:44276 :: 'module' object has no attribute 'NAMECOLOR_METIN'
1205 13:26:44276 :: 

 

Share this post


Link to post
Posted (edited)

Anyone has solution how to fix it? I want minimalize filter like classic mobs..

 

https://ctrlv.cz/mPoW

Thanks!

Edit: Fix by yourself..

This:

// Metin
		STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_METIN));
		aIterator = m_MetinPositionVector.begin();
		while (aIterator != m_MetinPositionVector.end())
		{
			TMarkPosition & rPosition = *aIterator;
			m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY);
			m_WhiteMark.Render();
			++aIterator;
		}

Not under this:

// NPC
	STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_NPC));
	aIterator = m_NPCPositionVector.begin();
	while (aIterator != m_NPCPositionVector.end())
	{
		TMarkPosition & rPosition = *aIterator;
		m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY);
		m_WhiteMark.Render();
		++aIterator;
	}

But under this:

// Monster
		STATEMANAGER.SetRenderState(D3DRS_TEXTUREFACTOR, CInstanceBase::GetIndexedNameColor(CInstanceBase::NAMECOLOR_MOB));//m_MarkTypeToColorMap[TYPE_MONSTER]);
		aIterator = m_MonsterPositionVector.begin();
		while (aIterator != m_MonsterPositionVector.end())
		{
			TMarkPosition & rPosition = *aIterator;
			m_WhiteMark.SetPosition(rPosition.m_fX, rPosition.m_fY);
			m_WhiteMark.Render();
			++aIterator;
		}

 

Edited by Cunoo (see edit history)
  • Love 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.