|
You last visited: Today at 18:46
Advertisement
[Release] Project Phoenix (Patch 5187)
Discussion on [Release] Project Phoenix (Patch 5187) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
07/05/2014, 08:50
|
#31
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by KraHen
I`d never host my own web server, paid hosts are the way to go for me (comes out cheaper for me actually, lol), but that is a valid point. For local stuff though I still prefer it. 
|
XAMPP is basically the same thing, and you can even put it on a portable flash drive. More importantly, it's constantly updated. It's what I use for fast development from anywhere. On my main development computer though, I use the full, official MySQL server.
|
|
|
11/05/2014, 18:35
|
#32
|
elite*gold: 0
Join Date: Feb 2013
Posts: 5
Received Thanks: 3
|
can i ask few questions :
i tried to work for the update this project
then i updates that you have made :
acc server pw cryptographer
and the authentication packet
game server cryptographer
Key Exchange
always i using breakpoint !!
can you explain to me is this all that stuff
any way when i login give me that msg "Failed To Login : Server are not configured correctly"
and
regards
|
|
|
11/07/2014, 02:46
|
#33
|
elite*gold: 0
Join Date: Mar 2013
Posts: 210
Received Thanks: 247
|
Sick
|
|
|
11/07/2014, 17:33
|
#34
|
elite*gold: 0
Join Date: Oct 2007
Posts: 50
Received Thanks: 0
|
i created a account in acc table : Account: adrian , Password:123 and client saying me wrong id or pass
|
|
|
11/29/2014, 15:43
|
#35
|
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
|
Your ConcurrentRandom class is a joke. Declaring the fields in your class as "volatile" doesn't magically make your class thread safe, stupid. What a silly "software engineer" you are.
|
|
|
11/30/2014, 05:27
|
#36
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
Quote:
Originally Posted by Best Coder 2014
Your ConcurrentRandom class is a joke. Declaring the fields in your class as "volatile" doesn't magically make your class thread safe, stupid. What a silly "software engineer" you are.
|
This.
Besides it's not even concurrency either.
The only way to actually achieve a thread-safe random is a singleton initialized random class where all calls are thread-locked.
A random algorithm should never be called simultaneously.
Code:
/// <summary>
/// A thread-safe random generator.
/// </summary>
public class RandomGenerator : Random
{
/// <summary>
/// The random generator.
/// </summary>
private static readonly RandomGenerator randomGenerator = new RandomGenerator();
/// <summary>
/// Gets the random generator.
/// </summary>
public static RandomGenerator Generator
{
get { return randomGenerator; }
}
/// <summary>
/// Creates a new instance of RandomGenerator.
/// </summary>
private RandomGenerator()
{
System.Threading.Interlocked.CompareExchange(ref _syncRoot, new object(), null);
}
/// <summary>
/// The synchronization root.
/// </summary>
private object _syncRoot;
/// <summary>
/// Gets the synchronization root.
/// </summary>
internal object SyncRoot
{
get { return _syncRoot; }
}
/// <summary>
/// Gets a random generated number.
/// </summary>
/// <returns>Returns the random generated number.</returns>
public override int Next()
{
lock (SyncRoot)
return base.Next();
}
/// <summary>
/// Gets a random generated number.
/// </summary>
/// <param name="maxVal">The max value of the random generated number.</param>
/// <returns>Returns the random generated number.</returns>
public override int Next(int maxVal)
{
lock (SyncRoot)
return base.Next(maxVal);
}
/// <summary>
/// Gets a random generated number.
/// </summary>
/// <param name="minVal">The max value of the random generated number.</param>
/// <param name="maxVal">The min value of the random generated number.</param>
/// <returns>Returns the random generated number.</returns>
public override int Next(int minVal, int maxVal)
{
lock (SyncRoot)
return base.Next(minVal, maxVal);
}
public override void NextBytes(byte[] buffer)
{
lock (SyncRoot)
base.NextBytes(buffer);
}
public object NextEnum(Type EnumType)
{
Array array = Enum.GetValues(EnumType);
return array.GetValue(Next(0, array.Length));
}
}
|
|
|
11/30/2014, 19:41
|
#37
|
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
|
Quote:
Originally Posted by Super Aids
This.
Besides it's not even concurrency either.
The only way to actually achieve a thread-safe random is a singleton initialized random class where all calls are thread-locked.
A random algorithm should never be called simultaneously.
|
Or you could just use thread-local variables, then there's no locking needed.
|
|
|
11/06/2017, 14:27
|
#38
|
elite*gold: 1
Join Date: Aug 2014
Posts: 30,475
Received Thanks: 3,210
|
#restored & reopened
|
|
|
11/06/2017, 16:16
|
#39
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by Best Coder 2014
Or you could just use thread-local variables, then there's no locking needed.
|
You're right. That should be changed.
And thanks wshbr for restoring the thread.
|
|
|
12/06/2017, 00:04
|
#40
|
elite*gold: 0
Join Date: Dec 2008
Posts: 46
Received Thanks: 1
|
I followed your steps and got everything up and running yet when I run my client it consistently gives me the message "server maintenance" any idea what I'm missing?
|
|
|
12/06/2017, 02:28
|
#41
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by killerdiggs
I followed your steps and got everything up and running yet when I run my client it consistently gives me the message "server maintenance" any idea what I'm missing?
|
Intermittently or you cannot connect?
|
|
|
12/07/2017, 18:23
|
#42
|
elite*gold: 0
Join Date: Dec 2008
Posts: 46
Received Thanks: 1
|
Quote:
Originally Posted by Spirited
Intermittently or you cannot connect?
|
It doesn't even attempt to connect I have all three servers up and running but when I run the 5187 client it almost immediately says server maintenance.
I changed the loaderset.ini ip to my local and still nothing.
|
|
|
12/07/2017, 19:20
|
#43
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
Quote:
Originally Posted by killerdiggs
It doesn't even attempt to connect I have all three servers up and running but when I run the 5187 client it almost immediately says server maintenance.
I changed the loaderset.ini ip to my local and still nothing.
|
I'm not really supporting this project anymore, but have you tried to see if it connects using breakpoints? That way, you can see if it's the client just not connecting or the server being misconfigured.
|
|
|
12/08/2017, 02:05
|
#44
|
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
|
The source works and I'm pretty sure about it xD mine was based on it.
|
|
|
04/07/2018, 16:25
|
#45
|
elite*gold: 0
Join Date: Sep 2016
Posts: 1
Received Thanks: 0
|
Plz anyone upload database again because it's destroyed
|
|
|
 |
|
Similar Threads
|
Public Source Development: Project Phoenix
01/30/2014 - CO2 Private Server - 18 Replies
Hey everyone,
I was told that the next time I create a thread about this project, I should just make it a development thread... so here it is. Anyways, I'm making an open source project for you all! I'll be available sooner than later. I'm not going to do much with it - basically just walking, talking, seeing other people, etc. I might go as far as NPCs, but we'll see. The key "feature" in this source is that everything is heavily documented. It should be easy to develop for. I'll talk about...
|
5187-5200 Packet collection?
11/22/2012 - CO2 Private Server - 2 Replies
Hey,
ImmuneOne's 5187 source doesn't include all the packets, Does anyone have an old source around with most of the packets for that patch? I lost mine, Would be greatly appreciated.
|
New itemtype,StrRes.ini patch 5187
04/12/2011 - CO2 Exploits, Hacks & Tools - 52 Replies
New ItemType Patch 5187
Weapons Examples:-
EmperorKatana. >> Refiend Katana
EmperorKatana. >> Unique Katana
EmperorKatana. >> Elite Katana
EmperorKatana. >> Super Katana
-------------------------------
TalisMans Examples:-
HeavenFan
|
Phoenix Project finally released for closed beta testers?
09/24/2010 - S4 League - 6 Replies
Wie manche noch wissen wurde vor einiger zeit ein S4-Privatserver projekt namens Phoenix angekündigt, die Beta sollte am 14. Oktober stattfinden, aber wenn man die seite besucht ( Phoenix ) kommt eine cmd seite, befehle für die lobby zum spiele starten etc, heißt es das der server nun vorher released wurde?
|
Phoenix Project
09/06/2010 - S4 League - 14 Replies
Extra sorry for English translation, again big fail by Google ~
PS : Explore mode accept 64 players max actually (with buggy for list of players)
|
All times are GMT +1. The time now is 18:47.
|
|