[Help] WarZ.sln build error
When I try to build WarZ.sln i get an error that says "Link: fatal error LNK1104: cannot open file 'HShield.lib'." I have checked to make sure the file is there and it is. I have also set up a link to it in Visual Studio. Plus I have made sure that it wasn't read only. I'm out of idea's on how to fix it. If anyone could help me i would greatly appreciate it. Thanks in advance.
Re: [Help] WarZ.sln build error
DNC Source?
1. Uncheck "Read Only Mode" on "HShield.lib".
2. Screenshot by Lightshot (Copy those to "External" folder.
Or
Fix HackShield
1. Navigate to WZ\src\External\
2. Copy HShield folder to WZ\bin
3. Navigate to WZ\bin\HShield and delete the following folders
1. Doc
2. Include
3. Lib
4. Sample
4. Navigate to WZ\bin\HShield\Developer and delete the following folder
1. Lib
5. Navigate to WZ\bin\build
6. Open RSBuild.xml in notepad. Select all and delete. Do not close the notepad.
7. Select the code below and paste it to the open RSBuild.xml file and Save changes.
Code:
<build>
<output dir="build\data"/>
<cdn url="http://127.0.0.1/wz/data/"/>
<!-- set base archive for incremental update -->
<!-- <base file="build\data\wz4119100A"/> -->
<!-- include EULA file -->
<include mask="eula-en.htm"/>
<include mask="eula-en.rtf"/>
<include mask="Data\LangPack\dictionary.txt"/>
<!-- excludes for this package files (just in case they was created in this dir -->
<exclude mask="WZ_*.bin"/>
<!-- excludes for debug files -->
<exclude mask="r3dlog.txt"/>
<exclude mask="game.ini"/>
<exclude mask="reports.txt"/>
<exclude mask="MasterServer_ccu.txt"/>
<exclude mask="*.pdb"/>
<exclude mask="*.exp"/>
<exclude mask="*.lib"/>
<exclude mask="*.bat"/>
<exclude mask="*.vmp"/>
<!-- excludes for other binaries -->
<exclude mask="Studio*.*"/>
<exclude mask="MasterServer.*"/>
<exclude mask="MasterServer_Rent.*"/>
<exclude mask="RentFullDir.cfg"/>
<exclude mask="WZ_GameServer.*"/>
<exclude mask="SupervisorServer.*"/>
<exclude mask="RSBuild.*"/>
<exclude mask="RSUpdate.*"/>
<exclude mask="Launcher.exe"/>
<exclude mask="Launcher.exe_1.0.0.exe"/>
<exclude mask="WZAdmin.*"/>
<exclude mask="WarZ_unpack.exe"/>
<exclude mask="*.log"/>
<exclude mask="*.suo"/>
<exclude mask="*.bat"/>
<exclude mask="gameSettings.ini"/>
<exclude mask="local.ini"/>
<exclude mask="windows_error_report_mapping.xml"/>
<!-- Dlls -->
<exclude mask="PhysX3CharacterKinematic_x86.dll"/>
<exclude mask="PhysX3CharacterKinematicCHECKED_x86.dll"/>
<exclude mask="PhysX3CharacterKinematicDEBUG_x86.dll"/>
<exclude mask="PhysX3CharacterKinematicPROFILE_x86.dll"/>
<exclude mask="PhysX3CHECKED_x86.dll"/>
<exclude mask="PhysX3CommonCHECKED_x86.dll"/>
<exclude mask="PhysX3CommonDEBUG_x86.dll"/>
<exclude mask="PhysX3CommonPROFILE_x86.dll"/>
<exclude mask="PhysX3CookingCHECKED_x86.dll"/>
<exclude mask="PhysX3CookingDEBUG_x86.dll"/>
<exclude mask="PhysX3CookingPROFILE_x86.dll"/>
<exclude mask="PhysX3DEBUG_x86.dll"/>
<exclude mask="PhysX3GpuCHECKED_x86.dll"/>
<exclude mask="PhysX3GpuDEBUG_x86.dll"/>
<exclude mask="PhysX3GpuPROFILE_x86.dll"/>
<!-- Dlls -->
<include mask="ApexFramework_x86.dll"/>
<include mask="avcodec-52.dll"/>
<include mask="avformat-52.dlll"/>
<include mask="avutil-50.dll"/>
<include mask="CrashRpt1301.dll"/>
<include mask="cudart32_32_16.dll"/>
<include mask="dbghelp.dll"/>
<include mask="fmod_event.dll"/>
<include mask="fmod_event_net.dll"/>
<include mask="fmod_event_netL.dll"/>
<include mask="fmod_eventL.dll"/>
<include mask="fmodex.dll"/>
<include mask="fmoxedL.dll"/>
<include mask="icudt46.dll"/>
<include mask="PhysX3_x86.dll"/>
<include mask="PhysX3Common_x86.dll"/>
<include mask="PhysX3Cooking_x86.dll"/>
<include mask="PhysX3Gpu_x86.dll"/>
<include mask="PhysX3PROFILE_x86.dll"/>
<include mask="steam_api.dll"/>
<include mask="VMProtectSDK32.dll"/>
<include mask="APEX_Loader_x86.dll"/>
<!-- excludes for build directories -->
<exclude mask="1"/>
<exclude mask="build"/>
<exclude mask="logs"/>
<exclude mask="bin"/>
<exclude mask="server"/>
<exclude mask="tools"/>
<exclude mask="logs"/>
<exclude mask="logms"/>
<exclude mask="logss"/>
<exclude mask="logsv"/>
<!-- include for Hackshield directories -->
<include mask="HackShield"/>
<include mask="HShield"/>
<include mask="*.ui"/>
<include mask="*.aht"/>
<include mask="*.ahc"/>
<include mask="ahnrpt.ini"/>
<include mask="bldinfo.ini"/>
<include mask="Amazon.ini"/>
<include mask="BldInfo.ini"/>
<include mask="HSBGen.ini"/>
<include mask="*.hsb"/>
<include mask="*.id"/>
<include mask="*.env"/>
<include mask="*.mhe"/>
<include mask="*.msd"/>
<include mask="*.key"/>
<include mask="*.scd"/>
<include mask="*.uic"/>
</build>
8. Navigate to WZ\src\RSBuild\Sources
9. Open r3dFSBuilder.cpp with visual studio
10. Search for code below:
Code:
DWORD r3dFSBuilder::DetectFileFlags(const char* fname)
{
if(pattern_match(fname, "*.exe") ||
pattern_match(fname, "*.dll") ||
pattern_match(fname, "DirectX.dll") ||
pattern_match(fname, "d3d11x.dll") ||
pattern_match(fname, "*.bmp") ||
pattern_match(fname, "*.manifest") ||
pattern_match(fname, "crashrpt*.ini"))
{
return r3dFS_FileEntry::FLAG_EXTRACT;
}
return 0;
}
11. Replace the whole code block with code below.
Code:
DWORD r3dFSBuilder::DetectFileFlags(const char* fname)
{
if(pattern_match(fname, "*.exe") ||
pattern_match(fname, "*.dll") ||
pattern_match(fname, "DirectX.dll") ||
pattern_match(fname, "d3d11x.dll") ||
pattern_match(fname, "*.bmp") ||
pattern_match(fname, "*.manifest") ||
pattern_match(fname, "crashrpt*.ini") ||
pattern_match(fname, "*.ui") ||
pattern_match(fname, "*.aht") ||
pattern_match(fname, "*.ahc") ||
pattern_match(fname, "*.hsb") ||
pattern_match(fname, "*.id") ||
pattern_match(fname, "*.env") ||
pattern_match(fname, "*.mhe") ||
pattern_match(fname, "*.msd") ||
pattern_match(fname, "*.key") ||
pattern_match(fname, "*.scd") ||
pattern_match(fname, "*.uic") ||
pattern_match(fname, "ahnrpt.ini") ||
pattern_match(fname, "bldinfo.ini") ||
pattern_match(fname, "Amazon.ini") ||
pattern_match(fname, "BldInfo.ini") ||
pattern_match(fname, "HSBGen.ini")
)
{
return r3dFS_FileEntry::FLAG_EXTRACT;
}
return 0;
}
12. Save changes and close the file.
Sources: RaGEZONE'S billion help threads.
1 Attachment(s)
Re: [Help] WarZ.sln build error
Attachment 160231
I forgot to mention I am using the ActivityZ source. I don't know if that will make a difference. I have tried just about everything I could find. The only thing I haven't tried yet is the HShield fix in the tutorial that you mentioned. I will try that now and see what happens. Thanks.
- - - Updated - - -
Still getting the same error as before. Nothing changed by doing the hackshield fix.
Re: [Help] WarZ.sln build error
Can you verify that "Hackshield.lib" even exists?
Re: [Help] WarZ.sln build error
Quote:
Originally Posted by
The Unknown
Can you verify that "Hackshield.lib" even exists?
yeah i already checked that and it is there. That is what has me so confused. lol
Re: [Help] WarZ.sln build error
try to add lib's path on visual studio.
Screenshot by Lightshot look at this
Re: [Help] WarZ.sln build error
Quote:
Originally Posted by
Adnan DatLife
Tried that already also.