Savage-Game-Design / Mike-Force

Mike Force is cooperative, capture-the-island style gamemode for the Arma 3: S.O.G. Prairie Fire CDLC.
Other
31 stars 32 forks source link

parameter seems not working #173

Open Lolicoal opened 1 year ago

Lolicoal commented 1 year ago

Describe the bug A clear and concise description of what the bug is. parameter can be edited in lobby,but dont save or work after mission loaded

To Reproduce Steps to reproduce the bug (If you can't reproduce it, just give details of what happened beforehand. Anything you think could be relevant): stamina set to false in parameter panel load mission stamina still there after back to lobby , parameter turned back to default

Expected behaviour A clear and concise description of what you expected to happen. parameter should be changed and saved after edited in lobby

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information): Version: v1.00.03 Map (specify if Altis Blufor): cam lao nam

Additional mods:

Achilles | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=723217262 Atlas' Hitmarkers | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=772802287 Better Inventory | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=2791403093 CBA_A3 | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=450814997 DUI - Squad Radar | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=1638341685 Enhanced Map | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=2467589125 Enhanced Movement | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=333310405 Enhanced Soundscape | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=825179978 iFatigue - no sway and stamina | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=1242734278 JSRS SOUNDMOD | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=861133494 No Grass Mod | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=1482600949 Pylon Manager | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=1867660876 Simple MapTools | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=2013446344 WMO - Walkable Moving Objects | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=925018569 舰A(战舰少女Arma) | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=2079199171 武装前线(少女前线 for Arma3) | Steam | https://steamcommunity.com/sharedfiles/filedetails/?id=2077161380

Time the bug occurred (Please leave in GMT+0): 2023/08/13 0:29:00 If Not on an official server, please leave the time zone of your client for LAN, or the server for dedicated: GMT +8

Additional context Add any other context about the problem here.

If you were LAN hosting, please attach your client .RPT file from when the bug occurred, If on a private dedicated server, please attach the server's .RPT from when the bug occurred.

Lolicoal commented 1 year ago

arma3server_x64_2023-08-13_08-28-03 rpt rpt file but renamed as jpg

IceEagle132 commented 1 month ago

This issue is due to a typo inside para_server_init.sqf

Find: //Set whether stamia is enabled vn_mf_param_enable_stamina = (["param_enable_stamina", 1] call BIS_fnc_getParamValue) > 0; vn_mf_param_set_stamina = (["param_set_stamina", 1] call BIS_fnc_getParamValue); publicVariable "vn_mf_param_enable_stamina"; publicVariable "vn_mf_param_set_stamina";

And replace with: //Set whether stamia is enabled vn_mf_param_enable_stamina = (["enable_stamina", 1] call BIS_fnc_getParamValue) > 0; vn_mf_param_set_stamina = (["set_stamina", 1] call BIS_fnc_getParamValue); publicVariable "vn_mf_param_enable_stamina"; publicVariable "vn_mf_param_set_stamina";

This is because inside params.hpp its called enable_stamina notparam_enable_stamina