COPS v6 - F.A.Q. & Bug-fixes

06/02/2013 19:18 CptSky#1
COPS v6 - Bug-fixes

Before doing anything with the source, you have to do few bug-fixes as I released a bad database. You have only two littles modifications to do to the source, the rest is related to the source folder.

1. Changing the ItemType key to load an official ItemType.
Go in the file Database.cs. In the method GetItemsInfo, change the key used by the cipher to 0x2537.

2. Changing the player position at creation.
Go in file Player.cs (of the Database folder). In the method Register, change the Map, X, and Y values to what you want.

3. Updating the CO2_CORE_DLL.
The one released with the project has few bugs. Please use one I specially did for the project. The DLL is for x86 builts as the emulator.

[Only registered and activated users can see links. Click Here To Register...]

4. Updating the whole Emulator folder.
The whole emulator folder needs to be updated as few files will make the emulator failing.

[Only registered and activated users can see links. Click Here To Register...]

5. Updating the whole Database folder.
The whole database folder must be updated with the official CO2 files to work fine with an unedited CO2 client.

[Only registered and activated users can see links. Click Here To Register...]


COPS v6 - F.A.Q.

How to create a new account ?
An account can be created by using the prefix "NEW" the first time. If the account doesn't exist yet, it will be created.

How to change the password of an account ?
The passwords are hashed using the Sha-256 algorithm.

You can use this online generator to get the hashed password :
[Only registered and activated users can see links. Click Here To Register...]

How to configure the server ?
Use your brain to understand both XML configuration files. The only thing I must precise is that you MUST create the SVR file in the Servers folder using the tool.

When I try to connect to my server, the client after the account server.
The unedited client has a proxy protection. Well, it was against localhost IPs. A normal ConquerLoader seems to bypass the Server.dat protection, but not the actual protection against a connection to a localhost server.

You can use the following edited version of the client to bypass the protection.
[Only registered and activated users can see links. Click Here To Register...]

I don't see other players.
Well, you haven't done what I said. You must change the whole Emulator folder has there were bugs in the database files, including the players. The LastUID was invalid due to an invalid player UID, so the client wasn't recognising the players...

I'm disconnected after ~2 minutes.
Players must agree the ToS by using the command @agree.

How can I be a GM / PM.
Set the AccLvl in the account file with the following values.

GM -> 7
PM -> 8
06/02/2013 21:03 Super Aids#2
Regarding itemtype:
Why do you store the key in hex? Shouldn't it just be 2537 in decimal?
If it was in hex wouldn't it be 0x9e9?

When looking at the encryption for itemtype in olly it's stored as decimal, so I assume you're using the same itemtype? Or did you actually change the key from decimal to hex?

06/02/2013 21:05 CptSky#3
Quote:
Originally Posted by Super Aids View Post
Regarding itemtype:
Why do you store the key in hex? Shouldn't it just be 2537 in decimal?
If it was in hex wouldn't it be 0x9e9?

When looking at the encryption for itemtype in olly it's stored as decimal, so I assume you're using the same itemtype? Or did you actually change the key from decimal to hex?[...]
I assume you don't use a lot Olly :) All values are in hexadecimal in Olly. So, it is 0x2537.
06/02/2013 21:10 Super Aids#4
I don't, so I apologize.
06/03/2013 01:09 snipetime#5
An other problem everyone is taking about that they can't translate the npcs because they stop working.

Skip to conclusion if you don't want to read



---------------------------------------
If you change an npc in the folder KCOSS you need to reload the npcs so they get converted to the KCS folder. But there is a bug with the converting

and yes I do both of the folder FR and EN but actually you only have to do the EN folder it running default on that folder

Example lets take 400.ini

I go to KCOSS folder and change 400.ini

I change change Bonjour, je suis l'entraineur des Archers.
to
Hello, je suis l'entraineur des Archers.

and I reload the npcs scripts with the code /reload scripts or I reboot the server it doesn't matter.

in the folder KCS i open 400.kcs with notepad

Before convert : KCS DieuDesArchers 0 G Bonjour, je suis l'entraineur des Archers.

after convert it should go to :

KCS DieuDesArchers 0 G Hello, je suis l'entraineur des

But it don't I get this :

KCS DieuDesArchers 0

---------------------------------------



Conclusion :
the converting program as a bug, it doesn't read the text from 400.ini in KCOSS folder anymore so it makes a empty 400.kcs
When you click on the npc it reads a empty 400.kcs so the npc says noting

Solution :
1) Recode all npcs to the source itself :facepalm:
2) Find the bug :confused:
3)Anyone would like to fix this bug ? :D
4)CptSky would like to fix this bug to ? :handsdown:
06/04/2013 01:18 mostafamemo#6
We Want It English .
06/04/2013 02:41 snipetime#7
Quote:
Originally Posted by mostafamemo View Post
We Want It English .
If someone fix the converting program as a bug. You can translate the whole thing :rolleyes:

I will do it but if I release...... don't think so
06/06/2013 03:28 CptSky#8
Quote:
Originally Posted by snipetime View Post
An other problem everyone is taking about that they can't translate the npcs because they stop working.

Skip to conclusion if you don't want to read



---------------------------------------
If you change an npc in the folder KCOSS you need to reload the npcs so they get converted to the KCS folder. But there is a bug with the converting

and yes I do both of the folder FR and EN but actually you only have to do the EN folder it running default on that folder

Example lets take 400.ini

I go to KCOSS folder and change 400.ini

I change change Bonjour, je suis l'entraineur des Archers.
to
Hello, je suis l'entraineur des Archers.

and I reload the npcs scripts with the code /reload scripts or I reboot the server it doesn't matter.

in the folder KCS i open 400.kcs with notepad

Before convert : KCS DieuDesArchers 0 G Bonjour, je suis l'entraineur des Archers.

after convert it should go to :

KCS DieuDesArchers 0 G Hello, je suis l'entraineur des

But it don't I get this :

KCS DieuDesArchers 0

---------------------------------------



Conclusion :
the converting program as a bug, it doesn't read the text from 400.ini in KCOSS folder anymore so it makes a empty 400.kcs
When you click on the npc it reads a empty 400.kcs so the npc says noting

Solution :
1) Recode all npcs to the source itself :facepalm:
2) Find the bug :confused:
3)Anyone would like to fix this bug ? :D
4)CptSky would like to fix this bug to ? :handsdown:
You can easily fix the bug. The actual parser worked before changing to my CO2_CORE_DLL Ini implementation I think. Just check what is wrong with it in debug mode. The rest is fine.

I won't fix it in near future.
06/06/2013 11:45 snipetime#9
Quote:
Originally Posted by CptSky View Post
You can easily fix the bug. The actual parser worked before changing to my CO2_CORE_DLL Ini implementation I think. Just check what is wrong with it in debug mode. The rest is fine.

I won't fix it in near future.
I run in debug but it says no errors.
Using your new or old CO2_CORE_DLL I still get an empty npc file.
06/14/2013 03:30 itsalex#10
I get a lot of problems running the tools, even though I have netframe 4.0 installed, do I need a lower version?
06/15/2013 14:01 CptSky#11
Quote:
Originally Posted by itsalex View Post
I get a lot of problems running the tools, even though I have netframe 4.0 installed, do I need a lower version?
You must install 3.5. Since .NET 4.0, the framework is no longer backward compatible with older versions.

(Although it might not fix your problems)
06/15/2013 20:40 itsalex#12
Alright got all my issues sorted out except still having problems with the client, (this is my first time dipping into private servers), I'm getting server.dat has been damaged, does that mean I need a modified loader?
06/21/2013 22:43 CptSky#13
Quote:
Originally Posted by itsalex View Post
Alright got all my issues sorted out except still having problems with the client, (this is my first time dipping into private servers), I'm getting server.dat has been damaged, does that mean I need a modified loader?
Use the cracked executable I posted.
09/25/2013 21:36 djneo31#14
Hello my friends, pls i need a little help in this problem :)

[Only registered and activated users can see links. Click Here To Register...]
12/18/2013 15:26 abdeen#15
#Edited

Thanks .. Fixed !!