Jump to content
Returning Members: Password Reset Required ×

Recommended Posts

Posted (edited)

 

Hello everyone, I'm planning to play it solo to scratch an itch and after reading some pages this seems to be a complete source. I'm trying to setup this source to play but i cant seem to get it working.

The first thing i do is to compile the source, then copying all the files in the folder "Test Server" to "Data" folder.

I open AccServer.ini and make the modification as follow:

[Socket]
Port = 9958
Backlog = 100

[Program]
Encoding = iso-8859-1
Debug = true

[MySQL]
Host = localhost
Database = copsv6
Username = root
Password = 1234
NbConnections = 5

[IP2Location]
Enabled = false
Host = 192.168.1.114
Database = ip2location
Username = zfserver
Password = 
NbConnections = 5

and i edit MsgServer.ini as following:

[Socket]
Port = 5816
Backlog = 100
ThreadAmount = 5

[Program]
Name = Force
Encoding = iso-8859-1
Debug = true

[MySQL]
Host = localhost
Database = copsv6
Username = root
Password = 1234
NbConnections = 5

[AccMySQL]
Host = localhost
Database = copsv6
Username = root
Password = 1234
NbConnections = 5

[MongoDB]
Host = 192.168.1.114:27017
Database = zfserver
Username = zfserver_user
Password = zfserver_pwd

But i don't know what to put in MongoDB section, should i leave it empty, or delete it

if i try to launch account server it works okay, but running the message server raise this error

[1] COServer.StrRes/INFO  - Overriding string resources...
[1] COServer.Database/ERROR - [MONGO] Unable to connect to server 192.168.1.114:27017: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 192.168.1.114:27017.
[1] COServer.Server/FATAL - Failed to setup MongoDB...

Should i install Mongo also? but reading around the project description it seems to use MySQL but not mentioning anything about Mongo

Edited by SUNSHINE
Posted

That's the problem, i think i will try another source from the recommended section. 

Thanks for the help guys.

Posted

I got Copsv6e working, but only after basically ripping out the mongo system, which breaks/broke the items system to be redone. Not sure about actually getting mongo working. 

Not many if any public sources will be build and play, a lot of them are very old, a lot of them are incomplete and will require some amounts of work. 

Posted
16 hours ago, theshadowpriest said:

I got Copsv6e working, but only after basically ripping out the mongo system, which breaks/broke the items system to be redone. Not sure about actually getting mongo working. 

Not many if any public sources will be build and play, a lot of them are very old, a lot of them are incomplete and will require some amounts of work. 

Wait, is it actually being used for items? I thought it was just included but unused. 

Posted
13 hours ago, Spirited said:

Wait, is it actually being used for items? I thought it was just included but unused. 

Yeah was used, I was toying with it.

On 8/14/2025 at 4:32 AM, theshadowpriest said:

I got Copsv6e working, but only after basically ripping out the mongo system, which breaks/broke the items system to be redone. Not sure about actually getting mongo working. 

Not many if any public sources will be build and play, a lot of them are very old, a lot of them are incomplete and will require some amounts of work. 

I think there is still a bit of leftover for items. Otherwise, take a look at the original COPS v6 release, or here is the commit that introduced Mongo, you may be able to restore a bit of the old code.

 

ab31589b0e4be0cf7cb3103e8368bc87f8fa0e76.diff

Posted

Will try to use, thanks guys for the help, but if i use it with mongo any database i need to execute/use?!

Posted

I installed MongoDB and created a database named zfserver, with username root, and password 1234

I set up the MsgServer.ini as following

[Socket]
Port = 5816
Backlog = 100
ThreadAmount = 5

[Program]
Name = Force
Encoding = iso-8859-1
Debug = true

[MySQL]
Host = localhost
Database = copsv6
Username = root
Password = 1234
NbConnections = 5

[AccMySQL]
Host = localhost
Database = copsv6
Username = root
Password = 1234
NbConnections = 5

[MongoDB]
Host = localhost:27017
Database = zfserver
Username = root
Password = 1234

but i get this error,

+-----------------------------------------------------------------------------+
|   ____ ___  ____  ____     _____ __  __ _   _ _        _  _____ ___  ____   |
|  / ___/ _ \|  _ \/ ___|   | ____|  \/  | | | | |      / \|_   _/ _ \|  _ \  |
| | |  | | | | |_) \___ \   |  _| | |\/| | | | | |     / _ \ | || | | | |_) | |
| | |__| |_| |  __/ ___) |  | |___| |  | | |_| | |___ / ___ \| || |_| |  _ <  |
|  \____\___/|_|   |____/   |_____|_|  |_|\___/|_____/_/   \_\_| \___/|_| \_\ |
|                                                                             |
|                                                                   by CptSky |
|                                                                             |
|                                                                             |
|                   COPS v6 - MsgServer Enhanced 2.0.0.12807                  |
|                      Copyright (C) 2010-2012, 2014-2015                     |
|                                                                             |
+-----------------------------------------------------------------------------+
[1] COServer.StrRes/INFO  - Overriding string resources...
[1] COServer.Database/ERROR - [MONGO] Unable to connect to server localhost:27017: Error getting nonce for authentication..
[1] COServer.Server/FATAL - Failed to setup MongoDB...

its seems to be a problem with authentication but i think the username and password are correct.

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...