Graphical glitch with letters upon changing resolution

Results 1 to 18 of 18
  1. #1
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Graphical glitch with letters upon changing resolution

    Hey everyone. I'm using the jur13n 1.5 repack with the clean server and client. I compiled my own gunz.exe in order to fix the resolution bug (always showing 640x480 with his repack) but I don't think this has to do with this, since no matter the .exe I use, sometimes when a go from a resolution to another (not all resolutions) , I get this glitch :
    http://img4.hostingpics.net/pics/850...0301061065.png (before changing resolution)

    http://img4.hostingpics.net/pics/180...0302060843.png (after)

    and the only way to fix this is to restart the game.

    Also, I noticed that with the repack, the cursor (while in the lobby or in the login) has some weird pixels on the top right (you can see it in the second screen, like a really really small vertical black bar). Not the case with other clients, although this is just a detail, and replacing default.mrs didn't solve that weird cursor thingy so it has nothing to do with the cursors.png I guess

    Does anyone have a clue on how to fix these two things please ?


  2. #2
    Proficient Member Mr_Troy is offline
    MemberRank
    Jun 2007 Join Date
    172Posts

    Re: Graphical glitch with letters upon changing resolution

    Hint: font reset.

  3. #3
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Re: Graphical glitch with letters upon changing resolution

    unfortunately I don't get what you mean :/

  4. #4
    Hakuna Matata bulli10 is offline
    MemberRank
    Feb 2011 Join Date
    697Posts

    Re: Graphical glitch with letters upon changing resolution

    re enter gunz after this

  5. #5
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Re: Graphical glitch with letters upon changing resolution

    I already know that restarting the game fix this but that's not what I'm interested in. I don't want to have to restart the game. Also, no one has an idea for that cursor ?

  6. #6
    Alpha Member Chrisss is offline
    MemberRank
    Feb 2012 Join Date
    Ask the Fox!Location
    1,660Posts

    Re: Graphical glitch with letters upon changing resolution

    ZOptionInterface.cpp Your problem is there.

  7. #7
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Re: Graphical glitch with letters upon changing resolution

    I already replaced ZOptionInterface.cpp by various ones since I've done a ton of research (which solved the resolution bug that has the jur13n client). Don't really see where the problem is in the code. Could you point me to a ZOptionitnerface.cpp that would fix this ?

  8. #8
    Alpha Member Chrisss is offline
    MemberRank
    Feb 2012 Join Date
    Ask the Fox!Location
    1,660Posts

    Re: Graphical glitch with letters upon changing resolution

    ZOptionInterface.cpp

    Replace this:

    Code:
    // ComboBox
    {
    MComboBox *pWidget = (MComboBox*)pResource->FindWidget("ScreenResolution");
    if(pWidget)
    {
    pWidget->RemoveAll();
    gDisplayMode.clear();
    
    int dmIndex = 0;
    char szBuf[256];
    
    D3DDISPLAYMODE ddm;
    
    D3DFORMAT format[2] = {
    D3DFMT_X8R8G8B8,
    D3DFMT_R5G6B5
    };
    
    for( int i=0;i<2;i++) 
    {
    [I]int nDM = RGetAdapterModeCount( format );
    
    mlog("Number of Display mode : %d\n", nDM );
    
    for( int idm = 0 ; idm < nDM; ++idm )
    {
    [I]if( REnumAdapterMode( D3DADAPTER_DEFAULT,format, idm, &ddm ))
    {
    if( ddm.Width < 640 || ddm.Height < 480 )
    continue;
    
    if( ((float)ddm.Height / (float)ddm.Width != 0.75f) && 
    ((float)ddm.Height / (float)ddm.Width != 0.625f) )
    continue;
    
    ddm.RefreshRate = DEFAULT_REFRESHRATE;
    
    if( ddm.Format == D3DFMT_X8R8G8B8 || ddm.Format == D3DFMT_R5G6B5 )
    {
    map<int, D3DDISPLAYMODE>::iterator iter_ = find_if( gDisplayMode.begin(), gDisplayMode.end(), value_equals<int, D3DDISPLAYMODE>(ddm));
    if( iter_ == gDisplayMode.end() )
    {
    gDisplayMode.insert( map<int, D3DDISPLAYMODE>::value_type( dmIndex++, ddm ) );
    sprintf( szBuf, "%d x %d %dbpp", ddm.Width, ddm.Height, ddm.Format==D3DFMT_X8R8G8B8?32:16 );
    pWidget->Add(szBuf);
    }
    }
    }
    }
    }
    
    // ¸¸¾à µî·ÏµÈ ÇØ»óµµ°¡ Çϳªµµ ¾øÀ»°æ¿ì °­Á¦·Î µî·Ï
    if( gDisplayMode.size() == 0 )
    {
    for( int i = 0 ; i < 10; ++i )
    {
    ddm.Width = widths[i/2];
    ddm.Height = heights[i/2];
    ddm.RefreshRate = DEFAULT_REFRESHRATE;
    ddm.Format = ( ( i%2 == 1) ? D3DFMT_X8R8G8B8 : D3DFMT_R5G6B5 );
    
    int bpp = (i%2 == 1)? 32 : 16;
    gDisplayMode.insert( map<int, D3DDISPLAYMODE>::value_type(i,ddm) );
    sprintf( szBuf, "%dx%d %d bpp", ddm.Width, ddm.Height, bpp );
    pWidget->Add( szBuf );
    }
    }
    ddm.Width = RGetScreenWidth();
    ddm.Height = RGetScreenHeight();
    ddm.RefreshRate = DEFAULT_REFRESHRATE;
    ddm.Format = RGetPixelFormat();
    map< int, D3DDISPLAYMODE>::iterator iter = find_if( gDisplayMode.begin(), gDisplayMode.end(), value_equals<int, D3DDISPLAYMODE>(ddm));
    pWidget->SetSelIndex( iter->first );
    }
    

  9. #9
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Re: Graphical glitch with letters upon changing resolution

    I modified my ZOptionInterface.cpp like that and it won't compile (i'm using vs 2012) because I is not declared (line 141 and 147) and also it cannot convert the parameter 2 of D3DFORMAT [2] into D3DFORMAT :\ .

  10. #10
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: Graphical glitch with letters upon changing resolution

    Looks like you have anti-aliasing enabled? (atleast that's what happens when I enable it) GunZ Font doesn't like anti-aliasing. If you have it enabled in like, nvcp, close GunZ then relaunch and the text will be fixed.

  11. #11
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Re: Graphical glitch with letters upon changing resolution

    I have it disabled by default. But I think the client has anti aliasing enabled somewhere but I can't really see where to disabled it.

    edit : hm no, in my config.xml antialiasing is at 0.

    Thank you for helping me so far anyway, but still no real solutions to either the cursor weird pixels and the letters glitch :/

  12. #12

    Re: Graphical glitch with letters upon changing resolution

    Quote Originally Posted by tmlp View Post
    I have it disabled by default. But I think the client has anti aliasing enabled somewhere but I can't really see where to disabled it.

    edit : hm no, in my config.xml antialiasing is at 0.

    Thank you for helping me so far anyway, but still no real solutions to either the cursor weird pixels and the letters glitch :/
    Are you using any software that forces AA?
    For example, AMD's CCC has the ability to force AA.

  13. #13
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Re: Graphical glitch with letters upon changing resolution

    I'm already using the application settings unfortunately :/
    I don't have this problem with other clients like the 2007 one or some other pservers' client.

  14. #14
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: Graphical glitch with letters upon changing resolution

    bring back the old ZOptionInterface.cpp (the one came with the repack)...
    and try only editing what's in this: http://forum.ragezone.com/f245/grego...n-fix-1001004/
    if it didn't work, then post error log we might know what's the problem :)
    GL mate !

  15. #15
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Re: Graphical glitch with letters upon changing resolution

    didn't change anything, I could already change my resolution how I liked anyway, that's not the issue. The thing is there is error log. If I go from a resolution to another, I guess same width/height ratio, then this bug doesn't occur. That's just really weird.
    Also, I still have no clue about the cursor thingy, I don't understand since I don't get any of this glitches on other clients (that were not released by jur13n or phoenix) but since they are not clean, I don't like them because it's not gunz anymore to me :/

    edit : no nvm, the glitch occur even with the same width/height ratio. Does anyone have a link for a clean 1.5 client that doesn't have those problems please ? Couldn't find one :/
    Last edited by tmlp; 03-07-14 at 09:44 PM.

  16. #16
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: Graphical glitch with letters upon changing resolution

    Check in the source and see if antialiasing has been coded into it, and see if it's set to be enabled by default. If so, change it.

  17. #17
    Enthusiast tmlp is offline
    MemberRank
    Apr 2014 Join Date
    28Posts

    Re: Graphical glitch with letters upon changing resolution

    Indeed, from the readme that comes with the client, it is stated that anti-aliasing is added as a mod. But I have no clue on how to remove it or even how it was coded/added :/

    - - - Updated - - -

    Ok, problem solved. The cursor bug I described and the letters glitch occured because of anti aliasing. To remove it, just remove the line with the anti aliasing boxes in the config.xml.

  18. #18
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: Graphical glitch with letters upon changing resolution

    Alright if that fixed it then it sounds like AA is defaultly enabled :p



Advertisement