Party Link Source

Captur - Party Link Source - RaGEZONE Forums
manage to merge but party finder search button not show....anyone have full gui for partyfinder?

Captur - Party Link Source - RaGEZONE Forums
manage to merge but party finder search button not show....anyone have full gui for partyfinder?
Captur - Party Link Source - RaGEZONE Forums
i try online and after pressing f5 thats happen partyfinder not show
 
Last edited:
Party Link Source
Thanks, it is a good function.
party - Party Link Source - RaGEZONE Forums
In fact, it should not show all maps' names on the list...
Perhaps someone also wants to know how to implement it.
Let me share how to do this to thank the author.
This is very easy to do.
Remark: You may need to change some keywords to support VS2003/VS2008.
C++:
// PartyFinderWindow.h
#include <unordered_map>

...
    VECPARTYSEARCH            m_vecPartySearchView; // view container

    std::unordered_map<int, SNATIVEID> m_mapNodes;

// PartyFinderWindow.cpp
void CPartyFinderWindow::InitPartySearch()
{
    PartyResetInfo();

    CString strTemp;


    strTemp.Format( "%s", ID2GAMEWORD( "PARTYFINDER_AREAS") );
    int nIndex = m_pListTextBox->AddText ( strTemp.GetString(), NS_UITEXTCOLOR::WHITE );
    m_pListTextBox->SetTextData ( nIndex, 0 );

    //! --------- loop all map enhancement | moon | 2 Sept 2023 ---------
    m_mapNodes.clear();
    auto i = 0;
    auto f = [this, &nIndex](int _i, const SMAPNODE* _m) {
        if (!_m) return;
        nIndex = m_pListTextBox->AddText(_m->strMapName.c_str(), NS_UITEXTCOLOR::WHITE);
        m_pListTextBox->SetTextData(nIndex, _i);
        m_mapNodes[_i] = _m->sNativeID;
    };
    m_mapNodes[i++] = SNATIVEID(false);
    auto m22 = GLGaeaClient::GetInstance().FindMapNode(SNATIVEID(22,0));
    f(i++, m22);
    for (const auto p : GLGaeaClient::GetInstance().GetMapList()) {
        auto m = &(p.second);
        f(i++, m);
    }
    ....
}
...
void CPartyFinderWindow::SelectPartyArea ( int nIndex )
{
    m_vecPartySearchView.clear();
    m_nCurrentPage = 1;

    m_vecPartySearch = GLGaeaClient::GetInstance().GetCharacter()->m_vecPartySearch;

    /** TEST PUSH BACK **/
    DWORD dwSIZE = static_cast<DWORD>(m_vecPartySearch.size());
    int nCounter = 0;

    for ( DWORD i=0; i<dwSIZE; ++i )
    {
        const PARTYLINKDATA &sParty = m_vecPartySearch[i];
        m_vecPartySearch[i].dwIndex = nCounter;
   
        m_mapPartySearch[sParty.dwPartyID] = sParty;
        nCounter++;
    }

    //! --------- loop all map enhancement | moon | 2 Sept 2023 ---------
    auto m = m_mapNodes[nIndex];

    for( MAPPARTYSEARCH_ITER iter = m_mapPartySearch.begin();
        iter != m_mapPartySearch.end(); ++iter )
    {
        PARTYLINKDATA& sPartyData = (*iter).second;

        if (m.wMainID != SNATIVEID::ID_NULL && sPartyData.m_sMapID != m) continue;
        ...
    }
}

Easy to merge
easy to merge even using vs 2003 but compiling so long :ROFLMAO::ROFLMAO::ROFLMAO:
Yes, No missing code leads it simple. Just take two minutes to compile all by VS2022 lol.
 
Last edited:
Thanks, it is a good function.
View attachment 241163

In fact, it should not show all maps' names on the list...
Perhaps someone also wants to know how to implement it.
Let me share how to do this to thank the author.
This is very easy to do.
Remark: You may need to change some keywords to support VS2003/VS2008.
C++:
// PartyFinderWindow.h
#include <unordered_map>

...
    VECPARTYSEARCH            m_vecPartySearchView; // view container

    std::unordered_map<int, SNATIVEID> m_mapNodes;

// PartyFinderWindow.cpp
void CPartyFinderWindow::InitPartySearch()
{
    PartyResetInfo();

    CString strTemp;


    strTemp.Format( "%s", ID2GAMEWORD( "PARTYFINDER_AREAS") );
    int nIndex = m_pListTextBox->AddText ( strTemp.GetString(), NS_UITEXTCOLOR::WHITE );
    m_pListTextBox->SetTextData ( nIndex, 0 );

    //! --------- loop all map enhancement | moon | 2 Sept 2023 ---------
    m_mapNodes.clear();
    auto i = 0;
    auto f = [this, &nIndex](int _i, const SMAPNODE* _m) {
        if (!_m) return;
        nIndex = m_pListTextBox->AddText(_m->strMapName.c_str(), NS_UITEXTCOLOR::WHITE);
        m_pListTextBox->SetTextData(nIndex, _i);
        m_mapNodes[_i] = _m->sNativeID;
    };
    m_mapNodes[i++] = SNATIVEID(false);
    auto m22 = GLGaeaClient::GetInstance().FindMapNode(SNATIVEID(22,0));
    f(i++, m22);
    for (const auto p : GLGaeaClient::GetInstance().GetMapList()) {
        auto m = &(p.second);
        f(i++, m);
    }
    ....
}
...
void CPartyFinderWindow::SelectPartyArea ( int nIndex )
{
    m_vecPartySearchView.clear();
    m_nCurrentPage = 1;

    m_vecPartySearch = GLGaeaClient::GetInstance().GetCharacter()->m_vecPartySearch;

    /** TEST PUSH BACK **/
    DWORD dwSIZE = static_cast<DWORD>(m_vecPartySearch.size());
    int nCounter = 0;

    for ( DWORD i=0; i<dwSIZE; ++i )
    {
        const PARTYLINKDATA &sParty = m_vecPartySearch[i];
        m_vecPartySearch[i].dwIndex = nCounter;
  
        m_mapPartySearch[sParty.dwPartyID] = sParty;
        nCounter++;
    }

    //! --------- loop all map enhancement | moon | 2 Sept 2023 ---------
    auto m = m_mapNodes[nIndex];

    for( MAPPARTYSEARCH_ITER iter = m_mapPartySearch.begin();
        iter != m_mapPartySearch.end(); ++iter )
    {
        PARTYLINKDATA& sPartyData = (*iter).second;

        if (m.wMainID != SNATIVEID::ID_NULL && sPartyData.m_sMapID != m) continue;
        ...
    }
}



Yes, No missing code leads it simple. Just take two minutes to compile all by VS2022 lol.
Nah merge is hard for me idk what the solution of it
 
1694049775913 - Party Link Source - RaGEZONE Forums

after testing it on live, party list still not showing.. anyone know how to fix?
 
Any One Help me to my Error I'll Give VPS/RDP.

Please help me how to remove the one that always appears to be Chinese because I don't understand it. I hope someone can help me.
1694145838975 - Party Link Source - RaGEZONE Forums
 
Last edited:
Go
GLParty.h
Find:
GLPARTY_FNET ( DWORD dwGaeaID, char* szName, EMCHARCLASS emClass, SNATIVEID sMapID )

replace:
GLPARTY_FNET ( DWORD dwGaeaID, char* szName, EMCHARCLASS emClass, SNATIVEID sMapID, WORD wLevel )
Thank you i will try to merge it again ;)
 
GLPARTY_FNET ( DWORD dwGaeaID, char* szName, EMCHARCLASS emClass, SNATIVEID sMapID )
i don't know where this code coming from :nootnoot:
 
Back