Jump to content
×
×
  • Create New...

Reworked Character Window


Recommended Posts

M2 Download Center

Download Here ( Internal )

 

 

 

 

As you might know I was working on a Reworked version of the character window for a long time. I shared some of my progress on Discord and today I am relasing it to public. I am not gonna write any detailed guide here on how to implement it as there is enough information written in the file itself both on how to install and how to configure it. All you need to know is there are two different versions: base version is the first video I shared and the equipment set version is the second video. To implement equipment set version you need to make some changes in the server source. Base version can be implemented without doing any changes in the server source. Hope you all like it!

 

Hidden Content

    Give reaction to this post to see the hidden content.

  • Metin2 Dev 23
  • Love 36
  • Love 3
  • Good 15
  • Dislove 1
Link to comment
Share on other sites

On 11/8/2020 at 8:21 AM, DevBlade said:

Hi,

 

I'm getting this kind of error:

 

b37781d07f7964a85717788e33f2ad10.png

It's a render target bug, go to EterLib/CRenderTarget.cpp and change RenderBackground

 

Spoiler


void CRenderTarget::RenderBackground() const
{
    if (!m_visible)
        return;

    if (!m_background)
        return;

    auto& rectRender = *m_renderTargetTexture->GetRenderingRect();
    m_renderTargetTexture->SetRenderTarget();

    CGraphicRenderTargetTexture::Clear();
    CPythonGraphic::Instance().SetInterfaceRenderState();

    //const auto width = static_cast<float>(rectRender.right - rectRender.left);
    //const auto height = static_cast<float>(rectRender.bottom - rectRender.top);

    //CPythonGraphic::Instance().SetViewport(0.0f, 0.0f, width, height);

    m_background->Render();
    m_renderTargetTexture->ResetRenderTarget();
    //CPythonGraphic::Instance().RestoreViewport();
}
 

Anyway, I advise you to go to the original post and look for some fixes found there

  • Metin2 Dev 1
  • Love 1
Link to comment
Share on other sites

  • 1 month later...

Somebody who add this system, i need some help with it. 

Edited by VegaS™
It's not allowed to give your / our social media contact information (skype, discord...) in public topics / posts or signatures, only via private message.
Link to comment
Share on other sites

  • 1 year later...

After adding base of the code I'm getting this in syserr 

Quote

 

uiNewCharacter.py(line:82) <module>
uiNewCharacter.py(line:109) NewCharacterWindow

networkModule.SetSelectCharacterPhase - <type 'exceptions.AttributeError'>:'module' object has no attribute 'EQUIPMENT_SHIELD'

 

Any solutions?

Link to comment
Share on other sites

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


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.