Battlefield 3 Official Ranked game servers now available!

i3D.net Game Forums   i3D.net Support (email & live chat)
Amsterdam +31 (0)10 8900070
USA 1-800-482-6910 (toll free)
Frankfurt +49 69 257378709

Go Back   i3D.net Game Forums > i3D.net Community > Command Center Development > Bad Company 2 Command Center > BC2CC Technical Support and Feedback
Downloads
300 GB of games and patches
Downloads

Reply
 
Thread Tools Search this Thread Display Modes
Old 25-3-2011, 19:53   #1 (permalink)
 
Join Date: 12 January 11
Posts: 3
Downloads: 1
Uploads: 0
Boney 15

Default BFBC2 Remote Administration to end game

Need help with The “ BFBC2 PC Remote Administration Protocol” to end the game in BFBC2.

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

Boney is offline   Reply With Quote
Sponsored Links
Old 28-3-2011, 21:20   #2 (permalink)
BC2CC Developer
 
Join Date: 14 October 09
Posts: 408
Downloads: 2
Uploads: 0
Jokemaster13 30
Default

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.
__________________

Jokemaster13 is offline   Reply With Quote

i3D.net is now on Facebook!
Old 28-3-2011, 23:23   #3 (permalink)
 
Join Date: 12 January 11
Posts: 3
Downloads: 1
Uploads: 0
Boney 15
Default

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
Boney is offline   Reply With Quote
Old 29-3-2011, 02:29   #4 (permalink)
BC2CC Developer
 
Join Date: 14 October 09
Posts: 408
Downloads: 2
Uploads: 0
Jokemaster13 30
Default

You get those library's when you install BC2CC.
__________________

Jokemaster13 is offline   Reply With Quote
Old 31-3-2011, 06:05   #5 (permalink)
 
Join Date: 12 January 11
Posts: 3
Downloads: 1
Uploads: 0
Boney 15
Default

Which library do I use and how do I communicate to the server with it?

I know I am being a pain in the ass, but I do appreciate the help.

Thanks
Boney is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are Off
Pingbacks are On
Refbacks are On



New To Site? Need Help?

All times are GMT +2. The time now is 21:10.


©2011 INTERACTIVE 3D BV - Alle rechten voorbehouden
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256