Official 5165 FAQ/Question thread

02/08/2014 00:21 Aceking#2086
Your right....

Code:
 if ((MyTeam == null || !MyTeam.Members.Contains(C)) && (MyGuild == null || !MyGuild.Members.Contains(C)) && (Friends == null ||  !Friends.Contains(C)))
return true
else return false;
02/12/2014 07:27 ~Templar~#2087
I don't get it... even with JUST this:

if (MyGuild != null) return !MyGuild.Members.Contains(C);

Team pk still doesn't work for guild members...
How is that even possible? o.o
01/10/2015 14:29 Oblexive#2088
Hey guys, I had a few questions.
First, I wanted to change the EXP Balls so they only had 5 uses per day then after 5 they give half EXP with a maximium use of 10 per day.
Secondly, I am having trouble with magic shields. For some reason they increase damage taken instead of decrease and I dont know how to fix it.
Thirdly, Where in the source do I find the drop rate for meteor / dbs and how rare elites etc are?

I know I asked alot, I figured I would try and get it all out in one post! Thanks guys, really apreciate it!
01/12/2015 00:44 .Beatz#2089
Quote:
Originally Posted by Oblexive View Post
Hey guys, I had a few questions.
First, I wanted to change the EXP Balls so they only had 5 uses per day then after 5 they give half EXP with a maximum use of 10 per day.
Secondly, I am having trouble with magic shields. For some reason they increase damage taken instead of decrease and I don't know how to fix it.
Thirdly, Where in the source do I find the drop rate for meteor / dbs and how rare elites etc are?

I know I asked alot, I figured I would try and get it all out in one post! Thanks guys, really appreciate it!
1) Search the Forum (there are plenty of fixes about).
2) If they are increasing damage you should have a look in the source code for "Magic Shield" || "ITEMID" || something similar to that and look at the code for the shield.
3) Search the Forum (although normally in a text file in the source Database folder).
01/12/2015 08:50 Oblexive#2090
Thanks Beatz but I have searched for ages trying to find something useful and im not having much luck, I wouldn't have bothered posting if I could have found it.. As for the item drops etc i figured that one out on my own. Just having problems with Magic Shield and setting Exp Ball limits still..
02/02/2015 09:01 mahmoudeldeeb#2091
where is the sql file i need it for but it in navicat
02/02/2015 17:05 pro4never#2092
The real question is why would anyone still use ncos? It's been yeaaarssss during which it's a shit source. There's so many better public options these days.

PS: NCOS does not use mysql so there would be no backup for you to use. The source uses flatfile database (text files) for everything.
04/26/2022 15:38 abyong#2093
have you fixed this? im getting same problem


System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) at NewestCOServer.Native.BF_set_key(IntPtr _key, Int32 len, Byte[] data) at NewestCOServer.Main.Blowfish.SetKey(Byte[] data) in C:\Users\HP\Desktop\server work\NewestCOServer\Main\Blowfish.cs:line 85 at NewestCOServer.Main.GameCrypto..ctor(Byte[] key) in C:\Users\HP\Desktop\server work\NewestCOServer\Main\Blowfish.cs:line 15 at NewestCOServer.Main.GameClient..ctor(Boolean Robot) in C:\Users\HP\Desktop\server work\NewestCOServer\Main\GameClient.cs:line 48 System.NullReferenceException: Object reference not set to an instance of an object. at NewestCOServer.Main.GameWorker.ConnectionHandler(S tateObj S) in C:\Users\HP\Desktop\server work\NewestCOServer\Main\GameWorker.cs:line 33
04/26/2022 21:54 pintinho12#2094
Quote:
Originally Posted by abyong View Post
have you fixed this? im getting same problem


System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) at NewestCOServer.Native.BF_set_key(IntPtr _key, Int32 len, Byte[] data) at NewestCOServer.Main.Blowfish.SetKey(Byte[] data) in C:\Users\HP\Desktop\server work\NewestCOServer\Main\Blowfish.cs:line 85 at NewestCOServer.Main.GameCrypto..ctor(Byte[] key) in C:\Users\HP\Desktop\server work\NewestCOServer\Main\Blowfish.cs:line 15 at NewestCOServer.Main.GameClient..ctor(Boolean Robot) in C:\Users\HP\Desktop\server work\NewestCOServer\Main\GameClient.cs:line 48 System.NullReferenceException: Object reference not set to an instance of an object. at NewestCOServer.Main.GameWorker.ConnectionHandler(S tateObj S) in C:\Users\HP\Desktop\server work\NewestCOServer\Main\GameWorker.cs:line 33
You're probably compiling x86 with libeay.dll x64 or the opposite
04/27/2022 03:01 abyong#2095
so how can i fix this?
04/27/2022 05:35 Asphy×ia#2096
Quote:
Originally Posted by abyong View Post
so how can i fix this?
figure out which you currently have and to find a version of the other one. switch in your source directory. voila :)
04/27/2022 07:47 abyong#2097
.huh? what do you mean? btw thank you in advance guys for helping but i really don't know how to solve this can anyone explain it to me clearly? please?
04/27/2022 10:15 Spirited#2098
Quote:
Originally Posted by abyong View Post
.huh? what do you mean? btw thank you in advance guys for helping but i really don't know how to solve this can anyone explain it to me clearly? please?
These servers came out in the Windows XP days before 64-bit processors. Basically, someone needs to come through and clean up all these sources to use NuGet and compile on 64-bit processors. You don't need to do all that though. In Visual Studio, you should see an x64 or x86 in a white box next to the play/run button. Set that to x64 (assuming you're running anything newer than 2005), and replace libeay.dll in your bin directory (build directory) with the 64-bit version of it found here: [Only registered and activated users can see links. Click Here To Register...]. Download the 1.1.x version (don't worry, this is an official mirror for OpenSSL binaries so you don't have to compile them yourself). Hope that helps (I'm racing to close tabs and go to bed). Feel free to ask questions and post screenshots.
04/27/2022 11:48 abyong#2099
Quote:
Originally Posted by Spirited View Post
These servers came out in the Windows XP days before 64-bit processors. Basically, someone needs to come through and clean up all these sources to use NuGet and compile on 64-bit processors. You don't need to do all that though. In Visual Studio, you should see an x64 or x86 in a white box next to the play/run button. Set that to x64 (assuming you're running anything newer than 2005), and replace libeay.dll in your bin directory (build directory) with the 64-bit version of it found here: [Only registered and activated users can see links. Click Here To Register...]. Download the 1.1.x version (don't worry, this is an official mirror for OpenSSL binaries so you don't have to compile them yourself). Hope that helps (I'm racing to close tabs and go to bed). Feel free to ask questions and post screenshots.
can you please tell me whats should i do? and where to find this .dll file? i want to run conquer on my computer
04/27/2022 16:22 pintinho12#2100
Quote:
Originally Posted by abyong View Post
can you please tell me whats should i do? and where to find this .dll file? i want to run conquer on my computer
He already did. Actually Spirited has the most patience here and wrote you a guide on how to fix it giving step by step tips.

If you cannot simply press 2 buttons and copy 1 file, then just play someone else server. I'd like to help but you need to help yourself trying to make something, otherwise claiming that you cannot do something simple as:

1. Change the build target processor to x64 (you can look for Any CPU, x86 or x64 on your Visual Studio)
2. Download the dll which you don't even need to google because Spirited gave you the URL, you just need to download
3. Paste it in your bin directory (which can be found by right clicking the solution in Solution Explorer and selecting "Open folder in explorer") together with the generated executable

I'll try to explain with images

1. [Only registered and activated users can see links. Click Here To Register...]
2. [Only registered and activated users can see links. Click Here To Register...]
3. [Only registered and activated users can see links. Click Here To Register...]
4. [Only registered and activated users can see links. Click Here To Register...]
5. [Only registered and activated users can see links. Click Here To Register...]
6. [Only registered and activated users can see links. Click Here To Register...]
7. [Only registered and activated users can see links. Click Here To Register...]

If after all you couldn't manage to do this, then idk