- Joined
- Jan 15, 2014
- Messages
- 69
- Reaction score
- 20
====================================================================
[Introduction]
Sorry I have these nonsense, but I'm sorry I bad English.
But I still want to say, I spent a lot of nights without sleep.
I failed more than 20 times, each time need to re-build the solution.
Nearly every need about two hours.
I finally found a solution, this is not luck.
Some old articles communities through.
Some of my friends for their support and help, I have the ideas and motivation.
I hope that we can record the video as a kind of thinking, rather than suit exactly the same operation.
Thank you, I hope to help you.
====================================================================
Hello everyone.
This time I found a solution to SQL error code: Method 8.
But ......
This relates to modify the source code of some of the key positions.
So!
Be sure to remember to back up! ! !
First, SQL error code: 8 cause is due to the source IP address does not lead to the correct settings.
The game will be prompted to enter the account number or password is incorrect this prompt.
The first step:
Make sure your IP address, such as my server IP address is [192.168.0.5], so I need to put the source code amendments become part of [127.0.0.1] [192.168.0.5].
As a local test, not the external network.
(However, as a reference to build external network connections, fun with friends!)
See my operation.
We mainly modify these four SLN file inside IP address.
So we follow the order.
src \ RSBuild \ RSBuild.sln Release
src \ RSUpdate \ RSUpdate.sln Release
src \ server \ WarZ_Server.sln Debug
src \ eclipsestudio \ WarZ.sln Final
src \ eclipsestudio \ WarZ.sln Release
src \ Scripts \ WZBackend-ASP.NET build Debug & Publish site (default IIS site location is localhost C: \ inetpub \ wwwroot \ api) <--- important
You can see my RSBuild, there is no [127.0.0.1].
So there's IP address can all be modified to your local IP.
Oh, yes, how to check your local IP?
Look at my operation.
IPV4, if you do not have WIFI, or router.
That should be your IP or external network IP [127.0.0.1].
So!
RSBuild there's all [127.0.0.1], set your 192.168.XXX.XXX, or [127.0.0.1].
Clear solution and then recompile.
Next.
RSUpdate
Let's take a look.
So here is the same,
RSUpdateRSBuild there's all [127.0.0.1], set your 192.168.XXX.XXX, or [127.0.0.1].
Code:
CkHttpResponse * resp = http.SynchronousRequest ("127.0.0.1", 80, false, req); / / 202.162.78.182
if (! resp)
r3dError ("timeout getting lootbox db");
This section maintained [127.0.0.1], do not modify.
Code:
/ / Add localhost binding as well
binds [numBinds + +] = RakNet :: SocketDescriptor (port, "192.168.0.5");
return numBinds;
}
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
AHNHS_EXT_ERRORINFO HsExtError;
sprintf (HsExtError.szServer, "% s", "192.168.0.5");
sprintf (HsExtError.szUserId, "% s", "GameUser");
sprintf (HsExtError.szGameVersion, "% s", "1.0.0.1");
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
REG_VAR (g_serverip, "192.168.0.5", 0); / / 192.168.0.5 - IP of dev server where we host dev master \ supervisor
REG_VAR (g_api_ip, "192.168.0.5", 0); / / 192.168.0.5
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
const char * IPV6_LOOPBACK = ":: 1";
const char * IPV4_LOOPBACK = "192.168.0.5";
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
# If! Defined (_XBOX) &&! Defined (X360)
if (strcmp (ip, "192.168.0.5") == 0 | | strcmp (ip, "localhost") == 0)
return true;
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
# Else
if (strcmp (ip, "2130706433") == 0) / / 192.168.0.5 big endian
return true;
# Endif
return false;
}
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
# If! Defined (_XBOX) &&! Defined (X360)
if (strcmp (ip, "192.168.0.5") == 0 | | strcmp (ip, "localhost") == 0)
return true;
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
# Else
if (strcmp (ip, "2130706433") == 0) / / 192.168.0.5 big endian
return true;
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
# If! Defined (_XBOX) &&! Defined (X360)
if (strcmp (ip, "192.168.0.5") == 0 | | strcmp (ip, "localhost") == 0)
return true;
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
# Else
if (strcmp (ip, "2130706433") == 0) / / 192.168.0.5 big endian
return true;
# Endif
return false;
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Code:
# If! Defined (_XBOX) &&! Defined (X360)
if (strcmp (ip, "192.168.0.5") == 0 | | strcmp (ip, "localhost") == 0)
return true;
Here fill in your 192.168.XXX.XXX, or 127.0.0.1
Some code may repeat the above.
However important, this document which is no external network exists.
If the source code required to localhost, 127.0.0.1, please be sure to fill
The most important! ! ! ! ! ! ! ! ! ! ! ! !
Code:
/ / Override API settings
g_api_ip-> SetString ("chutszhin.vicp.net"); / / external
g_serverip-> SetString ("chutszhin.vicp.net"); / / external
g_bEditMode = false;
ExecuteNetworkGame ();
break;
};
This code Fill in your external IP, or domain name.
All other 127.0.0.1
All fixed, or replaced by your local IP, 192.168.XXX.XXX
The same procedure
Remember Clean Solution
Then Rebuild Solution
I am here six files opened
All modifications to the IP inside your external IP or domain name
There are step
Very important
Be sure to re-RSBuild.exe
Before RSBuild.exe
Deletion build / DATA /
All files inside
Deletion
Then RSBuild.exe
Give it a good environment
Do not operate the mouse and keyboard
Do not modify any files
Completed generating wait
Remember RSBuild.exe
Finally, a
When you are finished modifying all the files
Only need to do this step
Last edited by a moderator: