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 ?
Re: Graphical glitch with letters upon changing resolution
Re: Graphical glitch with letters upon changing resolution
unfortunately I don't get what you mean :/
Re: Graphical glitch with letters upon changing resolution
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 ?
Re: Graphical glitch with letters upon changing resolution
ZOptionInterface.cpp Your problem is there.
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 ?
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 );
}
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 :\ .
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.
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 :/
Re: Graphical glitch with letters upon changing resolution
Quote:
Originally Posted by
tmlp
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.
http://i.imgur.com/hg21XeZ.png?1
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.
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 !
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 :/