WEC.3DN.RU
Hello Guest . LogIn ? Registration T Main Page
  • Page 1 of 1
  • 1
Forum moderator: Goga, Spayker  
[Critical] ParameterList does not influence on game
Spayker Date: Tuesday, 29.10.2013, 11:20 | Post # 1
Private
Group: Moderators
Posts: 10
Reputation: 1
Status: Offline
Description: Any parameter from list does not change any conditions in multiplayer. However it works in editor.
How to reproduce: just create a dedicated server and change any option from parameter list. Then start the game in order to check changes.
 
DeraKOren Date: Tuesday, 29.10.2013, 19:51 | Post # 2
Admin
Group: Administrators
Posts: 50
Reputation: 2
Status: Offline
need to See how integrate parameters to mission, maybe you need use special variable.

ARMA 3 WASP Warfare Mission Creator

One of Creators WASP Modifications for ARMA 2 BE Warfare
WASP Team Member

My Site | WASP Warfare Page | WASP Warfare Forum | WASP Warfare Download | WASP Warfare Thread on BIS Forum | WASP Warfare on WASP Team Forum
 
DeraKOren Date: Tuesday, 29.10.2013, 23:48 | Post # 3
Admin
Group: Administrators
Posts: 50
Reputation: 2
Status: Offline
Example how add and use mission parameters:

Code
class Params {
  //Basic
  class DayTime
  {
   //paramsArray[0]
   title = "Time:";
   values[] = {6, 14, 17,20,23};
   texts[] = {"Sunrise","Day","Sunset","Evening","Night"};
   default = 14;
  };

  class ViewDistance
  {
   //paramsArray[1]
   title = "View Distance:";
   values[] = {1000,1500,2000,2500,3000};
   texts[] = {"1000m","1500m","2000m","2500m","3000m"};
   default = 1500;
  };

how include or integrate parameters to mission scripts:

Code
etViewDistance (paramsArray select 1);
paramsArray select (param number)


ARMA 3 WASP Warfare Mission Creator

One of Creators WASP Modifications for ARMA 2 BE Warfare
WASP Team Member

My Site | WASP Warfare Page | WASP Warfare Forum | WASP Warfare Download | WASP Warfare Thread on BIS Forum | WASP Warfare on WASP Team Forum
 
Spayker Date: Thursday, 31.10.2013, 01:15 | Post # 4
Private
Group: Moderators
Posts: 10
Reputation: 1
Status: Offline
Quote DeraKOren ()
etViewDistance (paramsArray select 1);paramsArray select (param number)

Code
Actually in init.sqf we have this:
for '_i' from 0 to (count (missionConfigFile >> "MissionParameters"))-1 do {
      _ParameterName = (configName ((missionConfigFile >> "MissionParameters") select _i));
      _Value = if (isMultiplayer) then {paramsArray select _i} else {getNumber (missionConfigFile >> "MissionParameters" >> _ParameterName >> "default")};
      missionNamespace setVariable [_ParameterName, _Value];
};

The error is in name of parametr class. Above we have: "MissionParameters". In rsc file we have just "Params". It's fixed for now. Closing it.
 
  • Page 1 of 1
  • 1
Search: