![]() | i3D.net Support (email & live chat)
|
| |||||||||
| Register | Invite Your Friends | All Albums | Members List | Social Groups | Search | Today's Posts | Mark Forums Read |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 (permalink) |
| Join Date: 12 January 11
Posts: 3
Downloads: 1 Uploads: 0 ![]() | After looking on the Web for a week I need some help please. I realize this is a forum for BC2cc but i am hoping someone can point me in the right direction/website for more info. I have a 8 man BC2 server. I would like the round/map section to end after a given amount of tickets playing the Rush mode. I know I can set the Tickets at 40 for example, but when the next section of the map starts it changes to 75. And 75 for the following sections. It looks like that is the way it is in BC2 as I have read on these forums. The attackers will win almost all the time with that amount of tickets. So I have been ending the round manually at 40 tickets via BC2cc. Looking at the BFBC2 PC Remote Administration Protocol I thought this would be an easy task, and it probably is. However the syntax is not so clear. I can load the example CommandConsole.py and make some commands work and not others. This is the command I would like to try to make, if x tickets = 40 (or some value) then admin.endRound <teamID> I deciphered the serveInfo and see the remaining tickets. <scores: team scores> <number of entries : integer> ??? "2" N x <score : integer> "40" N x <score : integer> "1500" <target score : integer> "0" I assume the 1500 integer is so the defending team has infinite tickets? Now I can see the data I need to use, any ideas on how to parse it out? The CommandConsole.py uses keyboard input. Any ideas on how to make it ask for serverIno on a regular basis and write to a file. Or use a loop to get the data? I have downloaded all of the Rcon type programs and source codes but just cant get the info I need to get this done. I know this is not Rocket Science but I need some hints to keep me working at it. BTW, BC2CC is a great product thanks for the hard work making it. Read more on: : i3D.net Game Forums /bc2cc-technical-support-feedback/168846-bfbc2-remote-administration-end-game.html Thanks Boney |
| | |
| Sponsored Links |
| | #2 (permalink) |
| BC2CC Developer Join Date: 14 October 09
Posts: 408
Downloads: 2 Uploads: 0 ![]() | There is no 'event' in the BC2 protocol to give you back information of the ticket amount. So you need to make a loop that every X amount of seconds ask for the serverinfo. (Yes serverinfo is the only 'command' that gives you the tickets back, yes 1500 is infinite tickets). How you do that in python, I have no idea. You can use the library's we build and do it in C# or VB.Net. There is a thread where I explain how to connect to the server. Read more on: : i3D.net Game Forums http://forum.i3d.net/showthread.php?t=168846 Hope that helps. |
| | |
| i3D.net is now on Facebook! |
| |
| | #3 (permalink) |
| Join Date: 12 January 11
Posts: 3
Downloads: 1 Uploads: 0 ![]() | Thanks for the reply. I do not know Python, so I will have to hack my way through with something. The connect script was in Python. Read more on: : i3D.net Game Forums http://forum.i3d.net/showthread.php?t=168846 Where would I find the library's you have built? Thanks Mark |
| | |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| New To Site? | Need Help? |