1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Fr: 04 Juli 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum

    Custom Rucksack Load

    • Bostigo
    • 7. Januar 2017 um 19:53
    • Geschlossen
    • Erledigt
    • Bostigo
      Schüler
      Reaktionen
      16
      Trophäen
      10
      Beiträge
      97
      • 7. Januar 2017 um 19:53
      • #1

      Hey Leute ich bin nochmal.. hab in meinem RPT so ein Fehler und ich bin einfahch blind.
      Habe mir mal dieses Tutorial mal reingezogen.

      Ertsmal ging gar nichts mehr, weil da so komische Gänsefüsschne benutzt wurden. Diese habe ich überall geändert.
      Nun taucht aber noch ein kleiner Error auf.

      RPT Error

      Spoiler anzeigen

      18:23:17 Error in expression <
      while{true} do
      {
      waitUntil {!(isEqualTo(backpack player,""))};
      _bp = backpack p>
      18:23:17 Error position: <(backpack player,""))};
      _bp = backpack p>
      18:23:17 Error Missing )
      18:23:17 File mpmissions\AltisLife.Altis\core\functions\fn_loadGear.sqf, line 83
      18:23:17 Error in expression <
      while{true} do
      {
      waitUntil {!(isEqualTo(backpack player,""))};
      _bp = backpack p>
      18:23:17 Error position: <(backpack player,""))};
      _bp = backpack p>
      18:23:17 Error Missing )
      18:23:17 File mpmissions\AltisLife.Altis\core\functions\fn_loadGear.sqf, line 83

      Hier meine loadGear

      Code: loadGear.sqf
      #include "..\..\script_macros.hpp"
      /*
          File: fn_loadGear.sqf
          Author: Bryan "Tonic" Boardwine
      
      
      
      
          Description:
          Loads saved civilian gear, this is limited for a reason and that's balance.
      */
      private ["_itemArray","_handle"];
      _itemArray = life_gear;
      waitUntil {!(isNull (findDisplay 46))};
      
      
      
      
      _handle = [] spawn life_fnc_stripDownPlayer;
      waitUntil {scriptDone _handle};
      
      
      
      
      if (count _itemArray isEqualTo 0) exitWith {
          switch (playerSide) do {
              case west: {
                  [] call life_fnc_copLoadout;
              };
      
      
      
      
              case civilian: {
                  [] call life_fnc_civLoadout;
              };
      
      
      
      
              case independent: {
                  [] call life_fnc_medicLoadout;
              };
          };
      };
      
      
      
      
      _itemArray params [
          "_uniform",
          "_vest",
          "_backpack",
          "_goggles",
          "_headgear",
          ["_items",[]],
          "_prim",
          "_seco",
          ["_uItems",[]],
          ["_uMags",[]],
          ["_bItems",[]],
          ["_bMags",[]],
          ["_vItems",[]],
          ["_vMags",[]],
          ["_pItems",[]],
          ["_hItems",[]],
          ["_yItems",[]]
      ];
      
      
      
      
      if (!(_goggles isEqualTo "")) then {_handle = [_goggles,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_headgear isEqualTo "")) then {_handle = [_headgear,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_uniform isEqualTo "")) then {_handle = [_uniform,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_vest isEqualTo "")) then {_handle = [_vest,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_backpack isEqualTo "")) then {_handle = [_backpack,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      
      
      
      
      /* Hotfix for losing virtual items on login */
      if (!isNil {(_this select 0)}) then {
          life_maxWeight = life_maxWeight + (round(FETCH_CONFIG2(getNumber,"CfgVehicles",(backpack player),"maximumload") / 4));
      };
      
      
      
      
      {_handle = [_x,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};} forEach _items;
      
      
      
      
      {player addItemToUniform _x;} forEach (_uItems);
      {(uniformContainer player) addItemCargoGlobal [_x,1];} forEach (_uMags);
      {player addItemToVest _x;} forEach (_vItems);
      {(vestContainer player) addItemCargoGlobal [_x,1];} forEach (_vMags);
      {player addItemToBackpack _x;} forEach (_bItems);
      {(backpackContainer player) addItemCargoGlobal [_x,1];} forEach (_bMags);
      life_maxWeight = 100;
      
      
      
      
      {
          [true,(_x select 0),(_x select 1)] call life_fnc_handleInv;
      } forEach (_yItems);
      
      
      
      
      life_maxWeight = LIFE_SETTINGS(getNumber,“total_maxWeight”);
      /* Réglage de la capacité en fonction des sac à dos */
      [] spawn
      {
          while{true} do
          {
              waitUntil {!(EQUAL(backpack player,""))};
              _bp = backpack player;
              _cfg = FETCH_CONFIG2(getNumber,CONFIG_VEHICLES,_bp,“maximumload”);
              _load = round(_cfg / 4);
      		if(EQUAL(backpack player,“B_OutdoorPack_blk”)) then { _load = 20; };
              if(EQUAL(backpack player,“B_AssaultPack_khk”)) then { _load = 30; };  
      		if(EQUAL(backpack player,“B_AssaultPack_dgtl”)) then { _load = 30; };
      		if(EQUAL(backpack player,“B_AssaultPack_rgr”)) then { _load = 30; }; 
      		if(EQUAL(backpack player,“B_AssaultPack_sgg”)) then { _load = 30; };
      		if(EQUAL(backpack player,“B_AssaultPack_blk”)) then { _load = 30; };
      		if(EQUAL(backpack player,“B_AssaultPack_cbr”)) then { _load = 30; };
      		if(EQUAL(backpack player,“B_AssaultPack_mcamo”)) then { _load = 30; };
      		if(EQUAL(backpack player,“B_AssaultPack_tna_f”)) then { _load = 30; };
      		if(EQUAL(backpack player,“B_TacticalPack_oli”)) then { _load = 35; };
      		if(EQUAL(backpack player,“B_Kitbag_mcamo”)) then { _load = 40; };
      		if(EQUAL(backpack player,“B_Kitbag_ssg”)) then { _load = 40; };
      		if(EQUAL(backpack player,“B_Kitbag_cbr”)) then { _load = 40; };
      		if(EQUAL(backpack player,“B_FieldPack_blk”)) then { _load = 45; };
      		if(EQUAL(backpack player,“B_FieldPack_ocamo”)) then { _load = 45; };
      		if(EQUAL(backpack player,“B_FieldPack_oucamo”)) then { _load = 45; };
      		if(EQUAL(backpack player,“B_FieldPack_ghex_f”)) then { _load = 45; };
      		if(EQUAL(backpack player,“B_Bergen_sgg”)) then { _load = 50; };
      		if(EQUAL(backpack player,“B_Bergen_mcamo”)) then { _load = 50; };       
      		if(EQUAL(backpack player,“B_Bergen_rgr”)) then { _load = 50; };  
      		if(EQUAL(backpack player,“B_Bergen_blk”)) then { _load = 50; };  
              if(EQUAL(backpack player,“B_Carryall_ocamo”)) then { _load = 60; };
              if(EQUAL(backpack player,“B_Carryall_oucamo”)) then { _load = 60; };            
              if(EQUAL(backpack player,“B_Carryall_mcamo”)) then { _load = 60; };
      		if(EQUAL(backpack player,“B_Carryall_oli”)) then { _load = 60; };
      		if(EQUAL(backpack player,“B_Carryall_khk”)) then { _load = 60; };
      		if(EQUAL(backpack player,“B_Carryall_cbr”)) then { _load = 60; };
      		if(EQUAL(backpack player,“B_Carryall_ghex_f”)) then { _load = 60; };
      		if(EQUAL(backpack player,“B_Bergen_dgtl_f”)) then { _load = 75; };
      		if(EQUAL(backpack player,“B_Bergen_tna_f”)) then { _load = 75; };
              life_maxWeight = life_minWeight + _load;
              waitUntil {!(EQUAL(backpack player,_bp))};
              if(EQUAL(backpack player,"")) then {
                  life_maxWeight = life_minWeight;
              };
          };
      };
      
      
      
      
      //Primary & Secondary (Handgun) should be added last as magazines do not automatically load into the gun.
      if (!(_prim isEqualTo "")) then {_handle = [_prim,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_seco isEqualTo "")) then {_handle = [_seco,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      
      
      
      
      {
          if (!(_x isEqualTo "")) then {
              player addPrimaryWeaponItem _x;
          };
      } forEach (_pItems);
      {
          if (!(_x isEqualTo "")) then {
              player addHandgunItem _x;
          };
      } forEach (_hItems);
      
      
      
      
      [] call life_fnc_playerSkins;
      Alles anzeigen


      Habe halt da die Rucksack Classnames geändert.. sieht da jemand den Fehler?

      Gruss

      Bostigo

    • NaiKi
      Schüler
      Reaktionen
      17
      Trophäen
      10
      Beiträge
      85
      Bilder
      4
      • 9. Januar 2017 um 07:59
      • #2

      “ sind immer noch die Falschen.

      " das sind die richtigen

    • moeck
      Erleuchteter
      Reaktionen
      632
      Trophäen
      9
      Beiträge
      3.160
      Bilder
      9
      • 9. Januar 2017 um 10:31
      • #3

      Du solltest mal notepad++ oder einen anderen Texteditor verwenden. Mit Word oder einem anderem Schreibprogramm (OpenOffice, ...) solltest Du auf keinen Fall die Dateien modifizieren.

      Code
      #include "..\..\script_macros.hpp"
      /*
       File: fn_loadGear.sqf
       Author: Bryan "Tonic" Boardwine
      
      
      
      
       Description:
       Loads saved civilian gear, this is limited for a reason and that's balance.
      */
      private ["_itemArray","_handle"];
      _itemArray = life_gear;
      waitUntil {!(isNull (findDisplay 46))};
      
      
      
      
      _handle = [] spawn life_fnc_stripDownPlayer;
      waitUntil {scriptDone _handle};
      
      
      
      
      if (count _itemArray isEqualTo 0) exitWith {
       switch (playerSide) do {
       case west: {
       [] call life_fnc_copLoadout;
       };
      
      
      
      
       case civilian: {
       [] call life_fnc_civLoadout;
       };
      
      
      
      
       case independent: {
       [] call life_fnc_medicLoadout;
       };
       };
      };
      
      
      
      
      _itemArray params [
       "_uniform",
       "_vest",
       "_backpack",
       "_goggles",
       "_headgear",
       ["_items",[]],
       "_prim",
       "_seco",
       ["_uItems",[]],
       ["_uMags",[]],
       ["_bItems",[]],
       ["_bMags",[]],
       ["_vItems",[]],
       ["_vMags",[]],
       ["_pItems",[]],
       ["_hItems",[]],
       ["_yItems",[]]
      ];
      
      
      
      
      if (!(_goggles isEqualTo "")) then {_handle = [_goggles,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_headgear isEqualTo "")) then {_handle = [_headgear,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_uniform isEqualTo "")) then {_handle = [_uniform,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_vest isEqualTo "")) then {_handle = [_vest,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_backpack isEqualTo "")) then {_handle = [_backpack,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      
      
      
      
      /* Hotfix for losing virtual items on login */
      if (!isNil {(_this select 0)}) then {
       life_maxWeight = life_maxWeight + (round(FETCH_CONFIG2(getNumber,"CfgVehicles",(backpack player),"maximumload") / 4));
      };
      
      
      
      
      {_handle = [_x,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};} forEach _items;
      
      
      
      
      {player addItemToUniform _x;} forEach (_uItems);
      {(uniformContainer player) addItemCargoGlobal [_x,1];} forEach (_uMags);
      {player addItemToVest _x;} forEach (_vItems);
      {(vestContainer player) addItemCargoGlobal [_x,1];} forEach (_vMags);
      {player addItemToBackpack _x;} forEach (_bItems);
      {(backpackContainer player) addItemCargoGlobal [_x,1];} forEach (_bMags);
      life_maxWeight = 100;
      
      
      
      
      {
       [true,(_x select 0),(_x select 1)] call life_fnc_handleInv;
      } forEach (_yItems);
      
      
      
      
      life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight");
      /* Réglage de la capacité en fonction des sac à dos */
      [] spawn
      {
       while{true} do
       {
       waitUntil {!(EQUAL(backpack player,""))};
       _bp = backpack player;
       _cfg = FETCH_CONFIG2(getNumber,CONFIG_VEHICLES,_bp,"maximumload");
       _load = round(_cfg / 4);
       if(EQUAL(backpack player,"B_OutdoorPack_blk")) then { _load = 20; };
       if(EQUAL(backpack player,"B_AssaultPack_khk")) then { _load = 30; }; 
       if(EQUAL(backpack player,"B_AssaultPack_dgtl")) then { _load = 30; };
       if(EQUAL(backpack player,"B_AssaultPack_rgr")) then { _load = 30; }; 
       if(EQUAL(backpack player,"B_AssaultPack_sgg")) then { _load = 30; };
       if(EQUAL(backpack player,"B_AssaultPack_blk")) then { _load = 30; };
       if(EQUAL(backpack player,"B_AssaultPack_cbr")) then { _load = 30; };
       if(EQUAL(backpack player,"B_AssaultPack_mcamo")) then { _load = 30; };
       if(EQUAL(backpack player,"B_AssaultPack_tna_f")) then { _load = 30; };
       if(EQUAL(backpack player,"B_TacticalPack_oli")) then { _load = 35; };
       if(EQUAL(backpack player,"B_Kitbag_mcamo")) then { _load = 40; };
       if(EQUAL(backpack player,"B_Kitbag_ssg")) then { _load = 40; };
       if(EQUAL(backpack player,"B_Kitbag_cbr")) then { _load = 40; };
       if(EQUAL(backpack player,"B_FieldPack_blk")) then { _load = 45; };
       if(EQUAL(backpack player,"B_FieldPack_ocamo")) then { _load = 45; };
       if(EQUAL(backpack player,"B_FieldPack_oucamo")) then { _load = 45; };
       if(EQUAL(backpack player,"B_FieldPack_ghex_f")) then { _load = 45; };
       if(EQUAL(backpack player,"B_Bergen_sgg")) then { _load = 50; };
       if(EQUAL(backpack player,"B_Bergen_mcamo")) then { _load = 50; }; 
       if(EQUAL(backpack player,"B_Bergen_rgr")) then { _load = 50; }; 
       if(EQUAL(backpack player,"B_Bergen_blk")) then { _load = 50; }; 
       if(EQUAL(backpack player,"B_Carryall_ocamo")) then { _load = 60; };
       if(EQUAL(backpack player,"B_Carryall_oucamo")) then { _load = 60; }; 
       if(EQUAL(backpack player,"B_Carryall_mcamo")) then { _load = 60; };
       if(EQUAL(backpack player,"B_Carryall_oli")) then { _load = 60; };
       if(EQUAL(backpack player,"B_Carryall_khk")) then { _load = 60; };
       if(EQUAL(backpack player,"B_Carryall_cbr")) then { _load = 60; };
       if(EQUAL(backpack player,"B_Carryall_ghex_f")) then { _load = 60; };
       if(EQUAL(backpack player,"B_Bergen_dgtl_f")) then { _load = 75; };
       if(EQUAL(backpack player,"B_Bergen_tna_f")) then { _load = 75; };
       life_maxWeight = life_minWeight + _load;
       waitUntil {!(EQUAL(backpack player,_bp))};
       if(EQUAL(backpack player,"")) then {
       life_maxWeight = life_minWeight;
       };
       };
      };
      
      
      
      
      //Primary & Secondary (Handgun) should be added last as magazines do not automatically load into the gun.
      if (!(_prim isEqualTo "")) then {_handle = [_prim,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      if (!(_seco isEqualTo "")) then {_handle = [_seco,true,false,false,false] spawn life_fnc_handleItem; waitUntil {scriptDone _handle};};
      
      
      
      
      {
       if (!(_x isEqualTo "")) then {
       player addPrimaryWeaponItem _x;
       };
      } forEach (_pItems);
      {
       if (!(_x isEqualTo "")) then {
       player addHandgunItem _x;
       };
      } forEach (_hItems);
      
      
      
      
      [] call life_fnc_playerSkins;
      Alles anzeigen

      anbei mal die Korrektur.

      Signatur? Was ist eine Signatur? Kann man das essen?

      Bitte beachten: Ich gebe keinen Support über private Nachrichten!


      Ganz wichtig: [Leitfaden] Wie frage Ich richtig um Hilfe?

      Nicht zu vergessen [Tutorial/Selbst-Test] Sollte ich einen Life Server eröffnen ?

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™