Game server admin's helping the community setup and maintain great dedicated game servers.
----Home----Submit News ----Forum--------Guides----


Go Back   FPSadmin.com > BattleField > BattleField 3 > BF3 Remote Admin Tool Support

Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2013, 11:53 AM
PapaCharlie9's Avatar
PapaCharlie9 PapaCharlie9 is offline
Senior Member
 
Join Date: Jan 2011
Posts: 155
Rep Power: 8
PapaCharlie9 is on a distinguished road
Max tickets in a round, after round has started?

Is there a way to determine the maximum number of tickets in a round at any time within a round?

For count-up modes, like TDM and SQDM, this is easy, via serverInfo. The winning ticket number is the maximum tickets for the round and is available at any time.

For count-down modes, however, like Conquest and Rush (for any particular stage), I can't find a way to determine the maximum number of tickets, which in this case is the starting ticket amount. If you don't catch the round/stage right at the beginning, you have no idea what the tickets started at.

Reconstructing from vars.gameModeCounter is possible, I suppose, but requires a table of starting ticket values when vars.gameModeCounter is 100, indexed by (map,mode). That's a massive data structure that will be hard to get right and keep updated.

Having the max tickets is useful for estimating how far into the round the game has progressed. For example, for Conquest, to trigger some event when there are less than 10% of tickets remaining towards the victory condition, the maximum number of tickets in the round is needed to calculate the percentage remaining.
Reply With Quote
  #2  
Old 02-18-2013, 04:53 PM
TimSad's Avatar
TimSad TimSad is offline
Member
 
Join Date: Nov 2008
Posts: 75
Rep Power: 10
TimSad is on a distinguished road
I think you may have to calculate it from default as best you can. Either that or have a check on the start of the new round. Maybe check when the first person spawns in? I guess it depends on the context of how you are using/implementing this.
__________________

Reply With Quote
  #3  
Old 02-19-2013, 03:30 AM
Phil_K Phil_K is offline
Senior Member
 
Join Date: May 2010
Location: Germany
Posts: 112
Rep Power: 9
Phil_K is on a distinguished road
Hi.

Quote:
Originally Posted by PapaCharlie9 View Post
Is there a way to determine the maximum number of tickets in a round at any time within a round?
For count-up modes, no.
The information in the serverInfo response only shows the targeting value
which must be reached to have one team win. For count-down modes it's
the team which has not reached that value.

Afaik there is no dediated command to read out the starting ticket and/or the
current ticket value. Maybe it's something we should wish for BF-4.

Only way you get your values is the knowledge about the combined effect of
gamemode, running map and gameModeCounter.With the frirst two informations
you can grep the starting ticket value from a static table which then is varied by
gameModeCounter value.

But in case a server update changes the ticket values for gameModeCounter = 100%
you have the need to do the gathering for the static table again.

Greets
Phil
Reply With Quote
  #4  
Old 02-20-2013, 02:55 PM
PapaCharlie9's Avatar
PapaCharlie9 PapaCharlie9 is offline
Senior Member
 
Join Date: Jan 2011
Posts: 155
Rep Power: 8
PapaCharlie9 is on a distinguished road
Quote:
Originally Posted by Phil_K View Post
Hi.



For count-up modes, no.
The information in the serverInfo response only shows the targeting value
which must be reached to have one team win. For count-down modes it's
the team which has not reached that value.

Afaik there is no dediated command to read out the starting ticket and/or the
current ticket value. Maybe it's something we should wish for BF-4.

Only way you get your values is the knowledge about the combined effect of
gamemode, running map and gameModeCounter.With the frirst two informations
you can grep the starting ticket value from a static table which then is varied by
gameModeCounter value.

But in case a server update changes the ticket values for gameModeCounter = 100%
you have the need to do the gathering for the static table again.

Greets
Phil
Okay, that's what I thought. As you know, for BF3 the vars.gameModeCounter event handler is not implemented in Procon 1, so I can't even use that method. Plugins can't get the current value of vars.gameModeCounter, as far as I can tell.
Reply With Quote
  #5  
Old 02-21-2013, 03:51 AM
Phil_K Phil_K is offline
Senior Member
 
Join Date: May 2010
Location: Germany
Posts: 112
Rep Power: 9
Phil_K is on a distinguished road
Quote:
Originally Posted by PapaCharlie9 View Post
Okay, that's what I thought. As you know, for BF3 the vars.gameModeCounter event handler is not implemented in Procon 1, so I can't even use that method. Plugins can't get the current value of vars.gameModeCounter, as far as I can tell.
No, OnGameModeCounter is send since...guess 1.3.0.0 or so...
I would have to look up my changelog but nevertheless it's
working and providing the value on every change.


If your plugin is set enabled it should also get the trigger
while Procon starts the connection and queries the server for
the first time.
__________________
--
Procon Frostbite - The rcon tool for Frostbite games
Visit our new forum https://forum.myrcon.com/
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 Off

Forum Jump


All times are GMT -4. The time now is 01:46 PM.


Powered by: vBulletin Copyright ©2000, Jelsoft Enterprises Ltd.