Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
In any case, you really shouldn’t be using addVehicle for crates. Adding crates has its own function for a reason so you should be using that instead.
Looks like that fixed it, though the trucks respawned without the Ace Arsenal attached to them, not sure how to fix that unfortunately.
Going to try setting the vehicle loading ...faster? See if that prevents it maybe? Vehicles exploded right after the loading completed
from the readme file it's putting a space between API_ and addVehicle; I think that's causing the issue unless that's intentional
The procedure I've been following is:
Set the init line you mentioned
Delete the .sqf
Load into the mission run the [] spawn Hz_pers_fnc_saveGame; command
Shut down the server, run the batch file to create the .sqf
Restart the server
Ammo1 call Hz_pers_API_ addVehicle;
Ammo2 call Hz_pers_API_ addVehicle;
Humvee1 call Hz_pers_API_ addVehicle;
etc. etc.
if (isServer) then {
myFirstTimeLaunchFunction = {
["Ammo1",true] call Hz_pers_API_ addVehicle;
["Ammo2",true] call Hz_pers_API_ addVehicle;
["Humvee1",true] call Hz_pers_API_ addVehicle;
["Humvee2",true] call Hz_pers_API_ addVehicle;
["Humvee3",true] call Hz_pers_API_ addVehicle;
["Humvee4",true] call Hz_pers_API_ addVehicle;
["Gaz1",true] call Hz_pers_API_ addVehicle;
["Gaz2",true] call Hz_pers_API_ addVehicle;
};
};
Working like a charm though!
Now i just need to figure out how to get the vehicles to save their location. If I understand the readme right I put this in the init:
-----------------------------------------
if (isServer) then {
myFirstTimeLaunchFunction = {
[“isLocked”, false] call Hz_pers_API_ addVehicleVariable;
};
};
or alternatively put
if (isServer) then {
myFirstTimeLaunchFunction = {
Truck1 call Hz_pers_API_ addVehicle;
};
};
-----------------------------------
Is that right?
Here is a link to the most recent debug, also an SQF file save of the same debug, my mission init.sqf and a screenshot of the module just to rule out my own retardation.
Hmm... Unsure if I messed something up but I'm receiving the previous error (screen shot) in the editor, the command prompt opens in the editor but when launching in the server it doesn't seem to be opening the command prompt and generating the debug console, however it did generate a debug file on my client side machine when in the editor.
No wonder why no one was using this... xD
(you should delete all the save files you've got, and then it *should* work fine from there)
Hz_cfg\Hz_pers\Hz_pers_saveFile.sqf but when I remove the save file it continues to save/load current weapon/position as long as I don't restart the mission. When the server restarts with the save location set it starts me at the default mission load in location.
_index = _index + 1;
};
_resultingArray>
Error position: <_resultingArray>
Error Undefined variable in expression: _resultingarray
File x\Hz\Hz_mod_persistency\funcs\Hz_pers_fnc_structArrayElementParser.sqf..., line 58
Error in expression <};
if (Hz_pers_saveVar_saveFileVersion < 191201) then {
["Hz_pers_saveVar_save>
Error position: << 191201) then {
["Hz_pers_saveVar_save>
Error <: Type String, expected Number,Not a Number
File x\Hz\Hz_mod_persistency\funcs\Hz_pers_fnc_updateSaveDataVersion.sqf..., line 16
The reason I have Arma 3 and Arma 3 Server on the machine is because I was told that in order to run a dedicated server you had to have Arma 3 installed as well. If this isn't the case then that'll certainly free up some space on the HDD.
I'm going to try again with it running as "\Hz_cfg\Hz_pers\Hz_pers_saveFile.sqf" but I remember it not working before. It seems like the addon is searching for it in the Arma 3 folder not the Arma 3 Server folder but I'm probably wrong.
You can always ignore the following:
_resultingArray>
Error position: <_resultingArray>
Error Undefined variable in expression: _resultingarray
File x\Hz\Hz_mod_persistency\funcs\Hz_pers_fnc_structArrayElementParser.sqf..., line 58
Error in expression <};
This isn't an actual error, the log just like to report it because that function is allowed to return nil values and Arma doesn't like that.
_resultingArray>
Error position: <_resultingArray>
Error Undefined variable in expression: _resultingarray
File x\Hz\Hz_mod_persistency\funcs\Hz_pers_fnc_structArrayElementParser.sqf..., line 58
Error in expression <};
if (Hz_pers_saveVar_saveFileVersion < 191201) then {
["Hz_pers_saveVar_save>
Error position: << 191201) then {
["Hz_pers_saveVar_save>
Error <: Type String, expected Number,Not a Number
File x\Hz\Hz_mod_persistency\funcs\Hz_pers_fnc_updateSaveDataVersion.sqf..., line 16
@echo off
:start
echo Finding latest save file and copying it into correct folder for game to load...
cd /d "C:\Program Files (x86)\Steam\steamapps\common\Arma 3 Server"
FOR /F "delims=|" %%I IN ('DIR "debug_console_x64_*.txt" /B /O:D') DO SET NewestFile=%%I
copy %NewestFile% Hz_pers_saveFile.sqf
mkdir Hz_cfg\Hz_pers
move /Y Hz_pers_saveFile.sqf Hz_cfg\Hz_pers
echo File copied.
pause
start "" "C:\Program Files (x86)\Steam\SteamApps\common\Arma 3 Server\arma3server_x64.exe" -server -config=server.cfg -port=2302 -filepatching -mod=@Hunter
I waited about 30 minutes the first time around didn't realize it was working off of the in game save