JMC network
Welcome Guest!
-------------------
Please Register In Our Forum To get Full Access of Our Forum
- If your not registered, you can click the 'register' button at the end of this message..
- If you are already registered, Please login... Use the button at the end of the message..

**Please Take Part in What Keeps Happening Daily In Our Forum**
---
Forum Administrators -
Jake, Majii and Chris!
JMC network
Welcome Guest!
-------------------
Please Register In Our Forum To get Full Access of Our Forum
- If your not registered, you can click the 'register' button at the end of this message..
- If you are already registered, Please login... Use the button at the end of the message..

**Please Take Part in What Keeps Happening Daily In Our Forum**
---
Forum Administrators -
Jake, Majii and Chris!
JMC network
Would you like to react to this message? Create an account in a few clicks or log in to continue.

JMC network

JMC network for all of you
 
HomeHome  JMC ChatJMC Chat  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

 

 > TopCP < > credtz to SJIKKE > taken from another forum <

Go down 
AuthorMessage
Mac
Low Member
Low Member
Mac


Posts : 9
Join date : 2009-11-19
Age : 28
Location : garden of bloodied roses

> TopCP < > credtz to SJIKKE > taken from another forum < Empty
PostSubject: > TopCP < > credtz to SJIKKE > taken from another forum <   > TopCP < > credtz to SJIKKE > taken from another forum < I_icon_minitimeThu Nov 19, 2009 5:56 am

ALL CREDITS GO TO SJIKKE!!

Get - ToPCP

ToPCP --> [You must be registered and logged in to see this link.]

Install - XAMPP

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

[You must be registered and logged in to see this link.]

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.



Doble click it.



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.



With this ToPCP is alredy "installed".

To acces ToPCP you will acces like this [You must be registered and logged in to see this link.] in your case [You must be registered and logged in to see this link.]

Configure - ToPCP


Now that that is done run the test.php how to do so? [You must be registered and logged in to see this link.]

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: [You must be registered and logged in to see this link.] and enjoy this great admin and a puer gemmer ^^ for your chars xD If all works will apear this.



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");


Should work now

ALL CREDITS TO SJIKKE!!
----------------------------------------
introduceds to JMC network by MC drunken
Back to top Go down
 
> TopCP < > credtz to SJIKKE > taken from another forum <
Back to top 
Page 1 of 1
 Similar topics
-
» Forum Rules ~ MUST READ ~

Permissions in this forum:You cannot reply to topics in this forum
JMC network :: TOP private server development :: Guides-
Jump to: