Jump to content

Minimap transparency BUG c++


Recommended Posts

Hello dev, i have problem with transparency minimap, you can see it in picture.

Please can you help me with this? what is wrong?

On this PC get minimap transparency and on my 2nd pc work minimap normally in the same client.

Client have DirectX 9, when client have DirectX 8,minimap work normally. I have DirectX 11 on 1st and on 2nd PC. (same)

11637900_982747301776899_353428391_n.jpg

Link to comment
Share on other sites

8 hours ago, wezt said:

I try it , but dont work because it is not complete, first 3 lines.

 

Spoiler

 

So here the Final Minimap Fix

 

Go to StateManager.cpp and search for

 

 

 
and Replace it with
 

 

 
search for - nothing
replace with - notihng. 

Can you help me?
Link to comment
Share on other sites

Well, you need to add one more additional function in StateManager.cpp (also do not forget to add function in header file (StateManager.h))

Spoiler

//Search for this function in sataemanager.cpp
HRESULT CStateManager::DrawIndexedPrimitive(D3DPRIMITIVETYPE PrimitiveType, UINT minIndex, UINT NumVertices, UINT startIndex, UINT primCount)

{

    return (m_lpD3DDev->DrawIndexedPrimitive(PrimitiveType, minIndex, 0, NumVertices, startIndex, primCount));

}
//Plase under next one

HRESULT CStateManager::DrawIndexedPrimitive1(D3DPRIMITIVETYPE PrimitiveType, UINT minIndex, UINT NumVertices, UINT startIndex, UINT primCount)

{

    return (m_lpD3DDev->DrawIndexedPrimitive(PrimitiveType, 0, minIndex, NumVertices, startIndex, primCount));

}

 

Then go to  PythonMiniMap.cpp, search for "DrawIndexedPrimitive" and replace it with "DrawIndexedPrimitive1"

 

P.s.: As far i remember it's a full fix. Cannot check for sure because I don't use dx9.

  • Love 1
Link to comment
Share on other sites

1 hour ago, wezt said:

Well, you need to add one more additional function in StateManager.cpp (also do not forget to add function in header file (StateManager.h))

  Reveal hidden contents



//Search for this function in sataemanager.cpp
HRESULT CStateManager::DrawIndexedPrimitive(D3DPRIMITIVETYPE PrimitiveType, UINT minIndex, UINT NumVertices, UINT startIndex, UINT primCount)

{

    return (m_lpD3DDev->DrawIndexedPrimitive(PrimitiveType, minIndex, 0, NumVertices, startIndex, primCount));

}
//Plase under next one

HRESULT CStateManager::DrawIndexedPrimitive1(D3DPRIMITIVETYPE PrimitiveType, UINT minIndex, UINT NumVertices, UINT startIndex, UINT primCount)

{

    return (m_lpD3DDev->DrawIndexedPrimitive(PrimitiveType, 0, minIndex, NumVertices, startIndex, primCount));

}

 

Then go to  PythonMiniMap.cpp, search for "DrawIndexedPrimitive" and replace it with "DrawIndexedPrimitive1"

 

P.s.: As far i remember it's a full fix. Cannot check for sure because I don't use dx9.

Thank you, I forget add func StateManager.h :D

Solved.

  • Good 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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