tbox1911 / Liberation-RX

ArmA 3 - Liberation RX - Mission
GNU General Public License v3.0
64 stars 62 forks source link

The Server and HC FPS are not seen on the map #80

Closed Maciccio closed 2 years ago

Maciccio commented 2 years ago

I opened: hc_manager.sqf and the line: execVM "scripts\server\offloading\show_fps.sqf";

That line is preceded by: // therefore not working. I deleted the two // and now the FPS are displayed, but only those of the HC, the server FPS are not seen.

So I replaced the file: show_fps.sqf with the same file taken from Kp_Liberation and nothing to do, I keep seeing the FPS of the HC and not of the server

Maciccio commented 2 years ago

Found! It was simply missing the exclamation point in the second line: ( isServer ) must be corrected: (!isServer )

private [ "_sourcestr", "_position", "_myfpsmarker", "_myfps", "_localunits", "_localvehicles" ];

if ( isServer ) then { _sourcestr = "Server"; _position = 0; } else { if (!isNil "HC1") then { if (!isNull HC1) then { if (local HC1) then { _sourcestr = "HC1"; _position = 1; }; }; };

But now I see the FPS of the server and not those of the HC. The opposite of before :(

Maciccio commented 2 years ago

Oops! There were two lines disabled with //

A: [] execVM "scripts\server\offloading\show_fps.sqf"; in the file: hc_manager.sqf The other: [] execVM "scripts\server\offloading\show_fps.sqf"; in the file: init_server.sqf

The file: show_fps.sqf should not be modified.

Sorry. I have been trying to solve this problem all night and have only now succeeded.