[Guide] TopCP

Custom Title Activated
Loyal Member
Joined
Feb 2, 2008
Messages
1,038
Reaction score
11
ALL CREDITS GO TO SJIKKE!!
I will explain how did i do it, there are other ways and many other ways i will focuse in a easy way.

Get - ToPCP


ToPCP --> http://forum.ragezone.com/redirector.php?url=http://www.megaupload.com/de/?d=WVOIQER3

Install - XAMPP

First of all we will dowload XAMPP, wich will provied use a service of apache(php)/mysql and other...



Once download is done. Time to install it. Its all easy asa do next next and next. Until it finished.

Time to run it, after installit a new icon should appear in your destop.

Heaven - [Guide] TopCP - RaGEZONE Forums


Doble click it.

Heaven - [Guide] TopCP - RaGEZONE Forums


And now then where it says Apache, press start. With this now php is running.

Install - ToPCP

Now is time to "install" ToPCP, first of all after download ToPCP, and exctract it, we copy the folder where ToPCP is in. And we paste where we installed xampp.

If you didnt touch the destination, its in C: so we go to "C:/XAMPP/HTDOCS/" and paste here the folder that contains ToPCP.

Heaven - [Guide] TopCP - RaGEZONE Forums


With this ToPCP is alredy "installed".

To acces ToPCP you will acces like this in your case.

Configure - ToPCP


Now that that is done run the test.php how to do so?

It will give a number our case is "0" your might be different.

Then lest edit the config.php with notepad. And find this line.

Quote
if(strcasecmp($line[2],$eng_job) == 2) // YOU MIGHT NEED TO CHANGE THIS!!!

Where it says 2 put the number test.php gived to you. Ok now lets head at the start of config.php. You will see this:

Quote
$host = '5.205.63.65';
$username = 'sa';
$password = 'ola';
$chinese_jobs = false; //are the jobs stored in chinese?
$count_gm_in_top = true; // Should GMs be counted in the Top 10 lists?
$guild_name_change_price = 100000; // the amount of money it should cost for a guild leader to


The host you should put the ip you use to conect to your server.
Username -->is the sa dont not touch it.
Password -->the one from when you installed the mssql, if you dont rember, you can go change it the password in the mssql for the username sa. *IMPORTANT* maybe the password is nothing '' try it too.

Save the config.php, and go to: and enjoy this great admin and a puer gemmer ^^ for your chars xD If all works will apear this.

Heaven - [Guide] TopCP - RaGEZONE Forums


If no check it all again before asking, and if its some sql problem or some query or something ask Sjikke shes de genius ^^

ERROR

Quote
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 5.205.63.65 in C:\xampp\htdocs\ToPCP\config.php on line 17
Can't connect to DB!!

If, show this your services of db are stop, start it.

-If you dont see the character and account for edit is that you logged with and account that dont have set the permisions of gm lvl to 99. If so go to the open the gamedb the table account and put the gm colum to 99 to your account

is this ToPCP compatible for 1.35 database?

Warning: mssql_query() [function.mssql-query]: message: Cannot insert explicit value for identity column in table 'account_login' when IDENTITY_INSERT is set to OFF. (severity 16) in C:\xampp\htdocs\PrivateServer\config.php on line 23

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\PrivateServer\config.php on line 23



Do this....
Third time I repeat myself. The database has changed, so it wont work that easily on the 1.35 database.

The quickest fix is this:

Look for (in reg.php)
Code:
do_query("INSERT INTO account_login (id,name,password,originalPassword) VALUES ('$id','$login','$encr_pass','$pass')","AccountServer");
Change into
Code:
do_query("INSERT INTO account_login (name,password,originalPassword) VALUES ('$login','$encr_pass','$pass')","AccountServer");
Yeay you can register accounts again!!! Hurray
 
Last edited:
Re: [Guide]TopCP

Code:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: local in C:\xampp\htdocs\ToPCP\config.php on line 17
Can't connect to DB!!!

Checked out everythin from the other post (jae's dbbackup.exe files) and i've got the sql runnin, and still get this error.
 
Re: [Guide]TopCP

Save the config.php, and go to: and enjoy this great admin and a puer gemmer ^^ for your chars xD If all works will apear this.

You can use this program to gem weapons/armors??
if so tell me how.
 
Re: [Guide]TopCP

omg what its this
Parse error: syntax error, unexpected T_DNUMBER, expecting T_VARIABLE or '$' in C:\xampp\htdocs\ToPCP\config.php on line 17
thats say in
pliss need help maybe my pass on database user r incorrect?
but i cant change...or how to change it?
help!! help!!!:punch:
 
Last edited:
Re: [Guide]TopCP

i need help: the problem...
I can connect to my TopCP from my pc, but when i give the link to other ppl, shows an error, i dunno why cuz i dont got http:localhost, i got my hamachi ip.. if some1 knows how to help me tyvm ^^
 
Re: [Guide]TopCP

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: PORTATIL\TOPSERVER in C:\xampp\htdocs\ToPCP\config.php on line 17
Can't connect to DB!!

database is running
i tried with pko server running n not running (yes i can play, its working)
test was 0 n i changed to 0
server name, login n pass are correct because i login with that in sql server management sudio express
but still got that error
how can i fix it?
 
Re: [Guide]TopCP

i get this error when i try log in:?::?::?::?::?:
Warning: Cannot modify header information - headers already sent by (output started at E:\Private 2\xampp\htdocs\ToPCP\config.php:203) in E:\Private 2\xampp\htdocs\ToPCP\login.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at E:\Private 2\xampp\htdocs\ToPCP\config.php:203) in E:\Private 2\xampp\htdocs\ToPCP\login.php on line 24
You logged in. Click here to continue.
 
Re: [Guide]TopCP

How do I fix this error?
Parse error: syntax error, unexpected T_DNUMBER in C:\xampp\htdocs\top_cp\config.php on line 10
 
Re: [Guide]TopCP

help me how do i get this to load a DB and can u help me fix this error:

Parse error: parse error in C:\xampp\htdocs\ToPCP\config.php on line 10


what do i need to do to get my 1st private server up and running i need help
 
Back