Hello guys. Well, some time i have been studying sudden attack source's and, recently, i came across a strange problem, and i believe that many already had here ! Normally, on Sdf sources, the letters of game are pink, not pink, but a mask pink behind the letters, and, comparing two sources i could find the problem !
Well, first you nee to go to file:
In ClientShellShared/Source;
Then, you will look for this code:
There, if you try to compile the release version, you will get an error when start the game. This happens, cause here has a error, not a error, a warning. One of the two variables that are dividing, receive the value 0, so, the compiler cannot do a operation dividing by zero ! This is a logical error !
then,that was the way I found to fix !
You will insert this code prior to the above !
What we do here ? Simple, if you debug the game you will see that the "m_nWidth" already has a value , so, we just exchange the number 0 with, one that divided the other, will return fewer than 0. In case 1.
Well, thanks a lot for all. God Bless you !
Well, first you nee to go to file:
Code:
HanText.cpp
In ClientShellShared/Source;
Then, you will look for this code:
Code:
m_nTextureCols = m_nWidth/m_nTextureWidth;
if( (m_nWidth%m_nTextureWidth) > 0 ) ++m_nTextureCols;
There, if you try to compile the release version, you will get an error when start the game. This happens, cause here has a error, not a error, a warning. One of the two variables that are dividing, receive the value 0, so, the compiler cannot do a operation dividing by zero ! This is a logical error !
then,that was the way I found to fix !
You will insert this code prior to the above !
Code:
m_nTextureWidth = 512;
m_nTextureHeight = 23 ;
What we do here ? Simple, if you debug the game you will see that the "m_nWidth" already has a value , so, we just exchange the number 0 with, one that divided the other, will return fewer than 0. In case 1.
Well, thanks a lot for all. God Bless you !