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

24/7 test server

piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 10, 2004, 03:54 AM
piet is offline
Reply With Quote
24/7 test server

http://www.eckhart.da.ru/jazz2/?pagina=server%20status

i am setting up a 24/7 jazz2 server with:

1. VNC (inputs ignored)
2. Weapon Generator
3. Project Cataclysm
4. Jazz2 1.24 or 1.21
5. A PHP script that shows
- server status
- vnc status
- 1.24 log
- 1.21 log
- banned ip's

this server is just a test for now, it doesnt run on my Windows 2000 server but on my laptop that stands in my room so it is not online 24/7 yet.
i allso have a problem with getting my server in the server list (couse i start my server with a batch file) maybe somone can make me a program so i can get my ip listed at the list server. ( must work like this: "list.exe -ip=62.131.198.36" this way it can be included in the batch i am using)

the batch:
------------------------------------------------------------------------------------------------------
@echo off
start jazz2-1.24.exe -windowed -noddraw -nodsound -nosound -server -nospy -log -log=124.log -battle brhotel.j2l
echo press enter if jazz2 is started
pause
cd tools
start respawn.exe
start AntiCheat.exe
------------------------------------------------------------------------------------------------------

just dont reply about the map i am hosting its only a test.

reply to tell me if its working
__________________
I remember playing jazz2 like crazy!
Tubz Tubz's Avatar

JCF Veteran

Joined: Apr 2001

Posts: 5,851

Tubz is doing well so far

Dec 10, 2004, 10:23 AM
Tubz is offline
Reply With Quote
Server is not running...besides this is a pretty precise, and will probably be a good server if it lasts.
__________________

"Jewel is the Metallica of Yodelling." ~Edwin McCain
"Yes, it's a personal attack if you save my picture about internet safety" ~Labratkid
"You know what JBL? The only reason you were WWE Champion for a year was because Triple H didn't want to work Tuesdays!" ~Paul Heyman, addressing the public at the "ECW: One Night Stand" PPV on Sunday, June 12, 2005
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 10, 2004, 11:06 AM
piet is offline
Reply With Quote
it was running all day but something went wrong but i will try again it will work beleve me i have done it way back
__________________
I remember playing jazz2 like crazy!
White Rabbit White Rabbit's Avatar

JCF Member

Joined: Aug 2001

Posts: 4,478

White Rabbit is doing well so far

Dec 10, 2004, 11:09 AM
White Rabbit is offline
Reply With Quote
Plz hurry up and write a l33t lvl list and host anything other than the br hotel.
Monolith

JCF Member

Joined: Mar 2001

Posts: 2,221

Monolith is doing well so far

Dec 10, 2004, 08:31 PM
Monolith is offline
Reply With Quote
The best way I found to launch the Battle Server was to use a simple VB script that basically sent the correct sequence of keystrokes to the game for starting a server.

(Launch Program), Esc, Esc, Enter, Enter, Down, Enter, Down, Enter, Up, Enter, Up, Enter, Enter, Enter.
__________________
<div style="float: right; width: 100px; height: 70px; margin: 5px 15px;"><img src="http://madskills.org/monolith/idleserver.gif" style="width: 98px; height: 65px;"><img src="http://madskills.org/monolith/theserver.gif" style="width: 98px; height: 65px; position: relative; top: -65px;"></div><div style="margin: 0 3em; font-size: 80%; font-style: italic;">Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It is not rude, it is not self-seeking, it is not easily angered, it keeps no record of wrongs. Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres.</div><div style="text-align: right; text-size: 80%;">1 Corinthians 13:4-7</div>
The SlaYeR

JCF Member

Joined: Apr 2003

Posts: 2,095

The SlaYeR is doing well so far

Dec 10, 2004, 08:41 PM
The SlaYeR is offline
Reply With Quote
There should be 3 volunteers for a 24/7 server in the three different game types.
And then all we would need would be a few players.
__________________
blurredd blurredd's Avatar

JCF Member

Joined: Nov 2001

Posts: 1,896

blurredd is an asset to this forumblurredd is an asset to this forum

Dec 10, 2004, 10:23 PM
blurredd is offline
Reply With Quote
I would be nice if there were 3 dedicated servers, but there would probably be too many technical problems. I think JJ2 would be lucky to get one dedicated server anywhere close to the successfulness of Monolith's Battle Server, and so far most of everyone who tried gave up in under a week.
__________________
D3
Extra. No CTO v0.75
Animating Tiles Properties.
ATB Contest. Scripting Language.
Gameplay Theories.
1UP. Pitfall. Desolation.
SC2.

Odin Odin's Avatar

Banned

Joined: Dec 2003

Posts: 3,776

Odin is doing well so far

Dec 10, 2004, 10:35 PM
Odin is offline
Reply With Quote
There are more people who have 1.23 than people who have 1.24. Therefore, in order to reach the most people, i'd suggest hosting a 1.23 server.

Also, in the regestry using any editor, you might want to do this:

Go to HKEY_LOCAL_MACHINE
Go to Software
Go to Epic Megagames
Go to Jazz Jackrabbit 2 (Jazz Jackrabbit 2 Secret files if you're hosting a 1.24 server)
Go to List Servers
Set string values for "000" and "001" to "jazz.nimrod-online.com" (Disregarding quote marks, of course.)

There. That works for me whenever I want to host a server, and I can join too, not like before, which is quite weird. Perhaps it contacts the server listed on "001" for hosting?
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 10, 2004, 11:28 PM
piet is offline
Reply With Quote
if my router was forwardin the UDP ports correctly we can have a 24/7. i tried to start jazz2 and let it run all day, and it did with all the tools on.

if it will run with players in it its just a test for the CPU and stuff.

but if you ask me a 27/7 can easaly be made, i can host a game with parameters for jazz2.exe and Nimrods team can add 24/7 server to the server first (checking every 5 minutes if its online). this way the host itself does not have problems with getting in the server list (witch is imposable if you start from a batch).

the only thing is my router, but thats my problem. i think its UDP but its hard to check. (does somone knows a PHP script that scans UDP ports? i am making a script that will check if you can play/host jazz2 on the web by scanning your ports.)
__________________
I remember playing jazz2 like crazy!
Odin Odin's Avatar

Banned

Joined: Dec 2003

Posts: 3,776

Odin is doing well so far

Dec 10, 2004, 11:55 PM
Odin is offline
Reply With Quote
Quote:
Originally Posted by br>piet
but if you ask me a 27/7 can easaly be made
Your computer has the power to add three hours in a day just to host a 27/7 server? Wow.
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 11, 2004, 12:01 AM
piet is offline
Reply With Quote
yea talking about good CPU :P but yesterday it ran for 12hr, i can edit the batch that if the game gives an error and stopt it will restart just a simple:

:loop
jazz2.exe (params)
goto loop

this way the server wil run forever (i hope)
__________________
I remember playing jazz2 like crazy!
Odin Odin's Avatar

Banned

Joined: Dec 2003

Posts: 3,776

Odin is doing well so far

Dec 11, 2004, 12:08 AM
Odin is offline
Reply With Quote
Quote:
Originally Posted by br>piet
yea talking about good CPU :P but yesterday it ran for 12hr, i can edit the batch that if the game gives an error and stopt it will restart just a simple:

:loop
jazz2.exe (params)
goto loop

this way the server wil run forever (i hope)
I don't really understand the code you're using, but wouldn't that cause an infinite spawning of Jazz Jackrabbit 2 instances?

Also, can't you keep an eye on the server so that if it crashes, you can just start it back up manually? That'd make the most sense, and would omit programming all this automation that would probably just crumble on you when you need it most.
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 11, 2004, 12:18 AM
piet is offline
Reply With Quote
:loop
jazz2.exe
goto loop

this way "goto loop" will be if jazz2.exe is exited.

this way jazz2.exe will be started untill your lose your mind:

:loop
start jazz2.exe
goto loop

batch is like dos commands in a document
start jazz2.exe is like this
a little program called "start'" opens a new command window and runs jazz2.exe in it
(this cant be done in DOS becouse you cant multitask)

so if you would run the script it will start at :loop then it will open a new window that starts jazz2.exe and then it will go back to :loop, this is NOT what we want.

so we dont use the start command but just jazz2.exe so the script can only contunue if jazz2.exe ends, just like in good old dos.


this script is so simple it that if it works it will work for ever.
i will try it now :P
__________________
I remember playing jazz2 like crazy!
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 11, 2004, 12:21 AM
piet is offline
Reply With Quote
hmm it is as i was tought
if you close the game the normal way the jazz2 window will close and jazz2 will be started again, but if you will get an error message you will need to close that first.

but i will keep on looking
__________________
I remember playing jazz2 like crazy!
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 11, 2004, 12:34 AM
piet is offline
Reply With Quote
:loop
start Jazz2.exe
PING 1.1.1.1 -n 1 -w 60000 >NUL
goto loop

this way the batch would start jazz2.exe and then wait 1 minute and start jazz2.exe again, (if there is a jazz2.exe running it wont start it again, but it does not fixes the error messages)

i must find a way so i can close jazz2.exe and then start it (this way we can make a server restart every hour, so if the game crasches you can allways wait for restart).
__________________
I remember playing jazz2 like crazy!
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 11, 2004, 12:42 AM
piet is offline
Reply With Quote
ok i have it all worked out now:

:loop
start Jazz2-1.24.exe
PING 1.1.1.1 -n 1 -w 60000 >NUL
process -k Jazz2-1.24.exe
goto loop

you need process.exe to use this script.
http://www.beyondlogic.org/solutions...rocessutil.htm

now jazz2 will restart every minute you can edit the 60000 to make it an hour
__________________
I remember playing jazz2 like crazy!
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 11, 2004, 02:08 AM
piet is offline
Reply With Quote
ok i think its done now:

you must make a shortut to jazz2.exe like this:

Target: J:\Jazz2.exe -windowed -nosound -server -nospy -log -log=121.log -battle brhotel.j2l

Run: Minimized

replace J:\ with your own path to jazz2.exe
name the shotcut "1.21" (1.21.lnk in batch file).
put the shortcut next to the batch file.
run the batch file.
while the server is running it makes a log file called log.txt
in here you will get something like this:


za 11-12-2004 (11:06:22,55) - starting server
za 11-12-2004 (11:06:22,85) - server started
za 11-12-2004 (11:06:22,89) - starting tools
za 11-12-2004 (11:06:29,06) - tools started
za 11-12-2004 (11:06:29,16) - server restarting in 60 minutes
za 11-12-2004 (11:07:31,07) - server restarted
-------------------------------------------------------------
za 11-12-2004 (11:07:31,31) - starting server
za 11-12-2004 (11:07:31,96) - server started
za 11-12-2004 (11:07:32,01) - starting tools


i wil release all the things you need to run your own server (except jazz2.exe etc)
this way you can help me :P

Code:
@echo off

:startserver
cls
echo %date% (%time%) - starting server>>log.txt
echo %date% (%time%) - starting server
start 1.21.lnk
echo %date% (%time%) - server started>>log.txt
echo %date% (%time%) - server started

:starttools
echo %date% (%time%) - starting tools>>log.txt
echo %date% (%time%) - starting tools
PING 1.1.1.1 -n 1 -w 5000 >NUL
cd tools
start respawn.exe
cd..
echo %date% (%time%) - tools started >>log.txt
echo %date% (%time%) - tools started

:wait
echo %date% (%time%) - server restarting in 60 minutes >>log.txt
echo %date% (%time%) - server restarting in 60 minutes
PING 1.1.1.1 -n 1 -w 360000 >NUL
process -k Jazz2-1.21.exe
process -k respawn.exe
echo %date% (%time%) - server restarted >>log.txt
echo %date% (%time%) - server restarted
echo ------------------------------------------------------------- >>log.txt
goto startserver
__________________
I remember playing jazz2 like crazy!
White Rabbit White Rabbit's Avatar

JCF Member

Joined: Aug 2001

Posts: 4,478

White Rabbit is doing well so far

Dec 11, 2004, 08:51 AM
White Rabbit is offline
Reply With Quote
Have you thought about the practicalites about a 24/7 server? Electricity bills?
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 11, 2004, 12:08 PM
piet is offline
Reply With Quote
i have tons of computers running it will do
__________________
I remember playing jazz2 like crazy!
¿Ðàrkér¿ TRC

JCF Member

Joined: Nov 2002

Posts: 143

¿Ðàrkér¿ TRC is doing well so far

Dec 11, 2004, 12:41 PM
¿Ðàrkér¿ TRC is offline
Reply With Quote
either you know something about computers or you just used the code used for css servers for the batch and changed a few things. Good job :P
__________________
TRC leader, founder, hah, this clan wont fall, I dunno why, well, maybe, o well! You know how people think the clan dies and up, dies and up? It dont, I just go on other games abit more than JJ2.
DoubleGJ DoubleGJ's Avatar

JCF Member

Joined: Sep 2002

Posts: 3,049

DoubleGJ has disabled reputation

Dec 11, 2004, 01:16 PM
DoubleGJ is offline
Reply With Quote
It would look even more proffesional if it used the Jazz2 path key specified in registry.
__________________
"So unless I overwrote my heart with yours, I think not. But I might have." - Violet CLM

Two Games Joined releases:
Control / Splinter (twin singles)
|| Ballistic Bunny (EP)
||
Beyond (maxi-single)
|| Beyond: Remixed (remix EP)
|| Inner Monsters OST (mini-album)
||
Shadows (album)
White Rabbit White Rabbit's Avatar

JCF Member

Joined: Aug 2001

Posts: 4,478

White Rabbit is doing well so far

Dec 11, 2004, 01:41 PM
White Rabbit is offline
Reply With Quote
Tons of computers = even larger bill + bad for environment
Monolith

JCF Member

Joined: Mar 2001

Posts: 2,221

Monolith is doing well so far

Dec 11, 2004, 07:01 PM
Monolith is offline
Reply With Quote
Wait, you run the game minimized? Doesn't that cause problems?
__________________
<div style="float: right; width: 100px; height: 70px; margin: 5px 15px;"><img src="http://madskills.org/monolith/idleserver.gif" style="width: 98px; height: 65px;"><img src="http://madskills.org/monolith/theserver.gif" style="width: 98px; height: 65px; position: relative; top: -65px;"></div><div style="margin: 0 3em; font-size: 80%; font-style: italic;">Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It is not rude, it is not self-seeking, it is not easily angered, it keeps no record of wrongs. Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres.</div><div style="text-align: right; text-size: 80%;">1 Corinthians 13:4-7</div>
Torkell Torkell's Avatar

Stealth Admin

Joined: Jul 2004

Posts: 2,153

Torkell is a forum legendTorkell is a forum legendTorkell is a forum legend

Dec 12, 2004, 04:37 AM
Torkell is offline
Reply With Quote
br, shouldn't you use "process -q" instead? If JJ2 is writing to disk when you kill it, you can really screw things up. Looking at the page for process.exe, -q will tell the program to close, then kill it if it's still running after a minute.
__________________
-- Torkell



piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 12, 2004, 07:38 AM
piet is offline
Reply With Quote
Quote:
Originally Posted by ¿Ð(-)rkér¿ TRC
either you know something about computers or you just used the code used for css servers for the batch and changed a few things. Good job :P
wrote it myself with a little help from notepad :P
__________________
I remember playing jazz2 like crazy!
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 12, 2004, 07:41 AM
piet is offline
Reply With Quote
Quote:
Originally Posted by Monolith
Wait, you run the game minimized? Doesn't that cause problems?
nope it does not, it will make player 1 (the server) invisable (ingame and in the player list) this way you dont need a program that freezes the server player.
but maybe it will give errors that i dont know about, try it :P
__________________
I remember playing jazz2 like crazy!
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 12, 2004, 07:43 AM
piet is offline
Reply With Quote
Quote:
Originally Posted by BoggyB
br, shouldn't you use "process -q" instead? If JJ2 is writing to disk when you kill it, you can really screw things up. Looking at the page for process.exe, -q will tell the program to close, then kill it if it's still running after a minute.
good point,

by the way: does somone know about a program that can sent a chat message to the players in the game
("server: hello all server is restarting in 1 minute")
__________________
I remember playing jazz2 like crazy!
White Rabbit White Rabbit's Avatar

JCF Member

Joined: Aug 2001

Posts: 4,478

White Rabbit is doing well so far

Dec 12, 2004, 07:59 AM
White Rabbit is offline
Reply With Quote
Minimizing will cause problems when someone wins and the next lvl comes along. Everyone will time out, or something like that.
piet piet's Avatar

JCF Member

Joined: Feb 2003

Posts: 438

piet is doing well so far

Dec 12, 2004, 08:06 AM
piet is offline
Reply With Quote
ok i will edit that, but then i need a tool that freezes the host, (even when jazz2.exe will shot down and restarted again) so it must nog give a message like jazz2 not running or just stop when jazz2.exe will close.
__________________
I remember playing jazz2 like crazy!
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 04:59 AM.