Forums Index >> Leagues and Tournaments >> WOW! Insant game restarts in dedicated servers!



Page : <1> :


Pedro posted this command in another thread:

 

Maybe the host could just type cyclegame(); so the map will restart.

You type cyclegame(); into terminal or MS DOS window

 

This means no more waiting for league games to start! WOOT!! XD

Saturday, June 11, 2005 at 8:43:36 AM

Yup works great, just tried it.

Would it be possible to get that command to be part of the dash codes or just a script by itself? So any admin would be able to start the game and not just the server hoster.

 

 

Saturday, June 11, 2005 at 9:36:41 AM

The problem with the cyclegame(); command is that it TOTALLY screws up the clock!!! The first game will be close to 15 minutes (if you're lucky) but the following game will be less than 30 seconds! Try it if you want for fun - but BEWARE and don't do this for league games!!

This has happened reproducibly for me, dash and MonkeeMan. Are you sure this works???

 

 

-Rx

 

 

Saturday, June 11, 2005 at 9:38:16 AM

Aww rats! Would be sooo nice if it worked. :(

Saturday, June 11, 2005 at 10:21:06 AM

If someone wants to add this function to the admin scripts:

You have to kill the game schedule before cycling the game (credit to -z- for this code):

 

 

                                        
if (isEventPending($Game::Schedule)) cancel($Game::Schedule);
cycleGame();

 

Or alternatively you could invoke the 30 second count down clock.

 

                                        
if (isEventPending($Game::Schedule)) cancel($Game::Schedule);
onGameDurationAlmostEnd();

 

Or you can roll your own with a centerprint message and schedule the reset in a few seconds:

 

                                        
if (isEventPending($Game::Schedule)) cancel($Game::Schedule);
bottomPrintAll("Game Reset in 3 seconds.",4,2);
$Game::Schedule = schedule(3000, 0, "cycleGame" );

 

 

 

 

 

 

Saturday, June 11, 2005 at 12:39:41 PM

Ahh thats the problem that I ran into too. It said I needed to wait for the game to end.

Ummm showing real ignorance here, but were and how would I add that stuff. ( I use dash codes if that helps)

 

Saturday, June 11, 2005 at 1:37:34 PM

Just out of curiousity, is there some sort of commad that would swap team color so the match is as even as possible?

 

Saturday, June 11, 2005 at 3:52:44 PM

Choices choices what shall I choose, hmmm. :)

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Sunday, June 12, 2005 at 4:41:37 AM

This would smooth out the biggest wrinkle in the league play. Being able to start games in an expeditious manner will save everybody's time and make the whole thing much more fun.

Sunday, June 12, 2005 at 5:47:08 AM

Ya!
This works quite well
But has to be typed into the console window
Copy and paste doesnt work so its a bit tedious
I'm with NUTS!
Is there an easier way?

 

Sunday, June 12, 2005 at 6:01:25 AM

Thanks lagman. I'll plug it in and see how it goes

Sunday, June 12, 2005 at 6:14:52 AM

Lets see if I can put this into Dashs Admin Script...

 

 

 

 

Sunday, June 12, 2005 at 10:24:17 AM

I put it in
release 0.07

Sunday, June 12, 2005 at 10:53:47 AM

Woot!

Thx dashy! You Rock! (yes I like using exclamation marks, back off!!)

 

Sunday, June 12, 2005 at 11:11:22 AM

I'm gonna rip some stuff from 0.7 and add it to my 0.5.

Sunday, June 12, 2005 at 12:30:09 PM

Why Rip Just install 0.7 over 0.5 but keep a backup of 0.5 so that u rip from 0.5

 

 

 

 

Sunday, June 12, 2005 at 2:27:47 PM

Thanks dash you always get the goods!

DASH ROCKS!!!!!!!!!!!!!

 

Sunday, June 12, 2005 at 3:12:52 PM

I just replaced my codes.cs and left everything else the same.

Can someone please verify that the next 2 games after the /restart command are in fact 15 minutes long? Just want to have this verified before we use in in League play.

 

 

-Rx

 

 

Sunday, June 12, 2005 at 3:34:26 PM

Why Rip? Because I modded my 0.5, and I don't want to replace everything.

Sunday, June 12, 2005 at 3:39:12 PM

Just installed the codes
they work like a top Rx
I played 3 games after reset
NP!!!!
Special thanks to 56kLagMan for releasing the code
and ty dash for the sweet lil update
Heh! Heheh! Heh! Heeeeeenh!!!!!

 

Last edited: Sunday, June 12, 2005 at 4:13:02 PM

Sunday, June 12, 2005 at 4:12:04 PM

Yeah I did a restart and then got 3 15 min games after it. Think its good.

Sunday, June 12, 2005 at 4:37:17 PM

Pedro also did

Pray to GOD for him to reveal himself to you.

Sunday, June 12, 2005 at 4:38:50 PM

Woot! Thanks Dash!

Hey one more thing that I actually think is really important for League use. There needs to be a Centerprint message that says: "Manual Restart Initiated". Could you please add that to your latest version? I think it should be clear to everyone right away when this tool is used. Otherwise I can see it leading to misunderstandings!!

Can this be done easily?

-Rx

 

 

-Rx

 

 

Sunday, June 12, 2005 at 6:12:49 PM

There already is... You can make it either just run the clock down from 30 or edit and open the.cs and change the message... Current Version of Dashs Admin Script is v0.7

Download from - http://thinktanks.jkdg.com/dc/

 

 

 

 

Sunday, June 12, 2005 at 9:21:41 PM

Ah, I only replaced the codes.cs file. I'll check it out.

 

 

-Rx

 

 

Sunday, June 12, 2005 at 9:39:39 PM

I'd like to have the centerprint message just for the novelty. Where is the file I would modify?

Monday, June 13, 2005 at 4:23:51 AM

I added the centerprint. To that function.
For those who dont want to redownload you can just type
/cp Manual Restart Initiated
then
/restart

@BC: edit game/server/dash/Codes.cs
and replace the restart game function with this

function restartGame(%sender)
{
if(!ClientIsAdmin(%sender,"/restart command failed, you are not admin."))
return;

Centerprintall("Manual Restart Initiated",4 );
if (isEventPending($Game::Schedule)) cancel($Game::Schedule);
onGameDurationAlmostEnd();

}

The auto capitalization "feature" of this forum is heinous. Someone kill it please.

Last edited: Monday, June 13, 2005 at 5:53:06 AM

Monday, June 13, 2005 at 5:46:30 AM

^ Use code boxes. Code and /code inside brackets.

Monday, June 13, 2005 at 7:42:06 AM

-z- used to have a script that switched colors (all green to blue and vice versa), is this included in the dash codes 0.7?

Whats the likelyhood of DanMac willing to install dash codes 0.7 on the PTT Server for the CTF League?

Any possibility I can get a copy of Bolo Code 10.0? ;)

Monday, June 13, 2005 at 7:52:42 AM

?? You can already switch colors... Quite simple ( /green Pedro ) (/blue Pedro)

I wonder if this would work for swapping the whole team... (/green blue) (/blue green)

 

 

 

 

Monday, June 13, 2005 at 8:35:55 AM

Great! Thank you dash!! This is a really great tool!

 

 

-Rx

 

 

Monday, June 13, 2005 at 9:50:59 AM

Bolo code 10.0 is still beta...got some bugs and some NUTS! To work out of it yet

B

Monday, June 13, 2005 at 10:30:29 AM

^ I'd love to help beta it for you

Monday, June 13, 2005 at 10:58:06 AM

Bolo code?? Never heard of that...

 

 

 

 

Monday, June 13, 2005 at 10:04:18 PM

That's because it's fictional.

 

Tuesday, June 14, 2005 at 6:22:09 AM

^Oops sorry Nap, almost spilled the beans there.

Tuesday, June 14, 2005 at 7:54:05 AM

Im releasing Pedro Code v1.25 soon.. You will be able to order pizza by typing /pizza

All you have to do is open the pizza.cs and put in the number of your local Pizzeria and when ingame type /pizza and through your phoneline from your internet you will dial their shop and order a pizza.

Dont forget to add your address to the pizza.cs or it might end up in NUTS!

 

 

 

 

Tuesday, June 14, 2005 at 9:01:11 AM

I want to order some baked mostacholi! Where's that code? /baked_mostacholi_xtracheese

Dash's additions to the codes appears to work great. I have had the oppertunity to use this on several occasions. We utilized this in our 3 on 3 match. Worked great!

 

Wednesday, June 15, 2005 at 12:02:19 PM

Yeah it is great! O yeah and dash, I was wrong, On the Mac version it doesnt Ban them.. They can still enter the server!

Fix it soon please or can I just get rid of the line that reads the banlist.cs so it uses the games default banlist.cs

 

 

 

 

Wednesday, June 15, 2005 at 2:24:45 PM

@Pedro
Blame... TGE! Its a TGE bug... If you want the fix it'll be in my admin script... :)

@All
I have a team shuffler command on my script, but as im not in my home computer, and I still havent uploaded the files... I cant give them now...


Saturday, June 18, 2005 at 12:42:30 PM

Forget TT2. Update TGE ! Then the Scripts will get alot better!!

 

 

 

 

Sunday, June 19, 2005 at 10:56:46 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald