Register for your free account! | Forgot your password?

You last visited: Today at 15:37

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoStart Tournament

Discussion on AutoStart Tournament within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
AutoStart Tournament

How do i make so a tournament start automatical, is for LOTF (C#)
Sorry for asking, but i dunno remember >.<
N¡ghtMare ?? WooT is offline  
Old 12/26/2009, 00:32   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by N¡ghtMare ?? WooT View Post
How do i make so a tournament start automatical, is for LOTF (C#)
Sorry for asking, but i dunno remember >.<

You need to make a method for it and you can use datetime.
Arcо is offline  
Thanks
1 User
Old 12/26/2009, 00:43   #3
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
Ya but how.
Is it in world.cs?
I mean like: (I know is not like this is just example)
Quote:
if Time = XX:30
{
DeathMatch = true;
}
if Time = XX:40
{
DeathMatch = false;
But thanks
But i need some more help to add the things XD
N¡ghtMare ?? WooT is offline  
Old 12/28/2009, 11:27   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by N¡ghtMare ?? WooT View Post
Ya but how.
Is it in world.cs?
I mean like: (I know is not like this is just example)

But thanks
But i need some more help to add the things XD
That could work, or you could do something like
Case Monday:
if (Hours(5) == 15:30)
Method<I use global timer so its like this>
Do you get it?
Arcо is offline  
Thanks
1 User
Old 01/03/2010, 05:23   #5
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
I get it some way.
Thanks.
I hope i can make it work
N¡ghtMare ?? WooT is offline  
Old 01/03/2010, 09:56   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by N¡ghtMare ?? WooT View Post
I get it some way.
Thanks.
I hope i can make it work

No problem.
Anymore questions feel free to pm me and I will gladly help you out.
Arcо is offline  
Thanks
1 User
Old 01/03/2010, 11:12   #7
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Code:
System.Timers.Timer cTimer = new System.Timers.Timer(1000.0);
cTimer.Start();
cTimer.Elapsed += delegate{  StartTournament();  };
void StartTournament()
{
      if(DateTime.Now == <YourValue>)
      {
           // Do whatever for tournament here
      }
}
Nullable is offline  
Thanks
1 User
Old 01/03/2010, 11:53   #8
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
i would not use a 1 Second timer as it will lag up everithing.

i would make it atleast 30 -120 minutes
~Yuki~ is offline  
Thanks
1 User
Old 01/03/2010, 14:16   #9
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Quote:
Originally Posted by ~Yuki~ View Post
i would not use a 1 Second timer as it will lag up everithing.

i would make it atleast 30 -120 minutes
In this case a 1 min timer is max, you don't want to miss starting the tournament just because you used some large time spans, give it a small calculation at different values and consider that you might actually start up your server 10 minutes before your tournament is supposed to fire up, see if a 30 min timer will work with that. . and it will not lag anything up just because of a simple boolean operation
Nullable is offline  
Thanks
1 User
Old 01/05/2010, 09:24   #10
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
@Nullable
I hav a question, the place you say i should put value, is it what time??
So if i put 45.
It come every XX:45?
N¡ghtMare ?? WooT is offline  
Old 01/05/2010, 14:11   #11
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Quote:
Originally Posted by N¡ghtMare ?? WooT View Post
@Nullable
I hav a question, the place you say i should put value, is it what time??
So if i put 45.
It come every XX:45?
If(DateTime.Now.Minute == 45) to make it start every time it is XX:45
Nullable is offline  
Thanks
1 User
Old 01/05/2010, 19:33   #12
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
Where we put this?
.Kob is offline  
Old 01/05/2010, 19:45   #13
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by cakobu View Post
Where we put this?

You can put it with the method.
Arcо is offline  
Old 01/08/2010, 12:07   #14
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
Code:
System.Timers.Timer cTimer = new System.Timers.Timer(1000.0);
cTimer.Start();
cTimer.Elapsed += delegate{  StartTournament();  };
void StartTournament()
{
      if(DateTime.Now == <YourValue>)
      {
           // Do whatever for tournament here
      }
}
When i paste it in world.cs it says:
Methode must have a return point.
How to i do?
Thanks.
N¡ghtMare ?? WooT is offline  
Old 01/08/2010, 13:52   #15
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Quote:
Originally Posted by N¡ghtMare ?? WooT View Post
When i paste it in world.cs it says:
Methode must have a return point.
How to i do?
Thanks.
There are no methods in this code, maybe it is your method that is not a void, check your code, if it is not mind posting the code?
Nullable is offline  
Reply


Similar Threads Similar Threads
script im Autostart
06/27/2010 - AutoIt - 21 Replies
Hallo! Wie kann ich es erreichen dass sich mein SCript automatisch in den Autostart verschiebt? Mit FileMove() macht das Script das leider nciht :-( kann vllt daran liegen dass ich Vista hab. Gibts da noch Möglichkeiten? mfg
cd autostart
06/22/2010 - Technical Support - 6 Replies
hallo leute ich hab ein problem normal wenn man ne cd reinschiebt dann startet die ja aber bei mir ist das nicht so :( kann mir das jemand machen das das wieder geht pls???
[AutoIt] Autostart Controlle
06/12/2010 - AutoIt - 6 Replies
Hi, ich hab folgendes Problem ich will ein Prog machen mitdem man die Sachen die im Autostart sind auslesen kann und dann Anzeigen und dann noch ändern kann oder neue hinzufügen aber mir fehlt die Erfahrung und ich konnte keine passenden Befehle finden (via Google ) Kann mir villt einer einen Befehle oder Scriptteile sagen also sowas wie Regread() aber da komme ich ned weiter Hoffe auf Hilfe
[Autostart]Race Tournament(v5017)
04/16/2010 - CO2 PServer Guides & Releases - 10 Replies
yea this is the race tournament for 5017. Map = Lab1 Tournament start: XX:45 Script: General.cs Search for Thetimer = new System.Timers.Timer();
Autostart
02/06/2010 - General Coding - 6 Replies
Mein Problem ist, dass ich mit Visual Basic 2008 Express Edition ein Programm erstellt habe, aber nicht weiß welchen Befehl/Script ich verwenden soll, damit sich das Programm von aleine öffnet, wenn ich mein Pc hochfahre.



All times are GMT +1. The time now is 15:38.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.