#1 2017-01-03 22:19:37

Black Mamba
Member
Canada
Reputation: +1449
Registered: 2012-12-01
Posts: 4,235
Windows 10 Firefox 50.0

Hit ratio for multiplayer games?

I'm trying to find a way to reproduce the little menu you get at the end of a singleplayer campaign in a multiplayer Internet server. The information that really interests me is the accuracy of the player (HIT RATIO). I would like to reproduce that information on an Internet or LAN server. That would be especially useful for competitive gameplay, wars, 1v1. Could also be used to track down hackers, i.e., an infantry player with an accuracy of 100% is probably using an aimbot, etc.

Pic:
2rrm9w1.png

I found the corresponding nodes in the InGame meme file (a file which is found inside the menu.rfa of BF1942) but at this point I don't know if those only work for Singleplayer or if they can be adapted for Multiplayer (Internet). Basically, here's the code which I think relates to this:

dice::meme::BoolData -ext: Scoreboard/GameStatusEndGame

AND

dice::meme::BoolData -ext: Scoreboard/GameStatusSinglePlayer

The trick here is to make this data system work for multiplayer. Not sure if it would work or not due to BF1942 crappy network code, but it could be tried. tuia, any thoughts on this?

Last edited by Black Mamba (2017-01-03 22:23:00)

Offline

    Positive reputation 2   Negative reputation 0

#2 2017-01-04 00:10:40

ziba128
Member
Reputation: +463
Location: EaglesNest_Safe
Registered: 2012-10-14
Posts: 1,271
Website
Android Opera 35.0

Re: Hit ratio for multiplayer games?

I tried to do this some time ago but all I got was CTD

Last edited by ziba128 (2017-01-04 00:18:01)

Offline

    Positive reputation 0   Negative reputation 0

#3 2017-01-04 00:36:03

Black Mamba
Member
Canada
Reputation: +1449
Registered: 2012-12-01
Posts: 4,235
Android Chrome 44.0

Re: Hit ratio for multiplayer games?

ziba128 wrote:

I tried to do this some time ago but all I got was CTD

Mind posting the code you used? Did you edit meme files or the BF1942.exe itself?

Offline

    Positive reputation 0   Negative reputation 0

#4 2017-01-04 01:45:31

tuia
BFSoldier
Portugal
Reputation: +1083
Location: Lisbon
Registered: 2012-02-20
Posts: 6,331
Website
Linux Firefox 45.0

Re: Hit ratio for multiplayer games?

That is a very good idea. I think it is possible to collect these statistics, hit ratio, bullets fired, etc., but it is not a simple hack. It would involve reverse engineering some of the server code.

Offline

    Positive reputation 1   Negative reputation 0

#5 2017-01-04 02:34:47

Black Mamba
Member
Canada
Reputation: +1449
Registered: 2012-12-01
Posts: 4,235
Android Chrome 44.0

Re: Hit ratio for multiplayer games?

tuia wrote:

That is a very good idea. I think it is possible to collect these statistics, hit ratio, bullets fired, etc., but it is not a simple hack. It would involve reverse engineering some of the server code.

I was looking at the BF1942.exe with HxD yesterday and found some references to that HIT RATIO code, would you like to look at them tuia?

Offline

    Positive reputation 0   Negative reputation 0

#6 2017-01-04 03:02:36

Jim2102
Player
United States
Reputation: +168
Location: That big empty island on Phili
Registered: 2015-12-15
Posts: 318
Website
Windows 10 Chrome 55.0

Re: Hit ratio for multiplayer games?

Black Mamba wrote:

InGame meme file

Memes have come to BF1942 I see? Haha jk... But I do like this idea

Last edited by Jim2102 (2017-01-04 03:03:59)

Offline

    Positive reputation 0   Negative reputation 0

#7 2017-01-04 04:07:02

Whoopz
Member
Denmark
Reputation: +126
Location: Copenhagen
Registered: 2013-12-05
Posts: 412
Website
Windows 8.1 Chrome 55.0

Re: Hit ratio for multiplayer games?

Jim2102 wrote:
Black Mamba wrote:

InGame meme file

Memes have come to BF1942 I see? Haha jk... But I do like this idea

I saw u got 1,600 subs Jimbo, good job!

Offline

    Positive reputation 0   Negative reputation 0

#8 2017-01-04 04:26:12

Jim2102
Player
United States
Reputation: +168
Location: That big empty island on Phili
Registered: 2015-12-15
Posts: 318
Website
Android Chrome 55.0

Re: Hit ratio for multiplayer games?

Haha thanks! big_smile Also in a few days i'm going to be starting a BF1942 let's play and make vids for many custom maps and mods wink

Hopefully this hit ratio on multiplayer will be possible

Offline

    Positive reputation 0   Negative reputation 0

#9 2017-01-05 02:37:21

ziba128
Member
Reputation: +463
Location: EaglesNest_Safe
Registered: 2012-10-14
Posts: 1,271
Website
Android Opera 35.0

Re: Hit ratio for multiplayer games?

Black Mamba wrote:
ziba128 wrote:

I tried to do this some time ago but all I got was CTD

Mind posting the code you used? Did you edit meme files or the BF1942.exe itself?

I edited menu files but didn't save them because couldn't get anything

Offline

    Positive reputation 0   Negative reputation 0

#10 2017-01-05 07:03:50

bud
maestro
Reputation: +1836
Location: shangri la
Registered: 2012-07-07
Posts: 3,944
Website
Windows 7 Firefox 50.0

Re: Hit ratio for multiplayer games?

tuia wrote:

That is a very good idea. I think it is possible to collect these statistics, hit ratio, bullets fired, etc., but it is not a simple hack. It would involve reverse engineering some of the server code.

It could work for the whole match, but doubtfully for each player. But yeah it would be a nice feature.

Maybe it could be time to convert 42 content to Refractor Engine 2 ? Id do it if i had time the time.

Last edited by bud (2017-01-05 07:07:18)

Offline

    Positive reputation 0   Negative reputation 0

#11 2017-01-05 07:11:23

Archer!
Player
Canada
Reputation: +55
Location: Vancouver Island
Registered: 2015-07-20
Posts: 191
Ubuntu Firefox 50.0

Re: Hit ratio for multiplayer games?

tuia wrote:

That is a very good idea. I think it is possible to collect these statistics, hit ratio, bullets fired, etc., but it is not a simple hack. It would involve reverse engineering some of the server code.

Its been over a decade, what are y'all waiting for?

Offline

    Positive reputation 0   Negative reputation 0

#12 2017-01-05 07:25:32

Black Mamba
Member
Canada
Reputation: +1449
Registered: 2012-12-01
Posts: 4,235
Android Chrome 44.0

Re: Hit ratio for multiplayer games?

Archer! wrote:
tuia wrote:

That is a very good idea. I think it is possible to collect these statistics, hit ratio, bullets fired, etc., but it is not a simple hack. It would involve reverse engineering some of the server code.

Its been over a decade, what are y'all waiting for?

This crap is hard to do. Its not as simple as the 128 player server fix it seems.

Offline

    Positive reputation 0   Negative reputation 0

#13 2017-01-05 12:10:40

tuia
BFSoldier
Portugal
Reputation: +1083
Location: Lisbon
Registered: 2012-02-20
Posts: 6,331
Website
Linux Firefox 45.0

Re: Hit ratio for multiplayer games?

It is not as easy as the 128 players change, for sure, which was just finding the instructions and changing a few bytes. This hit ratio can be done too client-sided, a small hack that counts the bullets you fired and the hits the server sent back that got registered, displaying it in a way like the console instruction "fps 1" does. Server-sided I think you'd have to create a counter variable for each weapon and every player, then probably collect those stats at end of round in game event logs. Just ideas without any research, though.
Black Mamba, I can't start reverse engineering BF1942 code until mid February, if things go according to plans, because this takes quite some time.

Offline

    Positive reputation 1   Negative reputation 0

Board footer