lagitus n00b
Joined: 04 Jan 2004 Posts: 17
|
Posted: Sat Feb 07, 2004 10:55 am Post subject: YES! Battlezone II CAN work with winex! |
|
|
So far Battlezone II didn't work with winex. Everything seemed to look white and untextured. If you moved close to a building for example you could see the texture faintly so I assumed the problem was fog.
This is how I got it to work with the latest winex 3.2.1:
- I installed the game, patched it to the latest version 1.2beta and installed a no-cd crack because CD detection didn't work. The game ran with the dense fog problem described above.
- I downloaded the latest source code from CVS and found that fog was enabled in winex/dlls/d3dgl/state.c
- To disable fog do this:
Find the function D3D_GL_fog_enable and add the line:
glDisable(GL_FOG);
to the end so the function ends like this:
.......
else if (priv->isFogEnabled) {
glDisable(GL_FOG);
priv->isFogEnabled = FALSE;
}
glDisable(GL_FOG); //<--ADDED THIS LINE
}
Then find the function GL_setup_linear_fog and add the lines:
glDisable(GL_FOG);
priv->isFogEnabled = FALSE;
so the end looks like this:
.......
}
else if (!priv->isFogEnabled) {
/* re-enable fog if we need to */
D3D_GL_fog_enable(priv, 0);
}
glDisable(GL_FOG); //<--ADDED THIS LINE
priv->isFogEnabled = FALSE; //<--AND THIS
}
-Then compile the source code by doing
./configure
make depend
make
-Wait until libd3dgl.so appeas in the d3dgl directory and copy it over the same file in your winex installation (mine was /usr/lib/transgaming_winex3/winex/lib).
You might want to make a backup first.
Now fog should be disabled and BZ2 should be playable with some minor graphical bugs and sound problems.
|
|