[VS22] v19.1

Page 5 of 7 FirstFirst 1234567 LastLast
Results 61 to 75 of 94
  1. #61
    offline run ok. If i want to change to IP LAN ?->how to?

  2. #62
    Enthusiast Int16 is online now
    MemberRank
    Oct 2022 Join Date
    33Posts
    here a lil fix to make the minimap show the region name

    Spoiler:


    WndField.cpp


    above "void CWndNavigator::SetRegionName( TCHAR *tszName )" insert :

    Code:
    #ifdef __NAVIGATOR_V19
    void CWndNavigator::PaintFrame( C2DRender* p2DRender )
    {
        CD3DFont* pOldFont = p2DRender->GetFont();
        p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndTitle );
    
        CSize kSize = CWndBase::m_Theme.m_pFontWndTitle->GetTextExtent( m_strTitle.GetString() );
        int nX = (int)( (float)m_rectWindow.Width() * 0.5f - (float)kSize.cx * 0.5f );
    
        p2DRender->TextOut( nX, 5, m_strTitle, m_dwColor );
        p2DRender->SetFont( pOldFont );
        return;
    
        CWndNeuz::PaintFrame( p2DRender );
    }
    #endif //__NAVIGATOR_V19
    
    remove the WBS_NODRAWFRAME property

    before :
    Code:
    #ifdef __NAVIGATOR_V19
        return CWndBase::Create( WBS_MOVE | WBS_SOUND | WBS_CAPTION | WBS_NODRAWFRAME, m_pWndRoot->GetWindowRect(), pWndParent, dwWndId );
    #else// __NAVIGATOR_V19
    
    after :
    Code:
    #ifdef __NAVIGATOR_V19
        return CWndBase::Create( WBS_MOVE | WBS_SOUND | WBS_CAPTION, m_pWndRoot->GetWindowRect(), pWndParent, dwWndId );
    #else// __NAVIGATOR_V19
    

    WndField.h

    add :
    Code:
        virtual void SerializeRegInfo( CAr& ar, DWORD& dwVersion );
        
        CWndNavigator(); 
        virtual ~CWndNavigator();
    #ifdef __NAVIGATOR_V19
        virtual void PaintFrame( C2DRender* p2DRender );
    #endif //____NAVIGATOR_V19
    


    would it be a good idea to make a github repo so everyone could provide something ?
    ( Not talking about custom systems or security fixes ) only the official version fixes

  3. #63
    I ❤️ Shawarma Percuflex is online now
    MemberRank
    Jan 2020 Join Date
    IsraelLocation
    247Posts
    Quote Originally Posted by digitroncat View Post
    offline run ok. If i want to change to IP LAN ?->how to?
    You guys really need to start reading the theards and pay some attention..
    https://forum.ragezone.com/f724/vs22...e-for-1192396/ <-- 8. How to make your server public (and change default ports)

  4. #64
    Enthusiast Int16 is online now
    MemberRank
    Oct 2022 Join Date
    33Posts
    Quote Originally Posted by MakVee View Post
    Same with @WizArrow problem in the first place

    found the issue just comment this part out :

    Code:
    BOOL CWndTaskBar::Process( void )
    {
        // ���� ��� �����ؾ��ϴ°͵��� ���⼭...
        CPoint point = GetMousePoint();
    #ifdef __SECURITY_FIXES
        CRect wndRect = GetWindowRect();
        if( wndRect.PtInRect( point ) )
    #endif
        {
    #ifndef __NEW_TASKBAR_V19 //<------------------------------
            CRect rect = CRect( POINT_APPLET_X, POINT_APPLET_Y, POINT_APPLET_X + ICON_SIZE, POINT_APPLET_Y + ICON_SIZE );
            for( int i = 0; i < m_nMaxSlotApplet; i++ )
            {
                LPSHORTCUT lpShortcut = &m_aSlotApplet[ i ] ;
                if( !lpShortcut->IsEmpty() && rect.PtInRect( point) )
                {
                    MotionProp* pMotionProp = prj.GetMotionProp( lpShortcut->m_dwId );
                    
                    if( IsShortcut( lpShortcut, SHORTCUT_MOTION, MOT_BASE_CHEER ) )
                        PutTooTip( lpShortcut, point, &rect );
                }
                rect += CPoint( ICON_SIZE, 0 );
            }
            
            rect = CRect( POINT_ITEM_X, POINT_ITEM_Y, POINT_ITEM_X + ICON_SIZE, POINT_ITEM_Y + ICON_SIZE );
            for( int i = 0; i < MAX_SLOT_ITEM; i++ )
            {
                LPSHORTCUT lpShortcut = &m_paSlotItem[ i ] ;
                if( !lpShortcut->IsEmpty() && rect.PtInRect( point)  )
                {
                    if( IsShortcut( lpShortcut, SHORTCUT_MOTION, MOT_BASE_CHEER ) )
                        PutTooTip( lpShortcut, point,&rect );
                }
                rect += CPoint( ICON_SIZE, 0 );
            }
            rect = CRect( POINT_QUEUE_X, POINT_QUEUE_Y, POINT_QUEUE_X + SKILL_SIZE, POINT_QUEUE_Y + SKILL_SIZE );
            for( int i = 0; i < MAX_SLOT_QUEUE; i++ )
            {
                LPSHORTCUT lpShortcut = &m_aSlotQueue[ i ] ;
                if( !lpShortcut->IsEmpty() && rect.PtInRect( point)  )
                {
                    if( IsShortcut( lpShortcut, SHORTCUT_MOTION, MOT_BASE_CHEER ) )
                        PutTooTip( lpShortcut, point,&rect );
                }
                rect += CPoint( SKILL_SIZE, 0 );
            }
    #endif //__NEW_TASKBAR_V19
        }
    

  5. #65
    thank you.

    - - - Updated - - -

    Quote Originally Posted by Percuflex View Post
    You guys really need to start reading the theards and pay some attention..
    https://forum.ragezone.com/f724/vs22...e-for-1192396/ <-- 8. How to make your server public (and change default ports)
    thank you.

  6. #66
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    New YorkLocation
    2,833Posts
    Quote Originally Posted by Int16 View Post
    found the issue just comment this part out :

    Code:
    BOOL CWndTaskBar::Process( void )
    {
        // ���� ��� �����ؾ��ϴ°͵��� ���⼭...
        CPoint point = GetMousePoint();
    #ifdef __SECURITY_FIXES
        CRect wndRect = GetWindowRect();
        if( wndRect.PtInRect( point ) )
    #endif
        {
    #ifndef __NEW_TASKBAR_V19 //<------------------------------
            CRect rect = CRect( POINT_APPLET_X, POINT_APPLET_Y, POINT_APPLET_X + ICON_SIZE, POINT_APPLET_Y + ICON_SIZE );
            for( int i = 0; i < m_nMaxSlotApplet; i++ )
            {
                LPSHORTCUT lpShortcut = &m_aSlotApplet[ i ] ;
                if( !lpShortcut->IsEmpty() && rect.PtInRect( point) )
                {
                    MotionProp* pMotionProp = prj.GetMotionProp( lpShortcut->m_dwId );
                    
                    if( IsShortcut( lpShortcut, SHORTCUT_MOTION, MOT_BASE_CHEER ) )
                        PutTooTip( lpShortcut, point, &rect );
                }
                rect += CPoint( ICON_SIZE, 0 );
            }
            
            rect = CRect( POINT_ITEM_X, POINT_ITEM_Y, POINT_ITEM_X + ICON_SIZE, POINT_ITEM_Y + ICON_SIZE );
            for( int i = 0; i < MAX_SLOT_ITEM; i++ )
            {
                LPSHORTCUT lpShortcut = &m_paSlotItem[ i ] ;
                if( !lpShortcut->IsEmpty() && rect.PtInRect( point)  )
                {
                    if( IsShortcut( lpShortcut, SHORTCUT_MOTION, MOT_BASE_CHEER ) )
                        PutTooTip( lpShortcut, point,&rect );
                }
                rect += CPoint( ICON_SIZE, 0 );
            }
            rect = CRect( POINT_QUEUE_X, POINT_QUEUE_Y, POINT_QUEUE_X + SKILL_SIZE, POINT_QUEUE_Y + SKILL_SIZE );
            for( int i = 0; i < MAX_SLOT_QUEUE; i++ )
            {
                LPSHORTCUT lpShortcut = &m_aSlotQueue[ i ] ;
                if( !lpShortcut->IsEmpty() && rect.PtInRect( point)  )
                {
                    if( IsShortcut( lpShortcut, SHORTCUT_MOTION, MOT_BASE_CHEER ) )
                        PutTooTip( lpShortcut, point,&rect );
                }
                rect += CPoint( SKILL_SIZE, 0 );
            }
    #endif //__NEW_TASKBAR_V19
        }
    
    I'll give it a test sometime this week and yes depending on if people want to contribute fixes I have no issues putting it on github.

    Thanks for your support in the thread btw,

  7. #67
    Enthusiast Int16 is online now
    MemberRank
    Oct 2022 Join Date
    33Posts
    Havent digged that deep into that fix but it seems like its some leftover code from the old taskbar

    since the PutToolTip method gets called on ::OnMouseWndSurface and also on ::Process

    And i hope that people will contribute to the repo.. atleast we could give it a try


  8. #68
    I can't change the language in Neuz.exe. How can I change the language?

  9. #69
    Enthusiast Int16 is online now
    MemberRank
    Oct 2022 Join Date
    33Posts
    heres a little fix to properly align the guide window and also write text on the buttons ( respectfully stolen from 21.2 )

    code is marked as "#if __VER >= 19"
    Spoiler:


    WndGuideSystem.cpp


    inside "void CWndGuideTextMgr::OnInitialUpdate() "
    Code:
    void CWndGuideTextMgr::OnInitialUpdate() 
    { 
        CWndNeuz::OnInitialUpdate(); 
    
        DelWndStyle(WBS_MOVE);
        AddWndStyle(WBS_TOPMOST);
        m_wndTitleBar.SetVisible( FALSE );
    
        m_bVisible = FALSE;
    
    #if __VER >=19
        CWndText* pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
        m_Rect[0] = pWndText->GetWndRect();
    
        CWndButton* pWndButtonBack = (CWndButton*)GetDlgItem( WIDC_BACK );
        pWndButtonBack->SetVisible(FALSE);      
    
        pWndButtonBack->SetTitle( prj.GetText( TID_MMI_UIBUTTON_BUTTON01 ) );
    
        m_Rect[1] = pWndButtonBack->GetWndRect();
    
        CWndButton* pWndButtonNext = (CWndButton*)GetDlgItem( WIDC_NEXT );
    
        pWndButtonNext->SetTitle( prj.GetText( TID_MMI_INFOPANGTIP_BUTTON01 ) );
    
        m_Rect[2] = pWndButtonNext->GetWndRect();
        m_Rect[3] = GetWndRect();
    
        CWndButton* pWndButtonClose = ( CWndButton* )GetDlgItem( WIDC_CLOSE );
    
        m_rectCloseButton = pWndButtonClose->GetWndRect();
        pWndButtonClose->SetTitle( prj.GetText( TID_MMI_INFOPANGTIP_BUTTON02 ) );
    #else //__VER >= 19
    
        CWndText* pWndText;
        CWndButton* pWndButton;
        pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
        m_Rect[0] = pWndText->GetWndRect();
        pWndButton = (CWndButton*)GetDlgItem( WIDC_BACK );
        m_Rect[1] = pWndButton->GetWndRect();
    
    #if __VER >=12 // __MOD_TUTORIAL
        pWndButton->SetVisible(FALSE);
    #endif
        pWndButton  = (CWndButton*)GetDlgItem( WIDC_NEXT ); 
        m_Rect[2] = pWndButton->GetWndRect();
        m_Rect[3] = GetWndRect();
    #endif //__VER >= 19
        m_nCurrentVector = 0;
        m_VecGuideText.clear(); 
    
        m_pTextureBG = m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, "GuideBG.tga" ), 0, TRUE );
    } 
    
    Inside "void CWndGuideTextMgr::_SetGuideText"
    Code:
    #if __VER >=12 // __MOD_TUTORIAL
    void CWndGuideTextMgr::_SetGuideText(GUIDE_STRUCT guide, bool bIsNext)
    #else
    void CWndGuideTextMgr::_SetGuideText(GUIDE_STRUCT guide)
    #endif
    {
        CWndText* pWndText;
        CWndButton* pWndButton;
    
        pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
        pWndText->SetWndRect( m_Rect[0] );
        pWndButton= (CWndButton*)GetDlgItem( WIDC_BACK );
        pWndButton->SetWndRect( m_Rect[1] );
        pWndButton= (CWndButton*)GetDlgItem( WIDC_NEXT );
        pWndButton->SetWndRect( m_Rect[2] );
        SetWndRect( m_Rect[3] );
    #if __VER >=12 // __MOD_TUTORIAL
        if(bIsNext) pWndButton->SetVisible(TRUE);
        else        pWndButton->SetVisible(FALSE);
    #endif
    
    #if __VER >=19
        CWndButton* pWndCloseButton = ( CWndButton* )GetDlgItem( WIDC_CLOSE );
        if( pWndCloseButton )
        {
            pWndCloseButton->SetWndRect( m_rectCloseButton );
        }
    #endif // __VER >= 19
        
        m_bVisible = TRUE;
    
        m_strHelpKey = guide.m_str;
        pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
    #if __VER >=12 // __MOD_TUTORIAL
        pWndText->SetString("");
        pWndText->m_string.AddParsingString(LPCTSTR(guide.m_str));
        pWndText->ResetString();
    #else
        pWndText->SetString( (guide.m_nkey == CWndGuideSystem::KEY) ? prj.GetHelp( m_strHelpKey ) : guide.m_str );
    #endif
        CRect rect = pWndText->GetWndRect();
    
        pWndText->m_string.Align( m_pFont );
        
        int nLine = pWndText->m_string.GetLineCount();
        
        if( nLine < 10 )
        {
            if( nLine < 8 )
                nLine = 8;
    
            CRect clientrect = GetWndRect();
            
            int ngap = rect.Height() - (nLine * 22);
            clientrect.top += ngap;
            SetWndRect(clientrect);
    
            rect.bottom -= ngap;
            pWndText->SetWndRect( rect );
    
            CRect ptRect;
    #ifndef __MOD_TOTURIAL
            pWndButton= (CWndButton*)GetDlgItem( WIDC_BACK );
            ptRect = pWndButton->GetWndRect();
            ptRect.OffsetRect( 0, -ngap );
            pWndButton->SetWndRect(ptRect);
    #endif
            pWndButton= (CWndButton*)GetDlgItem( WIDC_NEXT );
            ptRect = pWndButton->GetWndRect();
            ptRect.OffsetRect( 0, -ngap );
            pWndButton->SetWndRect(ptRect);
    
    #if __VER >=19
            pWndButton= (CWndButton*)GetDlgItem( WIDC_CLOSE );
            ptRect = pWndButton->GetWndRect();
            ptRect.OffsetRect( 0, -ngap );
            pWndButton->SetWndRect(ptRect);
    #endif //__VER >= 19
            
            pWndText->m_wndScrollBar.m_bVisible = FALSE;
        }
        else
        {
            /*
            pWndText = (CWndText*)GetDlgItem( WIDC_TEXT1 );
            pWndText->SetWndRect( m_Rect[0] );
            pWndButton= (CWndButton*)GetDlgItem( WIDC_BACK );
            pWndButton->SetWndRect( m_Rect[1] );
            pWndButton= (CWndButton*)GetDlgItem( WIDC_NEXT );
            pWndButton->SetWndRect( m_Rect[2] );
            SetWndRect( m_Rect[3] );
            */
    
            pWndText->m_wndScrollBar.m_bVisible = TRUE;
            pWndText->SetWndRect( rect );
        }
    
        CWndGuideSystem* pWndGuide = (CWndGuideSystem*)GetWndBase( APP_GUIDE );
        CRect rectGuide = pWndGuide->GetWindowRect( TRUE );
        CPoint ptGuide = rectGuide.TopLeft();
        CPoint ptMove;
    
        pWndGuide->m_bVisible = TRUE;
        
        CRect windowrect = GetWindowRect( TRUE );
        
        if( ptGuide.x > windowrect.Width() )
            ptMove = ptGuide - CPoint( windowrect.Width(), 0 );
        else
            ptMove = ptGuide + CPoint( rectGuide.Width(), 0 );
    
        ptMove.y = rectGuide.bottom;
        ptMove.y -= windowrect.Height();
        
        if( ptMove.y < 0 )
            ptMove.y = rectGuide.top;
        
        Move( ptMove );
    }
    
    WndGuideSystem.h :


    Code:
    class CWndGuideTextMgr : public CWndNeuz 
    { 
    
    public: 
        CString     m_strHelpKey;
        CTexture*   m_pTextureBG;
        CRect       m_Rect[4];
    #if __VER >=19
        CRect       m_rectCloseButton;
    #endif //__VER >= 19
        int                       m_nCurrentVector;
    
        vector<GUIDE_STRUCT>      m_VecGuideText;
    
        GUIDE_STRUCT GetGuideText()
        {
            return m_VecGuideText[m_nCurrentVector];
        }
    

  10. #70
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    New YorkLocation
    2,833Posts
    I would like to give @Int16 a big shout-out for contributing back to the thread and providing fixes for the public.

    I have updated my original post with a new link that fixes the follow:
    • Navigator now shows the name.
    • Guide system buttons are placed correctly.
    • Taskbar with motions and targeting has also been fixed.

    Since he was king enough to contribute some fixes I decided since it's Christmas i can as well?
    • Fixed the lord casting name when you do an event or a skill it shows the actual lords name.
    • Fixed a spacing issue when players login the text is separated rather then XXXhas logged in.
    • Fixed a crash that exists in everyone's source just about, thanks to retail v21.2 source for the fix lol.
    • Fixed a bug with all sources with displaying mail time correctly.

    You can find the updated package in my original post, also I will be adding this to a gitHub soon along with the rest of my personal public sources.

  11. #71
    Enthusiast Int16 is online now
    MemberRank
    Oct 2022 Join Date
    33Posts
    May i ask what the crash was that every source had?

  12. #72
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    New YorkLocation
    2,833Posts

    Post

    Quote Originally Posted by Int16 View Post
    May i ask what the crash was that every source had?
    CDPSrvr::OnAddUser(:
    This fixes a crash that exists in everyone's source just about, thanks to retail v21.2 source for the fix lol.

    Find:
    Code:
    CUser* pUser = (CUser*)prj.GetUserByID( idPlayer );[
    Replace With:
    Code:
    CUser* pUser = g_UserMng.GetUser(dpidCache, dpidUser);
    Last edited by Ketchup; 3 Weeks Ago at 01:45 PM.

  13. #73
    Apprentice tplinker is offline
    MemberRank
    Dec 2022 Join Date
    8Posts
    will this work smoothly with azuriom website?

  14. #74
    Valued Member c2cube is online now
    MemberRank
    Sep 2021 Join Date
    113Posts
    Thanks for the update sir, and Merry Christmas everyone

  15. #75
    ‎‎‎‎ Ketchup is offline
    ModeratorRank
    Jan 2009 Join Date
    New YorkLocation
    2,833Posts
    Quote Originally Posted by tplinker View Post
    will this work smoothly with azuriom website?
    Yes, why wouldn't it? Lol.



Page 5 of 7 FirstFirst 1234567 LastLast

Advertisement