Maniaplanet Dedicated Server Bundle for Symfony

Moderators: Xymph, NADEO

Post Reply
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Maniaplanet Dedicated Server Bundle for Symfony

Post by oliverde8 »

Hi,

I was working on getting data from the dedicated server for a website and found myself coding for the tenth time the cache manually in order to prevent to many connections to the dedicated server. I decided to do it clean and publish it as a Symfony bundle so that you guys can also use it :D

So here it is : https://github.com/oliverde8/MPDedicatedServerBundle

It is still in development process and not ready to be used but will probably bee ready sooon.

I put more information about it on the github, :)

Preview : http://mp-dedicated-bundle.oliver-decra ... fo/server1
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
User avatar
Nerpson
Translator
Translator
Posts: 1554
Joined: 27 Sep 2013, 18:02
Location: France
Contact:

Re: Maniaplanet Dedicated Server Bundle for Symfony

Post by Nerpson »

Nice job! Could be useful for one of my projects... :thumbsup:
ImageImageImageImage
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: Maniaplanet Dedicated Server Bundle for Symfony

Post by oliverde8 »

hopefully :thumbsup: I try to have all the major components figured out by the end of next week so you should be able to use it after that.

I updated the installation instruction in the git as I had missed a few things, nothing a dev used to symfony would have missed but well still needed to be put. I also made the route names more logical.

Here is a SS of how the demo page looks like :
http://trackmania-carpark.com/imagespar ... bcd3e5.png

And there a webpage you can visit :
http://mp-dedicated-bundle.oliver-decra ... fo/server1

Defining your own routes you can actually use this as a webpage without needing todo much, I am going to work still on it as many things aren't taken properly into account. :)
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: Maniaplanet Dedicated Server Bundle for Symfony

Post by oliverde8 »

Hi, sorry for being so slow, but well didn't see anyone asking for it and I didn't have really the time to work on it.

I just updated the bundle. I created a release to mark the changes.

I separated the api into 3 calls, so if you were using it I probably broke your application. One call for server info, basically the old call without maps list. One for all maps, and a new call to get chat lines.

There is at least one more thing I need to do before I can say it is safe to use on very busy websites as well. There is no lock on cache at the moment, this means if multiple users connect at the same time they there might be a call to the dedicated done for each of them.
In the future a lock will be placed. First player to have an invalid cache will make the call, other players will get old information while the call is running.
Also I need to fix the headers of the json files not having the correct ttl time which would make it impossible to use with a reverse proxy.

I hope it helps some of you, :)

Edit just released version 1.0.0 with semaphores for protected access. :thumbsup:
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Post Reply

Return to “General Tools”

Who is online

Users browsing this forum: No registered users and 2 guests