Beiträge von Marius1773
-
-
Einmal die init.sqf
Okay, der Fehler kommt wenn du eine Falsche Koordinate eingefügt hast,
hast du das Objekt "Land_Dome_Big_F" auf GENAU dieser Koordinate: "519.981,497.355,0.597"
Wenn du dir nicht genau sicher bist gib mir deine Mission SQM
-
Nurnoch der so wie es aussieht?
Schick bitte die init.sqf bei life_server
-
Funktioniert leider immer noch nicht mit den gefixten Dateien von Marius1773,
Anbei die neuen Logs.
na siehste wenigstens sind die Fehler weg das ist schonmal gut
Nurnoch gibt es dieses Problem:
Code23:25:22 Error in expression <y]]] call TON_fnc_terrainSort; _dome = nearestObject [_pos,"Land_Dome_Big_F"]; > 23:25:22 Error position: <nearestObject [_pos,"Land_Dome_Big_F"]; > 23:25:22 Error Type Array, expected Number 23:25:22 File life_server\init.sqf, line 167
Einmal bitte die init.sqf in der life_server
-
Hier die gefixten files, und die reinpacken und nochmal starten
-
Hier hab ich nochmal die aktuellste rpt log. Ich versuche jetzt mal dem root@localhost nicht nur alle server previliges sondern auch die previliges zu geben und teste das jetzt mal. geb euch dann gleich Bescheid ob es geklappt hat.
Code
Alles anzeigen22:35:21 Error in expression <ivate _lakesideArray = [Land_School_01_F","Land_Warehouse_03_F","Land_House_Smal> 22:35:21 Error position: <","Land_Warehouse_03_F","Land_House_Smal> 22:35:21 Error Missing ] 22:35:21 File core\shops\fn_virt_buy.sqf [life_fnc_virt_buy], line 76 22:35:21 Error in expression <ivate _lakesideArray = [Land_School_01_F","Land_Warehouse_03_F","Land_House_Smal> 22:35:21 Error position: <","Land_Warehouse_03_F","Land_House_Smal> 22:35:21 Error Missing ] 22:35:21 File core\shops\fn_virt_buy.sqf [life_fnc_virt_buy], line 76 22:35:21 Error in expression <ivate _lakesideArray = [Land_School_01_F","Land_Warehouse_03_F","Land_House_Smal> 22:35:21 Error position: <","Land_Warehouse_03_F","Land_House_Smal> 22:35:21 Error Missing ] 22:35:21 File core\shops\fn_weaponShopBuySell.sqf [life_fnc_weaponShopBuySell], line 89 22:35:21 Error in expression <ivate _lakesideArray = [Land_School_01_F","Land_Warehouse_03_F","Land_House_Smal> 22:35:21 Error position: <","Land_Warehouse_03_F","Land_House_Smal> 22:35:21 Error Missing ] 22:35:21 File core\shops\fn_weaponShopBuySell.sqf [life_fnc_weaponShopBuySell], line 89
Einmal bitte weaponShopBuySell.sqf und virt_buy.sqf
-
folgende Meldung steht im ExtDB Log
[20:26:25:034790 +02:00] [Thread 8164] extDB3: Config Error: altislife: No such node (altislife.IP)
Jemand eine Idee woran es liegt?
Diese Fehlermeldung sehe ich so oft wie meinen Großen Zeh..
3x überprüft ob Datenbank einstellungen passen?
Einmal bitte extdb_conf ini anhängen ohne PW
-
Sooo einer der Pro´s einmal bitte rüberschauen
blackfisch , AvirexDE , moeck
Apropo wie immer Backup machen weil ich manchmal ziemlich unfähig bin, würde es nur ein Marker sein wäre es Pipifax gewesen
Code
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_captureHideout.sqf Author: Bryan "Tonic" Boardwine Description: Blah blah. */ private _altisArray = ["Land_u_Barracks_V2_F","Land_i_Barracks_V2_F"]; private _tanoaArray = ["Land_School_01_F","Land_Warehouse_03_F","Land_House_Small_02_F"]; private _hideoutObjs = [[["Altis", _altisArray], ["Tanoa", _tanoaArray]]] call TON_fnc_terrainSort; private _hideout = (nearestObjects[getPosATL player,_hideoutObjs,25]) select 0; private _group = _hideout getVariable ["gangOwner",grpNull]; private _text = format["Gangversteck eingenommen von der Gang %1",_gangName]; private _posM = getMarkerPos _nearestMarker; private _nearestMarker = [allMapMarkers, player] call BIS_fnc_nearestPosition; private _nameM { if (_nearestMarker isEqualTo "gang_area_1") then { _nameM = "gang_area_1_1"; }else{ _nameM = "gang_area_2_2"; }else{ _nameM = "gang_area_3_3"; }; }; if (isNil {group player getVariable "gang_name"}) exitWith {titleText[localize "STR_GNOTF_CreateGang","PLAIN"];}; if (_group == group player) exitWith {titleText[localize "STR_GNOTF_Controlled","PLAIN"]}; if ((_hideout getVariable ["inCapture",false])) exitWith {hint localize "STR_GNOTF_onePersonAtATime";}; private "_action"; private "_cpRate"; if (!isNull _group) then { _gangName = _group getVariable ["gang_name",""]; _action = [ format [localize "STR_GNOTF_AlreadyControlled",_gangName], localize "STR_GNOTF_CurrentCapture", localize "STR_Global_Yes", localize "STR_Global_No" ] call BIS_fnc_guiMessage; _cpRate = 0.0045; } else { _cpRate = 0.0075; }; if (!isNil "_action" && {!_action}) exitWith {titleText[localize "STR_GNOTF_CaptureCancel","PLAIN"];}; life_action_inUse = true; //Setup the progress bar disableSerialization; private _title = localize "STR_GNOTF_Capturing"; "progressBar" cutRsc ["life_progress","PLAIN"]; private _ui = uiNamespace getVariable "life_progress"; private _progressBar = _ui displayCtrl 38201; private _titleText = _ui displayCtrl 38202; _titleText ctrlSetText format ["%2 (1%1)...","%",_title]; _progressBar progressSetPosition 0.01; private _cP = 0.01; for "_i" from 0 to 1 step 0 do { if (animationState player != "AinvPknlMstpSnonWnonDnon_medic_1") then { [player,"AinvPknlMstpSnonWnonDnon_medic_1",true] remoteExecCall ["life_fnc_animSync",RCLIENT]; player switchMove "AinvPknlMstpSnonWnonDnon_medic_1"; player playMoveNow "AinvPknlMstpSnonWnonDnon_medic_1"; }; uiSleep 0.26; if (isNull _ui) then { "progressBar" cutRsc ["life_progress","PLAIN"]; _ui = uiNamespace getVariable "life_progress"; _progressBar = _ui displayCtrl 38201; _titleText = _ui displayCtrl 38202; }; _cP = _cP + _cpRate; _progressBar progressSetPosition _cP; _titleText ctrlSetText format ["%3 (%1%2)...",round(_cP * 100),"%",_title]; _hideout setVariable ["inCapture",true,true]; if (_cP >= 1 || !alive player) exitWith {_hideout setVariable ["inCapture",false,true];}; if (life_istazed) exitWith {_hideout setVariable ["inCapture",false,true];}; //Tazed if (life_isknocked) exitWith {_hideout setVariable ["inCapture",false,true];}; //Knocked if (life_interrupted) exitWith {_hideout setVariable ["inCapture",false,true];}; }; //Kill the UI display and check for various states "progressBar" cutText ["","PLAIN"]; player playActionNow "stop"; if (!alive player || life_istazed || life_isknocked) exitWith {life_action_inUse = false;_hideout setVariable ["inCapture",false,true];}; if (player getVariable ["restrained",false]) exitWith {life_action_inUse = false;_hideout setVariable ["inCapture",false,true];}; if (life_interrupted) exitWith {life_interrupted = false; titleText[localize "STR_GNOTF_CaptureCancel","PLAIN"]; life_action_inUse = false;_hideout setVariable ["inCapture",false,true];}; life_action_inUse = false; titleText[localize "STR_GNOTF_Captured","PLAIN"]; private _flagTexture = [ "\A3\Data_F\Flags\Flag_red_CO.paa", "\A3\Data_F\Flags\Flag_green_CO.paa", "\A3\Data_F\Flags\Flag_blue_CO.paa", "\A3\Data_F\Flags\Flag_white_CO.paa", "\A3\Data_F\Flags\flag_fd_red_CO.paa", "\A3\Data_F\Flags\flag_fd_green_CO.paa", "\A3\Data_F\Flags\flag_fd_blue_CO.paa", "\A3\Data_F\Flags\flag_fd_orange_CO.paa" ] call BIS_fnc_selectRandom; _this select 0 setFlagTexture _flagTexture; [[0,1],"STR_GNOTF_CaptureSuccess",true,[name player,(group player) getVariable "gang_name"]] remoteExecCall ["life_fnc_broadcast",RCLIENT]; _hideout setVariable ["inCapture",false,true]; _hideout setVariable ["gangOwner",group player,true]; _marker = createMarker [_nameM,_posM]; _marker setMarkerType "Dot"; _marker setMarkerColor "ColorRed"; _marker setMarkerText _text;
-
Marius1773 Okay, das wäre super
Okay, wait könntest du vielleicht mir alle Variablen von deinen Markern von den Hideouts geben also von 1,2 und 3?
-
___ Das mit Hideout Marker entfernen wenn eingenommen hätte ich jetzt keine richtige Vorstellung aber ich kann dir das so machen das der Marker kommt mit dem Gangnamen
-
Eine letzt Frage hätte ich trotzdem noch. Wo genau legt er dann den Text für die Proccess bar fest, in der Init oder in einer Config?
MfG ~ Mayers
Config
-
Nur in der player_inv.hpp. Und vielen dank freut mich zu hören^^
Dann ersetz mal die ganzen inv sachen und pmenu sachen mit den Originalen Files
Code: fn_p_updateMenu.sqf
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_p_updateMenu.sqf Author: Bryan "Tonic" Boardwine Description: Updates the player menu (Virtual Interaction Menu) */ private ["_inv","_lic","_licenses","_near","_near_units","_mstatus","_shrt","_side","_struct"]; disableSerialization; if (FETCH_CONST(life_adminlevel) < 1) then { ctrlShow[2021,false]; }; _side = switch (playerSide) do {case west:{"cop"}; case civilian:{"civ"}; case independent:{"med"};}; _inv = CONTROL(2001,2005); _lic = CONTROL(2001,2014); _near = CONTROL(2001,2022); _near_i = CONTROL(2001,2023); _mstatus = CONTROL(2001,2015); _struct = ""; lbClear _inv; lbClear _near; lbClear _near_i; //Near players _near_units = []; { if (player distance _x < 10) then {_near_units pushBack _x};} forEach playableUnits; { if (!isNull _x && alive _x && player distance _x < 10 && !(_x isEqualTo player)) then { _near lbAdd format ["%1 - %2",_x getVariable ["realname",name _x], side _x]; _near lbSetData [(lbSize _near)-1,str(_x)]; _near_i lbAdd format ["%1 - %2",_x getVariable ["realname",name _x], side _x]; _near_i lbSetData [(lbSize _near)-1,str(_x)]; }; } forEach _near_units; _mstatus ctrlSetStructuredText parseText format ["<img size='1.3' image='icons\ico_bank.paa'/> <t size='0.8px'>$%1</t><br/><img size='1.2' image='icons\ico_money.paa'/> <t size='0.8'>$%2</t>",[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText]; ctrlSetText[2009,format ["Weight: %1 / %2", life_carryWeight, life_maxWeight]]; { if (ITEM_VALUE(configName _x) > 0) then { _inv lbAdd format ["%2 [x%1]",ITEM_VALUE(configName _x),localize (getText(_x >> "displayName"))]; _inv lbSetData [(lbSize _inv)-1,configName _x]; _icon = M_CONFIG(getText,"VirtualItems",configName _x,"icon"); if (!(_icon isEqualTo "")) then { _inv lbSetPicture [(lbSize _inv)-1,_icon]; }; }; } forEach ("true" configClasses (missionConfigFile >> "VirtualItems")); { _displayName = getText(_x >> "displayName"); if (LICENSE_VALUE(configName _x,_side)) then { _struct = _struct + format ["%1<br/>",localize _displayName]; }; } forEach (format ["getText(_x >> 'side') isEqualTo '%1'",_side] configClasses (missionConfigFile >> "Licenses")); if (_struct isEqualTo "") then { _struct = "No Licenses"; }; _lic ctrlSetStructuredText parseText format [" <t size='0.8px'> %1 </t> ",_struct];
und
Code: fn_giveItem.sqf
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_giveItem.sqf Author: Bryan "Tonic" Boardwine Description: Gives the selected item & amount to the selected player and removes the item & amount of it from the players virtual inventory. */ ctrlShow [2002,false]; call { private _value = ctrlText 2010; if ((lbCurSel 2023) isEqualTo -1) exitWith { hint localize "STR_NOTF_noOneSelected"; }; if ((lbCurSel 2005) isEqualTo -1) exitWith { hint localize "STR_NOTF_didNotSelectItemToGive"; }; private _unit = lbData [2023, lbCurSel 2023]; _unit = call compile format ["%1",_unit]; if (isNil "_unit") exitWith { hint localize "STR_NOTF_notWithinRange"; }; if (isNull _unit || {_unit isEqualTo player}) exitWith {}; private _item = lbData [2005, lbCurSel 2005]; if !([_value] call TON_fnc_isnumber) exitWith { hint localize "STR_NOTF_notNumberFormat"; }; if (parseNumber _value <= 0) exitWith { hint localize "STR_NOTF_enterAmountGive"; }; if !([false,_item, parseNumber _value] call life_fnc_handleInv) exitWith { hint localize "STR_NOTF_couldNotGive"; }; [_unit, _value, _item, player] remoteExecCall ["life_fnc_receiveItem", _unit]; private _type = M_CONFIG(getText,"VirtualItems",_item,"displayName"); hint format [localize "STR_NOTF_youGaveItem", _unit getVariable ["realname", name _unit], _value, localize _type]; [] call life_fnc_p_updateMenu; }; ctrlShow[2002,true];
-
Du kannst nicht stumpf extDB 2 löschen und durch extDB3 ersetzen....
Hahahhaha xD
TW_Sebastian du weißt schon life_server umschreiben und mission komplett alles was mit db zu tun hat ändern also da bist eher dran indem du einfach neu mit extdb3 anfängst
-
Hallo,
Ich probiere jetzt schon ein paar min den Ausdruck für die bank zufinden, aber ich finde das irgendwie nicht. Könnte mir jemand helfen?
MFG
Was meinst du mit Ausdruck?
-
Code: INIT
this enableSimulation false; this allowDamage false; this addAction["Kupfer gießen",life_fnc_processAction,"copper",0,false,false,"",' life_inv_copperUnrefined > 0 && !life_is_processing && !life_action_inUse']; this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "copper" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "copper" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"copper",0,false,false,"",' !license_civ_copper && playerSide isEqualTo civilian '];
Bitteschön
-
-
Marius1773 Achja, könntest du mir vlt. noch erkären wie das mit dem Ding mit der Map usw. funktioniert?
Kannst mal alle Hideout dateien anhängen?
#Ok doch nicht, wird denn so schon nen Marker beim Hideout erstellt?, wenn nicht bearbeite ich dir die hideout datei
-
Guten Abend,
Ich bin bei dem Thema scripten usw. noch sehr unerfahren, daher suche ich hier Hilfe.
Ist es im Allgemeinen möglich, dass man bei einem Verarbeiter den Scrolltext unterschiedlich zu dem Text in der Proccess bar macht?
Falls es von Nöten ist, kann ich auch init´s, configs & usw. hier reinschicken.
MfG ~ Mayers
In die init von dem Verarbeiter gucken da das localize und den STR_XXX_XXX raus und Dein eigenen Text reinschreiben, wenn du das nicht kannst oder nicht checkst was ich damit meine schick deine Init hier rein
-
Guten Tag,
Ich habe jetzt nochmal was versucht, was ich in dem Thread (hier) zu Australien gefunden habe. Hat aber leider nicht geholfen. Meine Frage dazu braauch ich die Arrays die ich erstellt habe noch oder soll ich ein Backup drauf ziehen, bevor ich die Arrays erstellt habe?
Lags von dem Versuch mit den Arrays füge ich auch nochmal sehr gerne an.
ExtDB Logs sowie die init.sqf füge ich an.
Mit freundlichen Grüßen
Tom
Jup, der User der auf die Datenbank zugreift hat nicht genug Rechte
-
Da es so oder so früher oder später passiert hier:
habe nix dran geändert außer dem Namen und dem Format, Credits gehen Natürlich vollkommen an Leitungswasser und lest die Readme
mfg