Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Added HD Resolution (1920x1080) - Window is 1920x1080 but takes taskbar 1680x1050

Status
Not open for further replies.
Newbie Spellweaver
Joined
May 18, 2021
Messages
35
Reaction score
1
Hi guys,

I added the resolution 1920x1080 to my source, the windows opens correctly as 1920x1080 but the taskbar is the one with 1680x1050. I guess something with my resdata.inc is wrong, but couldn't find the issue.

HwOption.cpp
Code:
..         case 1680: //1680x1050 (WIDE)
            if (m_nResHeight != 1050)
            {
                Error("We Can't Support this Resolution!! - Width : %d, Height : %d", m_nResWidth, m_nResHeight);
                m_nResHeight = 1050;
            }
            break;
        case 1920: // 1920x1080 (WIDE)
            if (m_nResHeight != 1080)
            {
                Error("We Can't Support this Resolution!! - Width : %d, Height : %d", m_nResWidth, m_nResHeight);
                m_nResHeight = 1080;
            }
            break;
        case 1900: // 1900x1000 (WIDE)
            if (m_nResHeight != 1000)
            {
                Error("We Can't Support this Resolution!! - Width : %d, Height : %d", m_nResWidth, m_nResHeight);
                m_nResHeight = 1000;
            }
            break;
        default:
            Error("We Can't Support this Resolution!! - Width : %d, Height : %d", m_nResWidth, m_nResHeight);
            m_nResWidth = 800;
            m_nResHeight = 600;
            break;
        }
    }
    //SAFE_RELEASE( pD3D9 );
    pD3D9->Release();
}

Neuz.cpp
Code:
                else if (g_Option.m_nResWidth == 1920 && g_Option.m_nResHeight == 1080)
                {
                    m_TexLoading.m_size = CSize(1920, FULLSCREEN_HEIGHT);
                    wideOffsetX = (g_Option.m_nResWidth - 1920) / 2;
                    m_2DRender.RenderFillRect(CRect(0, 0, g_Option.m_nResWidth, g_Option.m_nResHeight), 0xff000000);
                }
                else if (g_Option.m_nResWidth == 1900 && g_Option.m_nResHeight == 1000)
                {
                    m_TexLoading.m_size = CSize(1900, FULLSCREEN_HEIGHT);
                    wideOffsetX = (g_Option.m_nResWidth - 1900) / 2;
                    m_2DRender.RenderFillRect(CRect(0, 0, g_Option.m_nResWidth, g_Option.m_nResHeight), 0xff000000);
                }


WndTaskbar.cpp
Code:
            else if (g_Option.m_nResWidth == 1920)
            {
                m_nMaxSlotApplet = MAX_SLOT_APPLET;
                bResult = CWndNeuz::InitDialog(g_Neuz.GetSafeHwnd(), APP_TASKBAR1920, WBS_MANAGER | WBS_SOUND, CPoint(0, 0), pWndParent);
            }
            else if (g_Option.m_nResWidth == 1900)
            {
                m_nMaxSlotApplet = MAX_SLOT_APPLET;
                bResult = CWndNeuz::InitDialog(g_Neuz.GetSafeHwnd(), APP_TASKBAR1900, WBS_MANAGER | WBS_SOUND, CPoint(0, 0), pWndParent);
            }
#endif //__CSC_VER9_RESOLUTION

    DelWndStyle(WBS_MOVE);
    return bResult;

}

Resdata.inc
Code:
APP_TASKBAR1920 "WndTaskBar1920Wide.bmp" "" 0 1920 48 0x610000 26
{
// Title String
IDS_RESDATA_INC_004864
}
{
// Help Key
IDS_RESDATA_INC_004865
}
{
    WTYPE_BUTTON WIDC_BUTTON1 "ButtStart.bmp" 0 26 14 90 34 0x220010 0 0 0 0
    {
    // Title String
IDS_RESDATA_INC_004890
    }
    {
    // ToolTip
IDS_RESDATA_INC_004891
    }
    WTYPE_CUSTOM WIDC_CUSTOM1 "" 0 106 10 682 42 0x260000 0 0 0 0
    {
    // Title String
IDS_RESDATA_INC_004892
    }
    {
    // ToolTip
IDS_RESDATA_INC_004893
    }
    WTYPE_CUSTOM WIDC_CUSTOM2 "" 0 702 10 992 42 0x260000 0 0 0 0
    {
    // Title String
IDS_RESDATA_INC_004894
    }
    {
    // ToolTip
IDS_RESDATA_INC_004895
    }
    WTYPE_BUTTON WIDC_UP "ButtQuickListUp.tga" 0 1000 8 1014 20 0x220010 0 0 0 0
    {
    // Title String
IDS_RESDATA_INC_004896
    }
    {
    // ToolTip
IDS_RESDATA_INC_004897
    }
    WTYPE_BUTTON WIDC_DOWN "ButtQuickListDn.tga" 0 1000 32 1014 44 0x220010 0 0 0 0
    {
    // Title String
IDS_RESDATA_INC_004898
    }
    {
    // ToolTip
IDS_RESDATA_INC_004899
    }
    WTYPE_CUSTOM WIDC_CUSTOM3 "" 0 1054 10 1194 42 0x260000 0 0 0 0
    {
    // Title String
IDS_RESDATA_INC_004900
    }
    {
    // ToolTip
IDS_RESDATA_INC_004901
    }

}

Resdata.h
Code:
#define APP_TASKBAR1024             2013
#define APP_TASKBAR1280             2014
#define APP_TASKBAR1360W             655
#define APP_TASKBAR1400             662
#define APP_TASKBAR1440W             663
#define APP_TASKBAR1600             653
#define APP_TASKBAR1680W        657
#define APP_TASKBAR1920      2022
#define APP_TASKBAR800             2012

I think he reads in the wrong Applet defined in the resdata.inc, maybe because the ID in resdata.h is wrong. But I dont know how to find out the correct number if thats the issue. I expect that if I have the resolution "1920x1080" in my neuz.ini, then he should go for the APP_Taskbar1920.
 
Newbie Spellweaver
Joined
May 18, 2021
Messages
35
Reaction score
1
Im basically using a v15 vanilla source. Changed the number and tried several values but nothing works. Dunno why tbh, de APP-ID is correct, I have the 1920-Taskbar in my theme folder, but idk
 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
Im basically using a v15 vanilla source. Changed the number and tried several values but nothing works. Dunno why tbh, de APP-ID is correct, I have the 1920-Taskbar in my theme folder, but idk

Did you copy over your Resdata.h and Neuz to your client after compiling? Did you use merge.exe and make new resDatas and copy them over to?
 
Newbie Spellweaver
Joined
May 18, 2021
Messages
35
Reaction score
1
Yes, Resdata is already in my resource folder and I merge Neuz and all the Servers.

Ok well, somehow i fixed it.
Took the value "658", the next value right after the resolution 1680x1050 and it worked now.

No clue how to understand these values, but yea, it worked :D thanks anyways!
 
Inactive
Joined
Jan 20, 2009
Messages
1,014
Reaction score
1,830
Issue was solved & thread moved.

If you feel this is an error @ OP send me a dm.
 
Status
Not open for further replies.
Back
Top