Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » time limit and BRenBot
time limit and BRenBot [message #466294] Tue, 17 April 2012 14:50 Go to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Setting a map specific time limit doesn't work if the time limit is set to 0 in svrcfg_cnc.ini (i.e. if the server is a marathon one), because the time limit is 0. If you change the time remaining (with TIME) the time will run out but it won't gameover the map, if you use TIMEL to change the time limit to anything but 0 it will gameover.

So BRenBot needs to add some special exceptions to the map specific config stuff if the time limit is set to 0 in svrcfg_cnc.ini.


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: time limit and BRenBot [message #466303 is a reply to message #466294] Tue, 17 April 2012 15:26 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Isn't the whole point of a marathon server not to have time limits? I don't tend to play in such servers because they always seem to result in a stalemate so maybe I am missing something?

Just asking because it seems an odd thing to do.


http://steamsignature.com/card/1/76561197975867233.png
Re: time limit and BRenBot [message #466306 is a reply to message #466294] Tue, 17 April 2012 15:52 Go to previous messageGo to next message
T0RN is currently offline  T0RN
Messages: 293
Registered: January 2006
Location: Lunatic HQ
Karma: 0
Recruit
Well actually, I wanted to put a map(s) in with a time limit mixed in with the marathon maps, but I can't.
Re: time limit and BRenBot [message #466314 is a reply to message #466294] Wed, 18 April 2012 00:53 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Well I could look into adding special case logic in the bot for that but since you say it actually starts the time in the game but doesn't end the game when the time runs out that could actually be a candidate for an improvement in the server code itself, maybe see what jonwil thinks about it.

In theory if the time remaining was >0 and becomes 0 due to counting down on it's own the game should end regardless of what the actual time limit is set to.


http://steamsignature.com/card/1/76561197975867233.png
Re: time limit and BRenBot [message #466324 is a reply to message #466294] Wed, 18 April 2012 05:55 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Yeah that's true but from the looks of it the sole thing keeping the map from gameovering with no time remaining is the time limit being set to zero.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: time limit and BRenBot [message #466333 is a reply to message #466294] Wed, 18 April 2012 09:38 Go to previous messageGo to next message
triattack is currently offline  triattack
Messages: 14
Registered: May 2011
Karma: 0
Recruit
what you can do instead of making it zero make it a to huge to ever end number like 999999999999999999999999999999999999999 which will also work to make it almost endless and if needed you could make something that auto sets time after a certain time (like every hour
Re: time limit and BRenBot [message #466335 is a reply to message #466294] Wed, 18 April 2012 10:28 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
I wonder what happens if you set the time limit to a non zero value and then set the time remaining to 0 for the marathon maps...

http://steamsignature.com/card/1/76561197975867233.png
Re: time limit and BRenBot [message #466336 is a reply to message #466294] Wed, 18 April 2012 10:46 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
it'll cause the map to gameover when the timer reaches zero.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: time limit and BRenBot [message #466338 is a reply to message #466336] Wed, 18 April 2012 12:15 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
iRANian wrote on Wed, 18 April 2012 18:46

it'll cause the map to gameover when the timer reaches zero.


But it wouldn't 'reach' zero, it would be 'set' to zero... There might be a difference


http://steamsignature.com/card/1/76561197975867233.png
Re: time limit and BRenBot [message #466339 is a reply to message #466294] Wed, 18 April 2012 12:49 Go to previous message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
neh i tested that if time remaining is set to zero and time limit isn't zero it'll gameover immediately.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Previous Topic: Messages missing since 4.0
Next Topic: Random TT experiences
Goto Forum:
  


Current Time: Sat Nov 23 18:53:07 MST 2024

Total time taken to generate the page: 0.00757 seconds