One question, how do you not know how to un-IP ban someone?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Ry60003333 on December 14, 2008, 12:33:45 AMQuote from: tao4229 on December 13, 2008, 05:49:00 PMIts fine, I like talking about the server.
Sorry for replying to a post like 4 months old but..
Why're you using 2 threads for the whole server? Lower threads isn't necessarily a good thing... But it depends on the computer you're hosting off of. If you have more than one processor, you gain a lot of advantages by multi-threading, but if you're on a single core, you don't gain much.
I know of a private server(not runescape) that used over 400 threads at once, without lagging at all(95 ping with 300+ people on?) but then again, I know the coder of the server and he's pr0. And I mean pr0. >_>
I'm assuming the threads you're using are the main thread, and then a thread for your sockets(if you're using async sockets, don't see why you would use blocking sockets in a server application as complex as a private server...) But meh.
I don't really know much about coding runescape servers though....
Or even much about java itself(C++/C#/C ftw?)
Personally I don't really like java. Sure it's compatible with Macs and Windows, but it doesn't give you the control over processes like a purely windows language. I've never compared the speed between .NET and java, so I can't complain there.
Overall, goodluck xD. Looking at the whateverclientthisis source(The WS classic one) to learn a bit about RS protocol atm.(Java is sortof easy to disassemble :\, along with .NET)
Yes, multi-threading gives performance boosts in a computer with multi-core processors. I have one thread do the work and the other thread do the IO, using Java NIO in nonblocking mode. I may make it detect the amount of cores available and then make enough threads to make use of them all. For example, in a computer with 4 cores it would make the worker thread, and three IO threads for a total of four. :D
Yea, the speed between Java and other programs made in C++ and such is really close. JIT (Just In Time) compiling is what normal JVMs use, so it compiles most of the needed code before it runs the program. Java works across multiple processors with different bit types. For example, the server could run on a 64-bit Intel processor, or a 32-bit Intel processor, or a 32-bit PowerPC processor, because the JVM is what has to be ported, not the actual program.
But C++/C# is a good choice for an MMORPG server, and I think Java is also. Its just that not many people have tried to write one in Java.
Quote from: Ry60003333 on August 07, 2008, 06:54:31 PM
503 is the version. :)
All I really need is the server IP, because the server sends the MapData to the client. I'm working on my client sending any MapData I don't have on other servers to the WS Blitz server and it will automatically add it. :o
And the good part is that everyone else is using RS2E or Danno's source, and honestly both are very poorly programmed. RS2E randomly crashes or disconnects the client on loading new areas. Plus they both use one thread per client. (A computer can do more then one thing at once, each thing is called a thread.)
The new WS Blitz uses two threads for the whole server. Its built upon everything I've learned from making the old WS Blitz, and classic. This puts the old Blitz and classic both out of date. :)
I'd also like to assure you that were the farthest ahead on 503, excluding chat. ::)
Page created in 0.143 seconds with 17 queries.