Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » General Jazz Jackrabbit Talk

JJ2 Dedicated Servers - The Digiex way

Nimrod

JCF Member

Joined: Jul 2001

Posts: 827

Nimrod has disabled reputation

Sep 7, 2009, 02:21 PM
Nimrod is offline
Reply With Quote
Post JJ2 Dedicated Servers - The Digiex way

A few people knew a while ago I worked on a way to make a Dedicated Box into a multiple JJ2 serving box, where many instances of JJ2 could run and be rented out / given away to different people.

After much work with BlurredD and others I got it fully working, and in the deployable stage. I hoped to bring it to JJ2'ers but at Digiex were struggling with resources, and our 3 Dedicated Boxes dont have the resources spare, therefore I am outlining the methods we used, so hopefully some fans can take it further and even produce dedicated servers.

First of all, the resources needed are (to do it this way, theres many different approaches like Linux Boxes, Virtual Machines which can be done):

A Dedicated Windows Box running any NT based (Windows Server Web 2003 is the best and cheapest just for this).
Multiple IP's (unless you want to run on different ports and force clients to have JJ2+ or a port changing program)

The best place to get these, and on the cheap is www.ovh.co.uk (theres also .fr .nl and other OVH's across europe) and pick up a cheap Kimsufi Server for around 20 euros and some extra IP's at 1 per euro (with 2 free).

First of all, you will need a copy of FireDaemon. You can get the normal one, and use the IIS addon to allow web access, or you can get the Trinity version which costs more but has the web server built in.

You will also need a copy of ForceBlindIP if your going to use JJ2 on the standard ports, with multiple servers on different IP's.

You will need an FTP server, Windows has a built in one in IIS or you could get a free one like FileZilla Server.

And of course, you will need JJ2+ as Windows Server has DEP protection built in, I worked with BlurredD and he made the latest JJ2+ work with DEP on, the stock JJ2 game will not work with DEP enabled for applications.

Here is how this all works togeather:

You create a service in FireDaemon which loads ForceBlindIP onto the network adaptor inquestion, with JJ2 launched via command line arguements. (I cant remember them perfectly, but its along the lines of):

C:\ForceBindIP 1.2.3.4 C:\Server1\jazz2+.exe -server -battle -list -minimize

(Replacing 1.2.3.4 with the network adaptor IP)

You assign rights in FireDaemon for the service to be started and stopping via the WebGUI with a username and password.

You then create an account in your FTP Server for the directory C:\Server1\ so users can upload levels or edit LevelLists or Configuration files.

Then by combining remote start / stop with FTP Access and JJ2+ Remote Ingame Admin, someone can have full access to a server, without requiring Remote Desktop permissions on the actual server. Also by running as a Windows Service (Which FireDaemon makes it) means Windows will manage it, and restart it when it crashes as well as keep it running regardless of a user logging on or off and also starting it up when Windows boots.

You can then repeat this process with additional copies of JJ2 in different folders like C:\Server2\ etc and continue.

You can also run them in different usernames so registry settings do not get mixed.

To stop CPU issues, you can assign prorities to jazz2 (i always recommend anything lower than Normal, or Windows cannot run background tasks) or if you have a multi CPU, assigning a core per jazz2 process.

I know this works, because I tested it and it worked fine, if I had the resources I'd love to host a few dedicated servers, but things are difficult at the moment.

You can now host a JJ2 Dedicated Server, using the jazz 2 executable with Plus without waiting for a dedicated server project to come along
__________________
-Nimrod
DarkB DarkB's Avatar

JCF Member

Joined: Jul 2008

Posts: 494

DarkB is doing well so far

Sep 7, 2009, 11:11 PM
DarkB is offline
Reply With Quote
Quote:
Originally Posted by Nimrod View Post
Then by combining remote start / stop with FTP Access and JJ2+ Remote Ingame Admin, someone can have full access to a server, without requiring Remote Desktop permissions on the actual server. Also by running as a Windows Service (Which FireDaemon makes it) means Windows will manage it, and restart it when it crashes as well as keep it running regardless of a user logging on or off and also starting it up when Windows boots.
And how I do this :-?
__________________

Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.
Foly Foly's Avatar

JCF Member

Joined: Jan 2009

Posts: 202

Foly has disabled reputation

Sep 8, 2009, 12:06 AM
Foly is offline
Reply With Quote
Any chance i would be able to host with a dedicate server? (Im pinging when I host it normally)
__________________
[13:07:13] *** Foly is on a KILLING SPREE!
[13:07:14] *** you killed yourself
[13:07:14] *** Foly was looking good but died instead...
DarkB DarkB's Avatar

JCF Member

Joined: Jul 2008

Posts: 494

DarkB is doing well so far

Sep 8, 2009, 12:44 AM
DarkB is offline
Reply With Quote
I was able to run server, but its something strange in it.
Here it is:

I have 0 baud but I didn't get any CTO..strange.
__________________

Do not dwell in the past, do not dream of the future, concentrate the mind on the present moment.
Grytolle Grytolle's Avatar

JCF Member

Joined: Sep 2004

Posts: 4,126

Grytolle is a forum legendGrytolle is a forum legendGrytolle is a forum legend

Sep 22, 2011, 03:15 PM
Grytolle is offline
Reply With Quote
THX NIMROD IT WORKS GREAT!!!!
__________________
<center></center>
Jgke Jgke's Avatar

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Sep 22, 2011, 10:34 PM
Jgke is offline
Reply With Quote
*cough*not a real dedicated server*cough*
Grytolle Grytolle's Avatar

JCF Member

Joined: Sep 2004

Posts: 4,126

Grytolle is a forum legendGrytolle is a forum legendGrytolle is a forum legend

Sep 23, 2011, 02:35 AM
Grytolle is offline
Reply With Quote
if it's on 24/7 it's dedicated
__________________
<center></center>
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Nov 29, 2012, 02:27 PM
djazz is offline
Reply With Quote
Thread revival!

Teaser:


Will add simple user interfaces for editing the various setting files (plus, admin, levellist), some kind of FTP to upload files, a console where you can chat as server (might be hard, need WinAPI bindings) or as admin bot.
It automatically restarts a server if it crashes. Made for Linux (Running it on a headless Debian right now). The JJ2 windows lives in the taskbar of an empty 1x1-pixel-sized X server (no desktop). Every user have their own folder, the needed JJ2-files gets symlinked there, to allow the same JJ2 executable to run in different folders with different files.
It would be awesome if the 10-server-per-ip-maximum was removed from JJ2+.

yup.
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler
FihuFiL FihuFiL's Avatar

JCF Member

Joined: Jan 2010

Posts: 28

FihuFiL is notorious for his worthless posts

Dec 1, 2012, 09:24 AM
FihuFiL is offline
Reply With Quote
As a linuxfag I was dreaming about something similar! Thank you! Looking forward to release
__________________
My blog
RapidRage Industries
Hare Hare's Avatar

JCF Member

Joined: Aug 2001

Posts: 1,449

Hare has disabled reputation

Dec 1, 2012, 12:44 PM
Hare is offline
Reply With Quote
So, let me see if I'm following correctly. This software will allow someone to set up their computer so multiple players can use it as a host for their dedicated servers? complete with user accounts and ftp access for uploading levels and tilesets?

Because if it does, that's pretty darn cool.
__________________

"Okay. I'm Understand" - burnout92
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Dec 1, 2012, 02:26 PM
djazz is offline
Reply With Quote
Quote:
Originally Posted by Hare View Post
So, let me see if I'm following correctly. This software will allow someone to set up their computer so multiple players can use it as a host for their dedicated servers? complete with user accounts and ftp access for uploading levels and tilesets?

Because if it does, that's pretty darn cool.
Yes, that's the plan/idea.

Here's a work-in-progress screenshot of the file manager, showing warnings about missing files, and if level/tileset is TSF-only.

__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler
djazz djazz's Avatar

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Dec 11, 2012, 01:23 PM
djazz is offline
Reply With Quote
https://github.com/daniel-j/jj2dedicated

This project is in hibernation, but please have a look at the code
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler
Old Jan 4, 2013, 08:44 AM
MrAlextov
This message has been deleted by MrAlextov. Reason: I Was damn bad here.
MrAlextov MrAlextov's Avatar

JCF Member

Joined: Apr 2010

Posts: 182

MrAlextov has disabled reputation

Jul 11, 2013, 05:14 AM
MrAlextov is offline
Reply With Quote
Thats cool project, why don't finish it?
__________________
Sega Satan somewhat
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 05:27 PM.