Register for your free account! | Forgot your password?

You last visited: Today at 16:04

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

Advertisement



[Release]: XioOnline Source code.

Discussion on [Release]: XioOnline Source code. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 05/26/2015, 12:52   #16
 
0x6a6b's Avatar
 
elite*gold: 45
Join Date: May 2015
Posts: 229
Received Thanks: 184
Looks like a nice little piece of code
I will look into it as i've got time
Thank you for this release!
0x6a6b is offline  
Old 05/26/2015, 17:12   #17
 
elite*gold: 12
Join Date: Feb 2013
Posts: 442
Received Thanks: 246
Excuse me for asking: Where exactly is the "Database"- folder?
I only see a Database project directory named "XioEmu Database" and the "Database" folder in the XioLib. I donīt really know which is meant, its really confusing.
In addition my vs2013 tells me that there are several syntax errors and that there is no XioLib.dll, in the Lib dir, but there is a XioLib.dll.locked, and everytime i copy a new one into the dir, it renames it into XioLib.dll.locked.
I hope somebody could help me :/
Thank you!
AllCowsAreBurgers is offline  
Old 05/26/2015, 18:23   #18
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by WeDontWaste View Post
Looks like a nice little piece of code
I will look into it as i've got time
Thank you for this release!
No, it's absolutely not. For a start, they put the server on the same thread as their GUI in an STA threading model. My post was previously deleted showing all of this and the other problems, but whatever.
Spirited is offline  
Thanks
1 User
Old 05/28/2015, 00:36   #19
 
Yupmoh's Avatar
 
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
Quote:
Originally Posted by AllCowsAreBurgers View Post
Excuse me for asking: Where exactly is the "Database"- folder?
I only see a Database project directory named "XioEmu Database" and the "Database" folder in the XioLib. I donīt really know which is meant, its really confusing.
In addition my vs2013 tells me that there are several syntax errors and that there is no XioLib.dll, in the Lib dir, but there is a XioLib.dll.locked, and everytime i copy a new one into the dir, it renames it into XioLib.dll.locked.
I hope somebody could help me :/
Thank you!
Make sure that you have the latest .netframe work, We used some of the new features that were introduced in there and that should solve the syntax errors.

I've added a DB link to the OP. And as for the XioLib.dll, You have the project included I don't know what else to say...
Yupmoh is offline  
Old 05/28/2015, 01:10   #20
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Quote:
Originally Posted by Spirited View Post
No, it's absolutely not. For a start, they put the server on the same thread as their GUI in an STA threading model. My post was previously deleted showing all of this and the other problems, but whatever.
Sounds like a great optimization to the fastest graphics rendering utility in C#.
Super Aids is offline  
Thanks
2 Users
Old 05/28/2015, 08:18   #21
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
hmmm how to make a registration page on this.
marcbacor6666 is offline  
Old 05/28/2015, 08:28   #22
 
victorcechinel's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3
Received Thanks: 0
No have client and patch?
victorcechinel is offline  
Old 05/28/2015, 10:20   #23
 
elite*gold: 67
Join Date: Aug 2014
Posts: 1,323
Received Thanks: 928
Server on UI thread
WPF runs at 60 fps in the best case, 15 in background. We had it in a seperate thread in the past but I wanted to see how the latency changes from using the main Synchronisation context. I tried to bottleneck it on purpose to improve the speed on other parts. Hence the async packet handlers and packet sending. This was purely a (stupid) experiment since I didn't know any better :P I guess I never changed that cause I forgot since it ran very well. Thinking about it now might explain the lagspikes we had but I think Execution knows the real source of the problem and its not related directly.

How do I make a register page
You dont. Simply login, accounts are created automatically.

Syntax Errors in VS 2013
You need Vs 2015 to compile it. It makes some use of C# 6.0 language features. The database is compressed using LZMA, it will decompress on startup. You need a Y:\ Partition / Ramdisk. There is literally no setup after you created a Y:\ partition. Just run it and it will work.

No patch?
Works on any 5018 client. 5018, not 5017.

Warnings
I would not recommend running it as a live server though. There are several ways one can exploit the source. You can crash it and you can download any file on the VPS using a backdoor/exploit in the HTTP daemon. The IRC Bot can be exploited to crash the server, so can the main sockets.

Exploits
  • The server can be crashed on character creation with a single packet.
  • Forcibly aborting a connection will crash it. Starting simple denial of service on the http daemon will spawn thousands of threads taking down everything with it.
  • IRC can be exploited by forcing the bot ut of the server resulting in a stackoverflow due to a never ending recursive loop.
  • Also, you can download the entire source from your VPS if you just know how to

My motivation behind xio
This source was mainly a playground for me, trying the new fancy async/await and other things I had no way to test in a real world case. First time I quit was cause I was not happy with the code. I can do better is what I said to myself and really lost all hope on the current code base.

I've learned how to use async/await properly, how to write proper lambda's, linq and much about blocking collections, consumer/producer queues, multi threading in general and C# 6.0 language features during the development. However, I never really got to implement that in a nice way on Xio. Xio was a great learning ressource for me, I understand that you think its bad, I can't really deny it since its true, but I've seen worse. It ran well for weeks without restarts, crashes or any other serious bugs so I still value it as a great success.

Aight, I'm out. Have fun bashing it :P
Xio. is offline  
Thanks
1 User
Old 05/28/2015, 11:07   #24
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
any fixed on how to make this not crashed then bro?
marcbacor6666 is offline  
Old 05/28/2015, 12:20   #25
 
elite*gold: 0
Join Date: Jul 2014
Posts: 402
Received Thanks: 540
Quote:
Originally Posted by marcbacor6666 View Post
any fixed on how to make this not crashed then bro?
I would recommend using one of the Messi sources instead. This one is horribly coded.
Best Coder 2014 is offline  
Thanks
5 Users
Old 05/28/2015, 17:04   #26
 
marcbacor6666's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 557
Received Thanks: 76
from the name messi, i think its messy
marcbacor6666 is offline  
Thanks
1 User
Old 05/28/2015, 18:46   #27
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Quote:
Originally Posted by Best Coder 2014 View Post
I would recommend using one of the Messi sources instead. This one is horribly coded.
That was unexpected.
pintinho12 is offline  
Old 05/29/2015, 02:56   #28
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by Best Coder 2014 View Post
I would recommend using one of the Messi sources instead. This one is horribly coded.
Gross, why does this have to be true.
Spirited is offline  
Old 05/29/2015, 09:27   #29
 
elite*gold: 0
Join Date: Feb 2014
Posts: 76
Received Thanks: 7
I'm using 5018 client
and that's say (192.168.1.2) sent an invalid packet.
AhmedGfx is offline  
Old 05/30/2015, 01:45   #30
 
elite*gold: 0
Join Date: Dec 2013
Posts: 41
Received Thanks: 4
Quote:
Originally Posted by AhmedGfx View Post
I'm using 5018 client
and that's say (192.168.1.2) sent an invalid packet.
yes me too ... what we can do now ?
MrTigerZ is offline  
Reply




All times are GMT +1. The time now is 16:05.


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.