-
[Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Yeah, yeah no shit guys ..
You finally going to build your sexy source code in visual studio 2012 ..
It took me few hours to figure it out.
But finally I did it :)
Ok, the best part of this tutorial is that I'm going to teach you how to compile it in VS12.
that's mean that you can just use your current source code, and just move to VS12.
Ok that's enough !! ;D
Let's build this motherfucker in VS12 <3
Note: What source code we are going to build ?
I only tested it with the jur13n's source code. (Thread's Link)
But this tutorial will help you with every source code.
Step 1: Open up the project file
I'm going to unrar it from the jur12n's source code.
So we are going to do everything from scratch.
First thing you going to do is to backup your project, if you just downloaded the source code of jur12n's then you don't really have to, but if you using your own source. it may fucked up your source code.
I'm sure in 100% that it won't happen, but who know ;D
Ok, let's get started.
I'm now going to folder Source > Gunz > Gunz.sln (Project file, dah)
Note: The compiler will tell you that he updated the project to VS12, just press OK.
and ofc will open shitty url .. just igonre it ..
Step 2: Setting up the projects
First thing you wanna do is to change the debug mode, or whatever it called to _Encrypt_KOR_Realse_public then will setup everything in the project's propeties. in each project.
So let's make our life a lot easier, and just disable the whole warnnings that we gonna get during the build.
So, you are going to do it in every single project (all the 10)
Tip: You can just click on the next project and it will replace the current 'Propeties window'.
So, right click on the 'project' > Propeties.
In the window that popped up go to C/C++ > Advenced
under Disable Specific Warnnings
Paste it:
Code:
4244;4996;4819;4005;4800;4293;4627;4018;4172;4509;4065;4101
Remember! in every single project!
Okay, we done with this stupid warnnings.
Let's go now to CSCommon > Propeties > C/C++ > Command Line
and paste it:
DO THE SAME FOR Gunz project!
After you did the same for Gunz prject, we still need to change things there ..
so ..
go to Build Events > Pre-Build Event > Command Line
You see this shit ?
Code:
SVNRevision/UpdateRevisionCPP.bat
Good, now DELETE THIS FAG!
One more thing to do in Gunz's project.
go to Linker > Advenced > Image Has Safe Exception Handlers (the last one)
and change the Yes (/SAFESEH) to No (/SAFESEH:NO)
That's all guys, we done with the projects propeties xD
Step 3: Fix all the errors!
oke, let's do it project by project.
Project 'cml':
First thing you wanna do is to know what errors we got ..
Right click on the project > Build.
First error:
Code:
1>Source\FileInfo.cpp(350): error C2065: 'i' : undeclared identifier
go to this line.
and we got that:
Code:
if (i<0)
pszFileName[0] = NULL;
We don't care about it, we gonna go to the loop that we got there.
I'm talking about this one (the only one ;D):
Code:
for(int i=nLen; i>=0; i--) {
if ( (pszFileName[i-1] == '/') ||
(pszFileName[i-1] == '\\') ) {
pszFileName[i-1] = NULL;
return;
}
}
You see the 'int' ? delete it, and on the top of this loop we will write:
So we got:
Code:
void GetParentDirectory(char* pszFileName)
{
// Remove Slash
int nLen = (int)strlen(pszFileName);
if ( (pszFileName[nLen-1] == '/') ||
(pszFileName[nLen-1] == '\\') ) {
pszFileName[nLen-1] = NULL;
}
nLen = (int)strlen(pszFileName);
// Get Parent Directory
int i = 0;
for(i=nLen; i>=0; i--) {
if ( (pszFileName[i-1] == '/') ||
(pszFileName[i-1] == '\\') ) {
pszFileName[i-1] = NULL;
return;
}
}
if (i<0)
pszFileName[0] = NULL;
}
Next error:
Code:
Source\cml\Include\MPageArray.h(33): error C2065: 'greater' : undeclared identifier
Relax, I know you got ton of errors under it, don't worry we will fix them all with few little changes.
double click on that error.
now all we need to scoll a little untill we see:
Code:
#include <crtdbg.h>
Under it add:
Code:
#include <functional>
Oke, let's build cml project and see what we got now ..
So again, right click > Build.
Code:
1>Source\MPdb.cpp(436): error C2664: 'BOOL (HANDLE,PENUMLOADED_MODULES_CALLBACK,PVOID)' : cannot convert parameter 2 from 'overloaded-function' to 'PENUMLOADED_MODULES_CALLBACK'
1> None of the functions with this name in scope match the target type
This one looks easy ;D
the only thing we need to do is just add '(PENUMLOADED_MODULES_CALLBACK)' before the EnumLoadedModulesCallback.
I marked the changes:
Code:
if (!g_pfnEnumerateLoadedModules(hProcess, (PENUMLOADED_MODULES_CALLBACK)EnumLoadedModulesCallback, (PVOID)hProcess))
Final error:
Code:
1>Source\MProfiler.cpp(103): error C2065: 'i' : undeclared identifier
Easy, I marked the changes:
Code:
for(MProfileLoop::iterator i=begin(); i!=end(); i++){
MPROFILELOG* pLog = *i;
if(pLog->nDepth==nMinDepth){
if(pLog->nTotalTime==-1){
nMinDepth++;
nTotalTime = 0;
continue;
}
nTotalTime += pLog->nTotalTime;
}
}
Ok let's build the project again ! and guess what ? Our first succeeded project in VS12 ;D
Project 'CSCommon':
Like the first project, Let's build it and see what we got.
Code:
Source\CML\Include\MPageArray.h(63): error C2065: 'i' : undeclared identifier
Same as we did with cml, in this line:
Code:
for (int i=0; i<nTotalSize; i++)
we will delete the 'int' and add it again above the loop.
Code:
int i = 0;
for (i=0; i<nTotalSize; i++) {
m_Array[i] = 0;
m_UnusedQueue.push(i);
}
Code:
1>Source\MMatchDebug.cpp(5): error C2065: '_secerr_handler_func' : undeclared identifier
Nah, took me few mins to fix it ;D
What can I say ? I'm good with errors ;D
Oke so you see that the error is on MMatchDebug.cpp right ?
Right click on the and choose Open Containing Folder
http://img839.imageshack.us/img839/1028/72cv.png
Sweet, now download my header <3
Download: MediaFire / SolidFiles / MEGA
Now, put it in the folder that you opened .. (CSCommon\Source)
Go back to MMatchDebug.cpp and add it on top:
Code:
#include "stdafx.h"
#include "MMatchDebug.h"
#include "MPdb.h"
#include "ToVS12.h"
BAM, we fixed this badass.
We got teh codz <3
Build this sexy project and guess wut ! another succeeded project ;D
Project 'Gunz':
Build this project, it will take a few mins .. :P
Code:
2>Source\MBButtonLook.cpp(14): error C2065: 'i' : undeclared identifier
EASY:
Code:
for(int i=0; i<4; i++){
m_pFocusBitmaps[i] = NULL;
}
Code:
2>Source\MEdit.cpp(603): error C2065: 'i' : undeclared identifier
Delete the 'int' from the loop, and add it on top.
Code:
int i = 0;
for(i=nLen; i>0; i=PrevPos(m_pBuffer+GetStartPos(), i)){
int nWidth = MMGetWidth(pFont, m_pBuffer+GetStartPos(),i);
if(x>r.x+nWidth){
return i+GetStartPos();
}
}
Code:
2>Source\RAnimationFile.cpp(236): error C2065: 'i' : undeclared identifier
Just add 'int'
Code:
for(int i=0;i<m_ani_node_cnt;i++) {
cnt = m_ani_node[i]->m_mat_cnt;
if(cnt) {
max_frame = m_ani_node[i]->m_mat[cnt-1].frame;
break;
}
}
Code:
2>Source\RAnimationNode.cpp(99): error C2065: 'p' : undeclared identifier
Delete the 'int' from the loop above and add it ..
Code:
int p = 0;
for (p=0;p<key_max;p++) {
if ( pKey[p].frame > frame) {
break;
}
}
if(p) p--;
Code:
2>Source\RAnimationNode.cpp(132): error C2065: 'p' : undeclared identifier
Same thing, delete 'int' and add above.
Code:
int p = 0;
for (p=0;p<m_rot_cnt;p++) {
if ( m_quat[p].frame > frame) {
break;
}
}
Code:
2>Source\RAnimationNode.cpp(164): error C2065: 'p' : undeclared identifier
Delete 'int' and add above ..
Code:
int p = 0;
for (p=0;p<m_pos_cnt;p++) {
if ( m_pos[p].frame > frame ) {
break;
}
}
Code:
2>Source\RAnimationNode.cpp(194): error C2065: 'j' : undeclared identifier
You see that loop with the 'int j' ? delete it and add above.
Code:
int j = 0;
for (j=0;j<m_vertex_cnt;j++) {
if ( m_vertex_frame[j] > dwFrame)
break;
}
Code:
1>Source\MPopupMenu.cpp(230): error C2065: 'i' : undeclared identifier
add 'int'
Code:
for(int i=0; i<m_Children.GetCount(); i++){
MMenuItem* pMenuItem = (MMenuItem *)m_Children.Get(i);
pMenuItem->SetSize(nWidth, pMenuItem->GetHeight());
}
SetSize(nWidth+ir.w-cr.w-1, y+ir.h-cr.h-1);
You have to do that also for the second one ..
Code:
2>Source\ROcclusionList.cpp(66): error C2065: 'j' : undeclared identifier
Code:
for(int j=0;j<poc->nCount;j++)
{
poc->pVertices[j]=*k;
k++;
}
Code:
1>Source\MDrawContext.cpp(653): error C2065: 'i' : undeclared identifier
Scroll up until you see:
Code:
for(int i=0; i<nStrLen; i++)
Yes, you right we are going to delete the int and add it above.
Code:
int i = 0;
for(i=0; i<nStrLen; i++)
{
Code:
2>Source\RPVS.cpp(90): error C2065: 'i' : undeclared identifier
Again for the loop above ..
Code:
int i = 0;
for(i=0;i<pWinding->nCount;i++)
Code:
2>Source\RPVS.cpp(366): error C2065: 'i' : undeclared identifier
Same thing ..
Code:
int i = 0;
for(i=0;i<pWinding->nCount;i++)
Code:
2>Source\RShaderMgr.cpp(106): error C2065: 'i' : undeclared identifier
add size_t ..
Code:
for(size_t i = 0 ; i < m_ShaderDeclVec.size(); ++i )
{
SAFE_RELEASE(m_ShaderDeclVec[i]);
}
Code:
4>Source\RealSoundEffect.cpp(90): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(91): error C3861: 'OutputDebugStr': identifier not found
Add '//' before every line.
Code:
if( hr != DS_OK )
{
//OutputDebugStr( DXGetErrorString8( hr ));
//OutputDebugStr( "\n" );
Code:
4>Source\RealSoundEffect.cpp(102): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(103): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(104): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(105): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(106): error C3861: 'OutputDebugStr': identifier not found
Again .. comment it ..
Code:
if( FAILED ( pDS->CreateSoundBuffer( &dsbd, &(m_pDSSet->m_pDSB), NULL ) ) )
{
//OutputDebugStr( DXGetErrorString8( hr ));
//OutputDebugStr( "\n" );
//OutputDebugStr( "Fail to Create Sound Buffer :" );
//OutputDebugStr( DXGetErrorString8( hr ) );
//OutputDebugStr( "\n" );
m_pDSSet->m_pDSB = NULL;
return false;
}
Code:
4>Source\RealSoundEffect.cpp(733): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(737): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(741): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(745): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(749): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(753): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(761): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(762): error C3861: 'OutputDebugStr': identifier not found
4>Source\RealSoundEffect.cpp(763): error C3861: 'OutputDebugStr': identifier not found
Same thing for all those errors ..
Code:
1>Source\MIDLResource.cpp(2860): error C2440: '=' : cannot convert from 'const char *' to 'char *'
1> Conversion loses qualifiers
Fix:
Code:
pdest = (char*)strrchr(szFileName, '\\');
Do the same for the next one ..
Code:
1>Source\MResourceManager.cpp(46): error C2065: 'i' : undeclared identifier
add 'int' ..
Code:
for(int i=0; i<m_AniBitmaps.GetCount(); i++){
Code:
>ZApplication.cpp(929): error C2440: '=' : cannot convert from 'const char *' to 'char *'
5> Conversion loses qualifiers
5>ZApplication.cpp(943): error C2440: '=' : cannot convert from 'const char *' to 'char *'
5> Conversion loses qualifiers
5>ZApplication.cpp(951): error C2440: '=' : cannot convert from 'const char *' to 'char *'
Yesh you guess right .. add (char*) before every strstr func ..
Build the project ..
we got this:
Code:
2>Runtime\Gunz.exe.manifest : general error c1010070: Failed to load and parse the manifest. ???????? ??? ?????? ???? ?? ????? ?????.
Ok .. easy error :)
In the Gunz project .. click the arrow next to it ..
http://img593.imageshack.us/img593/4366/w7ob.png
Now you see 'Gunz.exe.manifest' ? Delete it !
http://img196.imageshack.us/img196/4489/u65r.png
You gonna get an error .. ignore it ..
Build the project and ... BOOM ! You got it ;D
You welcome :)
Now do me a favor and delete Visual Studio 2003 :0
Credits: ME! and google <3
Yo admin .. stick this sexy thread.
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
thank you very much for this tut, its nice to build it with vs2k12.
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Pretty much nobody will do this,Either cause they are laizy or just dont wana.
But i want to like this thread cause you spended a lot of time in it.You can see that by how detailed this tutorial is
Great job.
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Thank's so much this its very nice, cuz i don't like install winxp64 on my i7-3770k for get vs2003 and build my source u.u cuz already idk how to port the vs2003 source to vs2010. Anyway this have buggy yet? like u post here? http://forum.ragezone.com/f311/got-g...orking-940602/ or its done and fixed?
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
Turunen
Thank's so much this its very nice, cuz i don't like install winxp64 on my i7-3770k for get vs2003 and build my source u.u cuz already idk how to port the vs2003 source to vs2010. Anyway this have buggy yet? like u post here?
http://forum.ragezone.com/f311/got-g...orking-940602/ or its done and fixed?
eveything is fixed ..
Not a single bug :)
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
Xerwell
eveything is fixed ..
Not a single bug :)
I would like to see the proof of the fix, something like a video, before i fuck my source.
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
God Of Sun
I would like to see the proof of the fix, something like a video, before i fuck my source.
Why don't you just 'update' a copy version of it ?
And the compiled gunz.exe is the same as the runnable that everyonce post here ..
the only difference is the size .. (6mb)
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
Xerwell
Why don't you just 'update' a copy version of it ?
And the compiled gunz.exe is the same as the runnable that everyonce post here ..
the only difference is the size .. (6mb)
i already build it in vs2010, anyway don't you have to update this too.
http://i40.tinypic.com/2wgyrn8.png
because if u open 2010 or 2012 from vs2003 solution, i would not change automatic.
so maybe you forgot it to add it. just a tip
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Can anyone help me out here?
Code:
Error 102 error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>>' (or there is no acceptable conversion) C:\Users\Chris\Desktop\Source\CSCommon\Source\MTCPSocket.cpp 931
Error 103 error C2440: '=' : cannot convert from 'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>>' to 'int' C:\Users\Chris\Desktop\Source\CSCommon\Source\RealCPNet.cpp 260
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
God Of Sun
i already build it in vs2010, anyway don't you have to update this too.
http://i40.tinypic.com/2wgyrn8.png
because if u open 2010 or 2012 from vs2003 solution, i would not change automatic.
so maybe you forgot it to add it. just a tip
Nah ..
I don't need it :3
Eeverything working perfect.
Quote:
Originally Posted by
Sensor
Can anyone help me out here?
Code:
Error 102 error C2678: binary '==' : no operator found which takes a left-hand operand of type 'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>>' (or there is no acceptable conversion) C:\Users\Chris\Desktop\Source\CSCommon\Source\MTCPSocket.cpp 931
Error 103 error C2440: '=' : cannot convert from 'std::_Bind<_Forced,_Ret,_Fun,_V0_t,_V1_t,_V2_t,_V3_t,_V4_t,_V5_t,<unnamed-symbol>>' to 'int' C:\Users\Chris\Desktop\Source\CSCommon\Source\RealCPNet.cpp 260
You don't have the '==' operator in the struct ..
You trying to build it in VS12 ? What source code .. ?
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Okay I fixed those errors now im getting some weird shit.
Code:
Error 5 error C1083: Cannot open source file: '..\ClownFish\CFGlobal.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Error 4 error C1083: Cannot open source file: '..\ClownFish\MD5\md5.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Error 3 error C1083: Cannot open source file: '..\ClownFish\MD5\md5wrapper.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Error 2 error C1083: Cannot open source file: '..\ClownFish\Server\CFExe.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Error 1 error C1083: Cannot open source file: '..\ClownFish\Server\CFServer.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Ive tried searching the source for this but I cannot find anything
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Recently I compiled this source with VS2010 and you will not only build errors, and fix game bugs also
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Nice tutorial ! It's help me alot ! Thanks you !
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Removed first error. I just fixed, I just forgot to put _Encrypt_KOR_Release_publish... and add the /Zm thing
------------------------------------------------------------------------------------------
Removed the second error. Fixed : When I change to KOR the /SAFESEH got "enable", I just disable it again.
------------------------------------------------------------------------------------------
Anyway Thanks nice tuto works perfect.
========== Rebuild All: 10 succeeded, 0 failed, 0 skipped ==========
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
I got it working on VS2010. Couple of the errors you posted were in my build error, but got most of it fixed thanks to couple people that helped.
Edit: typo.
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
some1 can help me please??? i getting a error when i trying to build in this step "Project 'CSCommon': Like the first project, Let's build it and see what we got."
when i build that i get this error: http://s2.subirimagenes.com/otros/pr...2sin-ttulo.jpg
Error says: "the project file name ' ' was changed or is no longer in the solution.".
Need help please :/:
EDIT: im already using Oldshoold's clean source posted by jur13n.
Quote:
Originally Posted by
Turunen
some1 can help me please??? i getting a error when i trying to build in this step "Project 'CSCommon': Like the first project, Let's build it and see what we got."
when i build that i get this error:
http://s2.subirimagenes.com/otros/pr...2sin-ttulo.jpg
Error says: "the project file name ' ' was changed or is no longer in the solution.".
Need help please :/:
EDIT: im already using Oldshoold's clean source posted by jur13n.
EDIT2: i guess the first error was fixed but now im still getting error when i triying to build CSCommon like
PHP Code:
typedef void *PVOID;
typedef void * POINTER_64 PVOID64;
PHP Code:
typedef union _FILE_SEGMENT_ELEMENT {
PVOID64 Buffer;
ULONGLONG Alignment;
}FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT;
Error 1 error C2146: syntax error: missing ';' before identifier 'PVOID64' C: \ Program Files (x86) \ Windows Kits \ 8.0 \ Include \ um \ winnt.h 301 1 CSCommon
Error 2 error C4430: missing type specifier int assumed. Note: C + + does not support default-int C: \ Program Files (x86) \ Windows Kits \ 8.0 \ Include \ um \ winnt.h 301 1 CSCommon
Error 3 Error C2146: syntax error: missing ';' before identifier 'Buffer' C: \ Program Files (x86) \ Windows Kits \ 8.0 \ Include \ um \ winnt.h 11698 1 CSCommon
Error 4 error C4430: missing type specifier int assumed. Note: C + + does not support default-int C: \ Program Files (x86) \ Windows Kits \ 8.0 \ Include \ um \ winnt.h 11698 1 CSCommon
any help please??? :(:
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Open your winnt.h (probably should copy and paste it in your desktop and replace it after you're done editing)
Add below 'typedef void *PVOID;':
Code:
#define POINTER_64 __ptr64
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
Modify
Okay I fixed those errors now im getting some weird shit.
Code:
Error 5 error C1083: Cannot open source file: '..\ClownFish\CFGlobal.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Error 4 error C1083: Cannot open source file: '..\ClownFish\MD5\md5.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Error 3 error C1083: Cannot open source file: '..\ClownFish\MD5\md5wrapper.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Error 2 error C1083: Cannot open source file: '..\ClownFish\Server\CFExe.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Error 1 error C1083: Cannot open source file: '..\ClownFish\Server\CFServer.cpp': No such file or directory C:\Users\Chris\Desktop\Source - Copy\CSCommon\c1xx
Ive tried searching the source for this but I cannot find anything
Lol, Gunblade? "ClownFish"
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
Anju
Open your winnt.h (probably should copy and paste it in your desktop and replace it after you're done editing)
Add below 'typedef void *PVOID;':
Code:
#define POINTER_64 __ptr64
Thanks so much :D: now CSCommon was compiled :laugh::laugh::laugh:
but now gunz project is the problem, when i trying to compile i get so many errors like these:
Error 1 error LNK2026: module unsafe SAFESEH an image. D: \ Users \ asd123 \ DATA \ Gunz \ Gunz 1.5 Repack by Jur13n # 2 (Clean) \ stable \ Gunz \ HShield.lib (HShield.obj) Gunz
Error 3 Error LNK2026: module unsafe SAFESEH an image. D: \ Users \ asd123 \ DATA \ Gunz \ Gunz 1.5 Repack by Jur13n # 2 (Clean) \ stable \ Gunz \ d3dx9.lib (d3dxmath.obj) Gunz
so much errors about "module unsafe SAFESEH an image"
can u help me again please :(:
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
turunen
thanks so much :d: Now cscommon was compiled :laugh::laugh::laugh:
But now gunz project is the problem, when i trying to compile i get so many errors like these:
Error 1 error lnk2026: Module unsafe safeseh an image. D: \ users \ asd123 \ data \ gunz \ gunz 1.5 repack by jur13n # 2 (clean) \ stable \ gunz \ hshield.lib (hshield.obj) gunz
error 3 error lnk2026: Module unsafe safeseh an image. D: \ users \ asd123 \ data \ gunz \ gunz 1.5 repack by jur13n # 2 (clean) \ stable \ gunz \ d3dx9.lib (d3dxmath.obj) gunz
so much errors about "module unsafe safeseh an image"
can u help me again please :(:
no (/safeseh:no)
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Very good everything I compile excellent good tutorial
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
when you go to CSCommon > Properties > C/C++ > Command Line and input "/Zm200" into additional options for CSCommon and Gunz, A message on the output shows "3>LINK : warning LNK4044: unrecognized option '/Zm200'; ignored" does that matter?
also -
"5>MMatchServer_AntiHack.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library"
it still complied but I was just curious as this was involved in the steps during the tutorial.
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
ZeidForce
no (/safeseh:no)
LOL XD i forget that xDD thanks man.
PD: so 10 / 10 but if i want to compile matchserver (single mode), matchagent and locator same how i can do? cuz i getting "the project file name ' ' was changed or is no longer in the solution.". error when i open matchserver.project and build.
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
Xerwell
Code:
1>Source\MMatchDebug.cpp(5): error C2065: '_secerr_handler_func' : undeclared identifier
Nah, took me few mins to fix it ;D
What can I say ? I'm good with errors ;D
[...]
Sweet, now download my header <3
This error is actually caused by the fact that the new stdlib header does not declare _secerr_handler_func and _set_security_error_handler.
It's overkill and unnecessary to copypaste the entire old stdlib.h like you do.
Just add these declarations at the top of your MMatchDebug.cpp, below the #include's
PHP Code:
#if defined(_M_IX86)
#define _SECERR_BUFFER_OVERRUN 1
typedef void (__cdecl *_secerr_handler_func)(int, void *);
_CRTIMP _secerr_handler_func __cdecl _set_security_error_handler(_secerr_handler_func);
#endif
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Quote:
Originally Posted by
Franc[e]sco
This error is actually caused by the fact that the new stdlib header does not declare _secerr_handler_func and _set_security_error_handler.
It's overkill and unnecessary to copypaste the entire old stdlib.h like you do.
Just add these declarations at the top of your MMatchDebug.cpp, below the #include's
PHP Code:
#if defined(_M_IX86)
#define _SECERR_BUFFER_OVERRUN 1
typedef void (__cdecl *_secerr_handler_func)(int, void *);
_CRTIMP _secerr_handler_func __cdecl _set_security_error_handler(_secerr_handler_func);
#endif
Never thought of it that way. A friend of mine told me to just remove it (comment it basically).
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
Also you can fix the OutputDebugStr errors by replacing the calls with OutputDebugString, rather than commenting them out.
-
Re: [Tutorial] How to build Gunz 1.5 in Visual Studio 2012
anyone please help me after i build CScommon to see the errors and fix it , i got this
Error 1 error C1083: Cannot open include file: 'afxdb.h': No such file or directory D:\New Folder\source\Source\CSCommon\Include\stdafx.h 14 1 CSCommon