Register for your free account! | Forgot your password?

You last visited: Today at 06:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Guide] how to setup your source.

Discussion on [Guide] how to setup your source. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
[Guide] how to setup your source.

I know i know there is allot of guides showing how to setup a source, but i am only going to show the basic things you need to fill to make your source work.

Note: the only reasion i am posting is to make sure people stop making thread and saying i cant setup,


Here is some basic things that public sources use.



1. server name

when you go to bin/debug/config, you will see your setup options there will be something like server name



2. KillConection.cs


allot of sources use this, and sometimes there is a option there to put your ip there like this source



idk if its right to use ip and everything in killconection some sources for example my don't have that option, but if you do make sure to fill that in.


2. app.config

sources use app.config, and sometimes its just something like this



and sometimes its like this

SO if its something like this then make sure to fill it in.


and some sources have a ip config in there program.cs where you need to put the ip in order to get it work.

Well that's all for now i hope this help,cya all.
LordGragen. is offline  
Thanks
2 Users
Old 05/27/2013, 19:12   #2
 
elite*gold: 0
Join Date: Oct 2011
Posts: 85
Received Thanks: 10
How about, server.dat inside the client's folder? Should that be configured aswell ?- if Decrypted. If Encrypted - Loader !

Nice tut. Quite simple & Easy
+REP!
MKD_BoY is offline  
Old 05/27/2013, 23:43   #3
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
I was hoping this would be some hilarious post where the OP was going to be like, "Don't."
InfamousNoone is offline  
Thanks
1 User
Old 05/27/2013, 23:50   #4
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Does not work with mine
Super Aids is offline  
Thanks
1 User
Old 05/30/2013, 02:32   #5
 
Deathmist's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 126
Received Thanks: 74
What about navicat? Most of the sources wont work if the server name in configuration table is not correct.
Deathmist is offline  
Old 05/30/2013, 02:40   #6
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
Quote:
Originally Posted by Deathmist View Post
What about navicat? Most of the sources wont work if the server name in configuration table is not correct.

did you look at the guide 1. ? XD
LordGragen. is offline  
Old 05/30/2013, 02:52   #7
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by LordGragen. View Post
did you look at the guide 1. ? XD
I think what deathmist is trying to say is that your guide lacks some of the major details required for setting up a server. You don't specify what source the guide is for (just that it's for public sources which is incorrect), nor do you specify the tools required in setting up and editing the source and database. The source you're referring to is an edited version of Kimo's edit of TrinityCO. The tools required that you should probably show a guide for include: mysql community server, navicat or mysql workbench, visual studio express, framework 4.0, the conquer online client, conquerloader 5.2, etc. As for my KillConection.cs file that almost every public source now uses... I'm shocked that nobody's set it up correctly to use the configured mysql configuration. They're more using it to kill connections that aren't being closed properly, which isn't what it was created for. Anyways, that's out of the scope of this discussion. Your guide could really use detail.
Spirited is offline  
Old 05/30/2013, 03:03   #8
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 68
Quote:
Originally Posted by Fаng View Post
I think what deathmist is trying to say is that your guide lacks some of the major details required for setting up a server. You don't specify what source the guide is for (just that it's for public sources which is incorrect), nor do you specify the tools required in setting up and editing the source and database. The source you're referring to is an edited version of Kimo's edit of TrinityCO. The tools required that you should probably show a guide for include: mysql community server, navicat or mysql workbench, visual studio express, framework 4.0, the conquer online client, conquerloader 5.2, etc. As for my KillConection.cs file that almost every public source now uses... I'm shocked that nobody's set it up correctly to use the configured mysql configuration. They're more using it to kill connections that aren't being closed properly, which isn't what it was created for. Anyways, that's out of the scope of this discussion. Your guide could really use detail.
I guess i will add ton of info later on but i don't really know much about the killcontetion so feel free to fill that in if you want.
LordGragen. is offline  
Old 05/30/2013, 03:58   #9
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by LordGragen. View Post
I guess i will add ton of info later on but i don't really know much about the killcontetion so feel free to fill that in if you want.
Sure. The problem is that when you open a new mysql connection using a pooled configuration, it will keep the connection alive no matter what the server says (disposing it using GC will not work). Here's a quote I found supporting my claim:

"Even though you set the connection object to null and perhaps the connection object is collected, the internal driver object remains open against the server so that future calls to Open() will use a pooled connection and be very fast. If you want the physical connection to close then you need to disable pooling by setting pooling=false on your connection string."

The problem is, no server uses this feature correctly - they keep creating new pooled connections instead of closing and opening the existing connections. Handling the pools incorrectly creates this issue, and since I was inexperienced with MySql with my first custom source, I created a class that would kill the connections that were sleeping every few seconds. This is extremely inefficient and not the right thing to do. Either turn pooling to false, or create a proper threaded worker system for using the sleeping connections in the pool.

The class could be used to kill the connections after the server is done using them. Otherwise, it should not be used in the manor every public source is using it in.
Spirited is offline  
Thanks
2 Users
Old 09/22/2013, 15:06   #10
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Quote:
Originally Posted by Fang View Post
Sure. The problem is that when you open a new mysql connection using a pooled configuration, it will keep the connection alive no matter what the server says (disposing it using GC will not work). Here's a quote I found supporting my claim:

"Even though you set the connection object to null and perhaps the connection object is collected, the internal driver object remains open against the server so that future calls to Open() will use a pooled connection and be very fast. If you want the physical connection to close then you need to disable pooling by setting pooling=false on your connection string."

The problem is, no server uses this feature correctly - they keep creating new pooled connections instead of closing and opening the existing connections. Handling the pools incorrectly creates this issue, and since I was inexperienced with MySql with my first custom source, I created a class that would kill the connections that were sleeping every few seconds. This is extremely inefficient and not the right thing to do. Either turn pooling to false, or create a proper threaded worker system for using the sleeping connections in the pool.

The class could be used to kill the connections after the server is done using them. Otherwise, it should not be used in the manor every public source is using it in.
what if i told u that i clear All the pools after executing certain Query, Or even dont use pooling feature Beside Closing the Connection after Each Query is Executed .. would i still need to implement this ?
shadowman123 is offline  
Old 09/24/2013, 03:10   #11
 
Smallxmac's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 105
Received Thanks: 13
I have NEVER seen a trinity source correctly use Fangs kill connection right
Smallxmac is offline  
Old 09/24/2013, 03:52   #12
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
its doesnt require a magician to execute his codes .. all u need to run these codes using thread that run every exact period of time ... not a big deal
shadowman123 is offline  
Old 10/02/2013, 21:44   #13
 
elite*gold: 0
Join Date: Oct 2013
Posts: 5
Received Thanks: 1
thanks for help
australia-co is offline  
Reply


Similar Threads Similar Threads
[Guide]How to setup a 5017 source
09/12/2012 - CO2 PServer Guides & Releases - 5 Replies
Alright , lets start with appserver AppServer: Download it from here: AppServNetwork Then agree with ToS put directory to c: then next and put your server name as localhost and administrators email address as: [email protected] and leave at 80 then next root password: root
[Guide]Projectx Source Setup Guide
03/15/2012 - CO2 PServer Guides & Releases - 119 Replies
First Off Credits: Hybrid Ultimation Impulse DreadNought Tanel Korvacs Arco Jacob/L33TS/Syst3m_W1z4rd
[Guide]CoEmu v2 Source Setup
03/09/2012 - CO2 PServer Guides & Releases - 245 Replies
ALRIGHT. I was bored and in the mood to help (rare...I know D=) First things first, you NEED a C# compiler. If you're the classic nooby, then go get Microsoft Visual C# 2008 Express Edition. Second, download the source located in this crazy topic: http://www.elitepvpers.com/forum/co2-pserver-discus sions-questions/254190-awesome-release-coemuv2-nan o-5095-source-code.html. Third - extract it with WinRAR (if you don't have it, get it here: WinRAR archiver, a powerful tool to process RAR...
[GUIDE] How To Setup Source + Client (5165)
01/30/2010 - CO2 PServer Guides & Releases - 2 Replies
1.) Download the source Here 2.) Extract the source anywhere on your computer 3.) Move OldCODB into C:/ 4.) Open the folder "OldCODB and click on Config 5.) Copy and paste this into config:
[Guide] How to setup Reflex Source
09/11/2009 - CO2 PServer Guides & Releases - 14 Replies
hey 4 people pmed me that they dont know how to setup a source and i saw that beta and someone else didnt knew it eiter how to set it up so here is a guide. Downloads: The Source (http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/197876-release-project-reflex-sou rce-v1-0-a.html) APPServer 2.6.0 (AppServNetwork) Co Client Patch 5017 (Conquer_2.0.rar - FileFront.com) Note: People with Windows Vista need APPserver 2.5.1 The Final Guide:



All times are GMT +1. The time now is 06:23.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.