@SanDiego okey aba hängt das mit dem dynmarket zusammen?
mfg
marcel
[TUTORIAL][Altis Life 4.4r3] RyanTTs Dynamic Market System
-
- Altis Life
-
blackfisch -
27. Juli 2016 um 01:04
-
-
Nunja. In mpmissions\__CUR_MP.Altis\core\DynMarket\fn_LoadIntoListbox.sqf in Line 30 wird dynmarket_prices verwendet, was vorher nicht definiert wurde. Danach tritt noch ein Fehler in einer forEach-Schleife auf und in der Summe wird es das Problem sein.
-
Du hast in deiner core/init.sqf alleine schon einen. Fehler
-
Ja das is mir auch aufgefallen nur wie behebe ich das jz mit dem dynmarket?
kann mir da nimand helfen? -
Funktioniert das ganze auch schon mit der 5.0?
-
ja bei mir läuft es
-
nun sagt er mir diesen fehler?
-.-Code
Alles anzeigen10:55:10 "----------------------------------------------------------------------------------------------------" 10:55:10 " End of Altis Life Client Init :: Total Execution Time 4.25806 seconds " 10:55:10 "----------------------------------------------------------------------------------------------------" 10:55:13 Error in expression <_forEachIndex; }; } forEach _stack; _return; > 10:55:13 Error position: <_stack; _return; > 10:55:13 Error Nicht definierte Variable in Ausdruck: _stack 10:55:13 Error in expression <itemArrayOld=["",0];}; _index = [_type,DYNMARKET_prices] call TON_fnc_index; _> 10:55:13 Error position: <DYNMARKET_prices] call TON_fnc_index; _> 10:55:13 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 10:55:13 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_DisplayPrices.sqf, line 24 10:55:13 Error in expression <_forEachIndex; }; } forEach _stack; _return; > 10:55:13 Error position: <_stack; _return; > 10:55:13 Error Nicht definierte Variable in Ausdruck: _stack 10:55:13 Error in expression <itemArrayOld=["",0];}; _index = [_type,DYNMARKET_prices] call TON_fnc_index; _> 10:55:13 Error position: <DYNMARKET_prices] call TON_fnc_index; _> 10:55:13 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 10:55:13 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_DisplayPrices.sqf, line 24 10:55:14 Error in expression <box )-1,_itemDisplayIcon]; }; } forEach DYNMARKET_prices; > 10:55:14 Error position: <DYNMARKET_prices; > 10:55:14 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 10:55:14 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_LoadIntoListbox.sqf, line 30 10:55:14 Error in expression <_forEachIndex; }; } forEach _stack; _return; > 10:55:14 Error position: <_stack; _return; > 10:55:14 Error Nicht definierte Variable in Ausdruck: _stack 10:55:14 Error in expression <itemArrayOld=["",0];}; _index = [_type,DYNMARKET_prices] call TON_fnc_index; _> 10:55:14 Error position: <DYNMARKET_prices] call TON_fnc_index; _> 10:55:14 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 10:55:14 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_DisplayPrices.sqf, line 24 11:05:44 Error in expression <box )-1,_itemDisplayIcon]; }; } forEach DYNMARKET_prices; > 11:05:44 Error position: <DYNMARKET_prices; > 11:05:44 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 11:05:44 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_LoadIntoListbox.sqf, line 30
-
Ich schau bei Gelegenheit drüber wenn ich mal dazu komme - meine Zeit ist relativ eng bemessen wegen Schule etc, sonst wäre das schon längst geschehen. Ggf setz ich mich da auch mit Ryan in Verbindung und nerv ihn bis es geht, nicht war @OPTiX :p
-
nun sagt er mir diesen fehler?
-.-Code
Alles anzeigen10:55:10 "----------------------------------------------------------------------------------------------------" 10:55:10 " End of Altis Life Client Init :: Total Execution Time 4.25806 seconds " 10:55:10 "----------------------------------------------------------------------------------------------------" 10:55:13 Error in expression <_forEachIndex; }; } forEach _stack; _return; > 10:55:13 Error position: <_stack; _return; > 10:55:13 Error Nicht definierte Variable in Ausdruck: _stack 10:55:13 Error in expression <itemArrayOld=["",0];}; _index = [_type,DYNMARKET_prices] call TON_fnc_index; _> 10:55:13 Error position: <DYNMARKET_prices] call TON_fnc_index; _> 10:55:13 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 10:55:13 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_DisplayPrices.sqf, line 24 10:55:13 Error in expression <_forEachIndex; }; } forEach _stack; _return; > 10:55:13 Error position: <_stack; _return; > 10:55:13 Error Nicht definierte Variable in Ausdruck: _stack 10:55:13 Error in expression <itemArrayOld=["",0];}; _index = [_type,DYNMARKET_prices] call TON_fnc_index; _> 10:55:13 Error position: <DYNMARKET_prices] call TON_fnc_index; _> 10:55:13 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 10:55:13 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_DisplayPrices.sqf, line 24 10:55:14 Error in expression <box )-1,_itemDisplayIcon]; }; } forEach DYNMARKET_prices; > 10:55:14 Error position: <DYNMARKET_prices; > 10:55:14 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 10:55:14 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_LoadIntoListbox.sqf, line 30 10:55:14 Error in expression <_forEachIndex; }; } forEach _stack; _return; > 10:55:14 Error position: <_stack; _return; > 10:55:14 Error Nicht definierte Variable in Ausdruck: _stack 10:55:14 Error in expression <itemArrayOld=["",0];}; _index = [_type,DYNMARKET_prices] call TON_fnc_index; _> 10:55:14 Error position: <DYNMARKET_prices] call TON_fnc_index; _> 10:55:14 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 10:55:14 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_DisplayPrices.sqf, line 24 11:05:44 Error in expression <box )-1,_itemDisplayIcon]; }; } forEach DYNMARKET_prices; > 11:05:44 Error position: <DYNMARKET_prices; > 11:05:44 Error Nicht definierte Variable in Ausdruck: dynmarket_prices 11:05:44 File mpmissions\__CUR_MP.Altis\core\DynMarket\fn_LoadIntoListbox.sqf, line 30
hast du noch ein Backup ohne Dynmarket ? Sonst kommst einfach mal nachher aufs Ts und ich guck mal
-
@Kuchenplatte wäre nett und ich bräuchte dann halt die ts daten :p
-
@Kuchenplatte wäre nett und ich bräuchte dann halt die ts daten :
ja bin aber heute nicht mehr da. Versuch mal die Datei zu re-uploaden.
-
@Kuchenplatte so habs nochma probiert funkt aba noch imma nich könnten wir heut über ts das machen
-
Hab mit der 5.0 Probiert und es Funktioniert tadelos
-
@xonexwas mache ich dann falsch hab versin 4.4r4 aber funkt ned ._.
-
komm mal in 10 min in den TS. aber bitte komplett ein backup aufspielen und teamviewer bereit halten.
ts.acryl-gaming.de:9988 -
-
zeig mal bitte deine fn_loadintolistbox.sqf datei
Und haste auch die restlichen daten in der @live_server reingepackt?
Sprich : @life_server\addons\life_server\Functions\DynMarket -
Code
Alles anzeigen#include <macro.h> /* ##################### DYNAMIC MARKET SCRIPT ##################### ### AUTHOR: RYAN TT. ### ### STEAM: www.steamcommunity.com/id/ryanthett ### ### ### ### DISCLAIMER: THIS SCRIPT CAN BE USED ON EVERY SERVER ONLY ### ### WITH THIS HEADER / NOTIFICATION ### ################################################################# */ if (isNil "DYNMARKET_prices") then {[player] remoteExec ["TON_fnc_playerLogged",2];hint "Calcul des prix en cours..";sleep 1;}; disableSerialization; _dialog = findDisplay 7100; _listbox = _dialog displayCtrl 7055; _blacklist = []; { _itemName = _x select 0; _itemDisplayName = M_CONFIG(getText,"VirtualItems",_itemName,"displayname"); _itemDisplayIcon = M_CONFIG(getText,"VirtualItems",_itemName,"icon"); _itemDisplayName = localize _itemDisplayName; if !(_x select 0 in _blacklist) then { _listbox lbAdd format ["%1",_itemDisplayName]; _listbox lbSetData [(lbSize _listbox)-1,_x select 0]; _listbox lbSetPicture [(lbSize _listbox )-1,_itemDisplayIcon]; }; } forEach DYNMARKET_prices;
-
Sorry meinte ich will deine init.sqf mal sehen ;P
-
Sorry meinte ich will deine init.sqf mal sehen ;P
Mir ist gerade was aufgefallen,
bei uns sieht das mit dem @Life server so aus: /arma3/@life_server/addons/life_server
muss das dann in der Init.sqf im Hauptordner nicht auch so bennant werden und nicht so:
[] execVM "\life_server\Functions\DynMarket\fn_config.sqf";außerdem haben wir [] execVM "\life_server\Functions\DynMarket\fn_config.sqf";
im init.sqf im main ordner und nicht im core ordner xDCode
Alles anzeigen/* File: init.sqf Author: Description: */ StartProgress = false; [] execVM "briefing.sqf"; //Load Briefing [] execVM "scripts\autoMessages.sqf"; [] execVM "scripts\vis\fn_vehInfo.sqf"; [] execVM "KRON_Strings.sqf"; [] execVM "initVisualEffect_colorful.sqf"; [] execVM "\life_server\Functions\DynMarket\fn_config.sqf"; //Market System ---------------------------------------------------------------------------------------------------
Code: Core init.sqf
Alles anzeigen#include "..\script_macros.hpp" /* File: init.sqf Author: Description: Master client initialization file */ private ["_handle","_timeStamp","_server_isReady","_extDB_notLoaded"]; life_firstSpawn = true; life_session_completed = false; 0 cutText[localize "STR_Init_ClientSetup","BLACK FADED"]; 0 cutFadeOut 9999999; _timeStamp = diag_tickTime; diag_log "----------------------------------------------------------------------------------------------------"; diag_log "--------------------------------- Starting Altis Life Client Init ----------------------------------"; diag_log "------------------------------------------ Version 5.0.0 -------------------------------------------"; diag_log "----------------------------------------------------------------------------------------------------"; waitUntil {!isNull player && player == player}; //Wait till the player is ready [] call compile preprocessFileLineNumbers "core\clientValidator.sqf"; enableSentences false; //Setup initial client core functions diag_log "::Life Client:: Initialization Variables"; [] call compile preprocessFileLineNumbers "core\configuration.sqf"; diag_log "::Life Client:: Variables initialized"; diag_log "::Life Client:: Setting up Eventhandlers"; [] call life_fnc_setupEVH; diag_log "::Life Client:: Eventhandlers completed"; diag_log "::Life Client:: Setting up user actions"; [] call life_fnc_setupActions; diag_log "::Life Client:: User actions completed"; diag_log "::Life Client:: Waiting for server functions to transfer.."; waitUntil {(!isNil "TON_fnc_clientGangLeader")}; diag_log "::Life Client:: Received server functions."; 0 cutText [localize "STR_Init_ServerReady","BLACK FADED"]; 0 cutFadeOut 99999999; diag_log "::Life Client:: Waiting for the server to be ready.."; waitUntil{!isNil "life_HC_isActive"}; if (life_HC_isActive) then { waitUntil{!isNil "life_HC_server_isReady" && !isNil "life_HC_server_extDB_notLoaded"}; _server_isReady = life_HC_server_isReady; _extDB_notLoaded = life_HC_server_extDB_notLoaded; } else { waitUntil{!isNil "life_server_isReady" && !isNil "life_server_extDB_notLoaded"}; _server_isReady = life_server_isReady; _extDB_notLoaded = life_server_extDB_notLoaded; }; waitUntil{_server_isReady}; if (_extDB_notLoaded isEqualType []) exitWith { diag_log (_extDB_notLoaded select 1); 999999 cutText [localize "STR_Init_ExtdbFail","BLACK FADED"]; 999999 cutFadeOut 99999999; }; [] call SOCK_fnc_dataQuery; waitUntil {life_session_completed}; 0 cutText[localize "STR_Init_ClientFinish","BLACK FADED"]; 0 cutFadeOut 9999999; //diag_log "::Life Client:: Group Base Execution"; [] spawn life_fnc_escInterupt; //Set bank amount for new players switch (playerSide) do { case west: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop"); }; case civilian: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_civ"); }; case independent: { life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_med"); }; }; switch (playerSide) do { case west: { _handle = [] spawn life_fnc_initCop; waitUntil {scriptDone _handle}; }; case civilian: { //Initialize Civilian Settings _handle = [] spawn life_fnc_initCiv; waitUntil {scriptDone _handle}; }; case independent: { //Initialize Medics and blah _handle = [] spawn life_fnc_initMedic; waitUntil {scriptDone _handle}; }; }; player setVariable ["restrained",false,true]; player setVariable ["Escorting",false,true]; player setVariable ["transporting",false,true]; player setVariable ["playerSurrender",false,true]; diag_log "Past Settings Init"; [] execFSM "core\fsm\client.fsm"; diag_log "Executing client.fsm"; waitUntil {!(isNull (findDisplay 46))}; diag_log "Display 46 Found"; (findDisplay 46) displayAddEventHandler ["KeyDown", "_this call life_fnc_keyHandler"]; player addRating 99999999; [player,life_settings_enableSidechannel,playerSide] remoteExecCall ["TON_fnc_manageSC",RSERV]; 0 cutText ["","BLACK IN"]; [] call life_fnc_hudSetup; /* Set up frame-by-frame handlers */ LIFE_ID_PlayerTags = ["LIFE_PlayerTags","onEachFrame","life_fnc_playerTags"] call BIS_fnc_addStackedEventHandler; LIFE_ID_RevealObjects = ["LIFE_RevealObjects","onEachFrame","life_fnc_revealObjects"] call BIS_fnc_addStackedEventHandler; player setVariable ["steam64ID",getPlayerUID player]; player setVariable ["realname",profileName,true]; life_fnc_moveIn = compileFinal " life_disable_getIn = false; player moveInCargo (_this select 0); life_disable_getOut = true; "; life_fnc_RequestClientId = player; publicVariableServer "life_fnc_RequestClientId"; //Variable OwnerID for HeadlessClient [] spawn life_fnc_survival; [] spawn { for "_i" from 0 to 1 step 0 do { waitUntil{(!isNull (findDisplay 49)) && (!isNull (findDisplay 602))}; // Check if Inventory and ESC dialogs are open (findDisplay 49) closeDisplay 2; // Close ESC dialog (findDisplay 602) closeDisplay 2; // Close Inventory dialog }; }; CONSTVAR(life_paycheck); //Make the paycheck static. if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 0) then {player enableFatigue false;}; if (LIFE_SETTINGS(getNumber,"pump_service") isEqualTo 1) then { [] execVM "core\fn_setupStationService.sqf"; }; if (life_HC_isActive) then { [getPlayerUID player,player getVariable ["realname",name player]] remoteExec ["HC_fnc_wantedProfUpdate",HC_Life]; } else { [getPlayerUID player,player getVariable ["realname",name player]] remoteExec ["life_fnc_wantedProfUpdate",RSERV]; }; life_hideoutBuildings = []; { private _building = nearestBuilding getMarkerPos _x; life_hideoutBuildings pushBack _building; false } count ["gang_area_1","gang_area_2","gang_area_3"]; //DynMarket DYNAMICMARKET_boughtItems = []; [player] remoteExec ["TON_fnc_playerLogged",RSERV]; diag_log "----------------------------------------------------------------------------------------------------"; diag_log format [" End of Altis Life Client Init :: Total Execution Time %1 seconds ",(diag_tickTime) - _timeStamp]; diag_log "----------------------------------------------------------------------------------------------------";
-