Jump to content
Silfro

PKO 2.4 Server Source Code [VS2017]

Recommended Posts

Hi there,

 

I remembered I had the PKO source code on my HD and noticed it is not possible to compile it with visual studio 2017 so I've fixed it.

 

To compile the server:

Open the folder PKO_2_4 -> Server and double click the "Server.snl" file. Now visual studio will pop up. 

Go to Build -> Build Solution and the Libs including servers will build.

 

I did not test if the files work because I do not have sql server installed.

 

If anyone is interested in the client, then tell me and Ill also fix the client.

 

PS: Make sure you have "Release" selected and not Debug or anything else.

 

Info: In the file "PrivilegeCheck.cpp" you might want to change the function

bool PrivilegeCheck::IsAdmin(const char* accountName, const char* ip)
{
#ifdef _DEBUG
		return true;	
#else
	// Ä¿Ç°IP»¹È¡²»µ½£¬ÒÔºó×·¼Ó¹«Ë¾IPÏÞÖÆ
	//if(strcmp(accountName, "GameTest1") == 0 && 
	//	(strcmp(ip, "116.228.42.71") == 0 || strcmp(ip, "10.0.30.60") == 0))
	if(strcmp(accountName, "gametest1") == 0)
	{
		return true;
	}
#endif

	return false;
}

to

bool PrivilegeCheck::IsAdmin(const char* accountName, const char* ip)
{
#ifdef _DEBUG
	return true;
#endif
	return false;
}

otherwhise the person with the account name "gametest1" seems to be an admin.

 

Download Link:

https://mega.nz/#!fVNz0TLT!mRSmm3bJgVo3kkTVNiRGZuaG7cuLA-xcwHBOn0iUrPo

  • Like 6

Share this post


Link to post
Share on other sites

I could try and compile it without. But I need directx 8 libs compiled with VS 2017. Otherwise you can download visual studio 2005 and use it to compile the game client.

Edited by Silfro
  • Like 1

Share this post


Link to post
Share on other sites

well I did release the src code with top-recode at https://gitlab.com/deguix/top-recode/. Its based on the modified src from top2 files. I just didn't bother to make a post yet, or even to update after that ;/. It includes source for both client and server (except trade server).

 

The reason that I didn't mention it yet is because I didn't fix a major bug that prevents showing of some effects (like the intense magic).

Edited by deguix
  • Like 4

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...