[Development] 4267 Private server built using the Typesafe stack (Scala, Akka)
Discussion on [Development] 4267 Private server built using the Typesafe stack (Scala, Akka) within the CO2 Private Server forum part of the Conquer Online 2 category.
Awesome, thanks! I'll give that a try after work today
I don't think its in 4267, I tried for a long time to get it working using stuff found in 5017 sources, but could never get it to present itself, if you do somehow manage it please let me know.
I'll most likely release the code for the stress tool.
Today I implemented mob and guard ai and a start to the magic attack system. Does anyone know if 4267 has a packet for a re-spawn animation? Currently the mobs just re-appear without an animation.
I'm going to run the stresser overnight with 15k bots again and see how the mob ai handles to all those clients
Guard using Tornado!!!!
Set the Action (Like cool, bow,..) to SIT on Mobs when they respawn.
Set the Action (Like cool, bow,..) to SIT on Mobs when they respawn.
That worked and looks much better than them just appearing. Thanks
Quote:
Originally Posted by portscott
mobs didnt really have an animation for spawning back then. they just appeared from the ground if i remember correctly.
+ if u need some help let me know im QUITE keen to get this going
Thanks, I'll let you know
--------------------
Ran the server for 24 hours with the new Mob AI and 15k clients and the server was perfectly stable resource wise
There was a roughly 200,276,952 of both chat & jump packets sent to the server and roughly 502,316,572 packets sent to clients.
I'm currently thinking of the best way to validate jumps and set places to taken on a dmap without needing to synchronize the core dmap structure, since there could be potentially 1000's of actors (clients, mobs, item drops) accessing this concurrently (checking if step is take & setting that a stop is taken). If I just put a lock in place it would cause contention and be a bottle neck. I'll have to keep think of the best way to do this.
It's my main programming language these days. I use it for most of my projects (mainly Android stuff). I like the language for several reason.
- Hybrid functional language. Wants you to code in a functional style but allows you to code in a OO style without any fuss.
- Has access to the entire Java ecosystem.
- Has many cool frameworks like Play (Similar to Rails), Slick (ORM), and AKKA(Actor Library) which is just epic.
- Type inference
- Case classes
- Pattern Matching
- Anonymous functions
- SBT (Simple build tool).
- IntelliJ supports the language very well.
- Growing in popularity. Some big name companies use it (LinkedIN, Twitter, etc)
I have implemented a few more features on the server.
- Teams
- MySql connection pooling
- Automated Database backup with encryption and compression
- Automated database staging (If a change is made to the database you can run a class to generate all the database interaction stuff)
- Bunch of stuff to the configuration file. Basically everything implemented so far can be configured though files now.
- Re-structured some of code after I though of a better way to handle stuff.
I suppose that means that you don`t use ORM middleware.
Well, his first post it does say:
Quote:
Originally Posted by tkblackbelt
Technologies:
- Scala (Functional programming language running on the JVM)
- Akka (Actor library) - Slick (ORM)
- Spray (Library for building high performance network applications)
- MySQL
I suppose that means that you don`t use ORM middleware. Nice progress, keep it up.
Quote:
Originally Posted by Best Coder 2014
Well, his first post it does say:
Yeah, I'm using Slick as my orm. The database staging generates Scala Slick code that is used to interact with the database. This has the benefit of everything being type safe, if I changed a field from varchar to int and re-ran the program it would generate the new code using an Int instead of String. The compiler can then point out all errors caused by this change. It's also kind of cool because this lets me re-create the schema for any supported database without needing to know the syntax differences or w/e.
Sounds wonderful, what about predictions ? when You want to start that serv?
Thanks for the interest
I'm going to be doing a closed beta before the server is public. I still have quite a bit to do and I'm taking my time so the design is sound. I think the beta will start sometime in September. I'm hoping to find around 5 - 10 people to help test it.
[Development] 4267 conquer server. 06/16/2010 - CO2 Private Server - 408 Replies Heya,
I've started a new development for a classic co server as I never saw one succesfull build up with a from scratch written and not leeched source.
We're currently aiming to add-in bot protection, proxy detection and various protections to prevent hacking.
So let's talk more about the source itsself, It's made from scratch and self written socket system, database handling is currently flatfile based. The loginserver is done but we're working on the gameserver now.
(Will be...