Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
YES! Battlezone II CAN work with winex!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
lagitus
n00b
n00b


Joined: 04 Jan 2004
Posts: 17

PostPosted: Sat Feb 07, 2004 10:55 am    Post subject: YES! Battlezone II CAN work with winex! Reply with quote

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.
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum